class Amazonite::ApiGateway::TestInvokeAuthorizerResponse

Overview

Represents the response of the test invoke request for a custom Authorizer

Included Modules

Defined in:

api_gateway/test_invoke_authorizer_response.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(client_status : Int32 | Nil = nil, log : String | Nil = nil, latency : Int64 | Nil = nil, principal_id : String | Nil = nil, policy : String | Nil = nil, authorization : Hash(String, Array(String)) | Nil = nil, claims : Hash(String, String) | Nil = nil) #

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

The authorization response.


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

The authorization response.


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

The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.


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

The open identity claims, with any supported custom attributes, returned from the Cognito Your User Pool configured for the API.


[View source]
def client_status : Int32 | Nil #

The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.


[View source]
def client_status=(client_status : Int32 | Nil) #

The HTTP status code that the client would have received. Value is 0 if the authorizer succeeded.


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

See Object#hash(hasher)


def latency : Int64 | Nil #

The execution latency, in ms, of the test authorizer request.


[View source]
def latency=(latency : Int64 | Nil) #

The execution latency, in ms, of the test authorizer request.


[View source]
def log : String | Nil #

The API Gateway execution log for the test authorizer request.


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

The API Gateway execution log for the test authorizer request.


[View source]
def policy : String | Nil #

The JSON policy document returned by the Authorizer


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

The JSON policy document returned by the Authorizer


[View source]
def principal_id : String | Nil #

The principal identity returned by the Authorizer


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

The principal identity returned by the Authorizer


[View source]
def validate! : Nil #

[View source]