Skip to content
v2.278.0

EcsInferenceAcceleratorOverrideProperty ​

Struct External

Details on an Elastic Inference accelerator task override.

This parameter is used to override the Elastic Inference accelerator specified in the task definition. For more information, see Working with Amazon Elastic Inference on Amazon ECS in the Amazon Elastic Container Service Developer Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pipes as pipes } from 'aws-cdk-lib';
const ecsInferenceAcceleratorOverrideProperty: pipes.CfnPipe.EcsInferenceAcceleratorOverrideProperty = {
  deviceName: 'deviceName',
  deviceType: 'deviceType',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pipes as pipes

ecs_inference_accelerator_override_property = pipes.CfnPipe.EcsInferenceAcceleratorOverrideProperty(
    device_name="deviceName",
    device_type="deviceType"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pipes.*;

EcsInferenceAcceleratorOverrideProperty ecsInferenceAcceleratorOverrideProperty = EcsInferenceAcceleratorOverrideProperty.builder()
        .deviceName("deviceName")
        .deviceType("deviceType")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Pipes;

var ecsInferenceAcceleratorOverrideProperty = new EcsInferenceAcceleratorOverrideProperty {
    DeviceName = "deviceName",
    DeviceType = "deviceType"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ecsInferenceAcceleratorOverrideProperty := &EcsInferenceAcceleratorOverrideProperty{
	DeviceName: jsii.String("deviceName"),
	DeviceType: jsii.String("deviceType"),
}

Properties ​

deviceNameoptionalstringdevice_nameoptionalstrdeviceNameoptionalStringDeviceNameoptionalstringDeviceNameoptional*string #
The Elastic Inference accelerator device name to override for the task.

This parameter must match a deviceName specified in the task definition.

deviceTypeoptionalstringdevice_typeoptionalstrdeviceTypeoptionalStringDeviceTypeoptionalstringDeviceTypeoptional*string #
The Elastic Inference accelerator type to use.