Skip to content
v2.277.0

Experimental

@aws-cdk/aws-bedrock-agentcore-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

WorkloadIdentityProps Struct ​

Properties for a new {@link WorkloadIdentity}.

Example ​

ts
// 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 workloadIdentityProps: bedrock_agentcore_alpha.WorkloadIdentityProps = {
  allowedResourceOauth2ReturnUrls: ['allowedResourceOauth2ReturnUrls'],
  tags: {
    tagsKey: 'tags',
  },
  workloadIdentityName: 'workloadIdentityName',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_bedrock_agentcore_alpha as bedrock_agentcore_alpha

workload_identity_props = bedrock_agentcore_alpha.WorkloadIdentityProps(
    allowed_resource_oauth2_return_urls=["allowedResourceOauth2ReturnUrls"],
    tags={
        "tags_key": "tags"
    },
    workload_identity_name="workloadIdentityName"
)
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.bedrock.agentcore.alpha.*;

WorkloadIdentityProps workloadIdentityProps = WorkloadIdentityProps.builder()
        .allowedResourceOauth2ReturnUrls(List.of("allowedResourceOauth2ReturnUrls"))
        .tags(Map.of(
                "tagsKey", "tags"))
        .workloadIdentityName("workloadIdentityName")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.AWS.Bedrock.Agentcore.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock.Agentcore.Alpha;

var workloadIdentityProps = new WorkloadIdentityProps {
    AllowedResourceOauth2ReturnUrls = new [] { "allowedResourceOauth2ReturnUrls" },
    Tags = new Dictionary<string, string> {
        { "tagsKey", "tags" }
    },
    WorkloadIdentityName = "workloadIdentityName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import bedrock_agentcore_alpha "github.com/aws/aws-cdk-go/awsbedrockagentcorealpha"

workloadIdentityProps := &WorkloadIdentityProps{
	AllowedResourceOauth2ReturnUrls: []*string{
		jsii.String("allowedResourceOauth2ReturnUrls"),
	},
	Tags: map[string]*string{
		"tagsKey": jsii.String("tags"),
	},
	WorkloadIdentityName: jsii.String("workloadIdentityName"),
}

Properties ​

allowedResourceOauth2ReturnUrlsoptionalstring[]allowed_resource_oauth2_return_urlsoptionaltyping.List[str]allowedResourceOauth2ReturnUrlsoptionalList<String>AllowedResourceOauth2ReturnUrlsoptionalstring[]AllowedResourceOauth2ReturnUrlsoptional*[]*string#
Allowed OAuth2 return URLs for resources associated with this workload identity.

Default: no return URLs

tagsoptional{ [key: string]: string }tagsoptionaltyping.Mapping[str, str]tagsoptionalMap<String, String>TagsoptionalIDictionary<string, string>Tagsoptional*map[string]*string#
Tags for this workload identity.

Default: no tags

workloadIdentityNameoptionalstringworkload_identity_nameoptionalstrworkloadIdentityNameoptionalStringWorkloadIdentityNameoptionalstringWorkloadIdentityNameoptional*string#
Name of the workload identity.

Default: a name generated by CDK