Class: AWSCDK::PCS::CfnComputeNodeGroup::CustomLaunchTemplateProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(version:, template_id: nil) ⇒ CustomLaunchTemplateProperty

Returns a new instance of CustomLaunchTemplateProperty.

Parameters:

  • version (String)

    The version of the EC2 launch template to use to provision instances.

  • template_id (String, nil) (defaults to: nil)

    The ID of the EC2 launch template to use to provision instances.



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_idString? (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

#versionString (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_propertiesObject



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_jsiiObject



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