There are more AWS SDK examples available in the AWS Doc SDK Examples
Use GetProvisionedConcurrencyConfig
with a CLI
The following code examples show how to use GetProvisionedConcurrencyConfig
.
- CLI
-
- AWS CLI
-
To view a provisioned concurrency configuration
The following
get-provisioned-concurrency-config
example displays details for the provisioned concurrency configuration for theBLUE
alias of the specified function.aws lambda get-provisioned-concurrency-config \ --function-name
my-function
\ --qualifierBLUE
Output:
{ "RequestedProvisionedConcurrentExecutions": 100, "AvailableProvisionedConcurrentExecutions": 100, "AllocatedProvisionedConcurrentExecutions": 100, "Status": "READY", "LastModified": "2019-12-31T20:28:49+0000" }
-
For API details, see GetProvisionedConcurrencyConfig
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell
-
Example 1: This example gets the provisioned Concurrency Configuration for the specified Alias of the Lambda Function.
C:\>Get-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -Qualifier "NewAlias1"
Output:
AllocatedProvisionedConcurrentExecutions : 0 AvailableProvisionedConcurrentExecutions : 0 LastModified : 2020-01-15T03:21:26+0000 RequestedProvisionedConcurrentExecutions : 70 Status : IN_PROGRESS StatusReason :
-
For API details, see GetProvisionedConcurrencyConfig in AWS Tools for PowerShell Cmdlet Reference.
-