将 GetFunctionConcurrency 与 CLI 配合使用
以下代码示例演示如何使用 GetFunctionConcurrency。
- CLI
- 
            - Amazon CLI
- 
             
                    查看函数的预留并发设置 以下 get-function-concurrency示例检索了指定函数的预留并发设置。aws lambda get-function-concurrency \ --function-namemy-function输出: { "ReservedConcurrentExecutions": 250 }- 
                    有关 API 详细信息,请参阅《Amazon CLI 命令参考》中的 GetFunctionConcurrency 。 
 
- 
                    
 
- PowerShell
- 
            - Tools for PowerShell V4
- 
             
                    示例 1:本示例获取了 Lambda 函数的预留并发 Get-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -Select *输出: ReservedConcurrentExecutions ---------------------------- 100- 
                    有关 API 详细信息,请参阅《Amazon Tools for PowerShell Cmdlet 参考 (V4)》中的 GetFunctionConcurrency。 
 
- 
                    
- Tools for PowerShell V5
- 
             
                    示例 1:本示例获取了 Lambda 函数的预留并发 Get-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -Select *输出: ReservedConcurrentExecutions ---------------------------- 100- 
                    有关 API 详细信息,请参阅《Amazon Tools for PowerShell Cmdlet 参考 (V5)》中的 GetFunctionConcurrency。 
 
- 
                    
 
有关 Amazon SDK 开发人员指南和代码示例的完整列表,请参阅 将 Lambda 与 Amazon SDK 配合使用。本主题还包括有关入门的信息以及有关先前的 SDK 版本的详细信息。
GetFunction
GetFunctionConfiguration