/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SageMaker.Model { /// /// Configuration for the cluster used to run a processing job. /// public partial class ProcessingClusterConfig { private int? _instanceCount; private ProcessingInstanceType _instanceType; private string _volumeKmsKeyId; private int? _volumeSizeInGB; /// /// Gets and sets the property InstanceCount. /// /// The number of ML compute instances to use in the processing job. For distributed processing /// jobs, specify a value greater than 1. The default value is 1. /// /// [AWSProperty(Required=true, Min=1, Max=100)] public int InstanceCount { get { return this._instanceCount.GetValueOrDefault(); } set { this._instanceCount = value; } } // Check to see if InstanceCount property is set internal bool IsSetInstanceCount() { return this._instanceCount.HasValue; } /// /// Gets and sets the property InstanceType. /// /// The ML compute instance type for the processing job. /// /// [AWSProperty(Required=true)] public ProcessingInstanceType InstanceType { get { return this._instanceType; } set { this._instanceType = value; } } // Check to see if InstanceType property is set internal bool IsSetInstanceType() { return this._instanceType != null; } /// /// Gets and sets the property VolumeKmsKeyId. /// /// The Amazon Web Services Key Management Service (Amazon Web Services KMS) key that /// Amazon SageMaker uses to encrypt data on the storage volume attached to the ML compute /// instance(s) that run the processing job. /// /// /// /// Certain Nitro-based instances include local storage, dependent on the instance type. /// Local storage volumes are encrypted using a hardware module on the instance. You can't /// request a VolumeKmsKeyId when using an instance type with local storage. /// /// /// /// For a list of instance types that support local instance storage, see Instance /// Store Volumes. /// /// /// /// For more information about local instance storage encryption, see SSD /// Instance Store Volumes. /// /// /// [AWSProperty(Max=2048)] public string VolumeKmsKeyId { get { return this._volumeKmsKeyId; } set { this._volumeKmsKeyId = value; } } // Check to see if VolumeKmsKeyId property is set internal bool IsSetVolumeKmsKeyId() { return this._volumeKmsKeyId != null; } /// /// Gets and sets the property VolumeSizeInGB. /// /// The size of the ML storage volume in gigabytes that you want to provision. You must /// specify sufficient ML storage for your scenario. /// /// /// /// Certain Nitro-based instances include local storage with a fixed total size, dependent /// on the instance type. When using these instances for processing, Amazon SageMaker /// mounts the local instance storage instead of Amazon EBS gp2 storage. You can't request /// a VolumeSizeInGB greater than the total size of the local instance storage. /// /// /// /// For a list of instance types that support local instance storage, including the total /// size per instance type, see Instance /// Store Volumes. /// /// /// [AWSProperty(Required=true, Min=1, Max=16384)] public int VolumeSizeInGB { get { return this._volumeSizeInGB.GetValueOrDefault(); } set { this._volumeSizeInGB = value; } } // Check to see if VolumeSizeInGB property is set internal bool IsSetVolumeSizeInGB() { return this._volumeSizeInGB.HasValue; } } }