CfnDocumentationPartProps Struct
Properties for defining a CfnDocumentationPart.
| 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 cfnDocumentationPartProps: apigateway.CfnDocumentationPartProps = {
location: {
method: 'method',
name: 'name',
path: 'path',
statusCode: 'statusCode',
type: 'type',
},
properties: 'properties',
restApiId: 'restApiId',
};
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_part_props = apigateway.CfnDocumentationPartProps(
location=apigateway.CfnDocumentationPart.LocationProperty(
method="method",
name="name",
path="path",
status_code="statusCode",
type="type"
),
properties="properties",
rest_api_id="restApiId"
)
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.*;
CfnDocumentationPartProps cfnDocumentationPartProps = CfnDocumentationPartProps.builder()
.location(LocationProperty.builder()
.method("method")
.name("name")
.path("path")
.statusCode("statusCode")
.type("type")
.build())
.properties("properties")
.restApiId("restApiId")
.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 cfnDocumentationPartProps = new CfnDocumentationPartProps {
Location = new LocationProperty {
Method = "method",
Name = "name",
Path = "path",
StatusCode = "statusCode",
Type = "type"
},
Properties = "properties",
RestApiId = "restApiId"
};
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"
cfnDocumentationPartProps := &CfnDocumentationPartProps{
Location: &LocationProperty{
Method: jsii.String("method"),
Name: jsii.String("name"),
Path: jsii.String("path"),
StatusCode: jsii.String("statusCode"),
Type: jsii.String("type"),
},
Properties: jsii.String("properties"),
RestApiId: jsii.String("restApiId"),
}
Properties
locationIResolvable | CfnDocumentationPart.locationtyping.Union[IResolvable, LocationProperty]locationIResolvableLocationIResolvableLocationinterface{} required #The location of the targeted API entity of the to-be-created documentation part.
The new documentation content map of the targeted API entity.
Enclosed key-value pairs are API-specific, but only OpenAPI-compliant key-value pairs can be exported and, hence, published.
restApiIdstring | IRestApiRefrest_api_idtyping.Union[str, IRestApiRef]restApiIdStringRestApiIdstringRestApiIdinterface{} required #The string identifier of the associated RestApi.