AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::ApiGateway::DocumentationVersion

CfnDocumentationVersion

The `AWS::ApiGateway::DocumentationVersion` resource creates a snapshot of the documentation for an API. For more information, see [Representation of API Documentation in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-documenting-api-content-representation.html) in the *API Gateway Developer Guide* .

Import

import { CfnDocumentationVersion } from 'aws-cdk-lib/aws-apigateway';

Or use the module namespace:

import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnDocumentationVersion

Properties

Configuration passed to the constructor as CfnDocumentationVersionProps.

documentationVersionRequired
string

The version identifier of the to-be-updated documentation version.

restApiIdRequired
string | IRestApiRef

The string identifier of the associated RestApi.

descriptionOptional
string

A description about the new documentation snapshot.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Get the Amazon API Gateway Cheat Sheet

Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.

Download Free Infographic