We recommend new projects start with resources from the AWS provider.
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::Lambda::CapacityProvider
Create CapacityProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CapacityProvider(name: string, args: CapacityProviderArgs, opts?: CustomResourceOptions);@overload
def CapacityProvider(resource_name: str,
args: CapacityProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CapacityProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
permissions_config: Optional[CapacityProviderPermissionsConfigArgs] = None,
vpc_config: Optional[CapacityProviderVpcConfigArgs] = None,
capacity_provider_name: Optional[str] = None,
capacity_provider_scaling_config: Optional[CapacityProviderScalingConfigArgs] = None,
instance_requirements: Optional[CapacityProviderInstanceRequirementsArgs] = None,
kms_key_arn: Optional[str] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)func NewCapacityProvider(ctx *Context, name string, args CapacityProviderArgs, opts ...ResourceOption) (*CapacityProvider, error)public CapacityProvider(string name, CapacityProviderArgs args, CustomResourceOptions? opts = null)
public CapacityProvider(String name, CapacityProviderArgs args)
public CapacityProvider(String name, CapacityProviderArgs args, CustomResourceOptions options)
type: aws-native:lambda:CapacityProvider
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CapacityProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CapacityProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CapacityProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CapacityProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CapacityProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CapacityProvider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CapacityProvider resource accepts the following input properties:
- Permissions
Config Pulumi.Aws Native. Lambda. Inputs. Capacity Provider Permissions Config - IAM permissions configuration for the capacity provider.
- Vpc
Config Pulumi.Aws Native. Lambda. Inputs. Capacity Provider Vpc Config - VPC configuration for the capacity provider.
- Capacity
Provider stringName - 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 Pulumi.Scaling Config Aws Native. Lambda. Inputs. Capacity Provider Scaling Config - The scaling configuration for the capacity provider.
- Instance
Requirements Pulumi.Aws Native. Lambda. Inputs. Capacity Provider Instance Requirements - Specifications for the types of EC2 instances that the capacity provider can use.
- Kms
Key stringArn - The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.
-
List<Pulumi.
Aws Native. Inputs. Tag> - A list of tags to apply to the capacity provider.
- Permissions
Config CapacityProvider Permissions Config Args - IAM permissions configuration for the capacity provider.
- Vpc
Config CapacityProvider Vpc Config Args - VPC configuration for the capacity provider.
- Capacity
Provider stringName - 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 CapacityScaling Config Provider Scaling Config Args - The scaling configuration for the capacity provider.
- Instance
Requirements CapacityProvider Instance Requirements Args - Specifications for the types of EC2 instances that the capacity provider can use.
- Kms
Key stringArn - The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.
-
Tag
Args - A list of tags to apply to the capacity provider.
- permissions
Config CapacityProvider Permissions Config - IAM permissions configuration for the capacity provider.
- vpc
Config CapacityProvider Vpc Config - VPC configuration for the capacity provider.
- capacity
Provider StringName - 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 CapacityScaling Config Provider Scaling Config - The scaling configuration for the capacity provider.
- instance
Requirements CapacityProvider Instance Requirements - Specifications for the types of EC2 instances that the capacity provider can use.
- kms
Key StringArn - The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.
- List<Tag>
- A list of tags to apply to the capacity provider.
- permissions
Config CapacityProvider Permissions Config - IAM permissions configuration for the capacity provider.
- vpc
Config CapacityProvider Vpc Config - VPC configuration for the capacity provider.
- capacity
Provider stringName - 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 CapacityScaling Config Provider Scaling Config - The scaling configuration for the capacity provider.
- instance
Requirements CapacityProvider Instance Requirements - Specifications for the types of EC2 instances that the capacity provider can use.
- kms
Key stringArn - The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.
- Tag[]
- A list of tags to apply to the capacity provider.
- permissions_
config CapacityProvider Permissions Config Args - IAM permissions configuration for the capacity provider.
- vpc_
config CapacityProvider Vpc Config Args - VPC configuration for the capacity provider.
- capacity_
provider_ strname - 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_ Capacityscaling_ config Provider Scaling Config Args - The scaling configuration for the capacity provider.
- instance_
requirements CapacityProvider Instance Requirements Args - Specifications for the types of EC2 instances that the capacity provider can use.
- kms_
key_ strarn - The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.
-
Sequence[Tag
Args] - A list of tags to apply to the capacity provider.
- permissions
Config Property Map - IAM permissions configuration for the capacity provider.
- vpc
Config Property Map - VPC configuration for the capacity provider.
- capacity
Provider StringName - 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 Property MapScaling Config - The scaling configuration for the capacity provider.
- instance
Requirements Property Map - Specifications for the types of EC2 instances that the capacity provider can use.
- kms
Key StringArn - The ARN of the AWS Key Management Service (KMS) key used by the capacity provider.
- List<Property Map>
- A list of tags to apply to the capacity provider.
Outputs
All input properties are implicitly available as output properties. Additionally, the CapacityProvider resource produces the following output properties:
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Pulumi.
Aws Native. Lambda. Capacity Provider State - The current state of 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- State
Capacity
Provider State Enum - The current state of 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.
- id String
- The provider-assigned unique ID for this managed resource.
- state
Capacity
Provider State - The current state of 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.
- id string
- The provider-assigned unique ID for this managed resource.
- state
Capacity
Provider State - The current state of 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.
- id str
- The provider-assigned unique ID for this managed resource.
- state
Capacity
Provider State - The current state of 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.
- id String
- The provider-assigned unique ID for this managed resource.
- state "Pending" | "Active" | "Failed" | "Deleting"
- The current state of the capacity provider.
Supporting Types
CapacityProviderArchitecture, CapacityProviderArchitectureArgs
- X8664
- x86_64
- Arm64
- arm64
- Capacity
Provider Architecture X8664 - x86_64
- Capacity
Provider Architecture Arm64 - arm64
- X8664
- x86_64
- Arm64
- arm64
- X8664
- x86_64
- Arm64
- arm64
- X8664
- x86_64
- ARM64
- arm64
- "x86_64"
- x86_64
- "arm64"
- arm64
CapacityProviderInstanceRequirements, CapacityProviderInstanceRequirementsArgs
Specifications for the types of EC2 instances that the capacity provider can use.- Allowed
Instance List<string>Types - A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).
- Architectures
List<Pulumi.
Aws Native. Lambda. Capacity Provider Architecture> - The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.
- Excluded
Instance List<string>Types - A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.
- Allowed
Instance []stringTypes - A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).
- Architectures
[]Capacity
Provider Architecture - The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.
- Excluded
Instance []stringTypes - A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.
- allowed
Instance List<String>Types - A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).
- architectures
List<Capacity
Provider Architecture> - The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.
- excluded
Instance List<String>Types - A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.
- allowed
Instance string[]Types - A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).
- architectures
Capacity
Provider Architecture[] - The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.
- excluded
Instance string[]Types - A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.
- allowed_
instance_ Sequence[str]types - A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).
- architectures
Sequence[Capacity
Provider Architecture] - The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.
- excluded_
instance_ Sequence[str]types - A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.
- allowed
Instance List<String>Types - A list of instance types that the capacity provider can use. Supports wildcards (for example, m5.*).
- architectures List<"x86_64" | "arm64">
- The instruction set architecture for EC2 instances. Specify either x86_64 or arm64.
- excluded
Instance List<String>Types - A list of instance types that the capacity provider should not use. Takes precedence over AllowedInstanceTypes.
CapacityProviderPermissionsConfig, CapacityProviderPermissionsConfigArgs
IAM permissions configuration for the capacity provider.- Capacity
Provider stringOperator Role Arn - The ARN of the IAM role that Lambda assumes to manage the capacity provider.
- Capacity
Provider stringOperator Role Arn - The ARN of the IAM role that Lambda assumes to manage the capacity provider.
- capacity
Provider StringOperator Role Arn - The ARN of the IAM role that Lambda assumes to manage the capacity provider.
- capacity
Provider stringOperator Role Arn - The ARN of the IAM role that Lambda assumes to manage the capacity provider.
- capacity_
provider_ stroperator_ role_ arn - The ARN of the IAM role that Lambda assumes to manage the capacity provider.
- capacity
Provider StringOperator Role Arn - The ARN of the IAM role that Lambda assumes to manage the capacity provider.
CapacityProviderPredefinedMetricType, CapacityProviderPredefinedMetricTypeArgs
- Lambda
Capacity Provider Average Cpu Utilization - LambdaCapacityProviderAverageCPUUtilization
- Capacity
Provider Predefined Metric Type Lambda Capacity Provider Average Cpu Utilization - LambdaCapacityProviderAverageCPUUtilization
- Lambda
Capacity Provider Average Cpu Utilization - LambdaCapacityProviderAverageCPUUtilization
- Lambda
Capacity Provider Average Cpu Utilization - LambdaCapacityProviderAverageCPUUtilization
- LAMBDA_CAPACITY_PROVIDER_AVERAGE_CPU_UTILIZATION
- LambdaCapacityProviderAverageCPUUtilization
- "Lambda
Capacity Provider Average CPUUtilization" - LambdaCapacityProviderAverageCPUUtilization
CapacityProviderScalingConfig, CapacityProviderScalingConfigArgs
The scaling configuration for the capacity provider.- Max
VCpu intCount - The maximum number of EC2 instances that the capacity provider can scale up to.
- Scaling
Mode Pulumi.Aws Native. Lambda. Capacity Provider Scaling Mode - Scaling
Policies List<Pulumi.Aws Native. Lambda. Inputs. Capacity Provider Target Tracking Scaling Policy> - A list of target tracking scaling policies for the capacity provider.
- Max
VCpu intCount - The maximum number of EC2 instances that the capacity provider can scale up to.
- Scaling
Mode CapacityProvider Scaling Mode - Scaling
Policies []CapacityProvider Target Tracking Scaling Policy - A list of target tracking scaling policies for the capacity provider.
- max
VCpu IntegerCount - The maximum number of EC2 instances that the capacity provider can scale up to.
- scaling
Mode CapacityProvider Scaling Mode - scaling
Policies List<CapacityProvider Target Tracking Scaling Policy> - A list of target tracking scaling policies for the capacity provider.
- max
VCpu numberCount - The maximum number of EC2 instances that the capacity provider can scale up to.
- scaling
Mode CapacityProvider Scaling Mode - scaling
Policies CapacityProvider Target Tracking Scaling Policy[] - A list of target tracking scaling policies for the capacity provider.
- max_
v_ intcpu_ count - The maximum number of EC2 instances that the capacity provider can scale up to.
- scaling_
mode CapacityProvider Scaling Mode - scaling_
policies Sequence[CapacityProvider Target Tracking Scaling Policy] - A list of target tracking scaling policies for the capacity provider.
- max
VCpu NumberCount - The maximum number of EC2 instances that the capacity provider can scale up to.
- scaling
Mode "Auto" | "Manual" - scaling
Policies List<Property Map> - A list of target tracking scaling policies for the capacity provider.
CapacityProviderScalingMode, CapacityProviderScalingModeArgs
- Auto
- Auto
- Manual
- Manual
- Capacity
Provider Scaling Mode Auto - Auto
- Capacity
Provider Scaling Mode Manual - Manual
- Auto
- Auto
- Manual
- Manual
- Auto
- Auto
- Manual
- Manual
- AUTO
- Auto
- MANUAL
- Manual
- "Auto"
- Auto
- "Manual"
- Manual
CapacityProviderState, CapacityProviderStateArgs
- Pending
- Pending
- Active
- Active
- Failed
- Failed
- Deleting
- Deleting
- Capacity
Provider State Pending - Pending
- Capacity
Provider State Active - Active
- Capacity
Provider State Failed - Failed
- Capacity
Provider State Deleting - Deleting
- Pending
- Pending
- Active
- Active
- Failed
- Failed
- Deleting
- Deleting
- Pending
- Pending
- Active
- Active
- Failed
- Failed
- Deleting
- Deleting
- PENDING
- Pending
- ACTIVE
- Active
- FAILED
- Failed
- DELETING
- Deleting
- "Pending"
- Pending
- "Active"
- Active
- "Failed"
- Failed
- "Deleting"
- Deleting
CapacityProviderTargetTrackingScalingPolicy, CapacityProviderTargetTrackingScalingPolicyArgs
A target tracking scaling policy for the capacity provider.- Predefined
Metric Pulumi.Type Aws Native. Lambda. Capacity Provider Predefined Metric Type - Target
Value double - The target value for the metric as a percentage (for example, 70.0 for 70%).
- Predefined
Metric CapacityType Provider Predefined Metric Type - Target
Value float64 - The target value for the metric as a percentage (for example, 70.0 for 70%).
- predefined
Metric CapacityType Provider Predefined Metric Type - target
Value Double - The target value for the metric as a percentage (for example, 70.0 for 70%).
- predefined
Metric CapacityType Provider Predefined Metric Type - target
Value number - The target value for the metric as a percentage (for example, 70.0 for 70%).
- predefined_
metric_ Capacitytype Provider Predefined Metric Type - target_
value float - The target value for the metric as a percentage (for example, 70.0 for 70%).
- predefined
Metric "LambdaType Capacity Provider Average CPUUtilization" - target
Value Number - The target value for the metric as a percentage (for example, 70.0 for 70%).
CapacityProviderVpcConfig, CapacityProviderVpcConfigArgs
VPC configuration for the capacity provider.- Security
Group List<string>Ids - A list of security group IDs to associate with EC2 instances.
- Subnet
Ids List<string> - A list of subnet IDs where the capacity provider can launch EC2 instances.
- Security
Group []stringIds - A list of security group IDs to associate with EC2 instances.
- Subnet
Ids []string - A list of subnet IDs where the capacity provider can launch EC2 instances.
- security
Group List<String>Ids - A list of security group IDs to associate with EC2 instances.
- subnet
Ids List<String> - A list of subnet IDs where the capacity provider can launch EC2 instances.
- security
Group string[]Ids - A list of security group IDs to associate with EC2 instances.
- subnet
Ids string[] - A list of subnet IDs where the capacity provider can launch EC2 instances.
- security_
group_ Sequence[str]ids - A list of security group IDs to associate with EC2 instances.
- subnet_
ids Sequence[str] - A list of subnet IDs where the capacity provider can launch EC2 instances.
- security
Group List<String>Ids - A list of security group IDs to associate with EC2 instances.
- subnet
Ids List<String> - A list of subnet IDs where the capacity provider can launch EC2 instances.
Tag, TagArgs
A set of tags to apply to the resource.Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
