/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace EKS { namespace Model { /** */ class CreateClusterRequest : public EKSRequest { public: AWS_EKS_API CreateClusterRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; } AWS_EKS_API Aws::String SerializePayload() const override; /** *

The unique name to give to your cluster.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The unique name to give to your cluster.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The unique name to give to your cluster.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The unique name to give to your cluster.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The unique name to give to your cluster.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The unique name to give to your cluster.

*/ inline CreateClusterRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The unique name to give to your cluster.

*/ inline CreateClusterRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The unique name to give to your cluster.

*/ inline CreateClusterRequest& WithName(const char* value) { SetName(value); return *this;} /** *

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.

*/ inline const Aws::String& GetVersion() const{ return m_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.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

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.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

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.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

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.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

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.

*/ inline CreateClusterRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

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.

*/ inline CreateClusterRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

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.

*/ inline CreateClusterRequest& WithVersion(const char* value) { SetVersion(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline CreateClusterRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline CreateClusterRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that provides permissions for * the Kubernetes control plane to make calls to Amazon Web Services API operations * on your behalf. For more information, see Amazon * EKS Service IAM Role in the Amazon EKS User Guide .

*/ inline CreateClusterRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

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. * However, we recommend that you use a dedicated security group for your cluster * control plane.

*/ inline const VpcConfigRequest& GetResourcesVpcConfig() const{ return m_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. * However, we recommend that you use a dedicated security group for your cluster * control plane.

*/ inline bool ResourcesVpcConfigHasBeenSet() const { return m_resourcesVpcConfigHasBeenSet; } /** *

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. * However, we recommend that you use a dedicated security group for your cluster * control plane.

*/ inline void SetResourcesVpcConfig(const VpcConfigRequest& value) { m_resourcesVpcConfigHasBeenSet = true; m_resourcesVpcConfig = value; } /** *

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. * However, we recommend that you use a dedicated security group for your cluster * control plane.

*/ inline void SetResourcesVpcConfig(VpcConfigRequest&& value) { m_resourcesVpcConfigHasBeenSet = true; m_resourcesVpcConfig = std::move(value); } /** *

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. * However, we recommend that you use a dedicated security group for your cluster * control plane.

*/ inline CreateClusterRequest& WithResourcesVpcConfig(const VpcConfigRequest& value) { SetResourcesVpcConfig(value); return *this;} /** *

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. * However, we recommend that you use a dedicated security group for your cluster * control plane.

*/ inline CreateClusterRequest& WithResourcesVpcConfig(VpcConfigRequest&& value) { SetResourcesVpcConfig(std::move(value)); return *this;} /** *

The Kubernetes network configuration for the cluster.

*/ inline const KubernetesNetworkConfigRequest& GetKubernetesNetworkConfig() const{ return m_kubernetesNetworkConfig; } /** *

The Kubernetes network configuration for the cluster.

*/ inline bool KubernetesNetworkConfigHasBeenSet() const { return m_kubernetesNetworkConfigHasBeenSet; } /** *

The Kubernetes network configuration for the cluster.

*/ inline void SetKubernetesNetworkConfig(const KubernetesNetworkConfigRequest& value) { m_kubernetesNetworkConfigHasBeenSet = true; m_kubernetesNetworkConfig = value; } /** *

The Kubernetes network configuration for the cluster.

*/ inline void SetKubernetesNetworkConfig(KubernetesNetworkConfigRequest&& value) { m_kubernetesNetworkConfigHasBeenSet = true; m_kubernetesNetworkConfig = std::move(value); } /** *

The Kubernetes network configuration for the cluster.

*/ inline CreateClusterRequest& WithKubernetesNetworkConfig(const KubernetesNetworkConfigRequest& value) { SetKubernetesNetworkConfig(value); return *this;} /** *

The Kubernetes network configuration for the cluster.

*/ inline CreateClusterRequest& WithKubernetesNetworkConfig(KubernetesNetworkConfigRequest&& value) { SetKubernetesNetworkConfig(std::move(value)); return *this;} /** *

Enable or disable exporting the Kubernetes control plane logs for your * cluster to CloudWatch Logs. By default, cluster control plane logs aren't * exported to CloudWatch Logs. For more information, see Amazon * EKS Cluster control plane logs in the Amazon EKS User Guide * .

CloudWatch Logs ingestion, archive storage, and data * scanning rates apply to exported control plane logs. For more information, see * CloudWatch Pricing.

* */ inline const Logging& GetLogging() const{ return m_logging; } /** *

Enable or disable exporting the Kubernetes control plane logs for your * cluster to CloudWatch Logs. By default, cluster control plane logs aren't * exported to CloudWatch Logs. For more information, see Amazon * EKS Cluster control plane logs in the Amazon EKS User Guide * .

CloudWatch Logs ingestion, archive storage, and data * scanning rates apply to exported control plane logs. For more information, see * CloudWatch Pricing.

* */ inline bool LoggingHasBeenSet() const { return m_loggingHasBeenSet; } /** *

Enable or disable exporting the Kubernetes control plane logs for your * cluster to CloudWatch Logs. By default, cluster control plane logs aren't * exported to CloudWatch Logs. For more information, see Amazon * EKS Cluster control plane logs in the Amazon EKS User Guide * .

CloudWatch Logs ingestion, archive storage, and data * scanning rates apply to exported control plane logs. For more information, see * CloudWatch Pricing.

* */ inline void SetLogging(const Logging& value) { m_loggingHasBeenSet = true; m_logging = value; } /** *

Enable or disable exporting the Kubernetes control plane logs for your * cluster to CloudWatch Logs. By default, cluster control plane logs aren't * exported to CloudWatch Logs. For more information, see Amazon * EKS Cluster control plane logs in the Amazon EKS User Guide * .

CloudWatch Logs ingestion, archive storage, and data * scanning rates apply to exported control plane logs. For more information, see * CloudWatch Pricing.

* */ inline void SetLogging(Logging&& value) { m_loggingHasBeenSet = true; m_logging = std::move(value); } /** *

Enable or disable exporting the Kubernetes control plane logs for your * cluster to CloudWatch Logs. By default, cluster control plane logs aren't * exported to CloudWatch Logs. For more information, see Amazon * EKS Cluster control plane logs in the Amazon EKS User Guide * .

CloudWatch Logs ingestion, archive storage, and data * scanning rates apply to exported control plane logs. For more information, see * CloudWatch Pricing.

* */ inline CreateClusterRequest& WithLogging(const Logging& value) { SetLogging(value); return *this;} /** *

Enable or disable exporting the Kubernetes control plane logs for your * cluster to CloudWatch Logs. By default, cluster control plane logs aren't * exported to CloudWatch Logs. For more information, see Amazon * EKS Cluster control plane logs in the Amazon EKS User Guide * .

CloudWatch Logs ingestion, archive storage, and data * scanning rates apply to exported control plane logs. For more information, see * CloudWatch Pricing.

* */ inline CreateClusterRequest& WithLogging(Logging&& value) { SetLogging(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateClusterRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateClusterRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request.

*/ inline CreateClusterRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The metadata to apply to the cluster to assist with categorization and * organization. Each tag consists of a key and an optional value. You define * both.

*/ inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The encryption configuration for the cluster.

*/ inline const Aws::Vector& GetEncryptionConfig() const{ return m_encryptionConfig; } /** *

The encryption configuration for the cluster.

*/ inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; } /** *

The encryption configuration for the cluster.

*/ inline void SetEncryptionConfig(const Aws::Vector& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; } /** *

The encryption configuration for the cluster.

*/ inline void SetEncryptionConfig(Aws::Vector&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); } /** *

The encryption configuration for the cluster.

*/ inline CreateClusterRequest& WithEncryptionConfig(const Aws::Vector& value) { SetEncryptionConfig(value); return *this;} /** *

The encryption configuration for the cluster.

*/ inline CreateClusterRequest& WithEncryptionConfig(Aws::Vector&& value) { SetEncryptionConfig(std::move(value)); return *this;} /** *

The encryption configuration for the cluster.

*/ inline CreateClusterRequest& AddEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.push_back(value); return *this; } /** *

The encryption configuration for the cluster.

*/ inline CreateClusterRequest& AddEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.push_back(std::move(value)); return *this; } /** *

An object representing the configuration of your local Amazon EKS cluster on * an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, * review Local * clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS * User Guide. This object isn't available for creating Amazon EKS clusters on * the Amazon Web Services cloud.

*/ inline const OutpostConfigRequest& GetOutpostConfig() const{ return m_outpostConfig; } /** *

An object representing the configuration of your local Amazon EKS cluster on * an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, * review Local * clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS * User Guide. This object isn't available for creating Amazon EKS clusters on * the Amazon Web Services cloud.

*/ inline bool OutpostConfigHasBeenSet() const { return m_outpostConfigHasBeenSet; } /** *

An object representing the configuration of your local Amazon EKS cluster on * an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, * review Local * clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS * User Guide. This object isn't available for creating Amazon EKS clusters on * the Amazon Web Services cloud.

*/ inline void SetOutpostConfig(const OutpostConfigRequest& value) { m_outpostConfigHasBeenSet = true; m_outpostConfig = value; } /** *

An object representing the configuration of your local Amazon EKS cluster on * an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, * review Local * clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS * User Guide. This object isn't available for creating Amazon EKS clusters on * the Amazon Web Services cloud.

*/ inline void SetOutpostConfig(OutpostConfigRequest&& value) { m_outpostConfigHasBeenSet = true; m_outpostConfig = std::move(value); } /** *

An object representing the configuration of your local Amazon EKS cluster on * an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, * review Local * clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS * User Guide. This object isn't available for creating Amazon EKS clusters on * the Amazon Web Services cloud.

*/ inline CreateClusterRequest& WithOutpostConfig(const OutpostConfigRequest& value) { SetOutpostConfig(value); return *this;} /** *

An object representing the configuration of your local Amazon EKS cluster on * an Amazon Web Services Outpost. Before creating a local cluster on an Outpost, * review Local * clusters for Amazon EKS on Amazon Web Services Outposts in the Amazon EKS * User Guide. This object isn't available for creating Amazon EKS clusters on * the Amazon Web Services cloud.

*/ inline CreateClusterRequest& WithOutpostConfig(OutpostConfigRequest&& value) { SetOutpostConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; VpcConfigRequest m_resourcesVpcConfig; bool m_resourcesVpcConfigHasBeenSet = false; KubernetesNetworkConfigRequest m_kubernetesNetworkConfig; bool m_kubernetesNetworkConfigHasBeenSet = false; Logging m_logging; bool m_loggingHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Vector m_encryptionConfig; bool m_encryptionConfigHasBeenSet = false; OutpostConfigRequest m_outpostConfig; bool m_outpostConfigHasBeenSet = false; }; } // namespace Model } // namespace EKS } // namespace Aws