CLI로 GetFunctionConcurrency 사용

CLI로 GetFunctionConcurrency 사용 (Use GetFunctionConcurrency with a CLI)

다음 코드 예제는 GetFunctionConcurrency를 사용하는 방법을 보여줍니다.

출처: AWS Lambda 개발자 안내서

본문

CLI

AWS CLI

함수의 예약된 동시성 설정을 보려면:

다음 get-function-concurrency 예제는 지정된 함수의 예약된 동시성 설정을 검색합니다.

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

출력:

{
    "ReservedConcurrentExecutions": 250
}

API 세부 정보는 AWS CLI 명령 참조의 GetFunctionConcurrency를 참조하세요.

PowerShell

Tools for PowerShell V4

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

Get-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -Select *

출력:

ReservedConcurrentExecutions
----------------------------
100

API 세부 정보는 AWS Tools for PowerShell Cmdlet Reference (V4)의 GetFunctionConcurrency를 참조하세요.

Tools for PowerShell V5

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

Get-LMFunctionConcurrency -FunctionName "MylambdaFunction123" -Select *

출력:

ReservedConcurrentExecutions
----------------------------
100

API 세부 정보는 AWS Tools for PowerShell Cmdlet Reference (V5)의 GetFunctionConcurrency를 참조하세요.

AWS SDK 개발자 안내서와 코드 예제의 전체 목록은 AWS SDK와 함께 Lambda 사용을 참조하세요. 이 주제에는 시작하기와 이전 SDK 버전에 대한 자세한 내용도 포함되어 있습니다.

더 알아보기 (Learn more)

  • Lambda 예약된 동시성 구성
  • GetFunctionConcurrency API