Class: Aws::EKS::Types::LaunchTemplateSpecification

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-eks/types.rb

Overview

Note:

When making an API call, you may pass LaunchTemplateSpecification data as a hash:

{
  name: "String",
  version: "String",
  id: "String",
}

An object representing a node group launch template specification. The launch template cannot include [ `SubnetId` ][1], [ `IamInstanceProfile` ][2], [ `RequestSpotInstances` ][3], [ `HibernationOptions` ][4], or [ `TerminateInstances` ][5], or the node group deployment or update will fail. For more information about launch templates, see [ `CreateLaunchTemplate` ][6] in the Amazon EC2 API Reference. For more information about using launch templates with Amazon EKS, see [Launch template support] in the Amazon EKS User Guide.

Specify either `name` or `id`, but not both.

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateNetworkInterface.html [2]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_IamInstanceProfile.html [3]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RequestSpotInstances.html [4]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html [5]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_TerminateInstances.html [6]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateLaunchTemplate.html [7]: docs.aws.amazon.com/eks/latest/userguide/launch-templates.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#idString

The ID of the launch template.

Returns:

  • (String)

2114
2115
2116
2117
2118
2119
2120
# File 'lib/aws-sdk-eks/types.rb', line 2114

class LaunchTemplateSpecification < Struct.new(
  :name,
  :version,
  :id)
  SENSITIVE = []
  include Aws::Structure
end

#nameString

The name of the launch template.

Returns:

  • (String)

2114
2115
2116
2117
2118
2119
2120
# File 'lib/aws-sdk-eks/types.rb', line 2114

class LaunchTemplateSpecification < Struct.new(
  :name,
  :version,
  :id)
  SENSITIVE = []
  include Aws::Structure
end

#versionString

The version of the launch template to use. If no version is specified, then the template's default version is used.

Returns:

  • (String)

2114
2115
2116
2117
2118
2119
2120
# File 'lib/aws-sdk-eks/types.rb', line 2114

class LaunchTemplateSpecification < Struct.new(
  :name,
  :version,
  :id)
  SENSITIVE = []
  include Aws::Structure
end