Class: AWSCDK::APIGatewayv2::WebSocketAuthorizerAttributes

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

Overview

Reference to an WebSocket authorizer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authorizer_id:, authorizer_type:) ⇒ WebSocketAuthorizerAttributes

Returns a new instance of WebSocketAuthorizerAttributes.

Parameters:

  • authorizer_id (String)

    Id of the Authorizer.

  • authorizer_type (String)

    Type of authorizer.



9
10
11
12
13
14
# File 'api_gatewayv2/web_socket_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/web_socket_authorizer_attributes.rb', line 19

def authorizer_id
  @authorizer_id
end

#authorizer_typeString (readonly)

Type of authorizer.

Possible values are:

  • CUSTOM - Lambda Authorizer
  • NONE - No Authorization

Returns:

  • (String)


28
29
30
# File 'api_gatewayv2/web_socket_authorizer_attributes.rb', line 28

def authorizer_type
  @authorizer_type
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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