Class: AWSCDK::Sagemaker::CfnMonitoringSchedule::ClusterConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnMonitoringSchedule::ClusterConfigProperty
- Defined in:
- sagemaker/cfn_monitoring_schedule.rb
Overview
Configuration for the cluster used to run model monitoring jobs.
Instance Attribute Summary collapse
-
#instance_count ⇒ Numeric
readonly
The number of ML compute instances to use in the model monitoring job.
-
#instance_type ⇒ String
readonly
The ML compute instance type for the processing job.
-
#volume_kms_key_id ⇒ String?
readonly
The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.
-
#volume_size_in_gb ⇒ Numeric
readonly
The size of the ML storage volume, in gigabytes, that you want to provision.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_count:, instance_type:, volume_size_in_gb:, volume_kms_key_id: nil) ⇒ ClusterConfigProperty
constructor
A new instance of ClusterConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(instance_count:, instance_type:, volume_size_in_gb:, volume_kms_key_id: nil) ⇒ ClusterConfigProperty
Returns a new instance of ClusterConfigProperty.
746 747 748 749 750 751 752 753 754 755 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 746 def initialize(instance_count:, instance_type:, volume_size_in_gb:, volume_kms_key_id: nil) @instance_count = instance_count Jsii::Type.check_type(@instance_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "instanceCount") @instance_type = instance_type Jsii::Type.check_type(@instance_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instanceType") @volume_size_in_gb = volume_size_in_gb Jsii::Type.check_type(@volume_size_in_gb, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "volumeSizeInGb") @volume_kms_key_id = volume_kms_key_id Jsii::Type.check_type(@volume_kms_key_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "volumeKmsKeyId") unless @volume_kms_key_id.nil? end |
Instance Attribute Details
#instance_count ⇒ Numeric (readonly)
The number of ML compute instances to use in the model monitoring job.
For distributed processing jobs, specify a value greater than 1. The default value is 1.
763 764 765 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 763 def instance_count @instance_count end |
#instance_type ⇒ String (readonly)
The ML compute instance type for the processing job.
768 769 770 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 768 def instance_type @instance_type end |
#volume_kms_key_id ⇒ String? (readonly)
The AWS Key Management Service ( AWS KMS) key that Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute instance(s) that run the model monitoring job.
780 781 782 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 780 def volume_kms_key_id @volume_kms_key_id end |
#volume_size_in_gb ⇒ Numeric (readonly)
The size of the ML storage volume, in gigabytes, that you want to provision.
You must specify sufficient ML storage for your scenario.
775 776 777 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 775 def volume_size_in_gb @volume_size_in_gb end |
Class Method Details
.jsii_properties ⇒ Object
782 783 784 785 786 787 788 789 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 782 def self.jsii_properties { :instance_count => "instanceCount", :instance_type => "instanceType", :volume_size_in_gb => "volumeSizeInGb", :volume_kms_key_id => "volumeKmsKeyId", } end |
Instance Method Details
#to_jsii ⇒ Object
791 792 793 794 795 796 797 798 799 800 |
# File 'sagemaker/cfn_monitoring_schedule.rb', line 791 def to_jsii result = {} result.merge!({ "instanceCount" => @instance_count, "instanceType" => @instance_type, "volumeSizeInGb" => @volume_size_in_gb, "volumeKmsKeyId" => @volume_kms_key_id, }) result.compact end |