Annotation Type Idempotent
@Idempotent is used to signal that the annotated method is idempotent:
Calling this method one or multiple times with the same parameter will always return the same result.
This annotation can be placed on the
It can also be placed on another method. In that case you may need to use the @
Calling this method one or multiple times with the same parameter will always return the same result.
This annotation can be placed on the
RequestHandler.handleRequest(Object, Context)
method of a Lambda function:
@Idempotent
public String handleRequest(String event, Context ctx) {
// ...
return something;
}
It can also be placed on another method. In that case you may need to use the @
IdempotencyKey