Class Schedule
- All Implemented Interfaces:
IResource,ISchedule,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
import software.amazon.awscdk.services.kinesisfirehose.*;
IDeliveryStream deliveryStream;
Map<String, String> payload = Map.of(
"Data", "record");
Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.minutes(60)))
.target(FirehosePutRecord.Builder.create(deliveryStream)
.input(ScheduleTargetInput.fromObject(payload))
.build())
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.scheduler.ISchedule
ISchedule.Jsii$Default, ISchedule.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSchedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedSchedule(software.amazon.jsii.JsiiObjectRef objRef) Schedule(software.constructs.Construct scope, String id, ScheduleProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ISchedulefromScheduleArn(software.constructs.Construct scope, String id, String scheduleArn) Import an existing schedule using the ARN.getKey()The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data.The arn of the schedule.The schedule group associated with this schedule.The name of the schedule.static MetricReturn the given named metric for all schedules.static MetricmetricAll(String metricName, MetricOptions props) Return the given named metric for all schedules.static MetricMetric for all invocation attempts across all schedules.static MetricmetricAllAttempts(MetricOptions props) Metric for all invocation attempts across all schedules.static MetricMetric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.static MetricmetricAllDropped(MetricOptions props) Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.static MetricEmitted when the target returns an exception after EventBridge Scheduler calls the target API across all schedules.static MetricmetricAllErrors(MetricOptions props) Emitted when the target returns an exception after EventBridge Scheduler calls the target API across all schedules.static MetricMetric for failed invocations that also failed to deliver to DLQ across all schedules.static MetricmetricAllFailedToBeSentToDLQ(String errorCode) Metric for failed invocations that also failed to deliver to DLQ across all schedules.static MetricmetricAllFailedToBeSentToDLQ(String errorCode, MetricOptions props) Metric for failed invocations that also failed to deliver to DLQ across all schedules.static MetricMetric for invocations delivered to the DLQ across all schedules.static MetricmetricAllSentToDLQ(MetricOptions props) Metric for invocations delivered to the DLQ across all schedules.static MetricMetric for delivery of failed invocations to DLQ when the payload of the event sent to the DLQ exceeds the maximum size allowed by Amazon SQS.static MetricMetric for delivery of failed invocations to DLQ when the payload of the event sent to the DLQ exceeds the maximum size allowed by Amazon SQS.static MetricMetric for invocation failures due to API throttling by the target across all schedules.static MetricMetric for invocation failures due to API throttling by the target across all schedules.static MetricMetric for the number of invocations that were throttled across all schedules.static MetricmetricAllThrottled(MetricOptions props) Metric for the number of invocations that were throttled across all schedules.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
Schedule
protected Schedule(software.amazon.jsii.JsiiObjectRef objRef) -
Schedule
protected Schedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Schedule
@Stability(Stable) public Schedule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ScheduleProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromScheduleArn
@Stability(Stable) @NotNull public static ISchedule fromScheduleArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String scheduleArn) Import an existing schedule using the ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.scheduleArn- This parameter is required.
-
metricAll
@Stability(Stable) @NotNull public static Metric metricAll(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for all schedules.Default: - sum over 5 minutes
- Parameters:
metricName- This parameter is required.props-
-
metricAll
Return the given named metric for all schedules.Default: - sum over 5 minutes
- Parameters:
metricName- This parameter is required.
-
metricAllAttempts
Metric for all invocation attempts across all schedules.Default: - sum over 5 minutes
- Parameters:
props-
-
metricAllAttempts
Metric for all invocation attempts across all schedules.Default: - sum over 5 minutes
-
metricAllDropped
Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.Metric is calculated for all schedules.
Default: - sum over 5 minutes
- Parameters:
props-
-
metricAllDropped
Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.Metric is calculated for all schedules.
Default: - sum over 5 minutes
-
metricAllErrors
Emitted when the target returns an exception after EventBridge Scheduler calls the target API across all schedules.Default: - sum over 5 minutes
- Parameters:
props-
-
metricAllErrors
Emitted when the target returns an exception after EventBridge Scheduler calls the target API across all schedules.Default: - sum over 5 minutes
-
metricAllFailedToBeSentToDLQ
@Stability(Stable) @NotNull public static Metric metricAllFailedToBeSentToDLQ(@Nullable String errorCode, @Nullable MetricOptions props) Metric for failed invocations that also failed to deliver to DLQ across all schedules.Default: - sum over 5 minutes
- Parameters:
errorCode-props-
-
metricAllFailedToBeSentToDLQ
@Stability(Stable) @NotNull public static Metric metricAllFailedToBeSentToDLQ(@Nullable String errorCode) Metric for failed invocations that also failed to deliver to DLQ across all schedules.Default: - sum over 5 minutes
- Parameters:
errorCode-
-
metricAllFailedToBeSentToDLQ
Metric for failed invocations that also failed to deliver to DLQ across all schedules.Default: - sum over 5 minutes
-
metricAllSentToDLQ
Metric for invocations delivered to the DLQ across all schedules.Default: - sum over 5 minutes
- Parameters:
props-
-
metricAllSentToDLQ
Metric for invocations delivered to the DLQ across all schedules.Default: - sum over 5 minutes
-
metricAllSentToDLQTruncated
@Stability(Stable) @NotNull public static Metric metricAllSentToDLQTruncated(@Nullable MetricOptions props) Metric for delivery of failed invocations to DLQ when the payload of the event sent to the DLQ exceeds the maximum size allowed by Amazon SQS.Metric is calculated for all schedules.
Default: - sum over 5 minutes
- Parameters:
props-
-
metricAllSentToDLQTruncated
Metric for delivery of failed invocations to DLQ when the payload of the event sent to the DLQ exceeds the maximum size allowed by Amazon SQS.Metric is calculated for all schedules.
Default: - sum over 5 minutes
-
metricAllTargetThrottled
@Stability(Stable) @NotNull public static Metric metricAllTargetThrottled(@Nullable MetricOptions props) Metric for invocation failures due to API throttling by the target across all schedules.Default: - sum over 5 minutes
- Parameters:
props-
-
metricAllTargetThrottled
Metric for invocation failures due to API throttling by the target across all schedules.Default: - sum over 5 minutes
-
metricAllThrottled
Metric for the number of invocations that were throttled across all schedules.Default: - sum over 5 minutes
- Parameters:
props-- See Also:
-
metricAllThrottled
Metric for the number of invocations that were throttled across all schedules.Default: - sum over 5 minutes
- See Also:
-
getScheduleArn
The arn of the schedule.- Specified by:
getScheduleArnin interfaceISchedule
-
getScheduleName
The name of the schedule.- Specified by:
getScheduleNamein interfaceISchedule
-
getKey
The customer managed KMS key that EventBridge Scheduler will use to encrypt and decrypt your data. -
getScheduleGroup
The schedule group associated with this schedule.- Specified by:
getScheduleGroupin interfaceISchedule
-