Class CfnCluster.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster>
- Enclosing class:
CfnCluster
CfnCluster
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnCluster.Builder
encryptionConfig
(List<? extends Object> encryptionConfig) The encryption configuration for the cluster.encryptionConfig
(IResolvable encryptionConfig) The encryption configuration for the cluster.kubernetesNetworkConfig
(IResolvable kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.kubernetesNetworkConfig
(CfnCluster.KubernetesNetworkConfigProperty kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.logging
(IResolvable logging) The logging configuration for your cluster.logging
(CfnCluster.LoggingProperty logging) The logging configuration for your cluster.The unique name to give to your cluster.outpostConfig
(IResolvable outpostConfig) An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost.outpostConfig
(CfnCluster.OutpostConfigProperty outpostConfig) An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost.resourcesVpcConfig
(IResolvable resourcesVpcConfig) The VPC configuration that's used by the cluster control plane.resourcesVpcConfig
(CfnCluster.ResourcesVpcConfigProperty resourcesVpcConfig) The VPC configuration that's used by the cluster control plane.The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.The metadata that you apply to the cluster to assist with categorization and organization.The desired Kubernetes version for your cluster.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnCluster.Builder
.
-
resourcesVpcConfig
The VPC configuration that's used by the cluster control plane.Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide . You must specify at least two subnets. You can specify up to five security groups, but we recommend that you use a dedicated security group for your cluster control plane.
Updates require replacement of the
SecurityGroupIds
andSubnetIds
sub-properties.- Parameters:
resourcesVpcConfig
- The VPC configuration that's used by the cluster control plane. This parameter is required.- Returns:
this
-
resourcesVpcConfig
@Stability(Stable) public CfnCluster.Builder resourcesVpcConfig(CfnCluster.ResourcesVpcConfigProperty resourcesVpcConfig) The VPC configuration that's used by the cluster control plane.Amazon EKS VPC resources have specific requirements to work properly with Kubernetes. For more information, see Cluster VPC Considerations and Cluster Security Group Considerations in the Amazon EKS User Guide . You must specify at least two subnets. You can specify up to five security groups, but we recommend that you use a dedicated security group for your cluster control plane.
Updates require replacement of the
SecurityGroupIds
andSubnetIds
sub-properties.- Parameters:
resourcesVpcConfig
- The VPC configuration that's used by the cluster control plane. This parameter is required.- Returns:
this
-
roleArn
The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf.For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role that provides permissions for the Kubernetes control plane to make calls to AWS API operations on your behalf. This parameter is required.- Returns:
this
-
encryptionConfig
The encryption configuration for the cluster.- Parameters:
encryptionConfig
- The encryption configuration for the cluster. This parameter is required.- Returns:
this
-
encryptionConfig
@Stability(Stable) public CfnCluster.Builder encryptionConfig(List<? extends Object> encryptionConfig) The encryption configuration for the cluster.- Parameters:
encryptionConfig
- The encryption configuration for the cluster. This parameter is required.- Returns:
this
-
kubernetesNetworkConfig
@Stability(Stable) public CfnCluster.Builder kubernetesNetworkConfig(IResolvable kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.- Parameters:
kubernetesNetworkConfig
- The Kubernetes network configuration for the cluster. This parameter is required.- Returns:
this
-
kubernetesNetworkConfig
@Stability(Stable) public CfnCluster.Builder kubernetesNetworkConfig(CfnCluster.KubernetesNetworkConfigProperty kubernetesNetworkConfig) The Kubernetes network configuration for the cluster.- Parameters:
kubernetesNetworkConfig
- The Kubernetes network configuration for the cluster. This parameter is required.- Returns:
this
-
logging
The logging configuration for your cluster.- Parameters:
logging
- The logging configuration for your cluster. This parameter is required.- Returns:
this
-
logging
The logging configuration for your cluster.- Parameters:
logging
- The logging configuration for your cluster. This parameter is required.- Returns:
this
-
name
The unique name to give to your cluster.- Parameters:
name
- The unique name to give to your cluster. This parameter is required.- Returns:
this
-
outpostConfig
An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost.This object isn't available for clusters on the AWS cloud.
- Parameters:
outpostConfig
- An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This parameter is required.- Returns:
this
-
outpostConfig
@Stability(Stable) public CfnCluster.Builder outpostConfig(CfnCluster.OutpostConfigProperty outpostConfig) An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost.This object isn't available for clusters on the AWS cloud.
- Parameters:
outpostConfig
- An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This parameter is required.- Returns:
this
-
tags
The metadata that you apply to the cluster to assist with categorization and organization.Each tag consists of a key and an optional value, both of which you define. Cluster tags don't propagate to any other resources associated with the cluster.
You must have the
eks:TagResource
andeks:UntagResource
permissions for your IAM principal to manage the AWS CloudFormation stack. If you don't have these permissions, there might be unexpected behavior with stack-level tags propagating to the resource during resource creation and update.- Parameters:
tags
- The metadata that you apply to the cluster to assist with categorization and organization. This parameter is required.- Returns:
this
-
version
The desired Kubernetes version for your cluster.If you don't specify a value here, the default version available in Amazon EKS is used.
The default version might not be the latest version available.
- Parameters:
version
- The desired Kubernetes version for your cluster. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCluster>
- Returns:
- a newly built instance of
CfnCluster
.
-