Class CfnAddon.PodIdentityAssociationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnAddon.PodIdentityAssociationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAddon.PodIdentityAssociationProperty>
- Enclosing interface:
CfnAddon.PodIdentityAssociationProperty
@Stability(Stable)
public static final class CfnAddon.PodIdentityAssociationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAddon.PodIdentityAssociationProperty>
A builder for
CfnAddon.PodIdentityAssociationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAddon.PodIdentityAssociationProperty.getRoleArn()
serviceAccount
(String serviceAccount) Sets the value ofCfnAddon.PodIdentityAssociationProperty.getServiceAccount()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
roleArn
Sets the value ofCfnAddon.PodIdentityAssociationProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role to associate with the service account. This parameter is required. 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:
this
-
serviceAccount
@Stability(Stable) public CfnAddon.PodIdentityAssociationProperty.Builder serviceAccount(String serviceAccount) Sets the value ofCfnAddon.PodIdentityAssociationProperty.getServiceAccount()
- Parameters:
serviceAccount
- The name of the Kubernetes service account inside the cluster to associate the IAM credentials with. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAddon.PodIdentityAssociationProperty>
- Returns:
- a new instance of
CfnAddon.PodIdentityAssociationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-