CfnHostedConfigurationVersionProps Struct
Properties for defining a CfnHostedConfigurationVersion.
| Source | |
|---|---|
| Type last changed |
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',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appconfig as appconfig
cfn_hosted_configuration_version_props = appconfig.CfnHostedConfigurationVersionProps(
application_id="applicationId",
configuration_profile_id="configurationProfileId",
content="content",
content_type="contentType",
# the properties below are optional
description="description",
latest_version_number=123,
version_label="versionLabel"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appconfig.*;
CfnHostedConfigurationVersionProps cfnHostedConfigurationVersionProps = CfnHostedConfigurationVersionProps.builder()
.applicationId("applicationId")
.configurationProfileId("configurationProfileId")
.content("content")
.contentType("contentType")
// the properties below are optional
.description("description")
.latestVersionNumber(123)
.versionLabel("versionLabel")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppConfig;
var cfnHostedConfigurationVersionProps = new CfnHostedConfigurationVersionProps {
ApplicationId = "applicationId",
ConfigurationProfileId = "configurationProfileId",
Content = "content",
ContentType = "contentType",
// the properties below are optional
Description = "description",
LatestVersionNumber = 123,
VersionLabel = "versionLabel"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnHostedConfigurationVersionProps := &CfnHostedConfigurationVersionProps{
ApplicationId: jsii.String("applicationId"),
ConfigurationProfileId: jsii.String("configurationProfileId"),
Content: jsii.String("content"),
ContentType: jsii.String("contentType"),
// the properties below are optional
Description: jsii.String("description"),
LatestVersionNumber: jsii.Number(123),
VersionLabel: jsii.String("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.
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.
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.