hosted_configuration_versions
Creates, updates, deletes or gets a hosted_configuration_version
resource or lists hosted_configuration_versions
in a region
Overview
Name | hosted_configuration_versions |
Type | Resource |
Description | Resource Type definition for AWS::AppConfig::HostedConfigurationVersion |
Id | aws.appconfig.hosted_configuration_versions |
Fields
Name | Datatype | Description |
---|---|---|
configuration_profile_id | string | The configuration profile ID. |
description | string | A description of the hosted configuration version. |
content_type | string | A standard MIME type describing the format of the configuration content. |
latest_version_number | integer | An 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. |
content | string | The content of the configuration or the configuration data. |
version_label | string | A user-defined label for an AWS AppConfig hosted configuration version. |
application_id | string | The application ID. |
version_number | string | Current version number of hosted configuration version. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | ApplicationId, ConfigurationProfileId, Content, ContentType, region |
delete_resource | DELETE | data__Identifier, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.appconfig.hosted_configuration_versions (
ConfigurationProfileId,
ContentType,
Content,
ApplicationId,
region
)
SELECT
'{{ ConfigurationProfileId }}',
'{{ ContentType }}',
'{{ Content }}',
'{{ ApplicationId }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.appconfig.hosted_configuration_versions (
ConfigurationProfileId,
Description,
ContentType,
LatestVersionNumber,
Content,
VersionLabel,
ApplicationId,
region
)
SELECT
'{{ ConfigurationProfileId }}',
'{{ Description }}',
'{{ ContentType }}',
'{{ LatestVersionNumber }}',
'{{ Content }}',
'{{ VersionLabel }}',
'{{ ApplicationId }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: hosted_configuration_version
props:
- name: ConfigurationProfileId
value: '{{ ConfigurationProfileId }}'
- name: Description
value: '{{ Description }}'
- name: ContentType
value: '{{ ContentType }}'
- name: LatestVersionNumber
value: '{{ LatestVersionNumber }}'
- name: Content
value: '{{ Content }}'
- name: VersionLabel
value: '{{ VersionLabel }}'
- name: ApplicationId
value: '{{ ApplicationId }}'
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