Class: AWSCDK::BedrockAgentCore::CfnRuntime::CustomJWTAuthorizerConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnRuntime::CustomJWTAuthorizerConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_runtime.rb
Overview
Configuration for custom JWT authorizer.
Instance Attribute Summary collapse
-
#allowed_audience ⇒ Array<String>?
readonly
Represents inbound authorization configuration options used to authenticate incoming requests.
-
#allowed_clients ⇒ Array<String>?
readonly
Represents individual client IDs that are validated in the incoming JWT token validation process.
-
#allowed_scopes ⇒ Array<String>?
readonly
List of allowed scopes.
-
#custom_claims ⇒ AWSCDK::IResolvable, ...
readonly
List of required custom claims.
-
#discovery_url ⇒ String
readonly
The configuration authorization.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(discovery_url:, allowed_audience: nil, allowed_clients: nil, allowed_scopes: nil, custom_claims: nil) ⇒ CustomJWTAuthorizerConfigurationProperty
constructor
A new instance of CustomJWTAuthorizerConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(discovery_url:, allowed_audience: nil, allowed_clients: nil, allowed_scopes: nil, custom_claims: nil) ⇒ CustomJWTAuthorizerConfigurationProperty
Returns a new instance of CustomJWTAuthorizerConfigurationProperty.
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1064 def initialize(discovery_url:, allowed_audience: nil, allowed_clients: nil, allowed_scopes: nil, custom_claims: nil) @discovery_url = discovery_url Jsii::Type.check_type(@discovery_url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "discoveryUrl") @allowed_audience = allowed_audience Jsii::Type.check_type(@allowed_audience, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedAudience") unless @allowed_audience.nil? @allowed_clients = allowed_clients Jsii::Type.check_type(@allowed_clients, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedClients") unless @allowed_clients.nil? @allowed_scopes = allowed_scopes Jsii::Type.check_type(@allowed_scopes, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedScopes") unless @allowed_scopes.nil? @custom_claims = custom_claims Jsii::Type.check_type(@custom_claims, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5SdW50aW1lLkN1c3RvbUNsYWltVmFsaWRhdGlvblR5cGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "customClaims") unless @custom_claims.nil? end |
Instance Attribute Details
#allowed_audience ⇒ Array<String>? (readonly)
Represents inbound authorization configuration options used to authenticate incoming requests.
1086 1087 1088 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1086 def allowed_audience @allowed_audience end |
#allowed_clients ⇒ Array<String>? (readonly)
Represents individual client IDs that are validated in the incoming JWT token validation process.
1091 1092 1093 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1091 def allowed_clients @allowed_clients end |
#allowed_scopes ⇒ Array<String>? (readonly)
List of allowed scopes.
1096 1097 1098 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1096 def allowed_scopes @allowed_scopes end |
#custom_claims ⇒ AWSCDK::IResolvable, ... (readonly)
List of required custom claims.
1101 1102 1103 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1101 def custom_claims @custom_claims end |
#discovery_url ⇒ String (readonly)
The configuration authorization.
1081 1082 1083 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1081 def discovery_url @discovery_url end |
Class Method Details
.jsii_properties ⇒ Object
1103 1104 1105 1106 1107 1108 1109 1110 1111 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1103 def self.jsii_properties { :discovery_url => "discoveryUrl", :allowed_audience => "allowedAudience", :allowed_clients => "allowedClients", :allowed_scopes => "allowedScopes", :custom_claims => "customClaims", } end |
Instance Method Details
#to_jsii ⇒ Object
1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 |
# File 'bedrock_agent_core/cfn_runtime.rb', line 1113 def to_jsii result = {} result.merge!({ "discoveryUrl" => @discovery_url, "allowedAudience" => @allowed_audience, "allowedClients" => @allowed_clients, "allowedScopes" => @allowed_scopes, "customClaims" => @custom_claims, }) result.compact end |