Interface CfnGatewayResponseProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.813Z") @Stability(Stable) public interface CfnGatewayResponseProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnGatewayResponse.

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.*;
 CfnGatewayResponseProps cfnGatewayResponseProps = CfnGatewayResponseProps.builder()
         .responseType("responseType")
         .restApiId("restApiId")
         // the properties below are optional
         .responseParameters(Map.of(
                 "responseParametersKey", "responseParameters"))
         .responseTemplates(Map.of(
                 "responseTemplatesKey", "responseTemplates"))
         .statusCode("statusCode")
         .build();
 
  • Method Details

    • getResponseType

      @Stability(Stable) @NotNull String getResponseType()
      The response type of the associated GatewayResponse.
    • getRestApiId

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

      @Stability(Stable) @Nullable default Object getResponseParameters()
      Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
    • getResponseTemplates

      @Stability(Stable) @Nullable default Object getResponseTemplates()
      Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
    • getStatusCode

      @Stability(Stable) @Nullable default String getStatusCode()
      The HTTP status code for this GatewayResponse.
    • builder

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