Class: AWSCDK::EKS::CfnNodegroup::LaunchTemplateSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EKS::CfnNodegroup::LaunchTemplateSpecificationProperty
- Defined in:
- eks/cfn_nodegroup.rb
Overview
An object representing a node group launch template specification.
The launch template can't include SubnetId , IamInstanceProfile , RequestSpotInstances , HibernationOptions , or TerminateInstances , or the node group deployment or update will fail. For more information about launch templates, see CreateLaunchTemplate in the Amazon EC2 API Reference. For more information about using launch templates with Amazon EKS, see Customizing managed nodes with launch templates in the Amazon EKS User Guide .
You must specify either the launch template ID or the launch template name in the request, but not both.
Instance Attribute Summary collapse
-
#id ⇒ String?
readonly
The ID of the launch template.
-
#name ⇒ String?
readonly
The name of the launch template.
-
#version ⇒ String?
readonly
The version number of the launch template to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, version: nil) ⇒ LaunchTemplateSpecificationProperty
constructor
A new instance of LaunchTemplateSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(id: nil, name: nil, version: nil) ⇒ LaunchTemplateSpecificationProperty
Returns a new instance of LaunchTemplateSpecificationProperty.
805 806 807 808 809 810 811 812 |
# File 'eks/cfn_nodegroup.rb', line 805 def initialize(id: nil, name: nil, version: nil) @id = id Jsii::Type.check_type(@id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id") unless @id.nil? @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") unless @version.nil? end |
Instance Attribute Details
#id ⇒ String? (readonly)
The ID of the launch template.
You must specify either the launch template ID or the launch template name in the request, but not both. After node group creation, you cannot use a different ID.
820 821 822 |
# File 'eks/cfn_nodegroup.rb', line 820 def id @id end |
#name ⇒ String? (readonly)
The name of the launch template.
You must specify either the launch template name or the launch template ID in the request, but not both. After node group creation, you cannot use a different name.
827 828 829 |
# File 'eks/cfn_nodegroup.rb', line 827 def name @name end |
#version ⇒ String? (readonly)
The version number of the launch template to use.
If no version is specified, then the template's default version is used. You can use a different version for node group updates.
834 835 836 |
# File 'eks/cfn_nodegroup.rb', line 834 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
836 837 838 839 840 841 842 |
# File 'eks/cfn_nodegroup.rb', line 836 def self.jsii_properties { :id => "id", :name => "name", :version => "version", } end |
Instance Method Details
#to_jsii ⇒ Object
844 845 846 847 848 849 850 851 852 |
# File 'eks/cfn_nodegroup.rb', line 844 def to_jsii result = {} result.merge!({ "id" => @id, "name" => @name, "version" => @version, }) result.compact end |