Class CfnDocumentationPart

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IConstruct, IDependable, IInspectable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.776Z") @Stability(Stable) public class CfnDocumentationPart extends CfnResource implements IInspectable
A CloudFormation AWS::ApiGateway::DocumentationPart.

The AWS::ApiGateway::DocumentationPart resource creates a documentation part for an API. For more information, see Representation of API Documentation in API Gateway in the API Gateway Developer Guide .

Example:

 // 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.*;
 CfnDocumentationPart cfnDocumentationPart = CfnDocumentationPart.Builder.create(this, "MyCfnDocumentationPart")
         .location(LocationProperty.builder()
                 .method("method")
                 .name("name")
                 .path("path")
                 .statusCode("statusCode")
                 .type("type")
                 .build())
         .properties("properties")
         .restApiId("restApiId")
         .build();
 
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnDocumentationPart

      protected CfnDocumentationPart(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnDocumentationPart

      protected CfnDocumentationPart(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnDocumentationPart

      @Stability(Stable) public CfnDocumentationPart(@NotNull Construct scope, @NotNull String id, @NotNull CfnDocumentationPartProps props)
      Create a new AWS::ApiGateway::DocumentationPart.

      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      props -
      • resource properties.
      This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector -
      • tree inspector to collect and process attributes.
      This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrDocumentationPartId

      @Stability(Stable) @NotNull public String getAttrDocumentationPartId()
      The ID for the documentation part.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getLocation

      @Stability(Stable) @NotNull public Object getLocation()
      The location of the targeted API entity of the to-be-created documentation part.
    • setLocation

      @Stability(Stable) public void setLocation(@NotNull IResolvable value)
      The location of the targeted API entity of the to-be-created documentation part.
    • setLocation

      @Stability(Stable) public void setLocation(@NotNull CfnDocumentationPart.LocationProperty value)
      The location of the targeted API entity of the to-be-created documentation part.
    • getProperties

      @Stability(Stable) @NotNull public String getProperties()
      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.

    • setProperties

      @Stability(Stable) public void setProperties(@NotNull String value)
      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.

    • getRestApiId

      @Stability(Stable) @NotNull public String getRestApiId()
      The string identifier of the associated RestApi.
    • setRestApiId

      @Stability(Stable) public void setRestApiId(@NotNull String value)
      The string identifier of the associated RestApi.