> **Experimental**
>
> `@aws-cdk/aws-bedrock-agentcore-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# WorkloadIdentityProps

Properties for a new {@link WorkloadIdentity}.

Used as props by: [WorkloadIdentity](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-bedrock-agentcore-alpha.WorkloadIdentity.html)

- Source: [`lib/identity/workload-identity.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/@aws-cdk/aws-bedrock-agentcore-alpha/lib/identity/workload-identity.ts#L103)

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `allowedResourceOauth2ReturnUrls`: string[] — Allowed OAuth2 return URLs for resources associated with this workload identity.

  **Default:** no return URLs

- `tags`: { [key: string]: string } — Tags for this workload identity.

  **Default:** no tags

- `workloadIdentityName`: string — Name of the workload identity.

  **Default:** a name generated by CDK
