class Aws::APIGateway::Types::PutGatewayResponseRequest
Creates a customization of a GatewayResponse
of a specified response type and status code on the given RestApi
.
@note When making an API call, you may pass PutGatewayResponseRequest
data as a hash: { rest_api_id: "String", # required response_type: "DEFAULT_4XX", # required, accepts DEFAULT_4XX, DEFAULT_5XX, RESOURCE_NOT_FOUND, UNAUTHORIZED, INVALID_API_KEY, ACCESS_DENIED, AUTHORIZER_FAILURE, AUTHORIZER_CONFIGURATION_ERROR, INVALID_SIGNATURE, EXPIRED_TOKEN, MISSING_AUTHENTICATION_TOKEN, INTEGRATION_FAILURE, INTEGRATION_TIMEOUT, API_CONFIGURATION_ERROR, UNSUPPORTED_MEDIA_TYPE, BAD_REQUEST_PARAMETERS, BAD_REQUEST_BODY, REQUEST_TOO_LARGE, THROTTLED, QUOTA_EXCEEDED, WAF_FILTERED status_code: "StatusCode", response_parameters: { "String" => "String", }, response_templates: { "String" => "String", }, }
@!attribute [rw] rest_api_id
\[Required\] The string identifier of the associated RestApi. @return [String]
@!attribute [rw] response_type
\[Required\] The response type of the associated GatewayResponse. @return [String]
@!attribute [rw] status_code
The HTTP status code of the GatewayResponse. @return [String]
@!attribute [rw] response_parameters
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs. @return [Hash<String,String>]
@!attribute [rw] response_templates
Response templates of the GatewayResponse as a string-to-string map of key-value pairs. @return [Hash<String,String>]
Constants
- SENSITIVE