CfnGatewayResponseProps

class aws_cdk.aws_apigateway.CfnGatewayResponseProps(*, response_parameters=None, response_templates=None, response_type, rest_api_id, status_code=None)

Bases: object

Properties for defining a AWS::ApiGateway::GatewayResponse.

Parameters
  • response_parameters (Union[IResolvable, Mapping[str, str], None]) – AWS::ApiGateway::GatewayResponse.ResponseParameters.

  • response_templates (Union[IResolvable, Mapping[str, str], None]) – AWS::ApiGateway::GatewayResponse.ResponseTemplates.

  • response_type (str) – AWS::ApiGateway::GatewayResponse.ResponseType.

  • rest_api_id (str) – AWS::ApiGateway::GatewayResponse.RestApiId.

  • status_code (Optional[str]) – AWS::ApiGateway::GatewayResponse.StatusCode.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_apigateway as apigateway

cfn_gateway_response_props = apigateway.CfnGatewayResponseProps(
    response_type="responseType",
    rest_api_id="restApiId",

    # the properties below are optional
    response_parameters={
        "response_parameters_key": "responseParameters"
    },
    response_templates={
        "response_templates_key": "responseTemplates"
    },
    status_code="statusCode"
)

Attributes

response_parameters

AWS::ApiGateway::GatewayResponse.ResponseParameters.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responseparameters

Return type

Union[IResolvable, Mapping[str, str], None]

response_templates

AWS::ApiGateway::GatewayResponse.ResponseTemplates.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetemplates

Return type

Union[IResolvable, Mapping[str, str], None]

response_type

AWS::ApiGateway::GatewayResponse.ResponseType.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-responsetype

Return type

str

rest_api_id

AWS::ApiGateway::GatewayResponse.RestApiId.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-restapiid

Return type

str

status_code

AWS::ApiGateway::GatewayResponse.StatusCode.

Link

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-gatewayresponse.html#cfn-apigateway-gatewayresponse-statuscode

Return type

Optional[str]