AuthorizerConfigurationProperty
Struct External
The authorizer configuration.
| Source | |
|---|---|
| Type last changed |
Example
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 authorizerConfigurationProperty: bedrockagentcore.CfnRuntime.AuthorizerConfigurationProperty = {
customJwtAuthorizer: {
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
# 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
authorizer_configuration_property = bedrockagentcore.CfnRuntime.AuthorizerConfigurationProperty(
custom_jwt_authorizer=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
// 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.*;
AuthorizerConfigurationProperty authorizerConfigurationProperty = AuthorizerConfigurationProperty.builder()
.customJwtAuthorizer(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())
.build();
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 authorizerConfigurationProperty = new AuthorizerConfigurationProperty {
CustomJwtAuthorizer = 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
// 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"
authorizerConfigurationProperty := &AuthorizerConfigurationProperty{
CustomJwtAuthorizer: &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
customJwtAuthorizeroptionalIResolvable | CfnRuntime.custom_jwt_authorizeroptionaltyping.Union[IResolvable, CustomJWTAuthorizerConfigurationProperty]customJwtAuthorizeroptionalIResolvableCustomJwtAuthorizeroptionalIResolvableCustomJwtAuthorizeroptionalinterface{} #Represents inbound authorization configuration options used to authenticate incoming requests.