Class: AWSCDK::Pipes::CfnPipe::ECSInferenceAcceleratorOverrideProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::ECSInferenceAcceleratorOverrideProperty
- Defined in:
- pipes/cfn_pipe.rb
Overview
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 .
Instance Attribute Summary collapse
-
#device_name ⇒ String?
readonly
The Elastic Inference accelerator device name to override for the task.
-
#device_type ⇒ String?
readonly
The Elastic Inference accelerator type to use.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(device_name: nil, device_type: nil) ⇒ ECSInferenceAcceleratorOverrideProperty
constructor
A new instance of ECSInferenceAcceleratorOverrideProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(device_name: nil, device_type: nil) ⇒ ECSInferenceAcceleratorOverrideProperty
Returns a new instance of ECSInferenceAcceleratorOverrideProperty.
1548 1549 1550 1551 1552 1553 |
# File 'pipes/cfn_pipe.rb', line 1548 def initialize(device_name: nil, device_type: nil) @device_name = device_name Jsii::Type.check_type(@device_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deviceName") unless @device_name.nil? @device_type = device_type Jsii::Type.check_type(@device_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "deviceType") unless @device_type.nil? end |
Instance Attribute Details
#device_name ⇒ String? (readonly)
The Elastic Inference accelerator device name to override for the task.
This parameter must match a device_name specified in the task definition.
1561 1562 1563 |
# File 'pipes/cfn_pipe.rb', line 1561 def device_name @device_name end |
#device_type ⇒ String? (readonly)
The Elastic Inference accelerator type to use.
1566 1567 1568 |
# File 'pipes/cfn_pipe.rb', line 1566 def device_type @device_type end |
Class Method Details
.jsii_properties ⇒ Object
1568 1569 1570 1571 1572 1573 |
# File 'pipes/cfn_pipe.rb', line 1568 def self.jsii_properties { :device_name => "deviceName", :device_type => "deviceType", } end |
Instance Method Details
#to_jsii ⇒ Object
1575 1576 1577 1578 1579 1580 1581 1582 |
# File 'pipes/cfn_pipe.rb', line 1575 def to_jsii result = {} result.merge!({ "deviceName" => @device_name, "deviceType" => @device_type, }) result.compact end |