Skip to content
v2.277.0

CfnWorkloadIdentityProps Struct ​

Properties for defining a CfnWorkloadIdentity.

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 cfnWorkloadIdentityProps: bedrockagentcore.CfnWorkloadIdentityProps = {
  name: 'name',

  // the properties below are optional
  allowedResourceOauth2ReturnUrls: ['allowedResourceOauth2ReturnUrls'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
python
from aws_cdk import CfnTag
# 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

cfn_workload_identity_props = bedrockagentcore.CfnWorkloadIdentityProps(
    name="name",

    # the properties below are optional
    allowed_resource_oauth2_return_urls=["allowedResourceOauth2ReturnUrls"],
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
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.*;

CfnWorkloadIdentityProps cfnWorkloadIdentityProps = CfnWorkloadIdentityProps.builder()
        .name("name")

        // the properties below are optional
        .allowedResourceOauth2ReturnUrls(List.of("allowedResourceOauth2ReturnUrls"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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 cfnWorkloadIdentityProps = new CfnWorkloadIdentityProps {
    Name = "name",

    // the properties below are optional
    AllowedResourceOauth2ReturnUrls = new [] { "allowedResourceOauth2ReturnUrls" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
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"

cfnWorkloadIdentityProps := &CfnWorkloadIdentityProps{
	Name: jsii.String("name"),

	// the properties below are optional
	AllowedResourceOauth2ReturnUrls: []*string{
		jsii.String("allowedResourceOauth2ReturnUrls"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

Properties ​

allowedResourceOauth2ReturnUrlsoptionalstring[]allowed_resource_oauth2_return_urlsoptionaltyping.List[str]allowedResourceOauth2ReturnUrlsoptionalList<String>AllowedResourceOauth2ReturnUrlsoptionalstring[]AllowedResourceOauth2ReturnUrlsoptional*[]*string#
The list of allowed OAuth2 return URLs for resources associated with this workload identity.
namestringnamestrnameStringNamestringName*stringrequired#
The name of the workload identity.

The name must be unique within your account.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag#
The tags for the workload identity.