Class: AWSCDK::APIGatewayv2Authorizers::HttpJwtAuthorizerProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::APIGatewayv2Authorizers::HttpJwtAuthorizerProps
- Defined in:
- api_gatewayv2_authorizers/http_jwt_authorizer_props.rb
Overview
Properties to initialize HttpJwtAuthorizer.
Instance Attribute Summary collapse
-
#authorizer_name ⇒ String?
readonly
The name of the authorizer.
-
#identity_source ⇒ Array<String>?
readonly
The identity source for which authorization is requested.
-
#jwt_audience ⇒ Array<String>
readonly
A list of the intended recipients of the JWT.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(jwt_audience:, authorizer_name: nil, identity_source: nil) ⇒ HttpJwtAuthorizerProps
constructor
A new instance of HttpJwtAuthorizerProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(jwt_audience:, authorizer_name: nil, identity_source: nil) ⇒ HttpJwtAuthorizerProps
Returns a new instance of HttpJwtAuthorizerProps.
10 11 12 13 14 15 16 17 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer_props.rb', line 10 def initialize(jwt_audience:, authorizer_name: nil, identity_source: nil) @jwt_audience = jwt_audience Jsii::Type.check_type(@jwt_audience, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "jwtAudience") @authorizer_name = Jsii::Type.check_type(@authorizer_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "authorizerName") unless @authorizer_name.nil? @identity_source = identity_source Jsii::Type.check_type(@identity_source, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "identitySource") unless @identity_source.nil? end |
Instance Attribute Details
#authorizer_name ⇒ String? (readonly)
Note:
Default: - same value as id passed in the constructor
The name of the authorizer.
29 30 31 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer_props.rb', line 29 def @authorizer_name end |
#identity_source ⇒ Array<String>? (readonly)
Note:
Default: ['$request.header.Authorization']
The identity source for which authorization is requested.
34 35 36 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer_props.rb', line 34 def identity_source @identity_source end |
#jwt_audience ⇒ Array<String> (readonly)
A list of the intended recipients of the JWT.
A valid JWT must provide an aud that matches at least one entry in this list.
24 25 26 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer_props.rb', line 24 def jwt_audience @jwt_audience end |
Class Method Details
.jsii_properties ⇒ Object
36 37 38 39 40 41 42 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer_props.rb', line 36 def self.jsii_properties { :jwt_audience => "jwtAudience", :authorizer_name => "authorizerName", :identity_source => "identitySource", } end |
Instance Method Details
#to_jsii ⇒ Object
44 45 46 47 48 49 50 51 52 |
# File 'api_gatewayv2_authorizers/http_jwt_authorizer_props.rb', line 44 def to_jsii result = {} result.merge!({ "jwtAudience" => @jwt_audience, "authorizerName" => @authorizer_name, "identitySource" => @identity_source, }) result.compact end |