CfnDocumentationVersionProps Struct
Properties for defining a CfnDocumentationVersion.
| 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_apigateway as apigateway } from 'aws-cdk-lib';
const cfnDocumentationVersionProps: apigateway.CfnDocumentationVersionProps = {
documentationVersion: 'documentationVersion',
restApiId: 'restApiId',
// the properties below are optional
description: 'description',
};
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
// 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();
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"
};
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
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description about the new documentation snapshot.
documentationVersionstringdocumentation_versionstrdocumentationVersionStringDocumentationVersionstringDocumentationVersion*string required #The version identifier of the to-be-updated documentation version.
restApiIdstring | IRestApiRefrest_api_idtyping.Union[str, IRestApiRef]restApiIdStringRestApiIdstringRestApiIdinterface{} required #The string identifier of the associated RestApi.