Interface CfnMethod.MethodResponseProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnMethod.MethodResponseProperty.Jsii$Proxy
Enclosing class:
CfnMethod

@Stability(Stable) public static interface CfnMethod.MethodResponseProperty extends software.amazon.jsii.JsiiSerializable
Represents a method response of a given HTTP status code returned to the client.

The method response is passed from the back end through the associated integration response that can be transformed using a mapping template.

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.*;
 MethodResponseProperty methodResponseProperty = MethodResponseProperty.builder()
         .statusCode("statusCode")
         // the properties below are optional
         .responseModels(Map.of(
                 "responseModelsKey", "responseModels"))
         .responseParameters(Map.of(
                 "responseParametersKey", false))
         .build();
 

See Also: