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