Skip to content
v2.274.0

CfnHostedConfigurationVersionProps Struct ​

Properties for defining a CfnHostedConfigurationVersion.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appconfig as appconfig } from 'aws-cdk-lib';
const cfnHostedConfigurationVersionProps: appconfig.CfnHostedConfigurationVersionProps = {
  applicationId: 'applicationId',
  configurationProfileId: 'configurationProfileId',
  content: 'content',
  contentType: 'contentType',

  // the properties below are optional
  description: 'description',
  latestVersionNumber: 123,
  versionLabel: 'versionLabel',
};

Properties ​

applicationIdstring | IApplicationRefapplication_idtyping.Union[str, IApplicationRef]applicationIdStringApplicationIdstringApplicationIdinterface{}required#
The application ID.
configurationProfileIdstring | IConfigurationProfileRefconfiguration_profile_idtyping.Union[str, IConfigurationProfileRef]configurationProfileIdStringConfigurationProfileIdstringConfigurationProfileIdinterface{}required#
The configuration profile ID.
contentstringcontentstrcontentStringContentstringContent*stringrequired#
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.

contentTypestringcontent_typestrcontentTypeStringContentTypestringContentType*stringrequired#
A standard MIME type describing the format of the configuration content.

For more information, see Content-Type .

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string#
A description of the configuration.

Due to HTTP limitations, this field only supports ASCII characters.

latestVersionNumberoptionalnumberlatest_version_numberoptionalint | floatlatestVersionNumberoptionalNumberLatestVersionNumberoptionaldoubleLatestVersionNumberoptional*float64#
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.

versionLabeloptionalstringversion_labeloptionalstrversionLabeloptionalStringVersionLabeloptionalstringVersionLabeloptional*string#
A user-defined label for an AWS AppConfig hosted configuration version.