Skip to content

Lambda  >  Operations  >  put_function_scaling_config

put_function_scaling_config

Operation

put_function_scaling_config async

put_function_scaling_config(input: PutFunctionScalingConfigInput, plugins: list[Plugin] | None = None) -> PutFunctionScalingConfigOutput

Sets the scaling configuration for a Lambda Managed Instances function. The scaling configuration defines the minimum and maximum number of execution environments that can be provisioned for the function, allowing you to control scaling behavior and resource allocation.

Parameters:

Name Type Description Default
input PutFunctionScalingConfigInput

An instance of PutFunctionScalingConfigInput.

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
PutFunctionScalingConfigOutput

An instance of PutFunctionScalingConfigOutput.

Input

PutFunctionScalingConfigInput dataclass

Dataclass for PutFunctionScalingConfigInput structure.

Attributes

function_name class-attribute instance-attribute
function_name: str | None = None

The name or ARN of the Lambda function.

function_scaling_config class-attribute instance-attribute
function_scaling_config: FunctionScalingConfig | None = None

The scaling configuration to apply to the function, including minimum and maximum execution environment limits.

qualifier class-attribute instance-attribute
qualifier: str | None = None

Specify a version or alias to set the scaling configuration for a published version of the function.

Output

PutFunctionScalingConfigOutput dataclass

Dataclass for PutFunctionScalingConfigOutput structure.

Attributes

function_state class-attribute instance-attribute
function_state: State | None = None

The current state of the function after applying the scaling configuration.