Class: AWSCDK::APIGatewayv2::HttpAuthorizerAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::HttpAuthorizerAttributes
- Defined in:
- api_gatewayv2/http_authorizer_attributes.rb
Overview
Reference to an http authorizer.
Instance Attribute Summary collapse
-
#authorizer_id ⇒ String
readonly
Id of the Authorizer.
-
#authorizer_type ⇒ String
readonly
Type of authorizer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(authorizer_id:, authorizer_type:) ⇒ HttpAuthorizerAttributes
constructor
A new instance of HttpAuthorizerAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorizer_id:, authorizer_type:) ⇒ HttpAuthorizerAttributes
Returns a new instance of HttpAuthorizerAttributes.
9 10 11 12 13 14 |
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 9 def initialize(authorizer_id:, authorizer_type:) @authorizer_id = Jsii::Type.check_type(@authorizer_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizerId") @authorizer_type = Jsii::Type.check_type(@authorizer_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizerType") end |
Instance Attribute Details
#authorizer_id ⇒ String (readonly)
Id of the Authorizer.
19 20 21 |
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 19 def @authorizer_id end |
#authorizer_type ⇒ String (readonly)
Type of authorizer.
Possible values are:
- JWT - JSON Web Token Authorizer
- CUSTOM - Lambda Authorizer
- NONE - No Authorization
29 30 31 |
# File 'api_gatewayv2/http_authorizer_attributes.rb', line 29 def @authorizer_type end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |