Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.Use ListProvisionedConcurrencyConfigs with a CLI
The following code examples show how to use ListProvisionedConcurrencyConfigs.
- CLI
-
- AWS CLI
-
To get a list of provisioned concurrency configurations
The following list-provisioned-concurrency-configs example lists the provisioned concurrency configurations for the specified function.
aws lambda list-provisioned-concurrency-configs \
--function-name my-function
Output:
{
"ProvisionedConcurrencyConfigs": [
{
"FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:GREEN",
"RequestedProvisionedConcurrentExecutions": 100,
"AvailableProvisionedConcurrentExecutions": 100,
"AllocatedProvisionedConcurrentExecutions": 100,
"Status": "READY",
"LastModified": "2019-12-31T20:29:00+0000"
},
{
"FunctionArn": "arn:aws:lambda:us-east-2:123456789012:function:my-function:BLUE",
"RequestedProvisionedConcurrentExecutions": 100,
"AvailableProvisionedConcurrentExecutions": 100,
"AllocatedProvisionedConcurrentExecutions": 100,
"Status": "READY",
"LastModified": "2019-12-31T20:28:49+0000"
}
]
}
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example retrieves the list of provisioned concurrency configurations for a Lambda function.
Get-LMProvisionedConcurrencyConfigList -FunctionName "MylambdaFunction123"
- Tools for PowerShell V5
-
Example 1: This example retrieves the list of provisioned concurrency configurations for a Lambda function.
Get-LMProvisionedConcurrencyConfigList -FunctionName "MylambdaFunction123"
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.