public static final class CfnClusterProps.Builder
extends java.lang.Object
CfnClusterProps
Constructor and Description |
---|
Builder() |
public CfnClusterProps.Builder resourcesVpcConfig(CfnCluster.ResourcesVpcConfigProperty resourcesVpcConfig)
CfnClusterProps.getResourcesVpcConfig()
resourcesVpcConfig
- The VPC configuration that's used by the cluster control plane. This parameter is required.
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.
this
public CfnClusterProps.Builder resourcesVpcConfig(IResolvable resourcesVpcConfig)
CfnClusterProps.getResourcesVpcConfig()
resourcesVpcConfig
- The VPC configuration that's used by the cluster control plane. This parameter is required.
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.
this
public CfnClusterProps.Builder roleArn(java.lang.String roleArn)
CfnClusterProps.getRoleArn()
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.
For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .this
public CfnClusterProps.Builder encryptionConfig(IResolvable encryptionConfig)
CfnClusterProps.getEncryptionConfig()
encryptionConfig
- The encryption configuration for the cluster.this
public CfnClusterProps.Builder encryptionConfig(java.util.List<? extends java.lang.Object> encryptionConfig)
CfnClusterProps.getEncryptionConfig()
encryptionConfig
- The encryption configuration for the cluster.this
public CfnClusterProps.Builder kubernetesNetworkConfig(IResolvable kubernetesNetworkConfig)
CfnClusterProps.getKubernetesNetworkConfig()
kubernetesNetworkConfig
- The Kubernetes network configuration for the cluster.this
public CfnClusterProps.Builder kubernetesNetworkConfig(CfnCluster.KubernetesNetworkConfigProperty kubernetesNetworkConfig)
CfnClusterProps.getKubernetesNetworkConfig()
kubernetesNetworkConfig
- The Kubernetes network configuration for the cluster.this
public CfnClusterProps.Builder logging(IResolvable logging)
CfnClusterProps.getLogging()
logging
- The logging configuration for your cluster.this
public CfnClusterProps.Builder logging(CfnCluster.LoggingProperty logging)
CfnClusterProps.getLogging()
logging
- The logging configuration for your cluster.this
public CfnClusterProps.Builder name(java.lang.String name)
CfnClusterProps.getName()
name
- The unique name to give to your cluster.this
public CfnClusterProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnClusterProps.getTags()
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 in your IAM user or IAM role used to manage the 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.
this
public CfnClusterProps.Builder version(java.lang.String version)
CfnClusterProps.getVersion()
version
- The desired Kubernetes version for your cluster.
If you don't specify a value here, the latest version available in Amazon EKS is used.this
public CfnClusterProps build()
CfnClusterProps
java.lang.NullPointerException
- if any required attribute was not provided