/** * {@inheritDoc} * @since 2017/12/13 */ @Override public final ClientContext getClientContext() { // This is only valid if the context is called from the mobile SDK return null; }
@Override public ClientContext getClientContext() { return clientContext; }
public void setClientContext(ClientContext value) { clientContext = value; }
@Override public ClientContext getClientContext() { return null; }
public ClientContext getClientContext() { return null; }
public ClientContext getClientContext() { return clientContext; }
public static Context givenLambdaContext() { return new Context() { @Override public String getAwsRequestId() { return null; } @Override public String getLogGroupName() { return null; } @Override public String getLogStreamName() { return null; } @Override public String getFunctionName() { return null; } @Override public CognitoIdentity getIdentity() { return null; } @Override public ClientContext getClientContext() { return null; } @Override public int getRemainingTimeInMillis() { return 0; } @Override public int getMemoryLimitInMB() { return 0; } @Override public LambdaLogger getLogger() { return null; } }; }
private Context getContext() { return new Context() { @Override public String getAwsRequestId() { return "23234234"; } @Override public String getLogGroupName() { return null; } @Override public String getLogStreamName() { return null; } @Override public String getFunctionName() { return null; } @Override public String getFunctionVersion() { return null; } @Override public String getInvokedFunctionArn() { return null; } @Override public CognitoIdentity getIdentity() { return null; } @Override public ClientContext getClientContext() { return null; } @Override public int getRemainingTimeInMillis() { return 5000; } @Override public int getMemoryLimitInMB() { return 128; } @Override public LambdaLogger getLogger() { return null; } }; }
/** * Returns the client context * * @see {@link Context#getClientContext()} */ public ClientContext getClientContext() { return clientContext; }