Skip to content
v2.278.0

CfnClusterProps Struct ​

Properties for defining a CfnCluster.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks as eks } from 'aws-cdk-lib';
const cfnClusterProps: eks.CfnClusterProps = {
  resourcesVpcConfig: {
    subnetIds: ['subnetIds'],

    // the properties below are optional
    controlPlaneEgressMode: 'controlPlaneEgressMode',
    endpointPrivateAccess: false,
    endpointPublicAccess: false,
    publicAccessCidrs: ['publicAccessCidrs'],
    securityGroupIds: ['securityGroupIds'],
  },
  roleArn: 'roleArn',

  // the properties below are optional
  accessConfig: {
    authenticationMode: 'authenticationMode',
    bootstrapClusterCreatorAdminPermissions: false,
  },
  activeCertificateAuthorityId: 'activeCertificateAuthorityId',
  bootstrapSelfManagedAddons: false,
  certificateAuthority: {
    active: {
      activatedBy: 'activatedBy',
      id: 'id',
    },
    data: 'data',
  },
  computeConfig: {
    enabled: false,
    nodePools: ['nodePools'],
    nodeRoleArn: 'nodeRoleArn',
  },
  controlPlaneScalingConfig: {
    tier: 'tier',
  },
  deletionProtection: false,
  encryptionConfig: [{
    provider: {
      keyArn: 'keyArn',
    },
    resources: ['resources'],
  }],
  force: false,
  kubeApiServerConfig: {
    eventTtl: 'eventTtl',
    serviceNodePortRange: {
      maxPort: 123,
      minPort: 123,
    },
  },
  kubeControllerManagerConfig: {
    horizontalPodAutoscalerControllerConfig: {
      horizontalPodAutoscalerSyncPeriod: 'horizontalPodAutoscalerSyncPeriod',
    },
    podGcControllerConfig: {
      terminatedPodGcThreshold: 123,
    },
  },
  kubernetesNetworkConfig: {
    elasticLoadBalancing: {
      enabled: false,
      gatewayApi: {
        crds: {
          managed: false,
        },
      },
    },
    ipFamily: 'ipFamily',
    serviceIpv4Cidr: 'serviceIpv4Cidr',
    serviceIpv6Cidr: 'serviceIpv6Cidr',
  },
  kubeSchedulerConfig: {
    nodeResourcesFit: {
      scoringStrategy: {
        resources: [{
          name: 'name',
          weight: 123,
        }],
        type: 'type',
      },
    },
  },
  logging: {
    clusterLogging: {
      enabledTypes: [{
        type: 'type',
      }],
    },
  },
  name: 'name',
  outpostConfig: {
    controlPlaneInstanceType: 'controlPlaneInstanceType',
    outpostArns: ['outpostArns'],

    // the properties below are optional
    controlPlanePlacement: {
      groupName: 'groupName',
      spreadLevel: 'spreadLevel',
    },
    etcdInstanceType: 'etcdInstanceType',
    etcdPlacement: {
      spreadLevel: 'spreadLevel',
    },
  },
  remoteNetworkConfig: {
    remoteNodeNetworks: [{
      cidrs: ['cidrs'],
    }],
    remotePodNetworks: [{
      cidrs: ['cidrs'],
    }],
  },
  rollbackConfig: {
    timeoutMinutes: 123,
  },
  storageConfig: {
    blockStorage: {
      enabled: false,
    },
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  upgradePolicy: {
    supportType: 'supportType',
  },
  version: 'version',
  zonalShiftConfig: {
    enabled: false,
  },
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_eks as eks

cfn_cluster_props = eks.CfnClusterProps(
    resources_vpc_config=eks.CfnCluster.ResourcesVpcConfigProperty(
        subnet_ids=["subnetIds"],

        # the properties below are optional
        control_plane_egress_mode="controlPlaneEgressMode",
        endpoint_private_access=False,
        endpoint_public_access=False,
        public_access_cidrs=["publicAccessCidrs"],
        security_group_ids=["securityGroupIds"]
    ),
    role_arn="roleArn",

    # the properties below are optional
    access_config=eks.CfnCluster.AccessConfigProperty(
        authentication_mode="authenticationMode",
        bootstrap_cluster_creator_admin_permissions=False
    ),
    active_certificate_authority_id="activeCertificateAuthorityId",
    bootstrap_self_managed_addons=False,
    certificate_authority=eks.CfnCluster.CertificateAuthorityProperty(
        active=eks.CfnCluster.ActiveCertificateAuthorityProperty(
            activated_by="activatedBy",
            id="id"
        ),
        data="data"
    ),
    compute_config=eks.CfnCluster.ComputeConfigProperty(
        enabled=False,
        node_pools=["nodePools"],
        node_role_arn="nodeRoleArn"
    ),
    control_plane_scaling_config=eks.CfnCluster.ControlPlaneScalingConfigProperty(
        tier="tier"
    ),
    deletion_protection=False,
    encryption_config=[eks.CfnCluster.EncryptionConfigProperty(
        provider=eks.CfnCluster.ProviderProperty(
            key_arn="keyArn"
        ),
        resources=["resources"]
    )],
    force=False,
    kube_api_server_config=eks.CfnCluster.KubeApiServerConfigProperty(
        event_ttl="eventTtl",
        service_node_port_range=eks.CfnCluster.ServiceNodePortRangeProperty(
            max_port=123,
            min_port=123
        )
    ),
    kube_controller_manager_config=eks.CfnCluster.KubeControllerManagerConfigProperty(
        horizontal_pod_autoscaler_controller_config=eks.CfnCluster.HorizontalPodAutoscalerControllerConfigProperty(
            horizontal_pod_autoscaler_sync_period="horizontalPodAutoscalerSyncPeriod"
        ),
        pod_gc_controller_config=eks.CfnCluster.PodGcControllerConfigProperty(
            terminated_pod_gc_threshold=123
        )
    ),
    kubernetes_network_config=eks.CfnCluster.KubernetesNetworkConfigProperty(
        elastic_load_balancing=eks.CfnCluster.ElasticLoadBalancingProperty(
            enabled=False,
            gateway_api=eks.CfnCluster.GatewayApiProperty(
                crds=eks.CfnCluster.GatewayApiCrdsProperty(
                    managed=False
                )
            )
        ),
        ip_family="ipFamily",
        service_ipv4_cidr="serviceIpv4Cidr",
        service_ipv6_cidr="serviceIpv6Cidr"
    ),
    kube_scheduler_config=eks.CfnCluster.KubeSchedulerConfigProperty(
        node_resources_fit=eks.CfnCluster.NodeResourcesFitConfigProperty(
            scoring_strategy=eks.CfnCluster.ScoringStrategyProperty(
                resources=[eks.CfnCluster.ResourceWeightProperty(
                    name="name",
                    weight=123
                )],
                type="type"
            )
        )
    ),
    logging=eks.CfnCluster.LoggingProperty(
        cluster_logging=eks.CfnCluster.ClusterLoggingProperty(
            enabled_types=[eks.CfnCluster.LoggingTypeConfigProperty(
                type="type"
            )]
        )
    ),
    name="name",
    outpost_config=eks.CfnCluster.OutpostConfigProperty(
        control_plane_instance_type="controlPlaneInstanceType",
        outpost_arns=["outpostArns"],

        # the properties below are optional
        control_plane_placement=eks.CfnCluster.ControlPlanePlacementProperty(
            group_name="groupName",
            spread_level="spreadLevel"
        ),
        etcd_instance_type="etcdInstanceType",
        etcd_placement=eks.CfnCluster.EtcdPlacementProperty(
            spread_level="spreadLevel"
        )
    ),
    remote_network_config=eks.CfnCluster.RemoteNetworkConfigProperty(
        remote_node_networks=[eks.CfnCluster.RemoteNodeNetworkProperty(
            cidrs=["cidrs"]
        )],
        remote_pod_networks=[eks.CfnCluster.RemotePodNetworkProperty(
            cidrs=["cidrs"]
        )]
    ),
    rollback_config=eks.CfnCluster.RollbackConfigProperty(
        timeout_minutes=123
    ),
    storage_config=eks.CfnCluster.StorageConfigProperty(
        block_storage=eks.CfnCluster.BlockStorageProperty(
            enabled=False
        )
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    upgrade_policy=eks.CfnCluster.UpgradePolicyProperty(
        support_type="supportType"
    ),
    version="version",
    zonal_shift_config=eks.CfnCluster.ZonalShiftConfigProperty(
        enabled=False
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.eks.*;

CfnClusterProps cfnClusterProps = CfnClusterProps.builder()
        .resourcesVpcConfig(ResourcesVpcConfigProperty.builder()
                .subnetIds(List.of("subnetIds"))

                // the properties below are optional
                .controlPlaneEgressMode("controlPlaneEgressMode")
                .endpointPrivateAccess(false)
                .endpointPublicAccess(false)
                .publicAccessCidrs(List.of("publicAccessCidrs"))
                .securityGroupIds(List.of("securityGroupIds"))
                .build())
        .roleArn("roleArn")

        // the properties below are optional
        .accessConfig(AccessConfigProperty.builder()
                .authenticationMode("authenticationMode")
                .bootstrapClusterCreatorAdminPermissions(false)
                .build())
        .activeCertificateAuthorityId("activeCertificateAuthorityId")
        .bootstrapSelfManagedAddons(false)
        .certificateAuthority(CertificateAuthorityProperty.builder()
                .active(ActiveCertificateAuthorityProperty.builder()
                        .activatedBy("activatedBy")
                        .id("id")
                        .build())
                .data("data")
                .build())
        .computeConfig(ComputeConfigProperty.builder()
                .enabled(false)
                .nodePools(List.of("nodePools"))
                .nodeRoleArn("nodeRoleArn")
                .build())
        .controlPlaneScalingConfig(ControlPlaneScalingConfigProperty.builder()
                .tier("tier")
                .build())
        .deletionProtection(false)
        .encryptionConfig(List.of(EncryptionConfigProperty.builder()
                .provider(ProviderProperty.builder()
                        .keyArn("keyArn")
                        .build())
                .resources(List.of("resources"))
                .build()))
        .force(false)
        .kubeApiServerConfig(KubeApiServerConfigProperty.builder()
                .eventTtl("eventTtl")
                .serviceNodePortRange(ServiceNodePortRangeProperty.builder()
                        .maxPort(123)
                        .minPort(123)
                        .build())
                .build())
        .kubeControllerManagerConfig(KubeControllerManagerConfigProperty.builder()
                .horizontalPodAutoscalerControllerConfig(HorizontalPodAutoscalerControllerConfigProperty.builder()
                        .horizontalPodAutoscalerSyncPeriod("horizontalPodAutoscalerSyncPeriod")
                        .build())
                .podGcControllerConfig(PodGcControllerConfigProperty.builder()
                        .terminatedPodGcThreshold(123)
                        .build())
                .build())
        .kubernetesNetworkConfig(KubernetesNetworkConfigProperty.builder()
                .elasticLoadBalancing(ElasticLoadBalancingProperty.builder()
                        .enabled(false)
                        .gatewayApi(GatewayApiProperty.builder()
                                .crds(GatewayApiCrdsProperty.builder()
                                        .managed(false)
                                        .build())
                                .build())
                        .build())
                .ipFamily("ipFamily")
                .serviceIpv4Cidr("serviceIpv4Cidr")
                .serviceIpv6Cidr("serviceIpv6Cidr")
                .build())
        .kubeSchedulerConfig(KubeSchedulerConfigProperty.builder()
                .nodeResourcesFit(NodeResourcesFitConfigProperty.builder()
                        .scoringStrategy(ScoringStrategyProperty.builder()
                                .resources(List.of(ResourceWeightProperty.builder()
                                        .name("name")
                                        .weight(123)
                                        .build()))
                                .type("type")
                                .build())
                        .build())
                .build())
        .logging(LoggingProperty.builder()
                .clusterLogging(ClusterLoggingProperty.builder()
                        .enabledTypes(List.of(LoggingTypeConfigProperty.builder()
                                .type("type")
                                .build()))
                        .build())
                .build())
        .name("name")
        .outpostConfig(OutpostConfigProperty.builder()
                .controlPlaneInstanceType("controlPlaneInstanceType")
                .outpostArns(List.of("outpostArns"))

                // the properties below are optional
                .controlPlanePlacement(ControlPlanePlacementProperty.builder()
                        .groupName("groupName")
                        .spreadLevel("spreadLevel")
                        .build())
                .etcdInstanceType("etcdInstanceType")
                .etcdPlacement(EtcdPlacementProperty.builder()
                        .spreadLevel("spreadLevel")
                        .build())
                .build())
        .remoteNetworkConfig(RemoteNetworkConfigProperty.builder()
                .remoteNodeNetworks(List.of(RemoteNodeNetworkProperty.builder()
                        .cidrs(List.of("cidrs"))
                        .build()))
                .remotePodNetworks(List.of(RemotePodNetworkProperty.builder()
                        .cidrs(List.of("cidrs"))
                        .build()))
                .build())
        .rollbackConfig(RollbackConfigProperty.builder()
                .timeoutMinutes(123)
                .build())
        .storageConfig(StorageConfigProperty.builder()
                .blockStorage(BlockStorageProperty.builder()
                        .enabled(false)
                        .build())
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .upgradePolicy(UpgradePolicyProperty.builder()
                .supportType("supportType")
                .build())
        .version("version")
        .zonalShiftConfig(ZonalShiftConfigProperty.builder()
                .enabled(false)
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EKS;

var cfnClusterProps = new CfnClusterProps {
    ResourcesVpcConfig = new ResourcesVpcConfigProperty {
        SubnetIds = new [] { "subnetIds" },

        // the properties below are optional
        ControlPlaneEgressMode = "controlPlaneEgressMode",
        EndpointPrivateAccess = false,
        EndpointPublicAccess = false,
        PublicAccessCidrs = new [] { "publicAccessCidrs" },
        SecurityGroupIds = new [] { "securityGroupIds" }
    },
    RoleArn = "roleArn",

    // the properties below are optional
    AccessConfig = new AccessConfigProperty {
        AuthenticationMode = "authenticationMode",
        BootstrapClusterCreatorAdminPermissions = false
    },
    ActiveCertificateAuthorityId = "activeCertificateAuthorityId",
    BootstrapSelfManagedAddons = false,
    CertificateAuthority = new CertificateAuthorityProperty {
        Active = new ActiveCertificateAuthorityProperty {
            ActivatedBy = "activatedBy",
            Id = "id"
        },
        Data = "data"
    },
    ComputeConfig = new ComputeConfigProperty {
        Enabled = false,
        NodePools = new [] { "nodePools" },
        NodeRoleArn = "nodeRoleArn"
    },
    ControlPlaneScalingConfig = new ControlPlaneScalingConfigProperty {
        Tier = "tier"
    },
    DeletionProtection = false,
    EncryptionConfig = new [] { new EncryptionConfigProperty {
        Provider = new ProviderProperty {
            KeyArn = "keyArn"
        },
        Resources = new [] { "resources" }
    } },
    Force = false,
    KubeApiServerConfig = new KubeApiServerConfigProperty {
        EventTtl = "eventTtl",
        ServiceNodePortRange = new ServiceNodePortRangeProperty {
            MaxPort = 123,
            MinPort = 123
        }
    },
    KubeControllerManagerConfig = new KubeControllerManagerConfigProperty {
        HorizontalPodAutoscalerControllerConfig = new HorizontalPodAutoscalerControllerConfigProperty {
            HorizontalPodAutoscalerSyncPeriod = "horizontalPodAutoscalerSyncPeriod"
        },
        PodGcControllerConfig = new PodGcControllerConfigProperty {
            TerminatedPodGcThreshold = 123
        }
    },
    KubernetesNetworkConfig = new KubernetesNetworkConfigProperty {
        ElasticLoadBalancing = new ElasticLoadBalancingProperty {
            Enabled = false,
            GatewayApi = new GatewayApiProperty {
                Crds = new GatewayApiCrdsProperty {
                    Managed = false
                }
            }
        },
        IpFamily = "ipFamily",
        ServiceIpv4Cidr = "serviceIpv4Cidr",
        ServiceIpv6Cidr = "serviceIpv6Cidr"
    },
    KubeSchedulerConfig = new KubeSchedulerConfigProperty {
        NodeResourcesFit = new NodeResourcesFitConfigProperty {
            ScoringStrategy = new ScoringStrategyProperty {
                Resources = new [] { new ResourceWeightProperty {
                    Name = "name",
                    Weight = 123
                } },
                Type = "type"
            }
        }
    },
    Logging = new LoggingProperty {
        ClusterLogging = new ClusterLoggingProperty {
            EnabledTypes = new [] { new LoggingTypeConfigProperty {
                Type = "type"
            } }
        }
    },
    Name = "name",
    OutpostConfig = new OutpostConfigProperty {
        ControlPlaneInstanceType = "controlPlaneInstanceType",
        OutpostArns = new [] { "outpostArns" },

        // the properties below are optional
        ControlPlanePlacement = new ControlPlanePlacementProperty {
            GroupName = "groupName",
            SpreadLevel = "spreadLevel"
        },
        EtcdInstanceType = "etcdInstanceType",
        EtcdPlacement = new EtcdPlacementProperty {
            SpreadLevel = "spreadLevel"
        }
    },
    RemoteNetworkConfig = new RemoteNetworkConfigProperty {
        RemoteNodeNetworks = new [] { new RemoteNodeNetworkProperty {
            Cidrs = new [] { "cidrs" }
        } },
        RemotePodNetworks = new [] { new RemotePodNetworkProperty {
            Cidrs = new [] { "cidrs" }
        } }
    },
    RollbackConfig = new RollbackConfigProperty {
        TimeoutMinutes = 123
    },
    StorageConfig = new StorageConfigProperty {
        BlockStorage = new BlockStorageProperty {
            Enabled = false
        }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    UpgradePolicy = new UpgradePolicyProperty {
        SupportType = "supportType"
    },
    Version = "version",
    ZonalShiftConfig = new ZonalShiftConfigProperty {
        Enabled = false
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnClusterProps := &CfnClusterProps{
	ResourcesVpcConfig: &ResourcesVpcConfigProperty{
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},

		// the properties below are optional
		ControlPlaneEgressMode: jsii.String("controlPlaneEgressMode"),
		EndpointPrivateAccess: jsii.Boolean(false),
		EndpointPublicAccess: jsii.Boolean(false),
		PublicAccessCidrs: []*string{
			jsii.String("publicAccessCidrs"),
		},
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
	},
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	AccessConfig: &AccessConfigProperty{
		AuthenticationMode: jsii.String("authenticationMode"),
		BootstrapClusterCreatorAdminPermissions: jsii.Boolean(false),
	},
	ActiveCertificateAuthorityId: jsii.String("activeCertificateAuthorityId"),
	BootstrapSelfManagedAddons: jsii.Boolean(false),
	CertificateAuthority: &CertificateAuthorityProperty{
		Active: &ActiveCertificateAuthorityProperty{
			ActivatedBy: jsii.String("activatedBy"),
			Id: jsii.String("id"),
		},
		Data: jsii.String("data"),
	},
	ComputeConfig: &ComputeConfigProperty{
		Enabled: jsii.Boolean(false),
		NodePools: []*string{
			jsii.String("nodePools"),
		},
		NodeRoleArn: jsii.String("nodeRoleArn"),
	},
	ControlPlaneScalingConfig: &ControlPlaneScalingConfigProperty{
		Tier: jsii.String("tier"),
	},
	DeletionProtection: jsii.Boolean(false),
	EncryptionConfig: []interface{}{
		&EncryptionConfigProperty{
			Provider: &ProviderProperty{
				KeyArn: jsii.String("keyArn"),
			},
			Resources: []*string{
				jsii.String("resources"),
			},
		},
	},
	Force: jsii.Boolean(false),
	KubeApiServerConfig: &KubeApiServerConfigProperty{
		EventTtl: jsii.String("eventTtl"),
		ServiceNodePortRange: &ServiceNodePortRangeProperty{
			MaxPort: jsii.Number(123),
			MinPort: jsii.Number(123),
		},
	},
	KubeControllerManagerConfig: &KubeControllerManagerConfigProperty{
		HorizontalPodAutoscalerControllerConfig: &HorizontalPodAutoscalerControllerConfigProperty{
			HorizontalPodAutoscalerSyncPeriod: jsii.String("horizontalPodAutoscalerSyncPeriod"),
		},
		PodGcControllerConfig: &PodGcControllerConfigProperty{
			TerminatedPodGcThreshold: jsii.Number(123),
		},
	},
	KubernetesNetworkConfig: &KubernetesNetworkConfigProperty{
		ElasticLoadBalancing: &ElasticLoadBalancingProperty{
			Enabled: jsii.Boolean(false),
			GatewayApi: &GatewayApiProperty{
				Crds: &GatewayApiCrdsProperty{
					Managed: jsii.Boolean(false),
				},
			},
		},
		IpFamily: jsii.String("ipFamily"),
		ServiceIpv4Cidr: jsii.String("serviceIpv4Cidr"),
		ServiceIpv6Cidr: jsii.String("serviceIpv6Cidr"),
	},
	KubeSchedulerConfig: &KubeSchedulerConfigProperty{
		NodeResourcesFit: &NodeResourcesFitConfigProperty{
			ScoringStrategy: &ScoringStrategyProperty{
				Resources: []interface{}{
					&ResourceWeightProperty{
						Name: jsii.String("name"),
						Weight: jsii.Number(123),
					},
				},
				Type: jsii.String("type"),
			},
		},
	},
	Logging: &LoggingProperty{
		ClusterLogging: &ClusterLoggingProperty{
			EnabledTypes: []interface{}{
				&LoggingTypeConfigProperty{
					Type: jsii.String("type"),
				},
			},
		},
	},
	Name: jsii.String("name"),
	OutpostConfig: &OutpostConfigProperty{
		ControlPlaneInstanceType: jsii.String("controlPlaneInstanceType"),
		OutpostArns: []*string{
			jsii.String("outpostArns"),
		},

		// the properties below are optional
		ControlPlanePlacement: &ControlPlanePlacementProperty{
			GroupName: jsii.String("groupName"),
			SpreadLevel: jsii.String("spreadLevel"),
		},
		EtcdInstanceType: jsii.String("etcdInstanceType"),
		EtcdPlacement: &EtcdPlacementProperty{
			SpreadLevel: jsii.String("spreadLevel"),
		},
	},
	RemoteNetworkConfig: &RemoteNetworkConfigProperty{
		RemoteNodeNetworks: []interface{}{
			&RemoteNodeNetworkProperty{
				Cidrs: []*string{
					jsii.String("cidrs"),
				},
			},
		},
		RemotePodNetworks: []interface{}{
			&RemotePodNetworkProperty{
				Cidrs: []*string{
					jsii.String("cidrs"),
				},
			},
		},
	},
	RollbackConfig: &RollbackConfigProperty{
		TimeoutMinutes: jsii.Number(123),
	},
	StorageConfig: &StorageConfigProperty{
		BlockStorage: &BlockStorageProperty{
			Enabled: jsii.Boolean(false),
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	UpgradePolicy: &UpgradePolicyProperty{
		SupportType: jsii.String("supportType"),
	},
	Version: jsii.String("version"),
	ZonalShiftConfig: &ZonalShiftConfigProperty{
		Enabled: jsii.Boolean(false),
	},
}

Properties ​

accessConfigoptionalIResolvable | CfnCluster.AccessConfigPropertyaccess_configoptionaltyping.Union[IResolvable, AccessConfigProperty]accessConfigoptionalIResolvableAccessConfigoptionalIResolvableAccessConfigoptionalinterface{} #
The access configuration for the cluster.
activeCertificateAuthorityIdoptionalstringactive_certificate_authority_idoptionalstractiveCertificateAuthorityIdoptionalStringActiveCertificateAuthorityIdoptionalstringActiveCertificateAuthorityIdoptional*string #
The ID of the certificate authority to activate as the cluster's signing CA.

Setting or changing this value activates the specified CA (the previously active CA becomes trusted).

bootstrapSelfManagedAddonsoptionalboolean | IResolvablebootstrap_self_managed_addonsoptionaltyping.Union[bool, IResolvable]bootstrapSelfManagedAddonsoptionalBooleanBootstrapSelfManagedAddonsoptionalboolBootstrapSelfManagedAddonsoptionalinterface{} #
If you set this value to `False` when creating a cluster, the default networking add-ons will not be installed.

The default networking add-ons include vpc-cni , coredns , and kube-proxy .

Use this option when you plan to install third-party alternative add-ons or self-manage the default networking add-ons.

certificateAuthorityoptionalIResolvable | CfnCluster.CertificateAuthorityPropertycertificate_authorityoptionaltyping.Union[IResolvable, CertificateAuthorityProperty]certificateAuthorityoptionalIResolvableCertificateAuthorityoptionalIResolvableCertificateAuthorityoptionalinterface{} #
The certificate authority information for the cluster, including the trust bundle and the currently active signing certificate authority.
computeConfigoptionalIResolvable | CfnCluster.ComputeConfigPropertycompute_configoptionaltyping.Union[IResolvable, ComputeConfigProperty]computeConfigoptionalIResolvableComputeConfigoptionalIResolvableComputeConfigoptionalinterface{} #
Indicates the current configuration of the compute capability on your EKS Auto Mode cluster.
notes

For example, if the capability is enabled or disabled. If the compute capability is enabled, EKS Auto Mode will create and delete EC2 Managed Instances in your AWS account. For more information, see EKS Auto Mode compute capability in the Amazon EKS User Guide .

controlPlaneScalingConfigoptionalIResolvable | CfnCluster.ControlPlaneScalingConfigPropertycontrol_plane_scaling_configoptionaltyping.Union[IResolvable, ControlPlaneScalingConfigProperty]controlPlaneScalingConfigoptionalIResolvableControlPlaneScalingConfigoptionalIResolvableControlPlaneScalingConfigoptionalinterface{} #
The control plane scaling tier configuration.

For more information, see EKS Provisioned Control Plane in the Amazon EKS User Guide.

deletionProtectionoptionalboolean | IResolvabledeletion_protectionoptionaltyping.Union[bool, IResolvable]deletionProtectionoptionalBooleanDeletionProtectionoptionalboolDeletionProtectionoptionalinterface{} #
The current deletion protection setting for the cluster.

When true , deletion protection is enabled and the cluster cannot be deleted until protection is disabled. When false , the cluster can be deleted normally. This setting only applies to clusters in an active state.

encryptionConfigoptionalIResolvable | IResolvable | CfnCluster.EncryptionConfigProperty[]encryption_configoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EncryptionConfigProperty]]]encryptionConfigoptionalIResolvableEncryptionConfigoptionalIResolvableEncryptionConfigoptionalinterface{} #
The encryption configuration for the cluster.
forceoptionalboolean | IResolvableforceoptionaltyping.Union[bool, IResolvable]forceoptionalBooleanForceoptionalboolForceoptionalinterface{} = false #
Set this value to `true` to override upgrade-blocking readiness checks when updating a cluster.
kubeApiServerConfigoptionalIResolvable | CfnCluster.KubeApiServerConfigPropertykube_api_server_configoptionaltyping.Union[IResolvable, KubeApiServerConfigProperty]kubeApiServerConfigoptionalIResolvableKubeApiServerConfigoptionalIResolvableKubeApiServerConfigoptionalinterface{} #
The configuration for the Kubernetes API server on an Amazon EKS cluster.
kubeControllerManagerConfigoptionalIResolvable | CfnCluster.KubeControllerManagerConfigPropertykube_controller_manager_configoptionaltyping.Union[IResolvable, KubeControllerManagerConfigProperty]kubeControllerManagerConfigoptionalIResolvableKubeControllerManagerConfigoptionalIResolvableKubeControllerManagerConfigoptionalinterface{} #
The configuration for the Kubernetes controller manager on an Amazon EKS cluster.
kubernetesNetworkConfigoptionalIResolvable | CfnCluster.KubernetesNetworkConfigPropertykubernetes_network_configoptionaltyping.Union[IResolvable, KubernetesNetworkConfigProperty]kubernetesNetworkConfigoptionalIResolvableKubernetesNetworkConfigoptionalIResolvableKubernetesNetworkConfigoptionalinterface{} #
The Kubernetes network configuration for the cluster.
kubeSchedulerConfigoptionalIResolvable | CfnCluster.KubeSchedulerConfigPropertykube_scheduler_configoptionaltyping.Union[IResolvable, KubeSchedulerConfigProperty]kubeSchedulerConfigoptionalIResolvableKubeSchedulerConfigoptionalIResolvableKubeSchedulerConfigoptionalinterface{} #
The configuration for the Kubernetes scheduler on an Amazon EKS cluster.
loggingoptionalIResolvable | CfnCluster.LoggingPropertyloggingoptionaltyping.Union[IResolvable, LoggingProperty]loggingoptionalIResolvableLoggingoptionalIResolvableLoggingoptionalinterface{} #
The logging configuration for your cluster.
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string #
The unique name to give to your cluster.
notes

The name can contain only alphanumeric characters (case-sensitive) and hyphens. It must start with an alphanumeric character and can't be longer than 100 characters. The name must be unique within the AWS Region and AWS account that you're creating the cluster in. Note that underscores can't be used in CloudFormation .

outpostConfigoptionalIResolvable | CfnCluster.OutpostConfigPropertyoutpost_configoptionaltyping.Union[IResolvable, OutpostConfigProperty]outpostConfigoptionalIResolvableOutpostConfigoptionalIResolvableOutpostConfigoptionalinterface{} #
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.

remoteNetworkConfigoptionalIResolvable | CfnCluster.RemoteNetworkConfigPropertyremote_network_configoptionaltyping.Union[IResolvable, RemoteNetworkConfigProperty]remoteNetworkConfigoptionalIResolvableRemoteNetworkConfigoptionalIResolvableRemoteNetworkConfigoptionalinterface{} #
The configuration in the cluster for EKS Hybrid Nodes.

You can add, change, or remove this configuration after the cluster is created.

resourcesVpcConfigIResolvable | CfnCluster.ResourcesVpcConfigPropertyresources_vpc_configtyping.Union[IResolvable, ResourcesVpcConfigProperty]resourcesVpcConfigIResolvableResourcesVpcConfigIResolvableResourcesVpcConfiginterface{} required #
The VPC configuration that's used by the cluster control plane.
notes

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.

roleArnstring | IRoleRefrole_arntyping.Union[str, IRoleRef]roleArnStringRoleArnstringRoleArninterface{} required #
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 .

rollbackConfigoptionalIResolvable | CfnCluster.RollbackConfigPropertyrollback_configoptionaltyping.Union[IResolvable, RollbackConfigProperty]rollbackConfigoptionalIResolvableRollbackConfigoptionalIResolvableRollbackConfigoptionalinterface{} #
The rollback configuration to use for the cluster version rollback.
storageConfigoptionalIResolvable | CfnCluster.StorageConfigPropertystorage_configoptionaltyping.Union[IResolvable, StorageConfigProperty]storageConfigoptionalIResolvableStorageConfigoptionalIResolvableStorageConfigoptionalinterface{} #
Indicates the current configuration of the block storage capability on your EKS Auto Mode cluster.
notes

For example, if the capability is enabled or disabled. If the block storage capability is enabled, EKS Auto Mode will create and delete EBS volumes in your AWS account. For more information, see EKS Auto Mode block storage capability in the Amazon EKS User Guide .

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The metadata that you apply to the cluster to assist with categorization and organization.
notes

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 and eks:UntagResource permissions for your IAM principal 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.

upgradePolicyoptionalIResolvable | CfnCluster.UpgradePolicyPropertyupgrade_policyoptionaltyping.Union[IResolvable, UpgradePolicyProperty]upgradePolicyoptionalIResolvableUpgradePolicyoptionalIResolvableUpgradePolicyoptionalinterface{} #
This value indicates if extended support is enabled or disabled for the cluster.
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #
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.

zonalShiftConfigoptionalIResolvable | CfnCluster.ZonalShiftConfigPropertyzonal_shift_configoptionaltyping.Union[IResolvable, ZonalShiftConfigProperty]zonalShiftConfigoptionalIResolvableZonalShiftConfigoptionalIResolvableZonalShiftConfigoptionalinterface{} #
The configuration for zonal shift for the cluster.