Interface ApiDefinitionConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ApiDefinitionConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:11.750Z") @Stability(Stable) public interface ApiDefinitionConfig extends software.amazon.jsii.JsiiSerializable
Post-Binding Configuration for a CDK construct.

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.*;
 Object inlineDefinition;
 ApiDefinitionConfig apiDefinitionConfig = ApiDefinitionConfig.builder()
         .inlineDefinition(inlineDefinition)
         .s3Location(ApiDefinitionS3Location.builder()
                 .bucket("bucket")
                 .key("key")
                 // the properties below are optional
                 .version("version")
                 .build())
         .build();
 
  • Method Details

    • getInlineDefinition

      @Stability(Stable) @Nullable default Object getInlineDefinition()
      Inline specification (mutually exclusive with s3Location).

      Default: - API definition is not defined inline

    • getS3Location

      @Stability(Stable) @Nullable default ApiDefinitionS3Location getS3Location()
      The location of the specification in S3 (mutually exclusive with inlineDefinition).

      Default: - API definition is not an S3 location

    • builder

      @Stability(Stable) static ApiDefinitionConfig.Builder builder()
      Returns:
      a ApiDefinitionConfig.Builder of ApiDefinitionConfig