Skip to content
v2.278.0

AllowedWorkloadConfigurationProperty ​

Struct External

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.

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 allowedWorkloadConfigurationProperty: bedrockagentcore.CfnRuntime.AllowedWorkloadConfigurationProperty = {
  hostingEnvironments: [{
    arn: 'arn',
  }],
  workloadIdentities: ['workloadIdentities'],
};
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

allowed_workload_configuration_property = bedrockagentcore.CfnRuntime.AllowedWorkloadConfigurationProperty(
    hosting_environments=[bedrockagentcore.CfnRuntime.HostingEnvironmentProperty(
        arn="arn"
    )],
    workload_identities=["workloadIdentities"]
)
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.*;

AllowedWorkloadConfigurationProperty allowedWorkloadConfigurationProperty = AllowedWorkloadConfigurationProperty.builder()
        .hostingEnvironments(List.of(HostingEnvironmentProperty.builder()
                .arn("arn")
                .build()))
        .workloadIdentities(List.of("workloadIdentities"))
        .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 allowedWorkloadConfigurationProperty = new AllowedWorkloadConfigurationProperty {
    HostingEnvironments = new [] { new HostingEnvironmentProperty {
        Arn = "arn"
    } },
    WorkloadIdentities = new [] { "workloadIdentities" }
};
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"

allowedWorkloadConfigurationProperty := &AllowedWorkloadConfigurationProperty{
	HostingEnvironments: []interface{}{
		&HostingEnvironmentProperty{
			Arn: jsii.String("arn"),
		},
	},
	WorkloadIdentities: []*string{
		jsii.String("workloadIdentities"),
	},
}

Properties ​

hostingEnvironmentsoptionalIResolvable | IResolvable | CfnRuntime.HostingEnvironmentProperty[]hosting_environmentsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, HostingEnvironmentProperty]]]hostingEnvironmentsoptionalIResolvableHostingEnvironmentsoptionalIResolvableHostingEnvironmentsoptionalinterface{} #
List of allow-listed hosting environments.
workloadIdentitiesoptionalstring[]workload_identitiesoptionaltyping.List[str]workloadIdentitiesoptionalList<String>WorkloadIdentitiesoptionalstring[]WorkloadIdentitiesoptional*[]*string #
List of allow-listed workload identity names.