PodIdentityAssociationArgs class
The set of arguments for PodIdentityAssociation. The set of arguments for PodIdentityAssociation.
Constructors
-
PodIdentityAssociationArgs({required Input<
String> clusterName, Input<bool?> ? disableSessionTags, required Input<String> namespace, Input<String?> ? policy, Input<String?> ? region, required Input<String> roleArn, required Input<String> serviceAccount, Input<Map< ? tags, Input<String, String> ?>String?> ? targetRoleArn}) -
Creates a new PodIdentityAssociationArgs.
clusterNameThe name of the cluster to create the association in.disableSessionTagsDisable the tags that are automatically added to role session by Amazon EKS. Must be set totruewhenpolicyis specified.namespaceThe 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.policyAn IAM policy in JSON format (as an escaped string) that applies additional restrictions to this Pod Identity association beyond the IAM policies attached to the IAM role. The effective permissions are the intersection of the role's policies and this policy, allowing you to enforce least privilege across multiple associations that share the same role. RequiresdisableSessionTags = true.regionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.roleArnARN 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.serviceAccountThe name of the Kubernetes service account inside the cluster to associate the IAM credentials with.tagsKey-value map of resource tags. If configured with a providerdefaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.targetRoleArnARN of the IAM role to be chained to the the IAM role specified asroleArn.const -
PodIdentityAssociationArgs.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
clusterName
→ Input<
String> -
The name of the cluster to create the association in.
final
-
disableSessionTags
→ Input<
bool?> ? -
Disable the tags that are automatically added to role session by Amazon EKS. Must be set to
truewhenpolicyis specified.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
namespace
→ Input<
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.
final
-
policy
→ Input<
String?> ? -
An IAM policy in JSON format (as an escaped string) that applies additional restrictions to this Pod Identity association beyond the IAM policies attached to the IAM role. The effective permissions are the intersection of the role's policies and this policy, allowing you to enforce least privilege across multiple associations that share the same role. Requires
disableSessionTags = true.final -
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
roleArn
→ Input<
String> -
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.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
serviceAccount
→ Input<
String> -
The name of the Kubernetes service account inside the cluster to associate the IAM credentials with.
final
-
Key-value map of resource tags. If configured with a provider
defaultTagsconfiguration block present, tags with matching keys will overwrite those defined at the provider-level.final -
targetRoleArn
→ Input<
String?> ? -
ARN of the IAM role to be chained to the the IAM role specified as
roleArn.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited