class Amazonite::ApiGateway::PutGatewayResponseRequest

Overview

Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.

Included Modules

Defined in:

api_gateway/put_gateway_response_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rest_api_id : String, response_type : GatewayResponseType, status_code : String | Nil = nil, response_parameters : Hash(String, String) | Nil = nil, response_templates : Hash(String, String) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def response_parameters : Hash(String, String) | Nil #

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


[View source]
def response_parameters=(response_parameters : Hash(String, String) | Nil) #

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


[View source]
def response_templates : Hash(String, String) | Nil #

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


[View source]
def response_templates=(response_templates : Hash(String, String) | Nil) #

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


[View source]
def response_type : GatewayResponseType #

The response type of the associated GatewayResponse


[View source]
def response_type=(response_type : GatewayResponseType) #

The response type of the associated GatewayResponse


[View source]
def rest_api_id : String #

The string identifier of the associated RestApi.


[View source]
def rest_api_id=(rest_api_id : String) #

The string identifier of the associated RestApi.


[View source]
def status_code : String | Nil #

The HTTP status code of the GatewayResponse.


[View source]
def status_code=(status_code : String | Nil) #

The HTTP status code of the GatewayResponse.


[View source]
def validate! : Nil #

[View source]