create_capacity_provider¶
Operation¶
create_capacity_provider
async
¶
create_capacity_provider(input: CreateCapacityProviderInput, plugins: list[Plugin] | None = None) -> CreateCapacityProviderOutput
Creates a capacity provider that manages compute resources for Lambda functions
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
CreateCapacityProviderInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
CreateCapacityProviderOutput
|
An instance of |
Input¶
CreateCapacityProviderInput
dataclass
¶
Dataclass for CreateCapacityProviderInput structure.
Attributes¶
capacity_provider_name
class-attribute
instance-attribute
¶
capacity_provider_name: str | None = None
The name of the capacity provider.
capacity_provider_scaling_config
class-attribute
instance-attribute
¶
capacity_provider_scaling_config: CapacityProviderScalingConfig | None = None
The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.
instance_requirements
class-attribute
instance-attribute
¶
instance_requirements: InstanceRequirements | None = None
The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.
kms_key_arn
class-attribute
instance-attribute
¶
kms_key_arn: str | None = None
The ARN of the KMS key used to encrypt data associated with the capacity provider.
permissions_config
class-attribute
instance-attribute
¶
permissions_config: CapacityProviderPermissionsConfig | None = None
The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.
propagate_tags
class-attribute
instance-attribute
¶
propagate_tags: PropagateTags | None = None
The tag propagation configuration for the capacity provider. Specifies tags to apply to managed resources at launch.
tags
class-attribute
instance-attribute
¶
tags: dict[str, str] | None = None
A list of tags to associate with the capacity provider.
telemetry_config
class-attribute
instance-attribute
¶
telemetry_config: CapacityProviderTelemetryConfig | None = None
The telemetry configuration for the capacity provider. Specifies logging settings for managed resources.
vpc_config
class-attribute
instance-attribute
¶
vpc_config: CapacityProviderVpcConfig | None = None
The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.
Output¶
CreateCapacityProviderOutput
dataclass
¶
Dataclass for CreateCapacityProviderOutput structure.
Attributes¶
capacity_provider
instance-attribute
¶
capacity_provider: CapacityProvider
Information about the capacity provider that was created.