Use ListProvisionedConcurrencyConfigs with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

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

Example 1: This example retrieves the list of provisioned concurrency configurations for a Lambda function.

Get-LMProvisionedConcurrencyConfigList -FunctionName "MylambdaFunction123"