Class: AWSCDK::StepFunctionsTasks::ECSFargateLaunchTargetOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
step_functions_tasks/ecs_fargate_launch_target_options.rb

Overview

Properties to define an ECS service.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(platform_version:, capacity_provider_options: nil) ⇒ ECSFargateLaunchTargetOptions

Returns a new instance of ECSFargateLaunchTargetOptions.

Parameters:



9
10
11
12
13
14
# File 'step_functions_tasks/ecs_fargate_launch_target_options.rb', line 9

def initialize(platform_version:, capacity_provider_options: nil)
  @platform_version = platform_version
  Jsii::Type.check_type(@platform_version, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWNzLkZhcmdhdGVQbGF0Zm9ybVZlcnNpb24ifQ==")), "platformVersion")
  @capacity_provider_options = capacity_provider_options
  Jsii::Type.check_type(@capacity_provider_options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc3RlcGZ1bmN0aW9uc190YXNrcy5DYXBhY2l0eVByb3ZpZGVyT3B0aW9ucyJ9")), "capacityProviderOptions") unless @capacity_provider_options.nil?
end

Instance Attribute Details

#capacity_provider_optionsAWSCDK::StepFunctionsTasks::CapacityProviderOptions? (readonly)

Note:

Default: - 'FARGATE' LaunchType running tasks on AWS Fargate On-Demand infrastructure is used without the capacity provider strategy.

The capacity provider options to use for the task.

This property allows you to set the capacity provider strategy for the task.

If you want to set the capacity provider strategy for the task, specify CapacityProviderOptions.custom(). This is required to use the FARGATE_SPOT capacity provider.

If you want to use the cluster's default capacity provider strategy, specify CapacityProviderOptions.default().



36
37
38
# File 'step_functions_tasks/ecs_fargate_launch_target_options.rb', line 36

def capacity_provider_options
  @capacity_provider_options
end

#platform_versionAWSCDK::ECS::FargatePlatformVersion (readonly)

Refers to a specific runtime environment for Fargate task infrastructure.

Fargate platform version is a combination of the kernel and container runtime versions.



22
23
24
# File 'step_functions_tasks/ecs_fargate_launch_target_options.rb', line 22

def platform_version
  @platform_version
end

Class Method Details

.jsii_propertiesObject



38
39
40
41
42
43
# File 'step_functions_tasks/ecs_fargate_launch_target_options.rb', line 38

def self.jsii_properties
  {
    :platform_version => "platformVersion",
    :capacity_provider_options => "capacityProviderOptions",
  }
end

Instance Method Details

#to_jsiiObject



45
46
47
48
49
50
51
52
# File 'step_functions_tasks/ecs_fargate_launch_target_options.rb', line 45

def to_jsii
  result = {}
  result.merge!({
    "platformVersion" => @platform_version,
    "capacityProviderOptions" => @capacity_provider_options,
  })
  result.compact
end