# CfnHostedConfigurationVersionProps

Properties for defining a `CfnHostedConfigurationVersion`.

Extends: CfnHostedConfigurationVersionProps
Used as props by: CfnHostedConfigurationVersion

- Source: Generated code
- Type last changed: v2.227.0 · 21 Nov 2025

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

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

- `configurationProfileId`: string | [IConfigurationProfileRef](/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.
