class Amazonite::ApiGateway::TestInvokeAuthorizerRequest

Overview

Make a request to simulate the invocation of an Authorizer.

Included Modules

Defined in:

api_gateway/test_invoke_authorizer_request.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(rest_api_id : String, authorizer_id : String, headers : Hash(String, String) | Nil = nil, multi_value_headers : Hash(String, Array(String)) | Nil = nil, path_with_query_string : String | Nil = nil, body : String | Nil = nil, stage_variables : Hash(String, String) | Nil = nil, additional_context : Hash(String, String) | Nil = nil) #

[View source]
def self.new(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 additional_context : Hash(String, String) | Nil #

A key-value map of additional context variables.


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

A key-value map of additional context variables.


[View source]
def authorizer_id : String #

Specifies a test invoke authorizer request's Authorizer ID.


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

Specifies a test invoke authorizer request's Authorizer ID.


[View source]
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 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. This is where the incoming authorization token, or identity source, should be specified.


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

A key-value map of headers to simulate an incoming invocation request. This is where the incoming authorization token, or identity source, should be specified.


[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. This is where the incoming authorization token, or identity source, may be specified.


[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. This is where the incoming authorization token, or identity source, may be specified.


[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 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]