# CustomJWTAuthorizerConfigurationProperty

Struct · External

Configuration for custom JWT authorizer.

- Source: Generated at build time
- Type last changed: v2.264.0 · 10 Aug 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const customJWTAuthorizerConfigurationProperty: bedrockagentcore.CfnRuntime.CustomJWTAuthorizerConfigurationProperty = {
  discoveryUrl: 'discoveryUrl',

  // the properties below are optional
  allowedAudience: ['allowedAudience'],
  allowedClients: ['allowedClients'],
  allowedScopes: ['allowedScopes'],
  allowedWorkloadConfiguration: {
    hostingEnvironments: [{
      arn: 'arn',
    }],
    workloadIdentities: ['workloadIdentities'],
  },
  customClaims: [{
    authorizingClaimMatchValue: {
      claimMatchOperator: 'claimMatchOperator',
      claimMatchValue: {
        matchValueString: 'matchValueString',
        matchValueStringList: ['matchValueStringList'],
      },
    },
    inboundTokenClaimName: 'inboundTokenClaimName',
    inboundTokenClaimValueType: 'inboundTokenClaimValueType',
  }],
  privateEndpoint: {
    managedVpcResource: {
      endpointIpAddressType: 'endpointIpAddressType',
      subnetIds: ['subnetIds'],
      vpcIdentifier: 'vpcIdentifier',

      // the properties below are optional
      routingDomain: 'routingDomain',
      securityGroupIds: ['securityGroupIds'],
      tags: {
        tagsKey: 'tags',
      },
    },
    selfManagedLatticeResource: {
      resourceConfigurationIdentifier: 'resourceConfigurationIdentifier',
    },
  },
  privateEndpointOverrides: [{
    domain: 'domain',
    privateEndpoint: {
      managedVpcResource: {
        endpointIpAddressType: 'endpointIpAddressType',
        subnetIds: ['subnetIds'],
        vpcIdentifier: 'vpcIdentifier',

        // the properties below are optional
        routingDomain: 'routingDomain',
        securityGroupIds: ['securityGroupIds'],
        tags: {
          tagsKey: 'tags',
        },
      },
      selfManagedLatticeResource: {
        resourceConfigurationIdentifier: 'resourceConfigurationIdentifier',
      },
    },
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrockagentcore as bedrockagentcore

custom_jwt_authorizer_configuration_property = bedrockagentcore.CfnRuntime.CustomJWTAuthorizerConfigurationProperty(
    discovery_url="discoveryUrl",

    # the properties below are optional
    allowed_audience=["allowedAudience"],
    allowed_clients=["allowedClients"],
    allowed_scopes=["allowedScopes"],
    allowed_workload_configuration=bedrockagentcore.CfnRuntime.AllowedWorkloadConfigurationProperty(
        hosting_environments=[bedrockagentcore.CfnRuntime.HostingEnvironmentProperty(
            arn="arn"
        )],
        workload_identities=["workloadIdentities"]
    ),
    custom_claims=[bedrockagentcore.CfnRuntime.CustomClaimValidationTypeProperty(
        authorizing_claim_match_value=bedrockagentcore.CfnRuntime.AuthorizingClaimMatchValueTypeProperty(
            claim_match_operator="claimMatchOperator",
            claim_match_value=bedrockagentcore.CfnRuntime.ClaimMatchValueTypeProperty(
                match_value_string="matchValueString",
                match_value_string_list=["matchValueStringList"]
            )
        ),
        inbound_token_claim_name="inboundTokenClaimName",
        inbound_token_claim_value_type="inboundTokenClaimValueType"
    )],
    private_endpoint=bedrockagentcore.CfnRuntime.PrivateEndpointProperty(
        managed_vpc_resource=bedrockagentcore.CfnRuntime.ManagedVpcResourceProperty(
            endpoint_ip_address_type="endpointIpAddressType",
            subnet_ids=["subnetIds"],
            vpc_identifier="vpcIdentifier",

            # the properties below are optional
            routing_domain="routingDomain",
            security_group_ids=["securityGroupIds"],
            tags={
                "tags_key": "tags"
            }
        ),
        self_managed_lattice_resource=bedrockagentcore.CfnRuntime.SelfManagedLatticeResourceProperty(
            resource_configuration_identifier="resourceConfigurationIdentifier"
        )
    ),
    private_endpoint_overrides=[bedrockagentcore.CfnRuntime.PrivateEndpointOverrideProperty(
        domain="domain",
        private_endpoint=bedrockagentcore.CfnRuntime.PrivateEndpointProperty(
            managed_vpc_resource=bedrockagentcore.CfnRuntime.ManagedVpcResourceProperty(
                endpoint_ip_address_type="endpointIpAddressType",
                subnet_ids=["subnetIds"],
                vpc_identifier="vpcIdentifier",

                # the properties below are optional
                routing_domain="routingDomain",
                security_group_ids=["securityGroupIds"],
                tags={
                    "tags_key": "tags"
                }
            ),
            self_managed_lattice_resource=bedrockagentcore.CfnRuntime.SelfManagedLatticeResourceProperty(
                resource_configuration_identifier="resourceConfigurationIdentifier"
            )
        )
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrockagentcore.*;

CustomJWTAuthorizerConfigurationProperty customJWTAuthorizerConfigurationProperty = CustomJWTAuthorizerConfigurationProperty.builder()
        .discoveryUrl("discoveryUrl")

        // the properties below are optional
        .allowedAudience(List.of("allowedAudience"))
        .allowedClients(List.of("allowedClients"))
        .allowedScopes(List.of("allowedScopes"))
        .allowedWorkloadConfiguration(AllowedWorkloadConfigurationProperty.builder()
                .hostingEnvironments(List.of(HostingEnvironmentProperty.builder()
                        .arn("arn")
                        .build()))
                .workloadIdentities(List.of("workloadIdentities"))
                .build())
        .customClaims(List.of(CustomClaimValidationTypeProperty.builder()
                .authorizingClaimMatchValue(AuthorizingClaimMatchValueTypeProperty.builder()
                        .claimMatchOperator("claimMatchOperator")
                        .claimMatchValue(ClaimMatchValueTypeProperty.builder()
                                .matchValueString("matchValueString")
                                .matchValueStringList(List.of("matchValueStringList"))
                                .build())
                        .build())
                .inboundTokenClaimName("inboundTokenClaimName")
                .inboundTokenClaimValueType("inboundTokenClaimValueType")
                .build()))
        .privateEndpoint(PrivateEndpointProperty.builder()
                .managedVpcResource(ManagedVpcResourceProperty.builder()
                        .endpointIpAddressType("endpointIpAddressType")
                        .subnetIds(List.of("subnetIds"))
                        .vpcIdentifier("vpcIdentifier")

                        // the properties below are optional
                        .routingDomain("routingDomain")
                        .securityGroupIds(List.of("securityGroupIds"))
                        .tags(Map.of(
                                "tagsKey", "tags"))
                        .build())
                .selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
                        .resourceConfigurationIdentifier("resourceConfigurationIdentifier")
                        .build())
                .build())
        .privateEndpointOverrides(List.of(PrivateEndpointOverrideProperty.builder()
                .domain("domain")
                .privateEndpoint(PrivateEndpointProperty.builder()
                        .managedVpcResource(ManagedVpcResourceProperty.builder()
                                .endpointIpAddressType("endpointIpAddressType")
                                .subnetIds(List.of("subnetIds"))
                                .vpcIdentifier("vpcIdentifier")

                                // the properties below are optional
                                .routingDomain("routingDomain")
                                .securityGroupIds(List.of("securityGroupIds"))
                                .tags(Map.of(
                                        "tagsKey", "tags"))
                                .build())
                        .selfManagedLatticeResource(SelfManagedLatticeResourceProperty.builder()
                                .resourceConfigurationIdentifier("resourceConfigurationIdentifier")
                                .build())
                        .build())
                .build()))
        .build();
```

C#:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.BedrockAgentCore;

var customJWTAuthorizerConfigurationProperty = new CustomJWTAuthorizerConfigurationProperty {
    DiscoveryUrl = "discoveryUrl",

    // the properties below are optional
    AllowedAudience = new [] { "allowedAudience" },
    AllowedClients = new [] { "allowedClients" },
    AllowedScopes = new [] { "allowedScopes" },
    AllowedWorkloadConfiguration = new AllowedWorkloadConfigurationProperty {
        HostingEnvironments = new [] { new HostingEnvironmentProperty {
            Arn = "arn"
        } },
        WorkloadIdentities = new [] { "workloadIdentities" }
    },
    CustomClaims = new [] { new CustomClaimValidationTypeProperty {
        AuthorizingClaimMatchValue = new AuthorizingClaimMatchValueTypeProperty {
            ClaimMatchOperator = "claimMatchOperator",
            ClaimMatchValue = new ClaimMatchValueTypeProperty {
                MatchValueString = "matchValueString",
                MatchValueStringList = new [] { "matchValueStringList" }
            }
        },
        InboundTokenClaimName = "inboundTokenClaimName",
        InboundTokenClaimValueType = "inboundTokenClaimValueType"
    } },
    PrivateEndpoint = new PrivateEndpointProperty {
        ManagedVpcResource = new ManagedVpcResourceProperty {
            EndpointIpAddressType = "endpointIpAddressType",
            SubnetIds = new [] { "subnetIds" },
            VpcIdentifier = "vpcIdentifier",

            // the properties below are optional
            RoutingDomain = "routingDomain",
            SecurityGroupIds = new [] { "securityGroupIds" },
            Tags = new Dictionary<string, string> {
                { "tagsKey", "tags" }
            }
        },
        SelfManagedLatticeResource = new SelfManagedLatticeResourceProperty {
            ResourceConfigurationIdentifier = "resourceConfigurationIdentifier"
        }
    },
    PrivateEndpointOverrides = new [] { new PrivateEndpointOverrideProperty {
        Domain = "domain",
        PrivateEndpoint = new PrivateEndpointProperty {
            ManagedVpcResource = new ManagedVpcResourceProperty {
                EndpointIpAddressType = "endpointIpAddressType",
                SubnetIds = new [] { "subnetIds" },
                VpcIdentifier = "vpcIdentifier",

                // the properties below are optional
                RoutingDomain = "routingDomain",
                SecurityGroupIds = new [] { "securityGroupIds" },
                Tags = new Dictionary<string, string> {
                    { "tagsKey", "tags" }
                }
            },
            SelfManagedLatticeResource = new SelfManagedLatticeResourceProperty {
                ResourceConfigurationIdentifier = "resourceConfigurationIdentifier"
            }
        }
    } }
};
```

Go:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customJWTAuthorizerConfigurationProperty := &CustomJWTAuthorizerConfigurationProperty{
	DiscoveryUrl: jsii.String("discoveryUrl"),

	// the properties below are optional
	AllowedAudience: []*string{
		jsii.String("allowedAudience"),
	},
	AllowedClients: []*string{
		jsii.String("allowedClients"),
	},
	AllowedScopes: []*string{
		jsii.String("allowedScopes"),
	},
	AllowedWorkloadConfiguration: &AllowedWorkloadConfigurationProperty{
		HostingEnvironments: []interface{}{
			&HostingEnvironmentProperty{
				Arn: jsii.String("arn"),
			},
		},
		WorkloadIdentities: []*string{
			jsii.String("workloadIdentities"),
		},
	},
	CustomClaims: []interface{}{
		&CustomClaimValidationTypeProperty{
			AuthorizingClaimMatchValue: &AuthorizingClaimMatchValueTypeProperty{
				ClaimMatchOperator: jsii.String("claimMatchOperator"),
				ClaimMatchValue: &ClaimMatchValueTypeProperty{
					MatchValueString: jsii.String("matchValueString"),
					MatchValueStringList: []*string{
						jsii.String("matchValueStringList"),
					},
				},
			},
			InboundTokenClaimName: jsii.String("inboundTokenClaimName"),
			InboundTokenClaimValueType: jsii.String("inboundTokenClaimValueType"),
		},
	},
	PrivateEndpoint: &PrivateEndpointProperty{
		ManagedVpcResource: &ManagedVpcResourceProperty{
			EndpointIpAddressType: jsii.String("endpointIpAddressType"),
			SubnetIds: []*string{
				jsii.String("subnetIds"),
			},
			VpcIdentifier: jsii.String("vpcIdentifier"),

			// the properties below are optional
			RoutingDomain: jsii.String("routingDomain"),
			SecurityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			Tags: map[string]*string{
				"tagsKey": jsii.String("tags"),
			},
		},
		SelfManagedLatticeResource: &SelfManagedLatticeResourceProperty{
			ResourceConfigurationIdentifier: jsii.String("resourceConfigurationIdentifier"),
		},
	},
	PrivateEndpointOverrides: []interface{}{
		&PrivateEndpointOverrideProperty{
			Domain: jsii.String("domain"),
			PrivateEndpoint: &PrivateEndpointProperty{
				ManagedVpcResource: &ManagedVpcResourceProperty{
					EndpointIpAddressType: jsii.String("endpointIpAddressType"),
					SubnetIds: []*string{
						jsii.String("subnetIds"),
					},
					VpcIdentifier: jsii.String("vpcIdentifier"),

					// the properties below are optional
					RoutingDomain: jsii.String("routingDomain"),
					SecurityGroupIds: []*string{
						jsii.String("securityGroupIds"),
					},
					Tags: map[string]*string{
						"tagsKey": jsii.String("tags"),
					},
				},
				SelfManagedLatticeResource: &SelfManagedLatticeResourceProperty{
					ResourceConfigurationIdentifier: jsii.String("resourceConfigurationIdentifier"),
				},
			},
		},
	},
}
```

## Properties

- `allowedAudience`: string[] — Represents inbound authorization configuration options used to authenticate incoming requests.

- `allowedClients`: string[] — Represents individual client IDs that are validated in the incoming JWT token validation process.

- `allowedScopes`: string[] — List of allowed scopes.

- `allowedWorkloadConfiguration`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntime.AllowedWorkloadConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnRuntime.AllowedWorkloadConfigurationProperty.html) — Allow-list of upstream workloads permitted to reach this resource via the workload identity chain.

  When set, the data plane enforces that the introspected workload chain's caller matches one of the configured hosting environments or workload identities; absent means no chain enforcement.

- `customClaims`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntime.CustomClaimValidationTypeProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnRuntime.CustomClaimValidationTypeProperty.html)[] — List of required custom claims.

- `discoveryUrl`: string (required) — The configuration authorization.

- `privateEndpoint`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntime.PrivateEndpointProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnRuntime.PrivateEndpointProperty.html) — Private endpoint configuration.

  Exactly one of SelfManagedLatticeResource or ManagedVpcResource must be specified.

- `privateEndpointOverrides`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuntime.PrivateEndpointOverrideProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnRuntime.PrivateEndpointOverrideProperty.html)[] — List of private endpoint overrides.
