Module: AWSCDK::StepFunctionsTasks::IECSLaunchTarget

Included in:
ECSEC2LaunchTarget, ECSFargateLaunchTarget
Defined in:
step_functions_tasks/iecs_launch_target.rb

Overview

An Amazon ECS launch type determines the type of infrastructure on which your tasks and services are hosted.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



21
22
23
24
25
# File 'step_functions_tasks/iecs_launch_target.rb', line 21

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 ECS launch target is configured on RunTask.



14
15
16
17
18
19
# File 'step_functions_tasks/iecs_launch_target.rb', line 14

def bind(task, launch_target_options)
  Jsii::Type.check_type(task, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5FY3NSdW5UYXNrIn0=")), "task")
  launch_target_options = launch_target_options.is_a?(Hash) ? ::AWSCDK::StepFunctionsTasks::LaunchTargetBindOptions.new(**launch_target_options.transform_keys(&:to_sym)) : launch_target_options
  Jsii::Type.check_type(launch_target_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5MYXVuY2hUYXJnZXRCaW5kT3B0aW9ucyJ9")), "launchTargetOptions")
  jsii_call_method("bind", [task, launch_target_options])
end