AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::AppConfig::HostedConfigurationVersion

CfnHostedConfigurationVersion

Create a new configuration in the AWS AppConfig hosted configuration store. Configurations must be 1 MB or smaller. The AWS AppConfig hosted configuration store provides the following benefits over other configuration store options. - You don't need to set up and configure other services such as Amazon Simple Storage Service ( Amazon S3 ) or Parameter Store. - You don't need to configure AWS Identity and Access Management ( IAM ) permissions to use the configuration store. - You can store configurations in any content type. - There is no cost to use the store. - You can create a configuration and add it to the store when you create a configuration profile.

Import

import { CfnHostedConfigurationVersion } from 'aws-cdk-lib/aws-appconfig';

Or use the module namespace:

import * as appconfig from 'aws-cdk-lib/aws-appconfig';
// appconfig.CfnHostedConfigurationVersion

Properties

Configuration passed to the constructor as CfnHostedConfigurationVersionProps.

applicationIdRequired
string | IApplicationRef

The application ID.

configurationProfileIdRequired
string | IConfigurationProfileRef

The configuration profile ID.

contentRequired
string

The configuration data, as bytes. > AWS AppConfig accepts any type of data, including text formats like JSON or TOML, or binary formats like protocol buffers or compressed data.

contentTypeRequired
string

A standard MIME type describing the format of the configuration content. For more information, see [Content-Type](https://docs.aws.amazon.com/https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17) .

descriptionOptional
string

A description of the configuration. > Due to HTTP limitations, this field only supports ASCII characters.

latestVersionNumberOptional
number

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.

versionLabelOptional
string

A user-defined label for an AWS AppConfig hosted configuration version.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter