@aws-lambda-powertools/idempotency
Version:
The idempotency package for the Powertools for AWS Lambda (TypeScript) library. It provides options to make your Lambda functions idempotent and safe to retry.
35 lines • 1.47 kB
TypeScript
import { EnvironmentVariablesService as CommonEnvironmentVariablesService } from '@aws-lambda-powertools/commons';
import type { ConfigServiceInterface } from '../types/ConfigServiceInterface.js';
/**
* Class EnvironmentVariablesService
*
* This class is used to return environment variables that are available in the runtime of
* the current Lambda invocation.
* These variables can be a mix of runtime environment variables set by AWS and
* variables that can be set by the developer additionally.
*
* @class
* @extends {CommonEnvironmentVariablesService}
* @see https://docs.aws.amazon.com/lambda/latest/dg/configuration-envvars.html#configuration-envvars-runtime
* @see https://docs.powertools.aws.dev/lambda/typescript/latest/#environment-variables
*/
declare class EnvironmentVariablesService extends CommonEnvironmentVariablesService implements ConfigServiceInterface {
private functionNameVariable;
private idempotencyDisabledVariable;
/**
* It returns the value of the AWS_LAMBDA_FUNCTION_NAME environment variable.
*
* @returns {string}
*/
getFunctionName(): string;
/**
* It returns whether the idempotency feature is enabled or not.
*
* Reads the value of the POWERTOOLS_IDEMPOTENCY_DISABLED environment variable.
*
* @returns {boolean}
*/
getIdempotencyEnabled(): boolean;
}
export { EnvironmentVariablesService };
//# sourceMappingURL=EnvironmentVariablesService.d.ts.map