put_function_concurrency¶
Operation¶
put_function_concurrency
¶
put_function_concurrency(request: PutFunctionConcurrencyInput | PutFunctionConcurrencyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutFunctionConcurrencyInputDict]) -> PutFunctionConcurrencyOutput
Sets the maximum number of simultaneous executions for a Lambda Event Function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Lambda function scaling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
PutFunctionConcurrencyInput | PutFunctionConcurrencyInputDict | 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[PutFunctionConcurrencyInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
PutFunctionConcurrencyOutput
|
An instance of |
put_function_concurrency
async
¶
put_function_concurrency(request: PutFunctionConcurrencyInput | PutFunctionConcurrencyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[PutFunctionConcurrencyInputDict]) -> PutFunctionConcurrencyOutput
Sets the maximum number of simultaneous executions for a Lambda Event Function, and reserves capacity for that concurrency level.
Concurrency settings apply to the function as a whole, including all published versions and the unpublished version. Reserving concurrency both ensures that your function has capacity to process the specified number of events simultaneously, and prevents it from scaling beyond that level. Use GetFunction to see the current setting for a function.
Use GetAccountSettings to see your Regional concurrency limit. You can reserve concurrency for as many functions as you like, as long as you leave at least 100 simultaneous executions unreserved for functions that aren't configured with a per-function limit. For more information, see Lambda function scaling.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
request
|
PutFunctionConcurrencyInput | PutFunctionConcurrencyInputDict | 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[PutFunctionConcurrencyInputDict]
|
The input fields as keyword arguments. |
{}
|
Returns:
| Type | Description |
|---|---|
PutFunctionConcurrencyOutput
|
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.
PutFunctionConcurrencyInputDict
¶
Bases: TypedDict
Dictionary form of PutFunctionConcurrencyInput.
Attributes¶
function_name
instance-attribute
¶
The name or ARN of the Lambda function.
Name formats
-
Function name --
my-function. -
Function ARN --
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN --
123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
PutFunctionConcurrencyInput
dataclass
¶
Bases: _SerdeShape
Dataclass for PutFunctionConcurrencyInput structure.
Attributes¶
function_name
class-attribute
instance-attribute
¶
function_name: str | None = ...
The name or ARN of the Lambda function.
Name formats
-
Function name --
my-function. -
Function ARN --
arn:aws:lambda:us-west-2:123456789012:function:my-function. -
Partial ARN --
123456789012:function:my-function.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
Output¶
PutFunctionConcurrencyOutput
dataclass
¶
Bases: _SerdeShape
Dataclass for PutFunctionConcurrencyOutput structure.
Attributes¶
reserved_concurrent_executions
class-attribute
instance-attribute
¶
reserved_concurrent_executions: int | None = ...
The number of concurrent executions that are reserved for this function. For more information, see Managing Lambda reserved concurrency.
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.