Use GetAccountSettings with an Amazon SDK or CLI - Amazon Lambda
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Use GetAccountSettings with an Amazon SDK or CLI

The following code examples show how to use GetAccountSettings.

CLI
Amazon CLI

To retrieve details about your account in an Amazon Region

The following get-account-settings example displays the Lambda limits and usage information for your account.

aws lambda get-account-settings

Output:

{ "AccountLimit": { "CodeSizeUnzipped": 262144000, "UnreservedConcurrentExecutions": 1000, "ConcurrentExecutions": 1000, "CodeSizeZipped": 52428800, "TotalCodeSize": 80530636800 }, "AccountUsage": { "FunctionCount": 4, "TotalCodeSize": 9426 } }

For more information, see Amazon Lambda Limits in the Amazon Lambda Developer Guide.

PowerShell
Tools for PowerShell

Example 1: This sample displays to compare the Account Limit and Account Usage

Get-LMAccountSetting | Select-Object @{Name="TotalCodeSizeLimit";Expression={$_.AccountLimit.TotalCodeSize}}, @{Name="TotalCodeSizeUsed";Expression={$_.AccountUsage.TotalCodeSize}}

Output:

TotalCodeSizeLimit TotalCodeSizeUsed ------------------ ----------------- 80530636800 15078795
  • For API details, see GetAccountSettings in Amazon Tools for PowerShell Cmdlet Reference.

For a complete list of Amazon SDK developer guides and code examples, see Using Lambda with an Amazon SDK. This topic also includes information about getting started and details about previous SDK versions.