InferenceAcceleratorProperty Struct
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const inferenceAcceleratorProperty: ecs.CfnTaskDefinition.InferenceAcceleratorProperty = {
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_ecs as ecs
inference_accelerator_property = ecs.CfnTaskDefinition.InferenceAcceleratorProperty(
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.ecs.*;
InferenceAcceleratorProperty inferenceAcceleratorProperty = InferenceAcceleratorProperty.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.ECS;
var inferenceAcceleratorProperty = new InferenceAcceleratorProperty {
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"
inferenceAcceleratorProperty := &InferenceAcceleratorProperty{
DeviceName: jsii.String("deviceName"),
DeviceType: jsii.String("deviceType"),
}