Class: AWSCDK::APIGatewayv2::WebSocketAuthorizerAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2::WebSocketAuthorizerAttributes
- Defined in:
- api_gatewayv2/web_socket_authorizer_attributes.rb
Overview
Reference to an WebSocket 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:) ⇒ WebSocketAuthorizerAttributes
constructor
A new instance of WebSocketAuthorizerAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(authorizer_id:, authorizer_type:) ⇒ WebSocketAuthorizerAttributes
Returns a new instance of WebSocketAuthorizerAttributes.
9 10 11 12 13 14 |
# File 'api_gatewayv2/web_socket_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/web_socket_authorizer_attributes.rb', line 19 def @authorizer_id end |
#authorizer_type ⇒ String (readonly)
Type of authorizer.
Possible values are:
- CUSTOM - Lambda Authorizer
- NONE - No Authorization
28 29 30 |
# File 'api_gatewayv2/web_socket_authorizer_attributes.rb', line 28 def @authorizer_type end |
Class Method Details
.jsii_properties ⇒ Object
30 31 32 33 34 35 |
# File 'api_gatewayv2/web_socket_authorizer_attributes.rb', line 30 def self.jsii_properties { :authorizer_id => "authorizerId", :authorizer_type => "authorizerType", } end |
Instance Method Details
#to_jsii ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'api_gatewayv2/web_socket_authorizer_attributes.rb', line 37 def to_jsii result = {} result.merge!({ "authorizerId" => @authorizer_id, "authorizerType" => @authorizer_type, }) result.compact end |