Class: AWSCDK::BedrockAgentCore::CfnGateway::CustomJWTAuthorizerConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnGateway::CustomJWTAuthorizerConfigurationProperty
- Defined in:
- bedrock_agent_core/cfn_gateway.rb
Overview
Instance Attribute Summary collapse
-
#allowed_audience ⇒ Array<String>?
readonly
The allowed audience authorized for the gateway target.
- #allowed_clients ⇒ Array<String>? readonly
- #allowed_scopes ⇒ Array<String>? readonly
- #custom_claims ⇒ AWSCDK::IResolvable, ... readonly
-
#discovery_url ⇒ String
readonly
The discovery URL for the authorizer configuration.
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.
882 883 884 885 886 887 888 889 890 891 892 893 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 882 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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5HYXRld2F5LkN1c3RvbUNsYWltVmFsaWRhdGlvblR5cGVQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "customClaims") unless @custom_claims.nil? end |
Instance Attribute Details
#allowed_audience ⇒ Array<String>? (readonly)
The allowed audience authorized for the gateway target.
904 905 906 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 904 def allowed_audience @allowed_audience end |
#allowed_clients ⇒ Array<String>? (readonly)
907 908 909 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 907 def allowed_clients @allowed_clients end |
#allowed_scopes ⇒ Array<String>? (readonly)
910 911 912 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 910 def allowed_scopes @allowed_scopes end |
#custom_claims ⇒ AWSCDK::IResolvable, ... (readonly)
913 914 915 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 913 def custom_claims @custom_claims end |
#discovery_url ⇒ String (readonly)
The discovery URL for the authorizer configuration.
899 900 901 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 899 def discovery_url @discovery_url end |
Class Method Details
.jsii_properties ⇒ Object
915 916 917 918 919 920 921 922 923 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 915 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
925 926 927 928 929 930 931 932 933 934 935 |
# File 'bedrock_agent_core/cfn_gateway.rb', line 925 def to_jsii result = {} result.merge!({ "discoveryUrl" => @discovery_url, "allowedAudience" => @allowed_audience, "allowedClients" => @allowed_clients, "allowedScopes" => @allowed_scopes, "customClaims" => @custom_claims, }) result.compact end |