AppConfig / Client / get_hosted_configuration_version
get_hosted_configuration_version#
- AppConfig.Client.get_hosted_configuration_version(**kwargs)#
Retrieves information about a specific configuration version.
See also: AWS API Documentation
Request Syntax
response = client.get_hosted_configuration_version( ApplicationId='string', ConfigurationProfileId='string', VersionNumber=123 )
- Parameters:
ApplicationId (string) –
[REQUIRED]
The application ID.
ConfigurationProfileId (string) –
[REQUIRED]
The configuration profile ID.
VersionNumber (integer) –
[REQUIRED]
The version.
- Return type:
dict
- Returns:
Response Syntax
{ 'ApplicationId': 'string', 'ConfigurationProfileId': 'string', 'VersionNumber': 123, 'Description': 'string', 'Content': StreamingBody(), 'ContentType': 'string', 'VersionLabel': 'string', 'KmsKeyArn': 'string' }
Response Structure
(dict) –
ApplicationId (string) –
The application ID.
ConfigurationProfileId (string) –
The configuration profile ID.
VersionNumber (integer) –
The configuration version.
Description (string) –
A description of the configuration.
Content (
StreamingBody
) –The content of the configuration or the configuration data.
ContentType (string) –
A standard MIME type describing the format of the configuration content. For more information, see Content-Type.
VersionLabel (string) –
A user-defined label for an AppConfig hosted configuration version.
KmsKeyArn (string) –
The Amazon Resource Name of the Key Management Service key that was used to encrypt this specific version of the configuration data in the AppConfig hosted configuration store.
Exceptions
AppConfig.Client.exceptions.BadRequestException
AppConfig.Client.exceptions.ResourceNotFoundException
AppConfig.Client.exceptions.InternalServerException
Examples
The following get-hosted-configuration-version example retrieves the configuration details of the AWS AppConfig hosted configuration.
response = client.get_hosted_configuration_version( ApplicationId='339ohji', ConfigurationProfileId='ur8hx2f', VersionNumber=1, ) print(response)
Expected Output:
{ 'ApplicationId': '339ohji', 'ConfigurationProfileId': 'ur8hx2f', 'ContentType': 'application/json', 'VersionNumber': 1, 'ResponseMetadata': { '...': '...', }, }