Class: AWSCDK::ElasticLoadBalancingv2::AuthenticateJwtOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/authenticate_jwt_options.rb

Overview

Options for ListenerAction.authenticateJwt().

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(issuer:, jwks_endpoint:, _next:) ⇒ AuthenticateJwtOptions

Returns a new instance of AuthenticateJwtOptions.

Parameters:



10
11
12
13
14
15
16
17
# File 'elastic_load_balancingv2/authenticate_jwt_options.rb', line 10

def initialize(issuer:, jwks_endpoint:, _next:)
  @issuer = issuer
  Jsii::Type.check_type(@issuer, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "issuer")
  @jwks_endpoint = jwks_endpoint
  Jsii::Type.check_type(@jwks_endpoint, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jwksEndpoint")
  @_next = _next
  Jsii::Type.check_type(@_next, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5MaXN0ZW5lckFjdGlvbiJ9")), "next")
end

Instance Attribute Details

#_nextAWSCDK::ElasticLoadBalancingv2::ListenerAction (readonly)

What action to execute next.

Multiple actions form a linked chain; the chain must always terminate in a (weighted)forward, fixedResponse or redirect action.



41
42
43
# File 'elastic_load_balancingv2/authenticate_jwt_options.rb', line 41

def _next
  @_next
end

#issuerString (readonly)

The issuer of the JWT token.

This must be a full URL, including the HTTPS protocol, the domain, and the path.

Examples:

"https://issuer.example.com"

Returns:

  • (String)


26
27
28
# File 'elastic_load_balancingv2/authenticate_jwt_options.rb', line 26

def issuer
  @issuer
end

#jwks_endpointString (readonly)

The JWKS (JSON Web Key Set) endpoint URL.

The endpoint must be publicly accessible and return the public keys used to verify JWT signatures.

Examples:

"https://issuer.example.com/jwks"

Returns:

  • (String)


34
35
36
# File 'elastic_load_balancingv2/authenticate_jwt_options.rb', line 34

def jwks_endpoint
  @jwks_endpoint
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
# File 'elastic_load_balancingv2/authenticate_jwt_options.rb', line 43

def self.jsii_properties
  {
    :issuer => "issuer",
    :jwks_endpoint => "jwksEndpoint",
    :_next => "next",
  }
end

Instance Method Details

#to_jsiiObject



51
52
53
54
55
56
57
58
59
# File 'elastic_load_balancingv2/authenticate_jwt_options.rb', line 51

def to_jsii
  result = {}
  result.merge!({
    "issuer" => @issuer,
    "jwksEndpoint" => @jwks_endpoint,
    "next" => @_next,
  })
  result.compact
end