# CfnDocumentationVersionProps

Properties for defining a `CfnDocumentationVersion`.

Used as props by: [CfnDocumentationVersion](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.CfnDocumentationVersion.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_apigateway as apigateway } from 'aws-cdk-lib';
const cfnDocumentationVersionProps: apigateway.CfnDocumentationVersionProps = {
  documentationVersion: 'documentationVersion',
  restApiId: 'restApiId',

  // the properties below are optional
  description: 'description',
};
```

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_apigateway as apigateway

cfn_documentation_version_props = apigateway.CfnDocumentationVersionProps(
    documentation_version="documentationVersion",
    rest_api_id="restApiId",

    # the properties below are optional
    description="description"
)
```

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.apigateway.*;

CfnDocumentationVersionProps cfnDocumentationVersionProps = CfnDocumentationVersionProps.builder()
        .documentationVersion("documentationVersion")
        .restApiId("restApiId")

        // the properties below are optional
        .description("description")
        .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.APIGateway;

var cfnDocumentationVersionProps = new CfnDocumentationVersionProps {
    DocumentationVersion = "documentationVersion",
    RestApiId = "restApiId",

    // the properties below are optional
    Description = "description"
};
```

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"

cfnDocumentationVersionProps := &CfnDocumentationVersionProps{
	DocumentationVersion: jsii.String("documentationVersion"),
	RestApiId: jsii.String("restApiId"),

	// the properties below are optional
	Description: jsii.String("description"),
}
```

## Properties

- `description`: string — A description about the new documentation snapshot.

- `documentationVersion`: string (required) — The version identifier of the to-be-updated documentation version.

- `restApiId`: string | [IRestApiRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IRestApiRef.html) (required) — The string identifier of the associated RestApi.
