Class CfnTaskDefinition.InferenceAcceleratorProperty
Details on an Elastic Inference accelerator.
Inheritance
System.Object
CfnTaskDefinition.InferenceAcceleratorProperty
Namespace: Amazon.CDK.AWS.ECS
Assembly: Amazon.CDK.AWS.ECS.dll
Syntax (csharp)
public class InferenceAcceleratorProperty : Object, CfnTaskDefinition.IInferenceAcceleratorProperty
Syntax (vb)
Public Class InferenceAcceleratorProperty
Inherits Object
Implements CfnTaskDefinition.IInferenceAcceleratorProperty
Remarks
For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var inferenceAcceleratorProperty = new InferenceAcceleratorProperty {
DeviceName = "deviceName",
DeviceType = "deviceType"
};
Synopsis
Constructors
InferenceAcceleratorProperty() |
Properties
DeviceName | The Elastic Inference accelerator device name. |
DeviceType | The Elastic Inference accelerator type to use. |
Constructors
InferenceAcceleratorProperty()
public InferenceAcceleratorProperty()
Properties
DeviceName
The Elastic Inference accelerator device name.
public string DeviceName { get; set; }
Property Value
System.String
Remarks
The deviceName
must also be referenced in a container definition as a ResourceRequirement .
DeviceType
The Elastic Inference accelerator type to use.
public string DeviceType { get; set; }
Property Value
System.String