@Stability(value=Stable)
public static interface CfnTaskDefinition.InferenceAcceleratorProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
InferenceAcceleratorProperty inferenceAcceleratorProperty = InferenceAcceleratorProperty.builder()
.deviceName("deviceName")
.deviceType("deviceType")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnTaskDefinition.InferenceAcceleratorProperty.Builder
A builder for
CfnTaskDefinition.InferenceAcceleratorProperty |
static class |
CfnTaskDefinition.InferenceAcceleratorProperty.Jsii$Proxy
An implementation for
CfnTaskDefinition.InferenceAcceleratorProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnTaskDefinition.InferenceAcceleratorProperty.Builder |
builder() |
default String |
getDeviceName()
The Elastic Inference accelerator device name.
|
default String |
getDeviceType()
The Elastic Inference accelerator type to use.
|
@Stability(value=Stable) @Nullable default String getDeviceName()
The deviceName must also be referenced in a container definition as a ResourceRequirement .
@Stability(value=Stable) @Nullable default String getDeviceType()
@Stability(value=Stable) static CfnTaskDefinition.InferenceAcceleratorProperty.Builder builder()
Copyright © 2022. All rights reserved.