Skip to content

Update Capacity Provider

ecs_update_capacity_provider R Documentation

Modifies the parameters for a capacity provider

Description

Modifies the parameters for a capacity provider.

Usage

ecs_update_capacity_provider(name, autoScalingGroupProvider)

Arguments

name

[required] The name of the capacity provider to update.

autoScalingGroupProvider

[required] An object that represent the parameters to update for the Auto Scaling group capacity provider.

Value

A list with the following syntax:

list(
  capacityProvider = list(
    capacityProviderArn = "string",
    name = "string",
    status = "ACTIVE"|"INACTIVE",
    autoScalingGroupProvider = list(
      autoScalingGroupArn = "string",
      managedScaling = list(
        status = "ENABLED"|"DISABLED",
        targetCapacity = 123,
        minimumScalingStepSize = 123,
        maximumScalingStepSize = 123,
        instanceWarmupPeriod = 123
      ),
      managedTerminationProtection = "ENABLED"|"DISABLED",
      managedDraining = "ENABLED"|"DISABLED"
    ),
    updateStatus = "DELETE_IN_PROGRESS"|"DELETE_COMPLETE"|"DELETE_FAILED"|"UPDATE_IN_PROGRESS"|"UPDATE_COMPLETE"|"UPDATE_FAILED",
    updateStatusReason = "string",
    tags = list(
      list(
        key = "string",
        value = "string"
      )
    )
  )
)

Request syntax

svc$update_capacity_provider(
  name = "string",
  autoScalingGroupProvider = list(
    managedScaling = list(
      status = "ENABLED"|"DISABLED",
      targetCapacity = 123,
      minimumScalingStepSize = 123,
      maximumScalingStepSize = 123,
      instanceWarmupPeriod = 123
    ),
    managedTerminationProtection = "ENABLED"|"DISABLED",
    managedDraining = "ENABLED"|"DISABLED"
  )
)