Skip to content

create_capacity_provider

Operation

create_capacity_provider

create_capacity_provider(request: CreateCapacityProviderInput | CreateCapacityProviderInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateCapacityProviderInputDict]) -> CreateCapacityProviderOutput

Creates a capacity provider that manages compute resources for Lambda Event Functions

Parameters:

Name Type Description Default
request CreateCapacityProviderInput | CreateCapacityProviderInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[CreateCapacityProviderInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateCapacityProviderOutput

An instance of CreateCapacityProviderOutput.

create_capacity_provider async

create_capacity_provider(request: CreateCapacityProviderInput | CreateCapacityProviderInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[CreateCapacityProviderInputDict]) -> CreateCapacityProviderOutput

Creates a capacity provider that manages compute resources for Lambda Event Functions

Parameters:

Name Type Description Default
request CreateCapacityProviderInput | CreateCapacityProviderInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[CreateCapacityProviderInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateCapacityProviderOutput

An instance of CreateCapacityProviderOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

CreateCapacityProviderInputDict

Bases: TypedDict

Dictionary form of CreateCapacityProviderInput.

Attributes

capacity_provider_name instance-attribute
capacity_provider_name: Required[str]

The name of the capacity provider.

capacity_provider_scaling_config instance-attribute
capacity_provider_scaling_config: CapacityProviderScalingConfig | CapacityProviderScalingConfigDict | None

The scaling configuration that defines how the capacity provider scales compute instances, including maximum vCPU count and scaling policies.

instance_requirements instance-attribute
instance_requirements: InstanceRequirements | InstanceRequirementsDict | None

The instance requirements that specify the compute instance characteristics, including architectures and allowed or excluded instance types.

kms_key_arn instance-attribute
kms_key_arn: str | None

The ARN of the KMS key used to encrypt data associated with the capacity provider.

permissions_config instance-attribute

The permissions configuration that specifies the IAM role ARN used by the capacity provider to manage compute resources.

propagate_tags instance-attribute
propagate_tags: PropagateTags | PropagateTagsDict | None

The tag propagation configuration for the capacity provider. Specifies tags to apply to managed resources at launch.

tags instance-attribute
tags: Mapping[str, str] | None

A list of tags to associate with the capacity provider.

telemetry_config instance-attribute

The telemetry configuration for the capacity provider. Specifies logging settings for managed resources.

vpc_config instance-attribute

The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.

CreateCapacityProviderInput dataclass

Bases: _SerdeShape

Dataclass for CreateCapacityProviderInput structure.

Attributes

capacity_provider_name class-attribute instance-attribute
capacity_provider_name: str | None = ...

The name of the capacity provider.

capacity_provider_scaling_config class-attribute instance-attribute
capacity_provider_scaling_config: CapacityProviderScalingConfig | 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 = ...

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 = ...

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 = ...

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 = ...

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 = ...

A list of tags to associate with the capacity provider.

telemetry_config class-attribute instance-attribute
telemetry_config: CapacityProviderTelemetryConfig | None = ...

The telemetry configuration for the capacity provider. Specifies logging settings for managed resources.

vpc_config class-attribute instance-attribute
vpc_config: CapacityProviderVpcConfig | None = ...

The VPC configuration for the capacity provider, including subnet IDs and security group IDs where compute instances will be launched.

Output

CreateCapacityProviderOutput dataclass

Bases: _SerdeShape

Dataclass for CreateCapacityProviderOutput structure.

Attributes

capacity_provider instance-attribute
capacity_provider: CapacityProvider

Information about the capacity provider that was created.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.