All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.lambda.runtime.Context Maven / Gradle / Ivy

There is a newer version: 1.2.3
Show newest version
/* Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. */

package com.amazonaws.services.lambda.runtime;

/**
 * 
 * The context object allows you to access useful information available within
 * the Lambda execution environment
 *
 */
public interface Context {

	/**
	 * Gets the AWS request ID associated with the request.
	 * 

* This is the same ID returned to the client that called invoke(). This ID * is reused for retries on the same request. *

*/ public String getAwsRequestId(); /** * Gets the CloudWatch log group that this container is configured to log * to. *

* The return value may be null: *

    *
  • * If the container is not configured to log to CloudWatch.
  • *
  • * If the role provided to the function does not have sufficient * permissions.
  • *
*

*/ public String getLogGroupName(); /** * Gets the CloudWatch log stream that this container is configured to log * to. *

* The return value may be null: *

    *
  • * If the container is not configured to log to CloudWatch.
  • *
  • * If the role provided to the function does not have sufficient * permissions.
  • *
*

*/ public String getLogStreamName(); /** * Gets the name of the function being executed. * */ public String getFunctionName(); /** * Gets the version of the function being executed. * */ public String getFunctionVersion(); /** * Gets the function Arn of the resource being invoked. * */ public String getInvokedFunctionArn(); /** * Gets information about the Amazon Cognito identity provider when invoked * through the AWS Mobile SDK. It can be null * */ public CognitoIdentity getIdentity(); /** * Gets information about the client application and device when invoked * through the AWS Mobile SDK. It can be null. * */ public ClientContext getClientContext(); /** * Gets the time remaining for this execution in milliseconds */ public int getRemainingTimeInMillis(); /** * Gets the memory size configured for the Lambda function * */ public int getMemoryLimitInMB(); /** * Gets a the lambda logger instance associated with the context object * */ public LambdaLogger getLogger(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy