There are more AWS SDK examples available in the AWS Doc SDK Examples
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-config
example allocates 100 provisioned concurrency for theBLUE
alias of the specified function.aws lambda put-provisioned-concurrency-config \ --function-name
my-function
\ --qualifierBLUE
\ --provisioned-concurrent-executions100
Output:
{ "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
-
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.
-