1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. lambda
  5. getCapacityProvider

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.56.0 published on Monday, Mar 2, 2026 by Pulumi
aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.56.0 published on Monday, Mar 2, 2026 by Pulumi

    Creates a capacity provider that manages compute resources for Lambda functions

    Using getCapacityProvider

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getCapacityProvider(args: GetCapacityProviderArgs, opts?: InvokeOptions): Promise<GetCapacityProviderResult>
    function getCapacityProviderOutput(args: GetCapacityProviderOutputArgs, opts?: InvokeOptions): Output<GetCapacityProviderResult>
    def get_capacity_provider(capacity_provider_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCapacityProviderResult
    def get_capacity_provider_output(capacity_provider_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCapacityProviderResult]
    func LookupCapacityProvider(ctx *Context, args *LookupCapacityProviderArgs, opts ...InvokeOption) (*LookupCapacityProviderResult, error)
    func LookupCapacityProviderOutput(ctx *Context, args *LookupCapacityProviderOutputArgs, opts ...InvokeOption) LookupCapacityProviderResultOutput

    > Note: This function is named LookupCapacityProvider in the Go SDK.

    public static class GetCapacityProvider 
    {
        public static Task<GetCapacityProviderResult> InvokeAsync(GetCapacityProviderArgs args, InvokeOptions? opts = null)
        public static Output<GetCapacityProviderResult> Invoke(GetCapacityProviderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCapacityProviderResult> getCapacityProvider(GetCapacityProviderArgs args, InvokeOptions options)
    public static Output<GetCapacityProviderResult> getCapacityProvider(GetCapacityProviderArgs args, InvokeOptions options)
    
    fn::invoke:
      function: aws-native:lambda:getCapacityProvider
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getCapacityProvider Result

    The following output properties are available:

    Arn string
    CapacityProviderScalingConfig Pulumi.AwsNative.Lambda.Outputs.CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    State Pulumi.AwsNative.Lambda.CapacityProviderState
    The current state of the capacity provider.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    A key-value pair that provides metadata for the capacity provider.
    Arn string
    CapacityProviderScalingConfig CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    State CapacityProviderStateEnum
    The current state of the capacity provider.
    Tags Tag
    A key-value pair that provides metadata for the capacity provider.
    arn String
    capacityProviderScalingConfig CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    state CapacityProviderState
    The current state of the capacity provider.
    tags List<Tag>
    A key-value pair that provides metadata for the capacity provider.
    arn string
    capacityProviderScalingConfig CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    state CapacityProviderState
    The current state of the capacity provider.
    tags Tag[]
    A key-value pair that provides metadata for the capacity provider.
    arn str
    capacity_provider_scaling_config CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    state CapacityProviderState
    The current state of the capacity provider.
    tags Sequence[root_Tag]
    A key-value pair that provides metadata for the capacity provider.
    arn String
    capacityProviderScalingConfig Property Map
    The scaling configuration for the capacity provider.
    state "Pending" | "Active" | "Failed" | "Deleting"
    The current state of the capacity provider.
    tags List<Property Map>
    A key-value pair that provides metadata for the capacity provider.

    Supporting Types

    CapacityProviderPredefinedMetricType

    CapacityProviderScalingConfig

    MaxVCpuCount int
    The maximum number of vCPUs that the capacity provider can provision across all compute instances.
    ScalingMode Pulumi.AwsNative.Lambda.CapacityProviderScalingMode
    The scaling mode that determines how the capacity provider responds to changes in demand.
    ScalingPolicies List<Pulumi.AwsNative.Lambda.Inputs.CapacityProviderTargetTrackingScalingPolicy>
    A list of target tracking scaling policies for the capacity provider.
    MaxVCpuCount int
    The maximum number of vCPUs that the capacity provider can provision across all compute instances.
    ScalingMode CapacityProviderScalingMode
    The scaling mode that determines how the capacity provider responds to changes in demand.
    ScalingPolicies []CapacityProviderTargetTrackingScalingPolicy
    A list of target tracking scaling policies for the capacity provider.
    maxVCpuCount Integer
    The maximum number of vCPUs that the capacity provider can provision across all compute instances.
    scalingMode CapacityProviderScalingMode
    The scaling mode that determines how the capacity provider responds to changes in demand.
    scalingPolicies List<CapacityProviderTargetTrackingScalingPolicy>
    A list of target tracking scaling policies for the capacity provider.
    maxVCpuCount number
    The maximum number of vCPUs that the capacity provider can provision across all compute instances.
    scalingMode CapacityProviderScalingMode
    The scaling mode that determines how the capacity provider responds to changes in demand.
    scalingPolicies CapacityProviderTargetTrackingScalingPolicy[]
    A list of target tracking scaling policies for the capacity provider.
    max_v_cpu_count int
    The maximum number of vCPUs that the capacity provider can provision across all compute instances.
    scaling_mode CapacityProviderScalingMode
    The scaling mode that determines how the capacity provider responds to changes in demand.
    scaling_policies Sequence[CapacityProviderTargetTrackingScalingPolicy]
    A list of target tracking scaling policies for the capacity provider.
    maxVCpuCount Number
    The maximum number of vCPUs that the capacity provider can provision across all compute instances.
    scalingMode "Auto" | "Manual"
    The scaling mode that determines how the capacity provider responds to changes in demand.
    scalingPolicies List<Property Map>
    A list of target tracking scaling policies for the capacity provider.

    CapacityProviderScalingMode

    CapacityProviderState

    CapacityProviderTargetTrackingScalingPolicy

    PredefinedMetricType Pulumi.AwsNative.Lambda.CapacityProviderPredefinedMetricType
    The predefined metric type to track for scaling decisions.
    TargetValue double
    The target value for the metric that the scaling policy attempts to maintain through scaling actions.
    PredefinedMetricType CapacityProviderPredefinedMetricType
    The predefined metric type to track for scaling decisions.
    TargetValue float64
    The target value for the metric that the scaling policy attempts to maintain through scaling actions.
    predefinedMetricType CapacityProviderPredefinedMetricType
    The predefined metric type to track for scaling decisions.
    targetValue Double
    The target value for the metric that the scaling policy attempts to maintain through scaling actions.
    predefinedMetricType CapacityProviderPredefinedMetricType
    The predefined metric type to track for scaling decisions.
    targetValue number
    The target value for the metric that the scaling policy attempts to maintain through scaling actions.
    predefined_metric_type CapacityProviderPredefinedMetricType
    The predefined metric type to track for scaling decisions.
    target_value float
    The target value for the metric that the scaling policy attempts to maintain through scaling actions.
    predefinedMetricType "LambdaCapacityProviderAverageCPUUtilization"
    The predefined metric type to track for scaling decisions.
    targetValue Number
    The target value for the metric that the scaling policy attempts to maintain through scaling actions.

    Tag

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Cloud Control v1.56.0 published on Monday, Mar 2, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate