Class: AWSCDK::Pipes::CfnPipe::ECSInferenceAcceleratorOverrideProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_name: nil, device_type: nil) ⇒ ECSInferenceAcceleratorOverrideProperty

Returns a new instance of ECSInferenceAcceleratorOverrideProperty.

Parameters:

  • device_name (String, nil) (defaults to: nil)

    The Elastic Inference accelerator device name to override for the task.

  • device_type (String, nil) (defaults to: nil)

    The Elastic Inference accelerator type to use.



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_nameString? (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_typeString? (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_propertiesObject



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_jsiiObject



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