| 85 | } |
| 86 | |
| 87 | export async function createApplication( |
| 88 | client: AppConfigClient, |
| 89 | name: string, |
| 90 | description?: string | null |
| 91 | ) { |
| 92 | const response = await client.send( |
| 93 | new CreateApplicationCommand({ |
| 94 | Name: name, |
| 95 | ...(description ? { Description: description } : {}), |
| 96 | }) |
| 97 | ) |
| 98 | |
| 99 | return { |
| 100 | message: `Application "${response.Name ?? name}" created`, |
| 101 | id: response.Id ?? '', |
| 102 | name: response.Name ?? '', |
| 103 | description: response.Description ?? null, |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | export async function listEnvironments( |
| 108 | client: AppConfigClient, |