Class: AWSCDK::PCS::CfnComputeNodeGroup::CustomLaunchTemplateProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnComputeNodeGroup::CustomLaunchTemplateProperty
- Defined in:
- pcs/cfn_compute_node_group.rb
Overview
An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
Instance Attribute Summary collapse
-
#template_id ⇒ String?
readonly
The ID of the EC2 launch template to use to provision instances.
-
#version ⇒ String
readonly
The version of the EC2 launch template to use to provision instances.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(version:, template_id: nil) ⇒ CustomLaunchTemplateProperty
constructor
A new instance of CustomLaunchTemplateProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(version:, template_id: nil) ⇒ CustomLaunchTemplateProperty
Returns a new instance of CustomLaunchTemplateProperty.
692 693 694 695 696 697 |
# File 'pcs/cfn_compute_node_group.rb', line 692 def initialize(version:, template_id: nil) @version = version Jsii::Type.check_type(@version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "version") @template_id = template_id Jsii::Type.check_type(@template_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "templateId") unless @template_id.nil? end |
Instance Attribute Details
#template_id ⇒ String? (readonly)
The ID of the EC2 launch template to use to provision instances.
708 709 710 |
# File 'pcs/cfn_compute_node_group.rb', line 708 def template_id @template_id end |
#version ⇒ String (readonly)
The version of the EC2 launch template to use to provision instances.
703 704 705 |
# File 'pcs/cfn_compute_node_group.rb', line 703 def version @version end |
Class Method Details
.jsii_properties ⇒ Object
710 711 712 713 714 715 |
# File 'pcs/cfn_compute_node_group.rb', line 710 def self.jsii_properties { :version => "version", :template_id => "templateId", } end |
Instance Method Details
#to_jsii ⇒ Object
717 718 719 720 721 722 723 724 |
# File 'pcs/cfn_compute_node_group.rb', line 717 def to_jsii result = {} result.merge!({ "version" => @version, "templateId" => @template_id, }) result.compact end |