/** * 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 namespace Aws { namespace EKS { namespace Model { /** */ class AWS_EKS_API CreateClusterRequest : public EKSRequest { public: 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::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 latest version available in Amazon EKS is used.

*/ 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 latest version available in Amazon EKS is used.

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

The desired Kubernetes version for your cluster. If you don't specify a value * here, the latest version available in Amazon EKS is used.

*/ 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 latest version available in Amazon EKS is used.

*/ 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 latest version available in Amazon EKS is used.

*/ 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 latest version available in Amazon EKS is used.

*/ 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 latest version available in Amazon EKS is used.

*/ 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 latest version available in Amazon EKS is used.

*/ 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 AWS 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 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.

*/ inline const VpcConfigRequest& GetResourcesVpcConfig() const{ return m_resourcesVpcConfig; } /** *

The VPC configuration 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.

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

The VPC configuration 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.

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

The VPC configuration 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.

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

The VPC configuration 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.

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

The VPC configuration 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.

*/ inline CreateClusterRequest& WithResourcesVpcConfig(VpcConfigRequest&& value) { SetResourcesVpcConfig(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 * Amazon 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 * Amazon 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 * Amazon 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 * Amazon 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 * Amazon 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 * Amazon 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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, both of which * you define.

*/ 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; } private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_version; bool m_versionHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; VpcConfigRequest m_resourcesVpcConfig; bool m_resourcesVpcConfigHasBeenSet; Logging m_logging; bool m_loggingHasBeenSet; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; Aws::Vector m_encryptionConfig; bool m_encryptionConfigHasBeenSet; }; } // namespace Model } // namespace EKS } // namespace Aws