Class CfnCapability.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCapability>
- Enclosing class:
CfnCapability
CfnCapability.-
Method Summary
Modifier and TypeMethodDescriptionbuild()capabilityName(String capabilityName) A unique name for the capability.clusterName(String clusterName) The name of the EKS cluster where you want to create the capability.configuration(IResolvable configuration) Configuration settings for a capability.configuration(CfnCapability.CapabilityConfigurationProperty configuration) Configuration settings for a capability.static CfnCapability.BuilderdeletePropagationPolicy(String deletePropagationPolicy) Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted.The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with AWS services.An array of key-value pairs to apply to this resource.The type of capability to create.
-
Method Details
-
create
@Stability(Stable) public static CfnCapability.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnCapability.Builder.
-
capabilityName
A unique name for the capability.The name must be unique within your cluster and can contain alphanumeric characters, hyphens, and underscores.
- Parameters:
capabilityName- A unique name for the capability. This parameter is required.- Returns:
this- See Also:
-
clusterName
The name of the EKS cluster where you want to create the capability.- Parameters:
clusterName- The name of the EKS cluster where you want to create the capability. This parameter is required.- Returns:
this- See Also:
-
deletePropagationPolicy
@Stability(Stable) public CfnCapability.Builder deletePropagationPolicy(String deletePropagationPolicy) Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted.Currently, the only supported value is RETAIN which retains all Kubernetes resources managed by the capability when the capability is deleted.
- Parameters:
deletePropagationPolicy- Specifies how Kubernetes resources managed by the capability should be handled when the capability is deleted. This parameter is required.- Returns:
this- See Also:
-
roleArn
The Amazon Resource Name (ARN) of the IAM role that the capability uses to interact with AWS services.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.
- 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- See Also:
-
type
The type of capability to create.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).
- Parameters:
type- The type of capability to create. This parameter is required.- Returns:
this- See Also:
-
configuration
Configuration settings for a capability.The structure of this object varies depending on the capability type.
- Parameters:
configuration- Configuration settings for a capability. This parameter is required.- Returns:
this- See Also:
-
configuration
@Stability(Stable) public CfnCapability.Builder configuration(CfnCapability.CapabilityConfigurationProperty configuration) Configuration settings for a capability.The structure of this object varies depending on the capability type.
- Parameters:
configuration- Configuration settings for a capability. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCapability>- Returns:
- a newly built instance of
CfnCapability.
-