Skip to content
v2.278.0

WorkloadIdentityConfigProperty Struct ​

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.

Example ​

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
# 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
// 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();
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"
};
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 ​

enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #
Whether workload identity is enabled for the association.

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

providerArnoptionalstringprovider_arnoptionalstrproviderArnoptionalStringProviderArnoptionalstringProviderArnoptional*string #
The ARN of the customer-owned IAM workload identity provider that produces the trusted context assertion for the workload.
templateArnoptionalstringtemplate_arnoptionalstrtemplateArnoptionalStringTemplateArnoptionalstringTemplateArnoptional*string #
The ARN of the customer-owned IAM workload identity template that renders the workload's SPIFFE identity.