Skip to main content

hosted_configuration_versions

Creates, updates, deletes or gets a hosted_configuration_version resource or lists hosted_configuration_versions in a region

Overview

Namehosted_configuration_versions
TypeResource
DescriptionResource Type definition for AWS::AppConfig::HostedConfigurationVersion
Idaws.appconfig.hosted_configuration_versions

Fields

NameDatatypeDescription
configuration_profile_idstringThe configuration profile ID.
descriptionstringA description of the hosted configuration version.
content_typestringA standard MIME type describing the format of the configuration content.
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.
contentstringThe content of the configuration or the configuration data.
version_labelstringA user-defined label for an AWS AppConfig hosted configuration version.
application_idstringThe application ID.
version_numberstringCurrent version number of hosted configuration version.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTApplicationId, ConfigurationProfileId, Content, ContentType, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all hosted_configuration_versions in a region.

SELECT
region,
configuration_profile_id,
description,
content_type,
latest_version_number,
content,
version_label,
application_id,
version_number
FROM aws.appconfig.hosted_configuration_versions
WHERE region = 'us-east-1';

Gets all properties from an individual hosted_configuration_version.

SELECT
region,
configuration_profile_id,
description,
content_type,
latest_version_number,
content,
version_label,
application_id,
version_number
FROM aws.appconfig.hosted_configuration_versions
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationId>|<ConfigurationProfileId>|<VersionNumber>';

INSERT example

Use the following StackQL query and manifest file to create a new hosted_configuration_version resource, using stack-deploy.

/*+ create */
INSERT INTO aws.appconfig.hosted_configuration_versions (
ConfigurationProfileId,
ContentType,
Content,
ApplicationId,
region
)
SELECT
'{{ ConfigurationProfileId }}',
'{{ ContentType }}',
'{{ Content }}',
'{{ ApplicationId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.appconfig.hosted_configuration_versions
WHERE data__Identifier = '<ApplicationId|ConfigurationProfileId|VersionNumber>'
AND region = 'us-east-1';

Permissions

To operate on the hosted_configuration_versions resource, the following permissions are required:

Read

appconfig:GetHostedConfigurationVersion

Create

appconfig:CreateHostedConfigurationVersion

List

appconfig:ListHostedConfigurationVersions

Delete

appconfig:DeleteHostedConfigurationVersion