Skip to content

LambdaClient.create_capacity_provider

rboto-lambda==0.4.0 · Service index · Types

Model summary (excerpt): Creates a capacity provider that manages compute resources for Lambda Event Functions

Install and imports

python -m pip install "rboto[lambda]==0.4.0"
from rboto import LambdaClient
from rboto_lambda.types import (
    CapacityProviderPermissionsConfig,
    CapacityProviderScalingConfig,
    CapacityProviderTelemetryConfig,
    CapacityProviderVpcConfig,
    CreateCapacityProviderOutput,
    InstanceRequirements,
    PropagateTags,
)

Signature

async def create_capacity_provider(
    *,
    capacity_provider_name: str,
    vpc_config: CapacityProviderVpcConfig,
    permissions_config: CapacityProviderPermissionsConfig,
    instance_requirements: InstanceRequirements | None = None,
    capacity_provider_scaling_config: CapacityProviderScalingConfig | None = None,
    kms_key_arn: str | None = None,
    tags: dict[str, str] | None = None,
    propagate_tags: PropagateTags | None = None,
    telemetry_config: CapacityProviderTelemetryConfig | None = None,
) -> CreateCapacityProviderOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
capacity_provider_name Yes The name of the capacity provider.
vpc_config Yes The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.
permissions_config Yes The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.
instance_requirements No The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.
capacity_provider_scaling_config No The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.
kms_key_arn No The ARN of the KMS key used to encrypt data associated with the capacity provider.
tags No A list of tags to associate with the capacity provider.
propagate_tags No The tag propagation configuration for the capacity provider. Specifies tags to apply to managed resources at launch.
telemetry_config No The telemetry configuration for the capacity provider. Specifies logging settings for managed resources.

Output

CreateCapacityProviderOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
capacity_provider CapacityProviderOutput | None Always present CapacityProviderOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

CapacityProviderPermissionsConfig, CapacityProviderScalingConfig, CapacityProviderTelemetryConfig, CapacityProviderVpcConfig, CreateCapacityProviderOutput, InstanceRequirements, PropagateTags

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_lambda.exceptions:

CapacityProviderLimitExceededError, InvalidParameterValueError, ResourceConflictError, ServiceError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model