/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EKS { namespace Model { /** *

An object representing an Amazon EKS cluster VPC configuration * response.

See Also:

AWS * API Reference

*/ class AWS_EKS_API VpcConfigResponse { public: VpcConfigResponse(); VpcConfigResponse(Aws::Utils::Json::JsonView jsonValue); VpcConfigResponse& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The subnets associated with your cluster.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The subnets associated with your cluster.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The subnets associated with your cluster.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The subnets associated with your cluster.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The subnets associated with your cluster.

*/ inline VpcConfigResponse& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The subnets associated with your cluster.

*/ inline VpcConfigResponse& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The subnets associated with your cluster.

*/ inline VpcConfigResponse& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The subnets associated with your cluster.

*/ inline VpcConfigResponse& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The subnets associated with your cluster.

*/ inline VpcConfigResponse& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline VpcConfigResponse& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline VpcConfigResponse& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline VpcConfigResponse& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline VpcConfigResponse& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The security groups associated with the cross-account elastic network * interfaces that are used to allow communication between your worker nodes and * the Kubernetes control plane.

*/ inline VpcConfigResponse& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline const Aws::String& GetClusterSecurityGroupId() const{ return m_clusterSecurityGroupId; } /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline bool ClusterSecurityGroupIdHasBeenSet() const { return m_clusterSecurityGroupIdHasBeenSet; } /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline void SetClusterSecurityGroupId(const Aws::String& value) { m_clusterSecurityGroupIdHasBeenSet = true; m_clusterSecurityGroupId = value; } /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline void SetClusterSecurityGroupId(Aws::String&& value) { m_clusterSecurityGroupIdHasBeenSet = true; m_clusterSecurityGroupId = std::move(value); } /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline void SetClusterSecurityGroupId(const char* value) { m_clusterSecurityGroupIdHasBeenSet = true; m_clusterSecurityGroupId.assign(value); } /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline VpcConfigResponse& WithClusterSecurityGroupId(const Aws::String& value) { SetClusterSecurityGroupId(value); return *this;} /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline VpcConfigResponse& WithClusterSecurityGroupId(Aws::String&& value) { SetClusterSecurityGroupId(std::move(value)); return *this;} /** *

The cluster security group that was created by Amazon EKS for the cluster. * Managed node groups use this security group for control-plane-to-data-plane * communication.

*/ inline VpcConfigResponse& WithClusterSecurityGroupId(const char* value) { SetClusterSecurityGroupId(value); return *this;} /** *

The VPC associated with your cluster.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC associated with your cluster.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The VPC associated with your cluster.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The VPC associated with your cluster.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The VPC associated with your cluster.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The VPC associated with your cluster.

*/ inline VpcConfigResponse& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC associated with your cluster.

*/ inline VpcConfigResponse& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC associated with your cluster.

*/ inline VpcConfigResponse& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

This parameter indicates whether the Amazon EKS public API server endpoint is * enabled. If the Amazon EKS public API server endpoint is disabled, your * cluster's Kubernetes API server can only receive requests that originate from * within the cluster VPC.

*/ inline bool GetEndpointPublicAccess() const{ return m_endpointPublicAccess; } /** *

This parameter indicates whether the Amazon EKS public API server endpoint is * enabled. If the Amazon EKS public API server endpoint is disabled, your * cluster's Kubernetes API server can only receive requests that originate from * within the cluster VPC.

*/ inline bool EndpointPublicAccessHasBeenSet() const { return m_endpointPublicAccessHasBeenSet; } /** *

This parameter indicates whether the Amazon EKS public API server endpoint is * enabled. If the Amazon EKS public API server endpoint is disabled, your * cluster's Kubernetes API server can only receive requests that originate from * within the cluster VPC.

*/ inline void SetEndpointPublicAccess(bool value) { m_endpointPublicAccessHasBeenSet = true; m_endpointPublicAccess = value; } /** *

This parameter indicates whether the Amazon EKS public API server endpoint is * enabled. If the Amazon EKS public API server endpoint is disabled, your * cluster's Kubernetes API server can only receive requests that originate from * within the cluster VPC.

*/ inline VpcConfigResponse& WithEndpointPublicAccess(bool value) { SetEndpointPublicAccess(value); return *this;} /** *

This parameter indicates whether the Amazon EKS private API server endpoint * is enabled. If the Amazon EKS private API server endpoint is enabled, Kubernetes * API requests that originate from within your cluster's VPC use the private VPC * endpoint instead of traversing the internet. If this value is disabled and you * have worker nodes or AWS Fargate pods in the cluster, then ensure that * publicAccessCidrs includes the necessary CIDR blocks for * communication with the worker nodes or Fargate pods. For more information, see * Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline bool GetEndpointPrivateAccess() const{ return m_endpointPrivateAccess; } /** *

This parameter indicates whether the Amazon EKS private API server endpoint * is enabled. If the Amazon EKS private API server endpoint is enabled, Kubernetes * API requests that originate from within your cluster's VPC use the private VPC * endpoint instead of traversing the internet. If this value is disabled and you * have worker nodes or AWS Fargate pods in the cluster, then ensure that * publicAccessCidrs includes the necessary CIDR blocks for * communication with the worker nodes or Fargate pods. For more information, see * Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline bool EndpointPrivateAccessHasBeenSet() const { return m_endpointPrivateAccessHasBeenSet; } /** *

This parameter indicates whether the Amazon EKS private API server endpoint * is enabled. If the Amazon EKS private API server endpoint is enabled, Kubernetes * API requests that originate from within your cluster's VPC use the private VPC * endpoint instead of traversing the internet. If this value is disabled and you * have worker nodes or AWS Fargate pods in the cluster, then ensure that * publicAccessCidrs includes the necessary CIDR blocks for * communication with the worker nodes or Fargate pods. For more information, see * Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline void SetEndpointPrivateAccess(bool value) { m_endpointPrivateAccessHasBeenSet = true; m_endpointPrivateAccess = value; } /** *

This parameter indicates whether the Amazon EKS private API server endpoint * is enabled. If the Amazon EKS private API server endpoint is enabled, Kubernetes * API requests that originate from within your cluster's VPC use the private VPC * endpoint instead of traversing the internet. If this value is disabled and you * have worker nodes or AWS Fargate pods in the cluster, then ensure that * publicAccessCidrs includes the necessary CIDR blocks for * communication with the worker nodes or Fargate pods. For more information, see * Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline VpcConfigResponse& WithEndpointPrivateAccess(bool value) { SetEndpointPrivateAccess(value); return *this;} /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline const Aws::Vector& GetPublicAccessCidrs() const{ return m_publicAccessCidrs; } /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline bool PublicAccessCidrsHasBeenSet() const { return m_publicAccessCidrsHasBeenSet; } /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline void SetPublicAccessCidrs(const Aws::Vector& value) { m_publicAccessCidrsHasBeenSet = true; m_publicAccessCidrs = value; } /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline void SetPublicAccessCidrs(Aws::Vector&& value) { m_publicAccessCidrsHasBeenSet = true; m_publicAccessCidrs = std::move(value); } /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline VpcConfigResponse& WithPublicAccessCidrs(const Aws::Vector& value) { SetPublicAccessCidrs(value); return *this;} /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline VpcConfigResponse& WithPublicAccessCidrs(Aws::Vector&& value) { SetPublicAccessCidrs(std::move(value)); return *this;} /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline VpcConfigResponse& AddPublicAccessCidrs(const Aws::String& value) { m_publicAccessCidrsHasBeenSet = true; m_publicAccessCidrs.push_back(value); return *this; } /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline VpcConfigResponse& AddPublicAccessCidrs(Aws::String&& value) { m_publicAccessCidrsHasBeenSet = true; m_publicAccessCidrs.push_back(std::move(value)); return *this; } /** *

The CIDR blocks that are allowed access to your cluster's public Kubernetes * API server endpoint. Communication to the endpoint from addresses outside of the * listed CIDR blocks is denied. The default value is 0.0.0.0/0. If * you've disabled private endpoint access and you have worker nodes or AWS Fargate * pods in the cluster, then ensure that the necessary CIDR blocks are listed. For * more information, see Amazon * EKS Cluster Endpoint Access Control in the Amazon EKS User Guide * .

*/ inline VpcConfigResponse& AddPublicAccessCidrs(const char* value) { m_publicAccessCidrsHasBeenSet = true; m_publicAccessCidrs.push_back(value); return *this; } private: Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet; Aws::String m_clusterSecurityGroupId; bool m_clusterSecurityGroupIdHasBeenSet; Aws::String m_vpcId; bool m_vpcIdHasBeenSet; bool m_endpointPublicAccess; bool m_endpointPublicAccessHasBeenSet; bool m_endpointPrivateAccess; bool m_endpointPrivateAccessHasBeenSet; Aws::Vector m_publicAccessCidrs; bool m_publicAccessCidrsHasBeenSet; }; } // namespace Model } // namespace EKS } // namespace Aws