Use PutProvisionedConcurrencyConfig with a CLI
The following code examples show how to use PutProvisionedConcurrencyConfig.
- CLI
- 
            - AWS CLI
- 
             
                    To allocate provisioned concurrency The following put-provisioned-concurrency-configexample allocates 100 provisioned concurrency for theBLUEalias of the specified function.aws lambda put-provisioned-concurrency-config \ --function-namemy-function\ --qualifierBLUE\ --provisioned-concurrent-executions100Output: { "Requested ProvisionedConcurrentExecutions": 100, "Allocated ProvisionedConcurrentExecutions": 0, "Status": "IN_PROGRESS", "LastModified": "2019-11-21T19:32:12+0000" }- 
                    For API details, see PutProvisionedConcurrencyConfig in AWS CLI Command Reference. 
 
- 
                    
 
- PowerShell
- 
            - Tools for PowerShell V4
- 
             
                    Example 1: This example adds a provisioned concurrency configuration to a Function's Alias Write-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -ProvisionedConcurrentExecution 20 -Qualifier "NewAlias1"- 
                    For API details, see PutProvisionedConcurrencyConfig in AWS Tools for PowerShell Cmdlet Reference (V4). 
 
- 
                    
- Tools for PowerShell V5
- 
             
                    Example 1: This example adds a provisioned concurrency configuration to a Function's Alias Write-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -ProvisionedConcurrentExecution 20 -Qualifier "NewAlias1"- 
                    For API details, see PutProvisionedConcurrencyConfig in AWS Tools for PowerShell Cmdlet Reference (V5). 
 
- 
                    
 
For a complete list of AWS SDK developer guides and code examples, see Using Lambda with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.