@Stability(value=Stable) public static final class CfnCluster.Builder extends Object implements software.amazon.jsii.Builder<CfnCluster>
CfnCluster.| Modifier and Type | Method and Description |
|---|---|
CfnCluster |
build() |
static CfnCluster.Builder |
create(Construct scope,
String id) |
CfnCluster.Builder |
encryptionConfig(IResolvable encryptionConfig)
The encryption configuration for the cluster.
|
CfnCluster.Builder |
encryptionConfig(List<? extends Object> encryptionConfig)
The encryption configuration for the cluster.
|
CfnCluster.Builder |
kubernetesNetworkConfig(CfnCluster.KubernetesNetworkConfigProperty kubernetesNetworkConfig)
The Kubernetes network configuration for the cluster.
|
CfnCluster.Builder |
kubernetesNetworkConfig(IResolvable kubernetesNetworkConfig)
The Kubernetes network configuration for the cluster.
|
CfnCluster.Builder |
logging(CfnCluster.LoggingProperty logging)
The logging configuration for your cluster.
|
CfnCluster.Builder |
logging(IResolvable logging)
The logging configuration for your cluster.
|
CfnCluster.Builder |
name(String name)
The unique name to give to your cluster.
|
CfnCluster.Builder |
outpostConfig(CfnCluster.OutpostConfigProperty outpostConfig)
An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost.
|
CfnCluster.Builder |
outpostConfig(IResolvable outpostConfig)
An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost.
|
CfnCluster.Builder |
resourcesVpcConfig(CfnCluster.ResourcesVpcConfigProperty resourcesVpcConfig)
The VPC configuration that's used by the cluster control plane.
|
CfnCluster.Builder |
resourcesVpcConfig(IResolvable resourcesVpcConfig)
The VPC configuration that's used by the cluster control plane.
|
CfnCluster.Builder |
roleArn(String 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.
|
CfnCluster.Builder |
tags(List<? extends CfnTag> tags)
The metadata that you apply to the cluster to assist with categorization and organization.
|
CfnCluster.Builder |
version(String version)
The desired Kubernetes version for your cluster.
|
@Stability(value=Stable) public static CfnCluster.Builder create(Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnCluster.ClusterLoggingProperty.Builder.@Stability(value=Stable) public CfnCluster.Builder resourcesVpcConfig(CfnCluster.ResourcesVpcConfigProperty resourcesVpcConfig)
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
SecurityGroupIdsandSubnetIdssub-properties.
resourcesVpcConfig - The VPC configuration that's used by the cluster control plane. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder resourcesVpcConfig(IResolvable resourcesVpcConfig)
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
SecurityGroupIdsandSubnetIdssub-properties.
resourcesVpcConfig - The VPC configuration that's used by the cluster control plane. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder roleArn(String roleArn)
For more information, see Amazon EKS Service IAM Role in the Amazon EKS User Guide .
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.this@Stability(value=Stable) public CfnCluster.Builder encryptionConfig(IResolvable encryptionConfig)
encryptionConfig - The encryption configuration for the cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder encryptionConfig(List<? extends Object> encryptionConfig)
encryptionConfig - The encryption configuration for the cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder kubernetesNetworkConfig(IResolvable kubernetesNetworkConfig)
kubernetesNetworkConfig - The Kubernetes network configuration for the cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder kubernetesNetworkConfig(CfnCluster.KubernetesNetworkConfigProperty kubernetesNetworkConfig)
kubernetesNetworkConfig - The Kubernetes network configuration for the cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder logging(IResolvable logging)
logging - The logging configuration for your cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder logging(CfnCluster.LoggingProperty logging)
logging - The logging configuration for your cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder name(String name)
name - The unique name to give to your cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder outpostConfig(IResolvable outpostConfig)
This object isn't available for clusters on the AWS cloud.
outpostConfig - An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder outpostConfig(CfnCluster.OutpostConfigProperty outpostConfig)
This object isn't available for clusters on the AWS cloud.
outpostConfig - An object representing the configuration of your local Amazon EKS cluster on an AWS Outpost. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder tags(List<? extends CfnTag> tags)
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:TagResourceandeks:UntagResourcepermissions 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.
tags - The metadata that you apply to the cluster to assist with categorization and organization. This parameter is required.this@Stability(value=Stable) public CfnCluster.Builder version(String version)
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.
version - The desired Kubernetes version for your cluster. This parameter is required.this@Stability(value=Stable) public CfnCluster build()
build in interface software.amazon.jsii.Builder<CfnCluster>Copyright © 2022. All rights reserved.