# WorkloadIdentityConfigProperty

The workload identity configuration of the pod identity association.

When enabled, the association also provisions a SPIFFE identity for the workload. Setting Enabled to false disables workload identity and keeps the ARNs. Removing the property from the template leaves the association unchanged; set Enabled to false to disable workload identity.

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const workloadIdentityConfigProperty: eks.CfnPodIdentityAssociation.WorkloadIdentityConfigProperty = {
  enabled: false,

  // the properties below are optional
  providerArn: 'providerArn',
  templateArn: 'templateArn',
};
```

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_eks as eks

workload_identity_config_property = eks.CfnPodIdentityAssociation.WorkloadIdentityConfigProperty(
    enabled=False,

    # the properties below are optional
    provider_arn="providerArn",
    template_arn="templateArn"
)
```

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

WorkloadIdentityConfigProperty workloadIdentityConfigProperty = WorkloadIdentityConfigProperty.builder()
        .enabled(false)

        // the properties below are optional
        .providerArn("providerArn")
        .templateArn("templateArn")
        .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.EKS;

var workloadIdentityConfigProperty = new WorkloadIdentityConfigProperty {
    Enabled = false,

    // the properties below are optional
    ProviderArn = "providerArn",
    TemplateArn = "templateArn"
};
```

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"

workloadIdentityConfigProperty := &WorkloadIdentityConfigProperty{
	Enabled: jsii.Boolean(false),

	// the properties below are optional
	ProviderArn: jsii.String("providerArn"),
	TemplateArn: jsii.String("templateArn"),
}
```

## Properties

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Whether workload identity is enabled for the association.

  Enabling it requires TemplateArn and ProviderArn, and cannot be combined with TargetRoleArn.

- `providerArn`: string — The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.

- `templateArn`: string — The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.
