AWS Java SDK client for communicating with AWS Lambda Service for function management, invocation, and resource control
—
Account settings provide access to Lambda service configuration, regional limits, and usage statistics for your AWS account.
Retrieves account-level Lambda service limits, usage statistics, and regional configuration information.
/**
* Retrieves details about your account's limits and usage in an Amazon Web Services Region
* @param getAccountSettingsRequest - Optional request parameters
* @return GetAccountSettingsResult containing account limits and usage data
*/
GetAccountSettingsResult getAccountSettings(GetAccountSettingsRequest getAccountSettingsRequest);Usage Example:
import com.amazonaws.services.lambda.*;
import com.amazonaws.services.lambda.model.*;
AWSLambda lambdaClient = AWSLambdaClientBuilder.standard()
.withRegion("us-east-1")
.build();
// Get account settings for the current region
GetAccountSettingsRequest request = new GetAccountSettingsRequest();
GetAccountSettingsResult result = lambdaClient.getAccountSettings(request);
AccountLimit limits = result.getAccountLimit();
AccountUsage usage = result.getAccountUsage();
System.out.println("Concurrent executions limit: " + limits.getConcurrentExecutions());
System.out.println("Total code size limit: " + limits.getTotalCodeSize());
System.out.println("Function count limit: " + limits.getFunctionCount());
System.out.println("Total code size used: " + usage.getTotalCodeSize());
System.out.println("Function count used: " + usage.getFunctionCount());// Account limits for Lambda service
public class AccountLimit {
private Long totalCodeSize;
private Long codeSizeUnzipped;
private Long codeSizeZipped;
private Integer concurrentExecutions;
private Integer unreservedConcurrentExecutions;
private Integer functionCount;
// ... getters and setters
}
// Current account usage statistics
public class AccountUsage {
private Long totalCodeSize;
private Integer functionCount;
// ... getters and setters
}
// Account settings request
public class GetAccountSettingsRequest {
// No required parameters - retrieves settings for current region
}
// Account settings result
public class GetAccountSettingsResult {
private AccountLimit accountLimit;
private AccountUsage accountUsage;
// ... getters and setters
}Lambda enforces several account-level limits that vary by region:
These limits can be increased by contacting AWS support for most parameters.
Install with Tessl CLI
npx tessl i tessl/maven-com-amazonaws--aws-java-sdk-lambdadocs