Class CfnCapabilityProps.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • capabilityName

      @Stability(Stable) public CfnCapabilityProps.Builder capabilityName(String capabilityName)
      Parameters:
      capabilityName - A unique name for the capability. This parameter is required. The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.
      Returns:
      this
    • clusterName

      @Stability(Stable) public CfnCapabilityProps.Builder clusterName(String clusterName)
      Parameters:
      clusterName - The name of the EKS cluster where you want to create the capability. This parameter is required.
      Returns:
      this
    • deletePropagationPolicy

      @Stability(Stable) public CfnCapabilityProps.Builder deletePropagationPolicy(String deletePropagationPolicy)
      Parameters:
      deletePropagationPolicy - Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. This parameter is required. Currently, the only supported value is RETAIN which retains all Kubernetes resources managed by the capability when the capability is deleted.
      Returns:
      this
    • roleArn

      @Stability(Stable) public CfnCapabilityProps.Builder roleArn(String roleArn)
      Parameters:
      roleArn - The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with AWS services. This parameter is required. This role must have a trust policy that allows the EKS service principal to assume it, and it must have the necessary permissions for the capability type you're creating.
      Returns:
      this
    • type

      @Stability(Stable) public CfnCapabilityProps.Builder type(String type)
      Parameters:
      type - The type of capability to create. This parameter is required. Valid values are: ACK (AWS Controllers for Kubernetes, which lets you manage AWS resources directly from Kubernetes), ARGOCD (Argo CD for GitOps-based continuous delivery), or KRO (Kube Resource Orchestrator for composing and managing custom Kubernetes resources).
      Returns:
      this
    • configuration

      @Stability(Stable) public CfnCapabilityProps.Builder configuration(IResolvable configuration)
      Parameters:
      configuration - Configuration settings for a capability. The structure of this object varies depending on the capability type.
      Returns:
      this
    • configuration

      @Stability(Stable) public CfnCapabilityProps.Builder configuration(CfnCapability.CapabilityConfigurationProperty configuration)
      Parameters:
      configuration - Configuration settings for a capability. The structure of this object varies depending on the capability type.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnCapabilityProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - An array of key-value pairs to apply to this resource.
      Returns:
      this
    • build

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