# WorkloadIdentityProps

Properties for a new {@link WorkloadIdentity}.

Extends: WorkloadIdentityProps
Used as props by: WorkloadIdentity

- Source: [`aws-bedrockagentcore/lib/identity/workload-identity.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/identity/workload-identity.ts#L101)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```ts
new agentcore.WorkloadIdentity(this, "MyWorkloadIdentity", {
  workloadIdentityName: "customer-support-agent-prod",
  allowedResourceOauth2ReturnUrls: ["https://app.example.com/oauth/callback"],
  tags: { team: "agents", env: "prod" },
});
```

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