Context constructor
Context({})
Implementation
Context({
String? handler,
String? functionName,
String? functionMemorySize,
String? logGroupName,
String? logStreamName,
required String requestId,
String? invokedFunction,
String? region,
String? executionEnv,
String? accessKey,
String? secretAccessKey,
String? sessionToken,
}) {
assert(handler != null);
this.handler = handler ?? Platform.environment[_kAWSLambdaHandler];
this.functionName =
functionName ?? Platform.environment[_kAWSLambdaFunctionName];
functionVersion =
functionVersion ?? Platform.environment[_kAWSLambdaFunctionVersion];
this.functionMemorySize = functionMemorySize ??
Platform.environment[_kAWSLambdaFunctionMemorySize];
this.logGroupName =
logGroupName ?? Platform.environment[_kAWSLambdaLogGroupName];
this.logStreamName =
logStreamName ?? Platform.environment[_kAWSLambdaLogStreamName];
this.requestId = requestId;
invokedFunctionArn = invokedFunction;
this.region = region ?? Platform.environment[_kAWSLambdaRegion];
this.executionEnv =
executionEnv ?? Platform.environment[_kAWSLambdaExecutionEnv];
this.accessKey = accessKey ?? Platform.environment[_kAWSLambdaAccessKey];
this.secretAccessKey =
secretAccessKey ?? Platform.environment[_kAWSLambdaSecretAccesKey];
this.sessionToken =
sessionToken ?? Platform.environment[_kAWSLambdaSessionToken];
}