Ada lebih banyak contoh AWS SDK yang tersedia di repo Contoh SDK AWS Doc
Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.
Gunakan ListProvisionedConcurrencyConfigs
dengan CLI
Contoh kode berikut menunjukkan cara menggunakanListProvisionedConcurrencyConfigs
.
- CLI
-
- AWS CLI
-
Untuk mendapatkan daftar konfigurasi konkurensi yang disediakan
list-provisioned-concurrency-configs
Contoh berikut mencantumkan konfigurasi konkurensi yang disediakan untuk fungsi yang ditentukan.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" } ] }
-
Untuk detail API, lihat ListProvisionedConcurrencyConfigs
di Referensi AWS CLI Perintah.
-
- PowerShell
-
- Alat untuk PowerShell V4
-
Contoh 1: Contoh ini mengambil daftar konfigurasi konkurensi yang disediakan untuk fungsi Lambda.
Get-LMProvisionedConcurrencyConfigList -FunctionName "MylambdaFunction123"
-
Untuk detail API, lihat ListProvisionedConcurrencyConfigsdi Referensi Alat AWS untuk PowerShell Cmdlet (V4).
-
- Alat untuk PowerShell V5
-
Contoh 1: Contoh ini mengambil daftar konfigurasi konkurensi yang disediakan untuk fungsi Lambda.
Get-LMProvisionedConcurrencyConfigList -FunctionName "MylambdaFunction123"
-
Untuk detail API, lihat ListProvisionedConcurrencyConfigsdi Referensi Alat AWS untuk PowerShell Cmdlet (V5).
-