public class CloudWatchScheduler extends Object
| Constructor and Description |
|---|
CloudWatchScheduler(CloudWatchEventsProvider cloudWatchEventsProvider,
Logger loggerProxy,
CronHelper cronHelper,
Serializer serializer) |
CloudWatchScheduler(CloudWatchEventsProvider cloudWatchEventsProvider,
Logger loggerProxy,
Serializer serializer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanupCloudWatchEvents(String cloudWatchEventsRuleName,
String cloudWatchEventsTargetId)
After a re-invocation, the CWE rule which generated the reinvocation should
be scrubbed
|
void |
refreshClient()
On Lambda re-invoke we need to supply a new set of client credentials so this
function must be called whenever credentials are refreshed/changed in the
owning entity
|
<ResourceT,CallbackT> |
rescheduleAfterMinutes(String functionArn,
int minutesFromNow,
HandlerRequest<ResourceT,CallbackT> handlerRequest)
Schedule a re-invocation of the executing handler no less than 1 minute from
now
|
public CloudWatchScheduler(CloudWatchEventsProvider cloudWatchEventsProvider, Logger loggerProxy, Serializer serializer)
public CloudWatchScheduler(CloudWatchEventsProvider cloudWatchEventsProvider, Logger loggerProxy, CronHelper cronHelper, Serializer serializer)
public void refreshClient()
public <ResourceT,CallbackT> void rescheduleAfterMinutes(String functionArn, int minutesFromNow, HandlerRequest<ResourceT,CallbackT> handlerRequest)
ResourceT - resource model state configuration to applyCallbackT - callback context associated with reschedule contextfunctionArn - the ARN of the Lambda function to be invokedminutesFromNow - the minimum minutes from now that the re-invocation
will occur. CWE provides only minute-granularityhandlerRequest - additional context which the handler can provide itself
for re-invocationpublic void cleanupCloudWatchEvents(String cloudWatchEventsRuleName, String cloudWatchEventsTargetId)
cloudWatchEventsRuleName - the name of the CWE rule which triggered a
re-invocationcloudWatchEventsTargetId - the target of the CWE rule which triggered a
re-invocationCopyright © 2019 Amazon Web Services, Inc. All Rights Reserved.