# WorkloadIdentityAttributes

Attributes for importing an existing workload identity.

Used as argument in: [WorkloadIdentity.fromWorkloadIdentityAttributes](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.WorkloadIdentity.html#fromworkloadidentityattributes)

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

## Example

TypeScript:

```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 workloadIdentityAttributes: bedrockagentcore.WorkloadIdentityAttributes = {
  workloadIdentityArn: 'workloadIdentityArn',
  workloadIdentityName: 'workloadIdentityName',

  // the properties below are optional
  createdTime: 'createdTime',
  lastUpdatedTime: 'lastUpdatedTime',
};
```

Python:

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

workload_identity_attributes = bedrockagentcore.WorkloadIdentityAttributes(
    workload_identity_arn="workloadIdentityArn",
    workload_identity_name="workloadIdentityName",

    # the properties below are optional
    created_time="createdTime",
    last_updated_time="lastUpdatedTime"
)
```

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.bedrockagentcore.*;

WorkloadIdentityAttributes workloadIdentityAttributes = WorkloadIdentityAttributes.builder()
        .workloadIdentityArn("workloadIdentityArn")
        .workloadIdentityName("workloadIdentityName")

        // the properties below are optional
        .createdTime("createdTime")
        .lastUpdatedTime("lastUpdatedTime")
        .build();
```

C# / .NET:

```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 workloadIdentityAttributes = new WorkloadIdentityAttributes {
    WorkloadIdentityArn = "workloadIdentityArn",
    WorkloadIdentityName = "workloadIdentityName",

    // the properties below are optional
    CreatedTime = "createdTime",
    LastUpdatedTime = "lastUpdatedTime"
};
```

Golang:

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

workloadIdentityAttributes := &WorkloadIdentityAttributes{
	WorkloadIdentityArn: jsii.String("workloadIdentityArn"),
	WorkloadIdentityName: jsii.String("workloadIdentityName"),

	// the properties below are optional
	CreatedTime: jsii.String("createdTime"),
	LastUpdatedTime: jsii.String("lastUpdatedTime"),
}
```

## Properties

- `createdTime`: string — Resource creation time.

  **Default:** not set

- `lastUpdatedTime`: string — Resource last-updated time.

  **Default:** not set

- `workloadIdentityArn`: string (required) — ARN of the workload identity.

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