AWS::ApiGateway::GatewayResponseThe AWS::ApiGateway::GatewayResponse resource creates a gateway response for your API. When you delete a stack containing this resource, your custom gateway responses are reset. For more information, see [API Gateway Responses](https://docs.aws.amazon.com/apigateway/latest/developerguide/customize-gateway-responses.html#api-gateway-gatewayResponse-definition) in the *API Gateway Developer Guide*.
5 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
ResponseType | string | RequiredCreate-only |
RestApiId | string | RequiredCreate-only |
ResponseParameters | object | |
ResponseTemplates | object | |
StatusCode | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
Id | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::GatewayResponse
Resources:
MyResource:
Type: AWS::ApiGateway::GatewayResponse
Properties:
ResponseType: "value"
RestApiId: "my-restapiid"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:PUTapigateway:GETapigateway:GETapigateway:GETapigateway:PUTapigateway:GETapigateway:DELETEapigateway:GETEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
ResponseTypeRestApiId