# CfnHostedConfigurationVersionProps

Properties for defining a `CfnHostedConfigurationVersion`.

Used as props by: [CfnHostedConfigurationVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appconfig.CfnHostedConfigurationVersion.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `applicationId`: string | [IApplicationRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_appconfig.IApplicationRef.html) (required) — The application ID.

- `configurationProfileId`: string | [IConfigurationProfileRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_appconfig.IConfigurationProfileRef.html) (required) — The configuration profile ID.

- `content`: string (required) — 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.

- `contentType`: string (required) — 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) .

- `description`: string — A description of the configuration.

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

- `latestVersionNumber`: 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.

- `versionLabel`: string — A user-defined label for an AWS AppConfig hosted configuration version.
