Use DeleteProvisionedConcurrencyConfig with a CLI
The following code examples show how to use DeleteProvisionedConcurrencyConfig.
- CLI
-
- AWS CLI
-
To delete a provisioned concurrency configuration
The following
delete-provisioned-concurrency-configexample deletes the provisioned concurrency configuration for theGREENalias of the specified function.aws lambda delete-provisioned-concurrency-config \ --function-namemy-function\ --qualifierGREENThis command produces no output.
For more information, see Configuring provisioned concurrency for an Event Function in the AWS Lambda Developer Guide.
-
For API details, see DeleteProvisionedConcurrencyConfig
in AWS CLI Command Reference.
-
- PowerShell
-
- Tools for PowerShell V4
-
Example 1: This example removes the Provisioned Concurrency Configuration for a specific Alias.
Remove-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -Qualifier "NewAlias1"-
For API details, see DeleteProvisionedConcurrencyConfig in AWS Tools for PowerShell Cmdlet Reference (V4).
-
- Tools for PowerShell V5
-
Example 1: This example removes the Provisioned Concurrency Configuration for a specific Alias.
Remove-LMProvisionedConcurrencyConfig -FunctionName "MylambdaFunction123" -Qualifier "NewAlias1"-
For API details, see DeleteProvisionedConcurrencyConfig 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.