( client: AppConfigClient, applicationId: string, configurationProfileId: string, versionNumber: number )
| 251 | } |
| 252 | |
| 253 | export async function getHostedConfigurationVersion( |
| 254 | client: AppConfigClient, |
| 255 | applicationId: string, |
| 256 | configurationProfileId: string, |
| 257 | versionNumber: number |
| 258 | ) { |
| 259 | const response = await client.send( |
| 260 | new GetHostedConfigurationVersionCommand({ |
| 261 | ApplicationId: applicationId, |
| 262 | ConfigurationProfileId: configurationProfileId, |
| 263 | VersionNumber: versionNumber, |
| 264 | }) |
| 265 | ) |
| 266 | |
| 267 | return { |
| 268 | applicationId: response.ApplicationId ?? applicationId, |
| 269 | configurationProfileId: response.ConfigurationProfileId ?? configurationProfileId, |
| 270 | versionNumber: response.VersionNumber ?? null, |
| 271 | description: response.Description ?? null, |
| 272 | content: decodeContent(response.Content), |
| 273 | contentType: response.ContentType ?? null, |
| 274 | versionLabel: response.VersionLabel ?? null, |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | export async function listHostedConfigurationVersions( |
| 279 | client: AppConfigClient, |
no test coverage detected