Class CfnCapabilityMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.eks.CfnCapabilityMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapabilityMixinProps>
- Enclosing interface:
CfnCapabilityMixinProps
@Stability(Stable)
public static final class CfnCapabilityMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCapabilityMixinProps>
A builder for
CfnCapabilityMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.capabilityName(String capabilityName) Sets the value ofCfnCapabilityMixinProps.getCapabilityName()clusterName(String clusterName) Sets the value ofCfnCapabilityMixinProps.getClusterName()Sets the value ofCfnCapabilityMixinProps.getConfiguration()configuration(IResolvable configuration) Sets the value ofCfnCapabilityMixinProps.getConfiguration()deletePropagationPolicy(String deletePropagationPolicy) Sets the value ofCfnCapabilityMixinProps.getDeletePropagationPolicy()Sets the value ofCfnCapabilityMixinProps.getRoleArn()Sets the value ofCfnCapabilityMixinProps.getTags()Sets the value ofCfnCapabilityMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capabilityName
Sets the value ofCfnCapabilityMixinProps.getCapabilityName()- Parameters:
capabilityName- The unique name of the capability within the cluster.- Returns:
this
-
clusterName
Sets the value ofCfnCapabilityMixinProps.getClusterName()- Parameters:
clusterName- The name of the Amazon EKS cluster that contains this capability.- Returns:
this
-
configuration
Sets the value ofCfnCapabilityMixinProps.getConfiguration()- Parameters:
configuration- The configuration settings for the capability. The structure varies depending on the capability type.- Returns:
this
-
configuration
@Stability(Stable) public CfnCapabilityMixinProps.Builder configuration(CfnCapabilityPropsMixin.CapabilityConfigurationProperty configuration) Sets the value ofCfnCapabilityMixinProps.getConfiguration()- Parameters:
configuration- The configuration settings for the capability. The structure varies depending on the capability type.- Returns:
this
-
deletePropagationPolicy
@Stability(Stable) public CfnCapabilityMixinProps.Builder deletePropagationPolicy(String deletePropagationPolicy) Sets the value ofCfnCapabilityMixinProps.getDeletePropagationPolicy()- Parameters:
deletePropagationPolicy- The delete propagation policy for the capability. 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 ofCfnCapabilityMixinProps.getRoleArn()- Parameters:
roleArn- The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with AWS services.- Returns:
this
-
tags
Sets the value ofCfnCapabilityMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource.- Returns:
this
-
type
Sets the value ofCfnCapabilityMixinProps.getType()- Parameters:
type- The type of capability. Valid values areACK,ARGOCD, orKRO.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapabilityMixinProps>- Returns:
- a new instance of
CfnCapabilityMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-