Class CfnPodIdentityAssociationProps
Properties for defining a CfnPodIdentityAssociation
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.EKS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnPodIdentityAssociationProps : Object, ICfnPodIdentityAssociationProps
Syntax (vb)
Public Class CfnPodIdentityAssociationProps
Inherits Object
Implements ICfnPodIdentityAssociationProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 cfnPodIdentityAssociationProps = new CfnPodIdentityAssociationProps {
ClusterName = "clusterName",
Namespace = "namespace",
RoleArn = "roleArn",
ServiceAccount = "serviceAccount",
// the properties below are optional
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Constructors
CfnPodIdentityAssociationProps() |
Properties
ClusterName | The name of the cluster that the association is in. |
Namespace | The name of the Kubernetes namespace inside the cluster to create the association in. |
RoleArn | The Amazon Resource Name (ARN) of the IAM role to associate with the service account. |
ServiceAccount | The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. |
Tags | Metadata that assists with categorization and organization. |
Constructors
CfnPodIdentityAssociationProps()
public CfnPodIdentityAssociationProps()
Properties
ClusterName
The name of the cluster that the association is in.
public string ClusterName { get; set; }
Property Value
System.String
Remarks
Namespace
The name of the Kubernetes namespace inside the cluster to create the association in.
public string Namespace { get; set; }
Property Value
System.String
Remarks
The service account and the pods that use the service account must be in this namespace.
RoleArn
The Amazon Resource Name (ARN) of the IAM role to associate with the service account.
public string RoleArn { get; set; }
Property Value
System.String
Remarks
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
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
public string ServiceAccount { get; set; }
Property Value
System.String
Remarks
Tags
Metadata that assists with categorization and organization.
public ICfnTag[] Tags { get; set; }
Property Value
ICfnTag[]
Remarks
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:
: .
- Tag keys and values are case-sensitive.
- Do not use
aws:
,AWS:
, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.