class Amazonite::ApiGateway::TestInvokeMethodRequest

Overview

Make a request to simulate the invocation of a Method.

Included Modules

Defined in:

api_gateway/test_invoke_method_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rest_api_id : String, resource_id : String, http_method : String, path_with_query_string : String | Nil = nil, body : String | Nil = nil, headers : Hash(String, String) | Nil = nil, multi_value_headers : Hash(String, Array(String)) | Nil = nil, client_certificate_id : String | Nil = nil, stage_variables : 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 body : String | Nil #

The simulated request body of an incoming invocation request.


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

The simulated request body of an incoming invocation request.


[View source]
def client_certificate_id : String | Nil #

A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.


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

A ClientCertificate identifier to use in the test invocation. API Gateway will use the certificate when making the HTTPS request to the defined back-end endpoint.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


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

A key-value map of headers to simulate an incoming invocation request.


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

A key-value map of headers to simulate an incoming invocation request.


[View source]
def http_method : String #

Specifies a test invoke method request's HTTP method.


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

Specifies a test invoke method request's HTTP method.


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

The headers as a map from string to list of values to simulate an incoming invocation request.


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

The headers as a map from string to list of values to simulate an incoming invocation request.


[View source]
def path_with_query_string : String | Nil #

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.


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

The URI path, including query string, of the simulated invocation request. Use this to specify path parameters and query string parameters.


[View source]
def resource_id : String #

Specifies a test invoke method request's resource ID.


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

Specifies a test invoke method request's resource ID.


[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 stage_variables : Hash(String, String) | Nil #

A key-value map of stage variables to simulate an invocation on a deployed Stage.


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

A key-value map of stage variables to simulate an invocation on a deployed Stage.


[View source]
def validate! : Nil #

[View source]