Class: AWSCDK::Sagemaker::CfnCluster::InstanceRequirementsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_cluster.rb

Overview

The instance requirements for the instance group.

Specifies a list of instance types that can be used.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instance_types:) ⇒ InstanceRequirementsProperty

Returns a new instance of InstanceRequirementsProperty.

Parameters:

  • instance_types (Array<String>)

    A list of instance types that can be used for this instance group.



1876
1877
1878
1879
# File 'sagemaker/cfn_cluster.rb', line 1876

def initialize(instance_types:)
  @instance_types = instance_types
  Jsii::Type.check_type(@instance_types, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "instanceTypes")
end

Instance Attribute Details

#instance_typesArray<String> (readonly)

A list of instance types that can be used for this instance group.



1885
1886
1887
# File 'sagemaker/cfn_cluster.rb', line 1885

def instance_types
  @instance_types
end

Class Method Details

.jsii_propertiesObject



1887
1888
1889
1890
1891
# File 'sagemaker/cfn_cluster.rb', line 1887

def self.jsii_properties
  {
    :instance_types => "instanceTypes",
  }
end

Instance Method Details

#to_jsiiObject



1893
1894
1895
1896
1897
1898
1899
# File 'sagemaker/cfn_cluster.rb', line 1893

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