Class CfnFargateProfileMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnFargateProfileMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFargateProfileMixinProps>
- Enclosing interface:
CfnFargateProfileMixinProps
@Stability(Stable)
public static final class CfnFargateProfileMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFargateProfileMixinProps>
A builder for
CfnFargateProfileMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clusterName(String clusterName) Sets the value ofCfnFargateProfileMixinProps.getClusterName()fargateProfileName(String fargateProfileName) Sets the value ofCfnFargateProfileMixinProps.getFargateProfileName()podExecutionRoleArn(String podExecutionRoleArn) Sets the value ofCfnFargateProfileMixinProps.getPodExecutionRoleArn()Sets the value ofCfnFargateProfileMixinProps.getSelectors()selectors(IResolvable selectors) Sets the value ofCfnFargateProfileMixinProps.getSelectors()Sets the value ofCfnFargateProfileMixinProps.getSubnets()Sets the value ofCfnFargateProfileMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clusterName
Sets the value ofCfnFargateProfileMixinProps.getClusterName()- Parameters:
clusterName- The name of your cluster.- Returns:
this
-
fargateProfileName
@Stability(Stable) public CfnFargateProfileMixinProps.Builder fargateProfileName(String fargateProfileName) Sets the value ofCfnFargateProfileMixinProps.getFargateProfileName()- Parameters:
fargateProfileName- The name of the Fargate profile.- Returns:
this
-
podExecutionRoleArn
@Stability(Stable) public CfnFargateProfileMixinProps.Builder podExecutionRoleArn(String podExecutionRoleArn) Sets the value ofCfnFargateProfileMixinProps.getPodExecutionRoleArn()- Parameters:
podExecutionRoleArn- The Amazon Resource Name (ARN) of thePodexecution role to use for aPodthat matches the selectors in the Fargate profile. ThePodexecution role allows Fargate infrastructure to register with your cluster as a node, and it provides read access to Amazon ECR image repositories. For more information, seePodexecution role in the Amazon EKS User Guide .- Returns:
this
-
selectors
Sets the value ofCfnFargateProfileMixinProps.getSelectors()- Parameters:
selectors- The selectors to match for aPodto use this Fargate profile. Each selector must have an associated Kubernetesnamespace. Optionally, you can also specifylabelsfor anamespace. You may specify up to five selectors in a Fargate profile.- Returns:
this
-
selectors
@Stability(Stable) public CfnFargateProfileMixinProps.Builder selectors(List<? extends Object> selectors) Sets the value ofCfnFargateProfileMixinProps.getSelectors()- Parameters:
selectors- The selectors to match for aPodto use this Fargate profile. Each selector must have an associated Kubernetesnamespace. Optionally, you can also specifylabelsfor anamespace. You may specify up to five selectors in a Fargate profile.- Returns:
this
-
subnets
Sets the value ofCfnFargateProfileMixinProps.getSubnets()- Parameters:
subnets- The IDs of subnets to launch aPodinto. APodrunning on Fargate isn't assigned a public IP address, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.- Returns:
this
-
tags
Sets the value ofCfnFargateProfileMixinProps.getTags()- Parameters:
tags- Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don't propagate to any other cluster or AWS resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFargateProfileMixinProps>- Returns:
- a new instance of
CfnFargateProfileMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-