Class: AWSCDK::PCS::CfnComputeNodeGroup::InstanceConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCS::CfnComputeNodeGroup::InstanceConfigProperty
- Defined in:
- pcs/cfn_compute_node_group.rb
Overview
An EC2 instance configuration AWS PCS uses to launch compute nodes.
Instance Attribute Summary collapse
-
#instance_type ⇒ String?
readonly
The EC2 instance type that AWS PCS can provision in the compute node group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_type: nil) ⇒ InstanceConfigProperty
constructor
A new instance of InstanceConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_type: nil) ⇒ InstanceConfigProperty
Returns a new instance of InstanceConfigProperty.
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_type ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |