Class: Aws::EventBridge::Types::CapacityProviderStrategyItem

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb

Overview

Note:

When making an API call, you may pass CapacityProviderStrategyItem data as a hash:

{
  capacity_provider: "CapacityProvider", # required
  weight: 1,
  base: 1,
}

The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#baseInteger

The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.

Returns:

  • (Integer)


359
360
361
362
363
364
365
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 359

class CapacityProviderStrategyItem < Struct.new(
  :capacity_provider,
  :weight,
  :base)
  SENSITIVE = []
  include Aws::Structure
end

#capacity_providerString

The short name of the capacity provider.

Returns:

  • (String)


359
360
361
362
363
364
365
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 359

class CapacityProviderStrategyItem < Struct.new(
  :capacity_provider,
  :weight,
  :base)
  SENSITIVE = []
  include Aws::Structure
end

#weightInteger

The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.

Returns:

  • (Integer)


359
360
361
362
363
364
365
# File 'gems/aws-sdk-eventbridge/lib/aws-sdk-eventbridge/types.rb', line 359

class CapacityProviderStrategyItem < Struct.new(
  :capacity_provider,
  :weight,
  :base)
  SENSITIVE = []
  include Aws::Structure
end