CfnGatewayResponseProps

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

Bases: object

Properties for defining a CfnGatewayResponse.

Parameters:
  • response_type (str) – The response type of the associated GatewayResponse.

  • rest_api_id (str) – The string identifier of the associated RestApi.

  • response_parameters (Union[IResolvable, Mapping[str, str], None]) – Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

  • response_templates (Union[IResolvable, Mapping[str, str], None]) – Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

  • status_code (Optional[str]) – The HTTP status code for this GatewayResponse.

See:

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

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import 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

Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.

See:

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

response_templates

Response templates of the GatewayResponse as a string-to-string map of key-value pairs.

See:

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

response_type

The response type of the associated GatewayResponse.

See:

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

rest_api_id

The string identifier of the associated RestApi.

See:

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

status_code

The HTTP status code for this GatewayResponse.

See:

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