Class: AWSCDK::BedrockAgentCore::RuntimeCustomClaim
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::BedrockAgentCore::RuntimeCustomClaim
- Defined in:
- bedrock_agent_core/runtime_custom_claim.rb
Overview
Represents a custom claim validation configuration for Runtime JWT authorizers.
Custom claims allow you to validate additional fields in JWT tokens beyond the standard audience, client, and scope validations.
Class Method Summary collapse
- .jsii_overridable_methods ⇒ Object
-
.with_string_array_value(name, values, operator = nil) ⇒ AWSCDK::BedrockAgentCore::RuntimeCustomClaim
Create a custom claim with a string array value.
-
.with_string_value(name, value) ⇒ AWSCDK::BedrockAgentCore::RuntimeCustomClaim
Create a custom claim with a string value.
Instance Method Summary collapse
-
#initialize(*args) ⇒ RuntimeCustomClaim
constructor
A new instance of RuntimeCustomClaim.
Constructor Details
#initialize(*args) ⇒ RuntimeCustomClaim
Returns a new instance of RuntimeCustomClaim.
11 12 13 |
# File 'bedrock_agent_core/runtime_custom_claim.rb', line 11 def initialize(*args) raise NoMethodError, "aws-cdk-lib.aws_bedrockagentcore.RuntimeCustomClaim does not have a visible constructor; use the provided factory methods" end |
Class Method Details
.jsii_overridable_methods ⇒ Object
15 16 17 18 |
# File 'bedrock_agent_core/runtime_custom_claim.rb', line 15 def self.jsii_overridable_methods { } end |
.with_string_array_value(name, values, operator = nil) ⇒ AWSCDK::BedrockAgentCore::RuntimeCustomClaim
Create a custom claim with a string array value.
String array claims can use CONTAINS (default) or CONTAINS_ANY operator.
28 29 30 31 32 33 |
# File 'bedrock_agent_core/runtime_custom_claim.rb', line 28 def self.with_string_array_value(name, values, operator = nil) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Type.check_type(values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values") Jsii::Type.check_type(operator, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DdXN0b21DbGFpbU9wZXJhdG9yIn0=")), "operator") unless operator.nil? Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.RuntimeCustomClaim", "withStringArrayValue", [name, values, operator]) end |
.with_string_value(name, value) ⇒ AWSCDK::BedrockAgentCore::RuntimeCustomClaim
Create a custom claim with a string value.
String claims must use the EQUALS operator.
42 43 44 45 46 |
# File 'bedrock_agent_core/runtime_custom_claim.rb', line 42 def self.with_string_value(name, value) Jsii::Type.check_type(name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.RuntimeCustomClaim", "withStringValue", [name, value]) end |