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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capabilityName(String capabilityName) Sets the value ofCfnCapabilityProps.getCapabilityName()clusterName(String clusterName) Sets the value ofCfnCapabilityProps.getClusterName()configuration(IResolvable configuration) Sets the value ofCfnCapabilityProps.getConfiguration()configuration(CfnCapability.CapabilityConfigurationProperty configuration) Sets the value ofCfnCapabilityProps.getConfiguration()deletePropagationPolicy(String deletePropagationPolicy) Sets the value ofCfnCapabilityProps.getDeletePropagationPolicy()Sets the value ofCfnCapabilityProps.getRoleArn()Sets the value ofCfnCapabilityProps.getTags()Sets the value ofCfnCapabilityProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capabilityName
Sets the value ofCfnCapabilityProps.getCapabilityName()- 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
Sets the value ofCfnCapabilityProps.getClusterName()- 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) Sets the value ofCfnCapabilityProps.getDeletePropagationPolicy()- 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
Sets the value ofCfnCapabilityProps.getRoleArn()- 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
Sets the value ofCfnCapabilityProps.getType()- 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
Sets the value ofCfnCapabilityProps.getConfiguration()- 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) Sets the value ofCfnCapabilityProps.getConfiguration()- Parameters:
configuration- Configuration settings for a capability. The structure of this object varies depending on the capability type.- Returns:
this
-
tags
Sets the value ofCfnCapabilityProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapabilityProps>- Returns:
- a new instance of
CfnCapabilityProps - Throws:
NullPointerException- if any required attribute was not provided
-