| 612 | } |
| 613 | |
| 614 | export async function updateConfigurationProfile( |
| 615 | client: AppConfigClient, |
| 616 | applicationId: string, |
| 617 | configurationProfileId: string, |
| 618 | name?: string | null, |
| 619 | description?: string | null, |
| 620 | retrievalRoleArn?: string | null |
| 621 | ) { |
| 622 | const response = await client.send( |
| 623 | new UpdateConfigurationProfileCommand({ |
| 624 | ApplicationId: applicationId, |
| 625 | ConfigurationProfileId: configurationProfileId, |
| 626 | ...(name ? { Name: name } : {}), |
| 627 | ...(description != null ? { Description: description } : {}), |
| 628 | ...(retrievalRoleArn != null ? { RetrievalRoleArn: retrievalRoleArn } : {}), |
| 629 | }) |
| 630 | ) |
| 631 | |
| 632 | return { |
| 633 | message: `Configuration profile "${response.Name ?? configurationProfileId}" updated`, |
| 634 | applicationId: response.ApplicationId ?? applicationId, |
| 635 | id: response.Id ?? '', |
| 636 | name: response.Name ?? '', |
| 637 | description: response.Description ?? null, |
| 638 | type: response.Type ?? null, |
| 639 | } |
| 640 | } |
| 641 | |
| 642 | export async function deleteConfigurationProfile( |
| 643 | client: AppConfigClient, |