Skip to content

Updates the configuration of an existing capacity provider

Description

Updates the configuration of an existing capacity provider.

Usage

lambda_update_capacity_provider(CapacityProviderName,
  CapacityProviderScalingConfig, PropagateTags, TelemetryConfig)

Arguments

  • CapacityProviderName

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

  • CapacityProviderScalingConfig

The updated scaling configuration for the capacity provider.

  • PropagateTags

Configuration for tag propagation to managed resources launched by the capacity provider.

  • TelemetryConfig

The updated telemetry configuration for the capacity provider.

Value

A list with the following syntax:

list(
  CapacityProvider = list(
    CapacityProviderArn = "string",
    State = "Pending"|"Active"|"Failed"|"Deleting",
    VpcConfig = list(
      SubnetIds = list(
        "string"
      ),
      SecurityGroupIds = list(
        "string"
      )
    ),
    PermissionsConfig = list(
      CapacityProviderOperatorRoleArn = "string"
    ),
    InstanceRequirements = list(
      Architectures = list(
        "x86_64"|"arm64"
      ),
      AllowedInstanceTypes = list(
        "string"
      ),
      ExcludedInstanceTypes = list(
        "string"
      )
    ),
    CapacityProviderScalingConfig = list(
      MaxVCpuCount = 123,
      ScalingMode = "Auto"|"Manual",
      ScalingPolicies = list(
        list(
          PredefinedMetricType = "LambdaCapacityProviderAverageCPUUtilization",
          TargetValue = 123.0
        )
      )
    ),
    KmsKeyArn = "string",
    LastModified = "string",
    PropagateTags = list(
      Mode = "None"|"Explicit",
      ExplicitTags = list(
        "string"
      )
    ),
    TelemetryConfig = list(
      LoggingConfig = list(
        SystemLogLevel = "DEBUG"|"INFO"|"WARN",
        LogGroup = "string"
      )
    )
  )
)

Request syntax

svc$update_capacity_provider(
  CapacityProviderName = "string",
  CapacityProviderScalingConfig = list(
    MaxVCpuCount = 123,
    ScalingMode = "Auto"|"Manual",
    ScalingPolicies = list(
      list(
        PredefinedMetricType = "LambdaCapacityProviderAverageCPUUtilization",
        TargetValue = 123.0
      )
    )
  ),
  PropagateTags = list(
    Mode = "None"|"Explicit",
    ExplicitTags = list(
      "string"
    )
  ),
  TelemetryConfig = list(
    LoggingConfig = list(
      SystemLogLevel = "DEBUG"|"INFO"|"WARN",
      LogGroup = "string"
    )
  )
)