Skip to main content

hosted_configuration_versions

Creates, updates, deletes, gets or lists a hosted_configuration_versions resource.

Overview

Namehosted_configuration_versions
TypeResource
Idaws.appconfig.hosted_configuration_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe application ID. (pattern: <code>[a-z0-9]{4,7}</code>)
configuration_profile_idstringThe configuration profile ID. (pattern: <code>[a-z0-9]{4,7}</code>)
contentstring (byte)The content of the configuration or the configuration data.
content_typestringA standard MIME type describing the format of the configuration content. For more information, see Content-Type.
descriptionstringA description of the configuration.
kms_key_arnstringThe 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. (pattern: <code>arn:(aws[a-zA-Z-]*)?:[a-z]+:((eusc-)?[a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\d{1})?:(\d{12})?:[a-zA-Z0-9-_/:.]+</code>)
version_labelstringA user-defined label for an AppConfig hosted configuration version. (pattern: <code>.[^0-9].</code>)
version_numberintegerThe configuration version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_hosted_configuration_versionselectapplication_id, configuration_profile_id, version_number, regionRetrieves information about a specific configuration version.
list_hosted_configuration_versionsselectapplication_id, configuration_profile_id, regionmax_results, next_token, version_labelLists configurations stored in the AppConfig hosted configuration store by version.
create_hosted_configuration_versioninsertapplication_id, configuration_profile_id, Content-Type, regionDescription, Latest-Version-Number, VersionLabelCreates a new configuration in the AppConfig hosted configuration store. If you're creating a feature flag, we recommend you familiarize yourself with the JSON schema for feature flag data. For more information, see Type reference for AWS.AppConfig.FeatureFlags in the AppConfig User Guide.
delete_hosted_configuration_versiondeleteapplication_id, configuration_profile_id, version_number, regionDeletes a version of a configuration from the AppConfig hosted configuration store.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
Content-TypestringA standard MIME type describing the format of the configuration content. For more information, see Content-Type.
application_idstringThe application ID.
configuration_profile_idstringThe configuration profile ID.
regionstringAWS region (default: us-east-1)
version_numberintegerThe versions number to delete.
DescriptionstringA description of the configuration. Due to HTTP limitations, this field only supports ASCII characters.
Latest-Version-NumberintegerAn optional locking token used to prevent race conditions from overwriting configuration updates when creating a new version. To ensure your data is not overwritten when creating multiple hosted configuration versions in rapid succession, specify the version number of the latest hosted configuration version.
VersionLabelstringAn optional, user-defined label for the AppConfig hosted configuration version. This value must contain at least one non-numeric character. For example, "v2.2.0".
max_resultsintegerThe maximum number of items to return for this call. If MaxResults is not provided in the call, AppConfig returns the maximum of 50. The call also returns a token that you can specify in a subsequent call to get the next set of results.
next_tokenstringA token to start the list. Use this token to get the next set of results.
version_labelstringAn optional filter that can be used to specify the version label of an AppConfig hosted configuration version. This parameter supports filtering by prefix using a wildcard, for example "v2*". If you don't specify an asterisk at the end of the value, only an exact match is returned.

SELECT examples

Retrieves information about a specific configuration version.

SELECT
application_id,
configuration_profile_id,
content,
content_type,
description,
kms_key_arn,
version_label,
version_number
FROM aws.appconfig.hosted_configuration_versions
WHERE application_id = '{{ application_id }}' -- required
AND configuration_profile_id = '{{ configuration_profile_id }}' -- required
AND version_number = '{{ version_number }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new configuration in the AppConfig hosted configuration store. If you're creating a feature flag, we recommend you familiarize yourself with the JSON schema for feature flag data. For more information, see Type reference for AWS.AppConfig.FeatureFlags in the AppConfig User Guide.

INSERT INTO aws.appconfig.hosted_configuration_versions (
Content,
application_id,
configuration_profile_id,
`Content-Type`,
region,
Description,
`Latest-Version-Number`,
VersionLabel
)
SELECT
'{{ Content }}',
'{{ application_id }}',
'{{ configuration_profile_id }}',
'{{ Content-Type }}',
'{{ region }}',
'{{ Description }}',
'{{ Latest-Version-Number }}',
'{{ VersionLabel }}'
RETURNING
application_id,
configuration_profile_id,
content,
content_type,
description,
kms_key_arn,
version_label,
version_number
;

DELETE examples

Deletes a version of a configuration from the AppConfig hosted configuration store.

DELETE FROM aws.appconfig.hosted_configuration_versions
WHERE application_id = '{{ application_id }}' --required
AND configuration_profile_id = '{{ configuration_profile_id }}' --required
AND version_number = '{{ version_number }}' --required
AND region = '{{ region }}' --required
;