Class: AWSCDK::PCS::CfnComputeNodeGroup::InstanceConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pcs/cfn_compute_node_group.rb

Overview

An EC2 instance configuration AWS PCS uses to launch compute nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_type: nil) ⇒ InstanceConfigProperty

Returns a new instance of InstanceConfigProperty.

Parameters:

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

    The EC2 instance type that AWS PCS can provision in the compute node group.



777
778
779
780
# File 'pcs/cfn_compute_node_group.rb', line 777

def initialize(instance_type: nil)
  @instance_type = instance_type
  Jsii::Type.check_type(@instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceType") unless @instance_type.nil?
end

Instance Attribute Details

#instance_typeString? (readonly)

The EC2 instance type that AWS PCS can provision in the compute node group.

Example: t2.xlarge



788
789
790
# File 'pcs/cfn_compute_node_group.rb', line 788

def instance_type
  @instance_type
end

Class Method Details

.jsii_propertiesObject



790
791
792
793
794
# File 'pcs/cfn_compute_node_group.rb', line 790

def self.jsii_properties
  {
    :instance_type => "instanceType",
  }
end

Instance Method Details

#to_jsiiObject



796
797
798
799
800
801
802
# File 'pcs/cfn_compute_node_group.rb', line 796

def to_jsii
  result = {}
  result.merge!({
    "instanceType" => @instance_type,
  })
  result.compact
end