/* * 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 { /// /// Contains information about the output location for the compiled model and the target /// device that the model runs on. TargetDevice and TargetPlatform /// are mutually exclusive, so you need to choose one between the two to specify your /// target device or platform. If you cannot find your device you want to use from the /// TargetDevice list, use TargetPlatform to describe the platform /// of your edge device and CompilerOptions if there are specific settings /// that are required or recommended to use for particular TargetPlatform. /// public partial class OutputConfig { private string _compilerOptions; private string _kmsKeyId; private string _s3OutputLocation; private TargetDevice _targetDevice; private TargetPlatform _targetPlatform; /// /// Gets and sets the property CompilerOptions. /// /// Specifies additional parameters for compiler options in JSON format. The compiler /// options are TargetPlatform specific. It is required for NVIDIA accelerators /// and highly recommended for CPU compilations. For any other cases, it is optional to /// specify CompilerOptions. /// /// /// [AWSProperty(Min=3, Max=1024)] public string CompilerOptions { get { return this._compilerOptions; } set { this._compilerOptions = value; } } // Check to see if CompilerOptions property is set internal bool IsSetCompilerOptions() { return this._compilerOptions != null; } /// /// Gets and sets the property KmsKeyId. /// /// The Amazon Web Services Key Management Service key (Amazon Web Services KMS) that /// Amazon SageMaker uses to encrypt your output models with Amazon S3 server-side encryption /// after compilation job. If you don't provide a KMS key ID, Amazon SageMaker uses the /// default KMS key for Amazon S3 for your role's account. For more information, see KMS-Managed /// Encryption Keys in the Amazon Simple Storage Service Developer Guide. /// /// /// /// The KmsKeyId can be any of the following formats: /// /// /// [AWSProperty(Max=2048)] public string KmsKeyId { get { return this._kmsKeyId; } set { this._kmsKeyId = value; } } // Check to see if KmsKeyId property is set internal bool IsSetKmsKeyId() { return this._kmsKeyId != null; } /// /// Gets and sets the property S3OutputLocation. /// /// Identifies the S3 bucket where you want Amazon SageMaker to store the model artifacts. /// For example, s3://bucket-name/key-name-prefix. /// /// [AWSProperty(Required=true, Max=1024)] public string S3OutputLocation { get { return this._s3OutputLocation; } set { this._s3OutputLocation = value; } } // Check to see if S3OutputLocation property is set internal bool IsSetS3OutputLocation() { return this._s3OutputLocation != null; } /// /// Gets and sets the property TargetDevice. /// /// Identifies the target device or the machine learning instance that you want to run /// your model on after the compilation has completed. Alternatively, you can specify /// OS, architecture, and accelerator using TargetPlatform /// fields. It can be used instead of TargetPlatform. /// /// /// /// Currently ml_trn1 is available only in US East (N. Virginia) Region, /// and ml_inf2 is available only in US East (Ohio) Region. /// /// /// public TargetDevice TargetDevice { get { return this._targetDevice; } set { this._targetDevice = value; } } // Check to see if TargetDevice property is set internal bool IsSetTargetDevice() { return this._targetDevice != null; } /// /// Gets and sets the property TargetPlatform. /// /// Contains information about a target platform that you want your model to run on, such /// as OS, architecture, and accelerators. It is an alternative of TargetDevice. /// /// /// /// The following examples show how to configure the TargetPlatform and CompilerOptions /// JSON strings for popular target platforms: /// /// /// public TargetPlatform TargetPlatform { get { return this._targetPlatform; } set { this._targetPlatform = value; } } // Check to see if TargetPlatform property is set internal bool IsSetTargetPlatform() { return this._targetPlatform != null; } } }