Struct aws_sdk_eks::input::CreateNodegroupInput
source · [−]#[non_exhaustive]pub struct CreateNodegroupInput {Show 18 fields
pub cluster_name: Option<String>,
pub nodegroup_name: Option<String>,
pub scaling_config: Option<NodegroupScalingConfig>,
pub disk_size: Option<i32>,
pub subnets: Option<Vec<String>>,
pub instance_types: Option<Vec<String>>,
pub ami_type: Option<AmiTypes>,
pub remote_access: Option<RemoteAccessConfig>,
pub node_role: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub taints: Option<Vec<Taint>>,
pub tags: Option<HashMap<String, String>>,
pub client_request_token: Option<String>,
pub launch_template: Option<LaunchTemplateSpecification>,
pub update_config: Option<NodegroupUpdateConfig>,
pub capacity_type: Option<CapacityTypes>,
pub version: Option<String>,
pub release_version: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cluster_name: Option<String>
The name of the cluster to create the node group in.
nodegroup_name: Option<String>
The unique name to give your node group.
scaling_config: Option<NodegroupScalingConfig>
The scaling configuration details for the Auto Scaling group that is created for your node group.
disk_size: Option<i32>
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB. If you specify launchTemplate
, then don't specify diskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
subnets: Option<Vec<String>>
The subnets to use for the Auto Scaling group that is created for your node group. If you specify launchTemplate
, then don't specify SubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
instance_types: Option<Vec<String>>
Specify the instance types for a node group. If you specify a GPU instance type, be sure to specify AL2_x86_64_GPU
with the amiType
parameter. If you specify launchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types for instanceTypes
. If however, you specify an instance type in your launch template and specify any instanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or for instanceTypes
, then t3.medium
is used, by default. If you specify Spot
for capacityType
, then we recommend specifying multiple values for instanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.
ami_type: Option<AmiTypes>
The AMI type for your node group. GPU instance types should use the AL2_x86_64_GPU
AMI type. Non-GPU instances should use the AL2_x86_64
AMI type. Arm instances should use the AL2_ARM_64
AMI type. All types use the Amazon EKS optimized Amazon Linux 2 AMI. If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify amiType
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
remote_access: Option<RemoteAccessConfig>
The remote access (SSH) configuration to use with your node group. If you specify launchTemplate
, then don't specify remoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
node_role: Option<String>
The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker node kubelet
daemon makes calls to Amazon Web Services APIs on your behalf. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specify launchTemplate
, then don't specify IamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
labels: Option<HashMap<String, String>>
The Kubernetes labels to be applied to the nodes in the node group when they are created.
taints: Option<Vec<Taint>>
The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.
The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
client_request_token: Option<String>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
launch_template: Option<LaunchTemplateSpecification>
An object representing a node group's launch template specification. If specified, then do not specify instanceTypes
, diskSize
, or remoteAccess
and make sure that the launch template meets the requirements in launchTemplateSpecification
.
update_config: Option<NodegroupUpdateConfig>
The node group update configuration.
capacity_type: Option<CapacityTypes>
The capacity type for your node group.
version: Option<String>
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify version
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
release_version: Option<String>
The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For more information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify releaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Implementations
sourceimpl CreateNodegroupInput
impl CreateNodegroupInput
sourcepub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateNodegroup, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
self,
_config: &Config
) -> Result<Operation<CreateNodegroup, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<CreateNodegroup
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateNodegroupInput
sourceimpl CreateNodegroupInput
impl CreateNodegroupInput
sourcepub fn cluster_name(&self) -> Option<&str>
pub fn cluster_name(&self) -> Option<&str>
The name of the cluster to create the node group in.
sourcepub fn nodegroup_name(&self) -> Option<&str>
pub fn nodegroup_name(&self) -> Option<&str>
The unique name to give your node group.
sourcepub fn scaling_config(&self) -> Option<&NodegroupScalingConfig>
pub fn scaling_config(&self) -> Option<&NodegroupScalingConfig>
The scaling configuration details for the Auto Scaling group that is created for your node group.
sourcepub fn disk_size(&self) -> Option<i32>
pub fn disk_size(&self) -> Option<i32>
The root device disk size (in GiB) for your node group instances. The default disk size is 20 GiB. If you specify launchTemplate
, then don't specify diskSize
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
sourcepub fn subnets(&self) -> Option<&[String]>
pub fn subnets(&self) -> Option<&[String]>
The subnets to use for the Auto Scaling group that is created for your node group. If you specify launchTemplate
, then don't specify SubnetId
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
sourcepub fn instance_types(&self) -> Option<&[String]>
pub fn instance_types(&self) -> Option<&[String]>
Specify the instance types for a node group. If you specify a GPU instance type, be sure to specify AL2_x86_64_GPU
with the amiType
parameter. If you specify launchTemplate
, then you can specify zero or one instance type in your launch template or you can specify 0-20 instance types for instanceTypes
. If however, you specify an instance type in your launch template and specify any instanceTypes
, the node group deployment will fail. If you don't specify an instance type in a launch template or for instanceTypes
, then t3.medium
is used, by default. If you specify Spot
for capacityType
, then we recommend specifying multiple values for instanceTypes
. For more information, see Managed node group capacity types and Launch template support in the Amazon EKS User Guide.
sourcepub fn ami_type(&self) -> Option<&AmiTypes>
pub fn ami_type(&self) -> Option<&AmiTypes>
The AMI type for your node group. GPU instance types should use the AL2_x86_64_GPU
AMI type. Non-GPU instances should use the AL2_x86_64
AMI type. Arm instances should use the AL2_ARM_64
AMI type. All types use the Amazon EKS optimized Amazon Linux 2 AMI. If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify amiType
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
sourcepub fn remote_access(&self) -> Option<&RemoteAccessConfig>
pub fn remote_access(&self) -> Option<&RemoteAccessConfig>
The remote access (SSH) configuration to use with your node group. If you specify launchTemplate
, then don't specify remoteAccess
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
sourcepub fn node_role(&self) -> Option<&str>
pub fn node_role(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the IAM role to associate with your node group. The Amazon EKS worker node kubelet
daemon makes calls to Amazon Web Services APIs on your behalf. Nodes receive permissions for these API calls through an IAM instance profile and associated policies. Before you can launch nodes and register them into a cluster, you must create an IAM role for those nodes to use when they are launched. For more information, see Amazon EKS node IAM role in the Amazon EKS User Guide . If you specify launchTemplate
, then don't specify IamInstanceProfile
in your launch template, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
sourcepub fn labels(&self) -> Option<&HashMap<String, String>>
pub fn labels(&self) -> Option<&HashMap<String, String>>
The Kubernetes labels to be applied to the nodes in the node group when they are created.
sourcepub fn taints(&self) -> Option<&[Taint]>
pub fn taints(&self) -> Option<&[Taint]>
The Kubernetes taints to be applied to the nodes in the node group. For more information, see Node taints on managed node groups.
The metadata to apply to the node group to assist with categorization and organization. Each tag consists of a key and an optional value. You define both. Node group tags do not propagate to any other resources associated with the node group, such as the Amazon EC2 instances or subnets.
sourcepub fn client_request_token(&self) -> Option<&str>
pub fn client_request_token(&self) -> Option<&str>
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn launch_template(&self) -> Option<&LaunchTemplateSpecification>
pub fn launch_template(&self) -> Option<&LaunchTemplateSpecification>
An object representing a node group's launch template specification. If specified, then do not specify instanceTypes
, diskSize
, or remoteAccess
and make sure that the launch template meets the requirements in launchTemplateSpecification
.
sourcepub fn update_config(&self) -> Option<&NodegroupUpdateConfig>
pub fn update_config(&self) -> Option<&NodegroupUpdateConfig>
The node group update configuration.
sourcepub fn capacity_type(&self) -> Option<&CapacityTypes>
pub fn capacity_type(&self) -> Option<&CapacityTypes>
The capacity type for your node group.
sourcepub fn version(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
The Kubernetes version to use for your managed nodes. By default, the Kubernetes version of the cluster is used, and this is the only accepted specified value. If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify version
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
sourcepub fn release_version(&self) -> Option<&str>
pub fn release_version(&self) -> Option<&str>
The AMI version of the Amazon EKS optimized AMI to use with your node group. By default, the latest available AMI version for the node group's current Kubernetes version is used. For more information, see Amazon EKS optimized Amazon Linux 2 AMI versions in the Amazon EKS User Guide. If you specify launchTemplate
, and your launch template uses a custom AMI, then don't specify releaseVersion
, or the node group deployment will fail. For more information about using launch templates with Amazon EKS, see Launch template support in the Amazon EKS User Guide.
Trait Implementations
sourceimpl Clone for CreateNodegroupInput
impl Clone for CreateNodegroupInput
sourcefn clone(&self) -> CreateNodegroupInput
fn clone(&self) -> CreateNodegroupInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CreateNodegroupInput
impl Debug for CreateNodegroupInput
sourceimpl PartialEq<CreateNodegroupInput> for CreateNodegroupInput
impl PartialEq<CreateNodegroupInput> for CreateNodegroupInput
sourcefn eq(&self, other: &CreateNodegroupInput) -> bool
fn eq(&self, other: &CreateNodegroupInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CreateNodegroupInput) -> bool
fn ne(&self, other: &CreateNodegroupInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for CreateNodegroupInput
Auto Trait Implementations
impl RefUnwindSafe for CreateNodegroupInput
impl Send for CreateNodegroupInput
impl Sync for CreateNodegroupInput
impl Unpin for CreateNodegroupInput
impl UnwindSafe for CreateNodegroupInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more