Class: AWSCDK::StepFunctionsTasks::ECSEC2LaunchTarget
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::StepFunctionsTasks::ECSEC2LaunchTarget
- Includes:
- IECSLaunchTarget
- Defined in:
- step_functions_tasks/ecsec2_launch_target.rb
Overview
Configuration for running an ECS task on EC2.
Class Method Summary collapse
Instance Method Summary collapse
-
#bind(task, launch_target_options) ⇒ AWSCDK::StepFunctionsTasks::ECSLaunchTargetConfig
Called when the EC2 launch type is configured on RunTask.
-
#initialize(options = nil) ⇒ ECSEC2LaunchTarget
constructor
A new instance of ECSEC2LaunchTarget.
Constructor Details
#initialize(options = nil) ⇒ ECSEC2LaunchTarget
Returns a new instance of ECSEC2LaunchTarget.
12 13 14 15 16 |
# File 'step_functions_tasks/ecsec2_launch_target.rb', line 12 def initialize( = nil) = .is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::ECSEC2LaunchTargetOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FY3NFYzJMYXVuY2hUYXJnZXRPcHRpb25zIn0=")), "options") unless .nil? Jsii::Object.instance_method(:initialize).bind(self).call() end |
Class Method Details
.jsii_overridable_methods ⇒ Object
18 19 20 21 22 |
# File 'step_functions_tasks/ecsec2_launch_target.rb', line 18 def self.jsii_overridable_methods { :bind => { kind: :method, name: "bind", is_optional: false }, } end |
Instance Method Details
#bind(task, launch_target_options) ⇒ AWSCDK::StepFunctionsTasks::ECSLaunchTargetConfig
Called when the EC2 launch type is configured on RunTask.
29 30 31 32 33 34 |
# File 'step_functions_tasks/ecsec2_launch_target.rb', line 29 def bind(task, ) Jsii::Type.check_type(task, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FY3NSdW5UYXNrIn0=")), "task") = .is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::LaunchTargetBindOptions.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5MYXVuY2hUYXJnZXRCaW5kT3B0aW9ucyJ9")), "launchTargetOptions") jsii_call_method("bind", [task, ]) end |