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.40.0 published on Thursday, Dec 11, 2025 by Pulumi
aws-native logo

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

AWS Cloud Control v1.40.0 published on Thursday, Dec 11, 2025 by Pulumi

    Resource Type definition for AWS::Lambda::CapacityProvider

    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:

    CapacityProviderName string
    The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.
    CapacityProviderName string
    The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.
    capacityProviderName String
    The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.
    capacityProviderName string
    The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.
    capacity_provider_name str
    The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.
    capacityProviderName String
    The name of the capacity provider. The name must be unique within your AWS account and region. If you don't specify a name, CloudFormation generates one.

    getCapacityProvider Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the capacity provider. This is a read-only property that is automatically generated when the capacity provider is created.
    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 list of tags to apply to the capacity provider.
    Arn string
    The Amazon Resource Name (ARN) of the capacity provider. This is a read-only property that is automatically generated when the capacity provider is created.
    CapacityProviderScalingConfig CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    State CapacityProviderStateEnum
    The current state of the capacity provider.
    Tags Tag
    A list of tags to apply to the capacity provider.
    arn String
    The Amazon Resource Name (ARN) of the capacity provider. This is a read-only property that is automatically generated when the capacity provider is created.
    capacityProviderScalingConfig CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    state CapacityProviderState
    The current state of the capacity provider.
    tags List<Tag>
    A list of tags to apply to the capacity provider.
    arn string
    The Amazon Resource Name (ARN) of the capacity provider. This is a read-only property that is automatically generated when the capacity provider is created.
    capacityProviderScalingConfig CapacityProviderScalingConfig
    The scaling configuration for the capacity provider.
    state CapacityProviderState
    The current state of the capacity provider.
    tags Tag[]
    A list of tags to apply to the capacity provider.
    arn str
    The Amazon Resource Name (ARN) of the capacity provider. This is a read-only property that is automatically generated when the capacity provider is created.
    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 list of tags to apply to the capacity provider.
    arn String
    The Amazon Resource Name (ARN) of the capacity provider. This is a read-only property that is automatically generated when the capacity provider is created.
    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 list of tags to apply to the capacity provider.

    Supporting Types

    CapacityProviderPredefinedMetricType

    CapacityProviderScalingConfig

    MaxVCpuCount int
    The maximum number of EC2 instances that the capacity provider can scale up to.
    ScalingMode Pulumi.AwsNative.Lambda.CapacityProviderScalingMode
    ScalingPolicies List<Pulumi.AwsNative.Lambda.Inputs.CapacityProviderTargetTrackingScalingPolicy>
    A list of target tracking scaling policies for the capacity provider.
    MaxVCpuCount int
    The maximum number of EC2 instances that the capacity provider can scale up to.
    ScalingMode CapacityProviderScalingMode
    ScalingPolicies []CapacityProviderTargetTrackingScalingPolicy
    A list of target tracking scaling policies for the capacity provider.
    maxVCpuCount Integer
    The maximum number of EC2 instances that the capacity provider can scale up to.
    scalingMode CapacityProviderScalingMode
    scalingPolicies List<CapacityProviderTargetTrackingScalingPolicy>
    A list of target tracking scaling policies for the capacity provider.
    maxVCpuCount number
    The maximum number of EC2 instances that the capacity provider can scale up to.
    scalingMode CapacityProviderScalingMode
    scalingPolicies CapacityProviderTargetTrackingScalingPolicy[]
    A list of target tracking scaling policies for the capacity provider.
    max_v_cpu_count int
    The maximum number of EC2 instances that the capacity provider can scale up to.
    scaling_mode CapacityProviderScalingMode
    scaling_policies Sequence[CapacityProviderTargetTrackingScalingPolicy]
    A list of target tracking scaling policies for the capacity provider.
    maxVCpuCount Number
    The maximum number of EC2 instances that the capacity provider can scale up to.
    scalingMode "Auto" | "Manual"
    scalingPolicies List<Property Map>
    A list of target tracking scaling policies for the capacity provider.

    CapacityProviderScalingMode

    CapacityProviderState

    CapacityProviderTargetTrackingScalingPolicy

    PredefinedMetricType Pulumi.AwsNative.Lambda.CapacityProviderPredefinedMetricType
    TargetValue double
    The target value for the metric as a percentage (for example, 70.0 for 70%).
    PredefinedMetricType CapacityProviderPredefinedMetricType
    TargetValue float64
    The target value for the metric as a percentage (for example, 70.0 for 70%).
    predefinedMetricType CapacityProviderPredefinedMetricType
    targetValue Double
    The target value for the metric as a percentage (for example, 70.0 for 70%).
    predefinedMetricType CapacityProviderPredefinedMetricType
    targetValue number
    The target value for the metric as a percentage (for example, 70.0 for 70%).
    predefined_metric_type CapacityProviderPredefinedMetricType
    target_value float
    The target value for the metric as a percentage (for example, 70.0 for 70%).
    predefinedMetricType "LambdaCapacityProviderAverageCPUUtilization"
    targetValue Number
    The target value for the metric as a percentage (for example, 70.0 for 70%).

    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.40.0 published on Thursday, Dec 11, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate