/* * 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 ecs-2014-11-13.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.ECS.Model { /// /// The overrides that are associated with a task. /// public partial class TaskOverride { private List _containerOverrides = new List(); private string _cpu; private EphemeralStorage _ephemeralStorage; private string _executionRoleArn; private List _inferenceAcceleratorOverrides = new List(); private string _memory; private string _taskRoleArn; /// /// Gets and sets the property ContainerOverrides. /// /// One or more container overrides that are sent to a task. /// /// public List ContainerOverrides { get { return this._containerOverrides; } set { this._containerOverrides = value; } } // Check to see if ContainerOverrides property is set internal bool IsSetContainerOverrides() { return this._containerOverrides != null && this._containerOverrides.Count > 0; } /// /// Gets and sets the property Cpu. /// /// The CPU override for the task. /// /// public string Cpu { get { return this._cpu; } set { this._cpu = value; } } // Check to see if Cpu property is set internal bool IsSetCpu() { return this._cpu != null; } /// /// Gets and sets the property EphemeralStorage. /// /// The ephemeral storage setting override for the task. /// /// /// /// This parameter is only supported for tasks hosted on Fargate that use the following /// platform versions: /// ///
  • /// /// Linux platform version 1.4.0 or later. /// ///
  • /// /// Windows platform version 1.0.0 or later. /// ///
///
public EphemeralStorage EphemeralStorage { get { return this._ephemeralStorage; } set { this._ephemeralStorage = value; } } // Check to see if EphemeralStorage property is set internal bool IsSetEphemeralStorage() { return this._ephemeralStorage != null; } /// /// Gets and sets the property ExecutionRoleArn. /// /// The Amazon Resource Name (ARN) of the task execution role override for the task. For /// more information, see Amazon /// ECS task execution IAM role in the Amazon Elastic Container Service Developer /// Guide. /// /// public string ExecutionRoleArn { get { return this._executionRoleArn; } set { this._executionRoleArn = value; } } // Check to see if ExecutionRoleArn property is set internal bool IsSetExecutionRoleArn() { return this._executionRoleArn != null; } /// /// Gets and sets the property InferenceAcceleratorOverrides. /// /// The Elastic Inference accelerator override for the task. /// /// public List InferenceAcceleratorOverrides { get { return this._inferenceAcceleratorOverrides; } set { this._inferenceAcceleratorOverrides = value; } } // Check to see if InferenceAcceleratorOverrides property is set internal bool IsSetInferenceAcceleratorOverrides() { return this._inferenceAcceleratorOverrides != null && this._inferenceAcceleratorOverrides.Count > 0; } /// /// Gets and sets the property Memory. /// /// The memory override for the task. /// /// public string Memory { get { return this._memory; } set { this._memory = value; } } // Check to see if Memory property is set internal bool IsSetMemory() { return this._memory != null; } /// /// Gets and sets the property TaskRoleArn. /// /// The Amazon Resource Name (ARN) of the role that containers in this task can assume. /// All containers in this task are granted the permissions that are specified in this /// role. For more information, see IAM /// Role for Tasks in the Amazon Elastic Container Service Developer Guide. /// /// public string TaskRoleArn { get { return this._taskRoleArn; } set { this._taskRoleArn = value; } } // Check to see if TaskRoleArn property is set internal bool IsSetTaskRoleArn() { return this._taskRoleArn != null; } } }