Lambda / Client / put_function_scaling_config

put_function_scaling_config

Lambda.Client.put_function_scaling_config(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.put_function_scaling_config(
    FunctionName='string',
    Qualifier='string',
    FunctionScalingConfig={
        'MinExecutionEnvironments': 123,
        'MaxExecutionEnvironments': 123
    }
)
Parameters:
  • FunctionName (string) –

    [REQUIRED]

    The name or ARN of the Lambda function.

  • Qualifier (string) –

    [REQUIRED]

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

  • FunctionScalingConfig (dict) –

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

    • MinExecutionEnvironments (integer) –

      The minimum number of execution environments to maintain for the function.

    • MaxExecutionEnvironments (integer) –

      The maximum number of execution environments that can be provisioned for the function.

Return type:

dict

Returns:

Response Syntax

{
    'FunctionState': 'Pending'|'Active'|'Inactive'|'Failed'|'Deactivating'|'Deactivated'|'ActiveNonInvocable'|'Deleting'
}

Response Structure

  • (dict) –

    • FunctionState (string) –

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

Exceptions