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
Idawscc.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.

For more information, see AWS::AppConfig::HostedConfigurationVersion.

Methods

NameResourceAccessible byRequired Params
create_resourcehosted_configuration_versionsINSERTApplicationId, ConfigurationProfileId, Content, ContentType, region
delete_resourcehosted_configuration_versionsDELETEIdentifier, region
list_resourceshosted_configuration_versions_list_onlySELECTregion
get_resourcehosted_configuration_versionsSELECTIdentifier, region

SELECT examples

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 awscc.appconfig.hosted_configuration_versions
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_id }}|{{ configuration_profile_id }}|{{ version_number }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.appconfig.hosted_configuration_versions (
ConfigurationProfileId,
ContentType,
Content,
ApplicationId,
region
)
SELECT
'{{ configuration_profile_id }}',
'{{ content_type }}',
'{{ content }}',
'{{ application_id }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.appconfig.hosted_configuration_versions
WHERE
Identifier = '{{ application_id }}|{{ configuration_profile_id }}|{{ version_number }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

appconfig:GetHostedConfigurationVersion