CLI로 GetFunctionConcurrency 사용 - AWS SDK 코드 예제

AWS SDK 예제 GitHub 리포지토리에 더 많은 AWS문서 SDK 예제가 있습니다.

CLI로 GetFunctionConcurrency 사용

다음 코드 예시는 GetFunctionConcurrency의 사용 방법을 보여 줍니다.

CLI
AWS CLI

함수에 대한 예약된 동시성 설정 보기

다음 get-function-concurrency 예시에서는 지정된 함수에 대한 예약된 동시성 설정을 가져옵니다.

aws lambda get-function-concurrency \ --function-name my-function

출력:

{ "ReservedConcurrentExecutions": 250 }
PowerShell
Tools for PowerShell V4

예제 1: 이 예제에서는 Lambda 함수에 대한 예약된 동시성을 가져옵니다.

Get-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -Select *

출력:

ReservedConcurrentExecutions ---------------------------- 100
  • API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V4)GetFunctionConcurrency를 참조하세요.

Tools for PowerShell V5

예제 1: 이 예제에서는 Lambda 함수에 대한 예약된 동시성을 가져옵니다.

Get-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -Select *

출력:

ReservedConcurrentExecutions ---------------------------- 100
  • API 세부 정보는 AWS Tools for PowerShell Cmdlet 참조(V5)GetFunctionConcurrency를 참조하세요.