put_function_scaling_config¶
Operation¶
put_function_scaling_config
¶
put_function_scaling_config(request: PutFunctionScalingConfigInput | PutFunctionScalingConfigInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutFunctionScalingConfigInputDict]) -> 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 |
|---|---|---|---|
request
|
PutFunctionScalingConfigInput | PutFunctionScalingConfigInputDict | 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[PutFunctionScalingConfigInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
PutFunctionScalingConfigOutput
|
An instance of |
put_function_scaling_config
async
¶
put_function_scaling_config(request: PutFunctionScalingConfigInput | PutFunctionScalingConfigInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutFunctionScalingConfigInputDict]) -> 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 |
|---|---|---|---|
request
|
PutFunctionScalingConfigInput | PutFunctionScalingConfigInputDict | 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[PutFunctionScalingConfigInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
PutFunctionScalingConfigOutput
|
An instance of |
Input¶
Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.
PutFunctionScalingConfigInputDict
¶
Bases: TypedDict
Dictionary form of PutFunctionScalingConfigInput.
Attributes¶
function_name
instance-attribute
¶
The name or ARN of the Lambda function.
function_scaling_config
instance-attribute
¶
function_scaling_config: FunctionScalingConfig | FunctionScalingConfigDict | None
The scaling configuration to apply to the function, including minimum and maximum execution environment limits.
PutFunctionScalingConfigInput
dataclass
¶
Bases: _SerdeShape
Dataclass for PutFunctionScalingConfigInput structure.
Attributes¶
function_name
class-attribute
instance-attribute
¶
function_name: str | None = ...
The name or ARN of the Lambda function.
function_scaling_config
class-attribute
instance-attribute
¶
function_scaling_config: FunctionScalingConfig | None = ...
The scaling configuration to apply to the function, including minimum and maximum execution environment limits.
Output¶
PutFunctionScalingConfigOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for PutFunctionScalingConfigOutput structure.
Attributes¶
function_state
class-attribute
instance-attribute
¶
function_state: str | None = ...
The current state of the function after applying the scaling configuration.
response_metadata
class-attribute
instance-attribute
¶
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.