Class CfnFargateProfileProps.Builder

java.lang.Object
software.amazon.awscdk.services.eks.CfnFargateProfileProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFargateProfileProps>
Enclosing interface:
CfnFargateProfileProps

@Stability(Stable) public static final class CfnFargateProfileProps.Builder extends Object implements software.amazon.jsii.Builder<CfnFargateProfileProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • clusterName

      @Stability(Stable) public CfnFargateProfileProps.Builder clusterName(String clusterName)
      Parameters:
      clusterName - The name of the Amazon EKS cluster to apply the Fargate profile to. This parameter is required.
      Returns:
      this
    • podExecutionRoleArn

      @Stability(Stable) public CfnFargateProfileProps.Builder podExecutionRoleArn(String podExecutionRoleArn)
      Parameters:
      podExecutionRoleArn - The Amazon Resource Name (ARN) of the pod execution role to use for pods that match the selectors in the Fargate profile. This parameter is required. The pod execution 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, see Pod Execution Role in the Amazon EKS User Guide .
      Returns:
      this
    • selectors

      @Stability(Stable) public CfnFargateProfileProps.Builder selectors(IResolvable selectors)
      Parameters:
      selectors - The selectors to match for pods to use this Fargate profile. This parameter is required. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
      Returns:
      this
    • selectors

      @Stability(Stable) public CfnFargateProfileProps.Builder selectors(List<? extends Object> selectors)
      Parameters:
      selectors - The selectors to match for pods to use this Fargate profile. This parameter is required. Each selector must have an associated namespace. Optionally, you can also specify labels for a namespace. You may specify up to five selectors in a Fargate profile.
      Returns:
      this
    • fargateProfileName

      @Stability(Stable) public CfnFargateProfileProps.Builder fargateProfileName(String fargateProfileName)
      Parameters:
      fargateProfileName - The name of the Fargate profile.
      Returns:
      this
    • subnets

      @Stability(Stable) public CfnFargateProfileProps.Builder subnets(List<String> subnets)
      Parameters:
      subnets - The IDs of subnets to launch your pods into. At this time, pods running on Fargate are not assigned public IP addresses, so only private subnets (with no direct route to an Internet Gateway) are accepted for this parameter.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnFargateProfileProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - The metadata to apply to the Fargate profile to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Fargate profile tags do not propagate to any other resources associated with the Fargate profile, such as the pods that are scheduled with it.
      Returns:
      this
    • build

      @Stability(Stable) public CfnFargateProfileProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnFargateProfileProps>
      Returns:
      a new instance of CfnFargateProfileProps
      Throws:
      NullPointerException - if any required attribute was not provided