Class: AWSCDK::Pipes::CfnPipe::ECSTaskOverrideProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::ECSTaskOverrideProperty
- Defined in:
- pipes/cfn_pipe.rb
Overview
The overrides that are associated with a task.
Instance Attribute Summary collapse
-
#container_overrides ⇒ AWSCDK::IResolvable, ...
readonly
One or more container overrides that are sent to a task.
-
#cpu ⇒ String?
readonly
The cpu override for the task.
-
#ephemeral_storage ⇒ AWSCDK::IResolvable, ...
readonly
The ephemeral storage setting override for the task.
-
#execution_role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
-
#inference_accelerator_overrides ⇒ AWSCDK::IResolvable, ...
readonly
The Elastic Inference accelerator override for the task.
-
#memory ⇒ String?
readonly
The memory override for the task.
-
#task_role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(container_overrides: nil, cpu: nil, ephemeral_storage: nil, execution_role_arn: nil, inference_accelerator_overrides: nil, memory: nil, task_role_arn: nil) ⇒ ECSTaskOverrideProperty
constructor
A new instance of ECSTaskOverrideProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(container_overrides: nil, cpu: nil, ephemeral_storage: nil, execution_role_arn: nil, inference_accelerator_overrides: nil, memory: nil, task_role_arn: nil) ⇒ ECSTaskOverrideProperty
Returns a new instance of ECSTaskOverrideProperty.
1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 |
# File 'pipes/cfn_pipe.rb', line 1649 def initialize(container_overrides: nil, cpu: nil, ephemeral_storage: nil, execution_role_arn: nil, inference_accelerator_overrides: nil, memory: nil, task_role_arn: nil) @container_overrides = container_overrides Jsii::Type.check_type(@container_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcGlwZXMuQ2ZuUGlwZS5FY3NDb250YWluZXJPdmVycmlkZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "containerOverrides") unless @container_overrides.nil? @cpu = cpu Jsii::Type.check_type(@cpu, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cpu") unless @cpu.nil? @ephemeral_storage = ephemeral_storage.is_a?(Hash) ? ::AWSCDK::Pipes::CfnPipe::ECSEphemeralStorageProperty.new(**ephemeral_storage.transform_keys(&:to_sym)) : ephemeral_storage Jsii::Type.check_type(@ephemeral_storage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19waXBlcy5DZm5QaXBlLkVjc0VwaGVtZXJhbFN0b3JhZ2VQcm9wZXJ0eSJ9XX19")), "ephemeralStorage") unless @ephemeral_storage.nil? @execution_role_arn = execution_role_arn Jsii::Type.check_type(@execution_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executionRoleArn") unless @execution_role_arn.nil? @inference_accelerator_overrides = inference_accelerator_overrides Jsii::Type.check_type(@inference_accelerator_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfcGlwZXMuQ2ZuUGlwZS5FY3NJbmZlcmVuY2VBY2NlbGVyYXRvck92ZXJyaWRlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "inferenceAcceleratorOverrides") unless @inference_accelerator_overrides.nil? @memory = memory Jsii::Type.check_type(@memory, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "memory") unless @memory.nil? @task_role_arn = task_role_arn Jsii::Type.check_type(@task_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "taskRoleArn") unless @task_role_arn.nil? end |
Instance Attribute Details
#container_overrides ⇒ AWSCDK::IResolvable, ... (readonly)
One or more container overrides that are sent to a task.
1670 1671 1672 |
# File 'pipes/cfn_pipe.rb', line 1670 def container_overrides @container_overrides end |
#cpu ⇒ String? (readonly)
The cpu override for the task.
1675 1676 1677 |
# File 'pipes/cfn_pipe.rb', line 1675 def cpu @cpu end |
#ephemeral_storage ⇒ AWSCDK::IResolvable, ... (readonly)
The ephemeral storage setting override for the task.
This parameter is only supported for tasks hosted on Fargate that use the following platform versions:
- Linux platform version
1.4.0or later.- Windows platform version
1.0.0or later.
1685 1686 1687 |
# File 'pipes/cfn_pipe.rb', line 1685 def ephemeral_storage @ephemeral_storage end |
#execution_role_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the task execution IAM role override for the task.
For more information, see Amazon ECS task execution IAM role in the Amazon Elastic Container Service Developer Guide .
1692 1693 1694 |
# File 'pipes/cfn_pipe.rb', line 1692 def execution_role_arn @execution_role_arn end |
#inference_accelerator_overrides ⇒ AWSCDK::IResolvable, ... (readonly)
The Elastic Inference accelerator override for the task.
1697 1698 1699 |
# File 'pipes/cfn_pipe.rb', line 1697 def inference_accelerator_overrides @inference_accelerator_overrides end |
#memory ⇒ String? (readonly)
The memory override for the task.
1702 1703 1704 |
# File 'pipes/cfn_pipe.rb', line 1702 def memory @memory end |
#task_role_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the IAM role that containers in this task can assume.
All containers in this task are granted the permissions that are specified in this role. For more information, see IAM Role for Tasks in the Amazon Elastic Container Service Developer Guide .
1709 1710 1711 |
# File 'pipes/cfn_pipe.rb', line 1709 def task_role_arn @task_role_arn end |
Class Method Details
.jsii_properties ⇒ Object
1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'pipes/cfn_pipe.rb', line 1711 def self.jsii_properties { :container_overrides => "containerOverrides", :cpu => "cpu", :ephemeral_storage => "ephemeralStorage", :execution_role_arn => "executionRoleArn", :inference_accelerator_overrides => "inferenceAcceleratorOverrides", :memory => "memory", :task_role_arn => "taskRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 |
# File 'pipes/cfn_pipe.rb', line 1723 def to_jsii result = {} result.merge!({ "containerOverrides" => @container_overrides, "cpu" => @cpu, "ephemeralStorage" => @ephemeral_storage, "executionRoleArn" => @execution_role_arn, "inferenceAcceleratorOverrides" => @inference_accelerator_overrides, "memory" => @memory, "taskRoleArn" => @task_role_arn, }) result.compact end |