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- The unique name of the capability within the cluster. This parameter is required.- Returns:
this
-
clusterName
Sets the value ofCfnCapabilityProps.getClusterName()- Parameters:
clusterName- The name of the Amazon EKS cluster that contains this capability. This parameter is required.- Returns:
this
-
deletePropagationPolicy
@Stability(Stable) public CfnCapabilityProps.Builder deletePropagationPolicy(String deletePropagationPolicy) Sets the value ofCfnCapabilityProps.getDeletePropagationPolicy()- Parameters:
deletePropagationPolicy- The delete propagation policy for the capability. This parameter is required. Currently, the only supported value isRETAIN, which keeps all 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.- Returns:
this
-
type
Sets the value ofCfnCapabilityProps.getType()- Parameters:
type- The type of capability. This parameter is required. Valid values areACK,ARGOCD, orKRO.- Returns:
this
-
configuration
Sets the value ofCfnCapabilityProps.getConfiguration()- Parameters:
configuration- The configuration settings for the capability. The structure 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- The configuration settings for the capability. The structure 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
-