AppConfig.Client.
list_hosted_configuration_versions
(**kwargs)¶Lists configurations stored in the AppConfig hosted configuration store by version.
See also: AWS API Documentation
Request Syntax
response = client.list_hosted_configuration_versions(
ApplicationId='string',
ConfigurationProfileId='string',
MaxResults=123,
NextToken='string',
VersionLabel='string'
)
[REQUIRED]
The application ID.
[REQUIRED]
The configuration profile ID.
dict
Response Syntax
{
'Items': [
{
'ApplicationId': 'string',
'ConfigurationProfileId': 'string',
'VersionNumber': 123,
'Description': 'string',
'ContentType': 'string',
'VersionLabel': 'string'
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
Items (list) --
The elements from this collection.
(dict) --
Information about the configuration.
ApplicationId (string) --
The application ID.
ConfigurationProfileId (string) --
The configuration profile ID.
VersionNumber (integer) --
The configuration version.
Description (string) --
A description of the configuration.
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.
NextToken (string) --
The token for the next set of items to return. Use this token to get the next set of results.
Exceptions
AppConfig.Client.exceptions.BadRequestException
AppConfig.Client.exceptions.ResourceNotFoundException
AppConfig.Client.exceptions.InternalServerException
Examples
The following list-hosted-configuration-versions example lists the configurations versions hosted in the AWS AppConfig hosted configuration store for the specified application and configuration profile.
response = client.list_hosted_configuration_versions(
ApplicationId='339ohji',
ConfigurationProfileId='ur8hx2f',
)
print(response)
Expected Output:
{
'Items': [
{
'ApplicationId': '339ohji',
'ConfigurationProfileId': 'ur8hx2f',
'ContentType': 'application/json',
'VersionNumber': 1,
},
],
'ResponseMetadata': {
'...': '...',
},
}