Package com.pulumi.aws.eks
Class PodIdentityAssociationArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.eks.PodIdentityAssociationArgs.Builder
-
- Enclosing class:
- PodIdentityAssociationArgs
public static final class PodIdentityAssociationArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(PodIdentityAssociationArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PodIdentityAssociationArgsbuild()PodIdentityAssociationArgs.BuilderclusterName(com.pulumi.core.Output<java.lang.String> clusterName)PodIdentityAssociationArgs.BuilderclusterName(java.lang.String clusterName)PodIdentityAssociationArgs.BuilderdisableSessionTags(com.pulumi.core.Output<java.lang.Boolean> disableSessionTags)PodIdentityAssociationArgs.BuilderdisableSessionTags(java.lang.Boolean disableSessionTags)PodIdentityAssociationArgs.Buildernamespace(com.pulumi.core.Output<java.lang.String> namespace)PodIdentityAssociationArgs.Buildernamespace(java.lang.String namespace)PodIdentityAssociationArgs.Builderpolicy(com.pulumi.core.Output<java.lang.String> policy)PodIdentityAssociationArgs.Builderpolicy(java.lang.String policy)PodIdentityAssociationArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)PodIdentityAssociationArgs.Builderregion(java.lang.String region)PodIdentityAssociationArgs.BuilderroleArn(com.pulumi.core.Output<java.lang.String> roleArn)PodIdentityAssociationArgs.BuilderroleArn(java.lang.String roleArn)PodIdentityAssociationArgs.BuilderserviceAccount(com.pulumi.core.Output<java.lang.String> serviceAccount)PodIdentityAssociationArgs.BuilderserviceAccount(java.lang.String serviceAccount)PodIdentityAssociationArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)PodIdentityAssociationArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)PodIdentityAssociationArgs.BuildertargetRoleArn(com.pulumi.core.Output<java.lang.String> targetRoleArn)PodIdentityAssociationArgs.BuildertargetRoleArn(java.lang.String targetRoleArn)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(PodIdentityAssociationArgs defaults)
-
-
Method Detail
-
clusterName
public PodIdentityAssociationArgs.Builder clusterName(com.pulumi.core.Output<java.lang.String> clusterName)
- Parameters:
clusterName- The name of the cluster to create the association in.- Returns:
- builder
-
clusterName
public PodIdentityAssociationArgs.Builder clusterName(java.lang.String clusterName)
- Parameters:
clusterName- The name of the cluster to create the association in.- Returns:
- builder
-
disableSessionTags
public PodIdentityAssociationArgs.Builder disableSessionTags(@Nullable com.pulumi.core.Output<java.lang.Boolean> disableSessionTags)
- Parameters:
disableSessionTags- Disable the tags that are automatically added to role session by Amazon EKS. Must be set to `true` when `policy` is specified.- Returns:
- builder
-
disableSessionTags
public PodIdentityAssociationArgs.Builder disableSessionTags(java.lang.Boolean disableSessionTags)
- Parameters:
disableSessionTags- Disable the tags that are automatically added to role session by Amazon EKS. Must be set to `true` when `policy` is specified.- Returns:
- builder
-
namespace
public PodIdentityAssociationArgs.Builder namespace(com.pulumi.core.Output<java.lang.String> namespace)
- Parameters:
namespace- 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.- Returns:
- builder
-
namespace
public PodIdentityAssociationArgs.Builder namespace(java.lang.String namespace)
- Parameters:
namespace- 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.- Returns:
- builder
-
policy
public PodIdentityAssociationArgs.Builder policy(@Nullable com.pulumi.core.Output<java.lang.String> policy)
- Parameters:
policy- 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`.- Returns:
- builder
-
policy
public PodIdentityAssociationArgs.Builder policy(java.lang.String policy)
- Parameters:
policy- 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`.- Returns:
- builder
-
region
public PodIdentityAssociationArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public PodIdentityAssociationArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
roleArn
public PodIdentityAssociationArgs.Builder roleArn(com.pulumi.core.Output<java.lang.String> roleArn)
- Parameters:
roleArn- 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.- Returns:
- builder
-
roleArn
public PodIdentityAssociationArgs.Builder roleArn(java.lang.String roleArn)
- Parameters:
roleArn- 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.- Returns:
- builder
-
serviceAccount
public PodIdentityAssociationArgs.Builder serviceAccount(com.pulumi.core.Output<java.lang.String> serviceAccount)
- Parameters:
serviceAccount- The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. The following arguments are optional:- Returns:
- builder
-
serviceAccount
public PodIdentityAssociationArgs.Builder serviceAccount(java.lang.String serviceAccount)
- Parameters:
serviceAccount- The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. The following arguments are optional:- Returns:
- builder
-
tags
public PodIdentityAssociationArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public PodIdentityAssociationArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
targetRoleArn
public PodIdentityAssociationArgs.Builder targetRoleArn(@Nullable com.pulumi.core.Output<java.lang.String> targetRoleArn)
- Parameters:
targetRoleArn- ARN of the IAM role to be chained to the the IAM role specified as `roleArn`.- Returns:
- builder
-
targetRoleArn
public PodIdentityAssociationArgs.Builder targetRoleArn(java.lang.String targetRoleArn)
- Parameters:
targetRoleArn- ARN of the IAM role to be chained to the the IAM role specified as `roleArn`.- Returns:
- builder
-
build
public PodIdentityAssociationArgs build()
-
-