/** * {@inheritDoc} * @since 2017/12/13 */ @Override public final CognitoIdentity getIdentity() { // This is only valid if the context is called from the mobile SDK return null; }
@Override public CognitoIdentity getIdentity() { return identity; }
public void setIdentity(CognitoIdentity value) { identity = value; }
@Override public CognitoIdentity getIdentity() { return null; }
public CognitoIdentity getIdentity() { return null; }
public CognitoIdentity getIdentity() { return identity; }
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 identity * * @see {@link Context#getIdentity()} */ public CognitoIdentity getIdentity() { throw new RuntimeException("Method not implemented yet"); }