class RuntimeCustomClaim
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.RuntimeCustomClaim |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#RuntimeCustomClaim |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.RuntimeCustomClaim |
Python | aws_cdk.aws_bedrock_agentcore_alpha.RuntimeCustomClaim |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป RuntimeCustomClaim |
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.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as bedrock_agentcore_alpha from '@aws-cdk/aws-bedrock-agentcore-alpha';
const runtimeCustomClaim = bedrock_agentcore_alpha.RuntimeCustomClaim.withStringArrayValue('name', ['values'], /* all optional props */ bedrock_agentcore_alpha.CustomClaimOperator.EQUALS);
Methods
| Name | Description |
|---|---|
| static with | Create a custom claim with a string array value. |
| static with | Create a custom claim with a string value. |
static withStringArrayValue(name, values, operator?)
public static withStringArrayValue(name: string, values: string[], operator?: CustomClaimOperator): RuntimeCustomClaim
Parameters
- name
stringโ The name of the claim in the JWT token. - values
string[]โ The array of string values to match. - operator
Customโ The match operator (defaults to CONTAINS).Claim Operator
Returns
Create a custom claim with a string array value.
String array claims can use CONTAINS (default) or CONTAINS_ANY operator.
static withStringValue(name, value)
public static withStringValue(name: string, value: string): RuntimeCustomClaim
Parameters
- name
stringโ The name of the claim in the JWT token. - value
stringโ The string value to match (must exactly equal).
Returns
Create a custom claim with a string value.
String claims must use the EQUALS operator.

.NET
Go
Java
Python
TypeScript (