Class: AWSCDK::APIGatewayv2::HttpAuthorizerAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
api_gatewayv2/http_authorizer_attributes.rb

Overview

Reference to an http authorizer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorizer_id:, authorizer_type:) ⇒ HttpAuthorizerAttributes

Returns a new instance of HttpAuthorizerAttributes.

Parameters:

  • authorizer_id (String)

    Id of the Authorizer.

  • authorizer_type (String)

    Type of authorizer.



9
10
11
12
13
14
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 9

def initialize(authorizer_id:, authorizer_type:)
  @authorizer_id = authorizer_id
  Jsii::Type.check_type(@authorizer_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizerId")
  @authorizer_type = authorizer_type
  Jsii::Type.check_type(@authorizer_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizerType")
end

Instance Attribute Details

#authorizer_idString (readonly)

Id of the Authorizer.

Returns:

  • (String)


19
20
21
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 19

def authorizer_id
  @authorizer_id
end

#authorizer_typeString (readonly)

Type of authorizer.

Possible values are:

  • JWT - JSON Web Token Authorizer
  • CUSTOM - Lambda Authorizer
  • NONE - No Authorization

Returns:

  • (String)


29
30
31
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 29

def authorizer_type
  @authorizer_type
end

Class Method Details

.jsii_propertiesObject



31
32
33
34
35
36
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 31

def self.jsii_properties
  {
    :authorizer_id => "authorizerId",
    :authorizer_type => "authorizerType",
  }
end

Instance Method Details

#to_jsiiObject



38
39
40
41
42
43
44
45
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 38

def to_jsii
  result = {}
  result.merge!({
    "authorizerId" => @authorizer_id,
    "authorizerType" => @authorizer_type,
  })
  result.compact
end