interface CfnPodIdentityAssociationProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.EKS.CfnPodIdentityAssociationProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awseks#CfnPodIdentityAssociationProps |
Java | software.amazon.awscdk.services.eks.CfnPodIdentityAssociationProps |
Python | aws_cdk.aws_eks.CfnPodIdentityAssociationProps |
TypeScript | aws-cdk-lib » aws_eks » CfnPodIdentityAssociationProps |
Properties for defining a CfnPodIdentityAssociation
.
Example
// 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 cfnPodIdentityAssociationProps: eks.CfnPodIdentityAssociationProps = {
clusterName: 'clusterName',
namespace: 'namespace',
roleArn: 'roleArn',
serviceAccount: 'serviceAccount',
// the properties below are optional
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
cluster | string | The name of the cluster that the association is in. |
namespace | string | The name of the Kubernetes namespace inside the cluster to create the association in. |
role | string | The Amazon Resource Name (ARN) of the IAM role to associate with the service account. |
service | string | The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. |
tags? | Cfn [] | Metadata that assists with categorization and organization. |
clusterName
Type:
string
The name of the cluster that the association is in.
namespace
Type:
string
The name of the Kubernetes namespace inside the cluster to create the association in.
The service account and the pods that use the service account must be in this namespace.
roleArn
Type:
string
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
The EKS Pod Identity agent manages credentials to assume this role for applications in the containers in the pods that use this service account.
serviceAccount
Type:
string
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
tags?
Type:
Cfn
[]
(optional)
Metadata that assists with categorization and organization.
Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or AWS resources.
The following basic restrictions apply to tags:
- Maximum number of tags per resource – 50
- For each resource, each tag key must be unique, and each tag key can have only one value.
- Maximum key length – 128 Unicode characters in UTF-8
- Maximum value length – 256 Unicode characters in UTF-8
- If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : /