/* * 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 pipes-2015-10-07.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.Pipes.Model { /// /// The type and amount of a resource to assign to a container. The supported resource /// types are GPUs and Elastic Inference accelerators. For more information, see Working /// with GPUs on Amazon ECS or Working /// with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container /// Service Developer Guide /// public partial class EcsResourceRequirement { private EcsResourceRequirementType _type; private string _value; /// /// Gets and sets the property Type. /// /// The type of resource to assign to a container. The supported values are GPU /// or InferenceAccelerator. /// /// [AWSProperty(Required=true)] public EcsResourceRequirementType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property Value. /// /// The value for the specified resource type. /// /// /// /// If the GPU type is used, the value is the number of physical GPUs /// the Amazon ECS container agent reserves for the container. The number of GPUs that's /// reserved for all containers in a task can't exceed the number of available GPUs on /// the container instance that the task is launched on. /// /// /// /// If the InferenceAccelerator type is used, the value matches /// the deviceName for an InferenceAccelerator specified in a task definition. /// /// [AWSProperty(Required=true)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }