Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Use PutFunctionConcurrency
with a CLI
The following code examples show how to use PutFunctionConcurrency
.
- CLI
-
- Amazon CLI
-
To configure a reserved concurrency limit for a function
The following put-function-concurrency
example configures 100 reserved concurrent executions for the my-function
function.
aws lambda put-function-concurrency \
--function-name my-function
\
--reserved-concurrent-executions 100
Output:
{
"ReservedConcurrentExecutions": 100
}
For more information, see Reserving Concurrency for a Lambda Function in the Amazon Lambda Developer Guide.
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example applies the concurrency settings for the Function as a whole.
Write-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -ReservedConcurrentExecution 100
For a complete list of Amazon SDK developer guides and code examples, see
Using Lambda with an Amazon SDK.
This topic also includes information about getting started and details about previous SDK versions.