Class ScheduleGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.scheduler.ScheduleGroup
- All Implemented Interfaces:
IEnvironmentAware,IScheduleGroupRef,IResource,IScheduleGroup,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:45.317Z")
@Stability(Stable)
public class ScheduleGroup
extends Resource
implements IScheduleGroup
A Schedule Group.
Example:
LambdaInvoke target;
ScheduleGroup scheduleGroup = ScheduleGroup.Builder.create(this, "ScheduleGroup")
.scheduleGroupName("MyScheduleGroup")
.build();
Schedule.Builder.create(this, "Schedule")
.schedule(ScheduleExpression.rate(Duration.minutes(10)))
.target(target)
.scheduleGroup(scheduleGroup)
.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.IScheduleGroup
IScheduleGroup.Jsii$Default, IScheduleGroup.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScheduleGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedScheduleGroup(software.amazon.jsii.JsiiObjectRef objRef) ScheduleGroup(software.constructs.Construct scope, String id) ScheduleGroup(software.constructs.Construct scope, String id, ScheduleGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IScheduleGroupfromDefaultScheduleGroup(software.constructs.Construct scope, String id) Import a default schedule group.static IScheduleGroupfromScheduleGroupArn(software.constructs.Construct scope, String id, String scheduleGroupArn) Import an external schedule group by ARN.static IScheduleGroupfromScheduleGroupName(software.constructs.Construct scope, String id, String scheduleGroupName) Import an existing schedule group with a given name.Collection of grant methods for a ScheduleGroup.The arn of the schedule group.The name of the schedule group.A reference to a ScheduleGroup resource.grant(IGrantable grantee, String... actions) Grant the indicated permissions on this schedule group to the given principal.grantDeleteSchedules(IGrantable identity) Grant delete schedule permission for schedules in this group to the given principal.grantReadSchedules(IGrantable identity) Grant list and get schedule permissions for schedules in this group to the given principal.grantWriteSchedules(IGrantable identity) Grant create and update schedule permissions for schedules in this group to the given principal.Return the given named metric for this schedule group.metric(String metricName, MetricOptions props) Return the given named metric for this schedule group.Metric for all invocation attempts.metricAttempts(MetricOptions props) Metric for all invocation attempts.Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.metricDropped(MetricOptions props) Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.Metric for failed invocations that also failed to deliver to DLQ.metricFailedToBeSentToDLQ(String errorCode) Metric for failed invocations that also failed to deliver to DLQ.metricFailedToBeSentToDLQ(String errorCode, MetricOptions props) Metric for failed invocations that also failed to deliver to DLQ.Metric for invocations delivered to the DLQ.metricSentToDLQ(MetricOptions props) Metric for invocations delivered to the DLQ.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 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.Emitted when the target returns an exception after EventBridge Scheduler calls the target API.metricTargetErrors(MetricOptions props) Emitted when the target returns an exception after EventBridge Scheduler calls the target API.Metric for invocation failures due to API throttling by the target.Metric for invocation failures due to API throttling by the target.Metric for the number of invocations that were throttled because it exceeds your service quotas.metricThrottled(MetricOptions props) Metric for the number of invocations that were throttled because it exceeds your service quotas.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.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.awscdk.services.scheduler.IScheduleGroup
getEnv, getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
ScheduleGroup
protected ScheduleGroup(software.amazon.jsii.JsiiObjectRef objRef) -
ScheduleGroup
protected ScheduleGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ScheduleGroup
@Stability(Stable) public ScheduleGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ScheduleGroupProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
ScheduleGroup
@Stability(Stable) public ScheduleGroup(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
fromDefaultScheduleGroup
@Stability(Stable) @NotNull public static IScheduleGroup fromDefaultScheduleGroup(@NotNull software.constructs.Construct scope, @NotNull String id) Import a default schedule group.- Parameters:
scope- construct scope. This parameter is required.id- construct id. This parameter is required.
-
fromScheduleGroupArn
@Stability(Stable) @NotNull public static IScheduleGroup fromScheduleGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String scheduleGroupArn) Import an external schedule group by ARN.- Parameters:
scope- construct scope. This parameter is required.id- construct id. This parameter is required.scheduleGroupArn- the ARN of the schedule group to import (e.g.arn:aws:scheduler:region:account-id:schedule-group/group-name). This parameter is required.
-
fromScheduleGroupName
@Stability(Stable) @NotNull public static IScheduleGroup fromScheduleGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String scheduleGroupName) Import an existing schedule group with a given name.- Parameters:
scope- construct scope. This parameter is required.id- construct id. This parameter is required.scheduleGroupName- the name of the existing schedule group to import. This parameter is required.
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grant the indicated permissions on this schedule group to the given principal.- Specified by:
grantin interfaceIScheduleGroup- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantDeleteSchedules
Grant delete schedule permission for schedules in this group to the given principal.- Specified by:
grantDeleteSchedulesin interfaceIScheduleGroup- Parameters:
identity- This parameter is required.
-
grantReadSchedules
Grant list and get schedule permissions for schedules in this group to the given principal.- Specified by:
grantReadSchedulesin interfaceIScheduleGroup- Parameters:
identity- This parameter is required.
-
grantWriteSchedules
Grant create and update schedule permissions for schedules in this group to the given principal.- Specified by:
grantWriteSchedulesin interfaceIScheduleGroup- Parameters:
identity- This parameter is required.
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this schedule group.Default: - sum over 5 minutes
- Specified by:
metricin interfaceIScheduleGroup- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this schedule group.Default: - sum over 5 minutes
- Specified by:
metricin interfaceIScheduleGroup- Parameters:
metricName- This parameter is required.
-
metricAttempts
Metric for all invocation attempts.Default: - sum over 5 minutes
- Specified by:
metricAttemptsin interfaceIScheduleGroup- Parameters:
props-
-
metricAttempts
Metric for all invocation attempts.Default: - sum over 5 minutes
- Specified by:
metricAttemptsin interfaceIScheduleGroup
-
metricDropped
Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.Default: - sum over 5 minutes
- Specified by:
metricDroppedin interfaceIScheduleGroup- Parameters:
props-
-
metricDropped
Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.Default: - sum over 5 minutes
- Specified by:
metricDroppedin interfaceIScheduleGroup
-
metricFailedToBeSentToDLQ
@Stability(Stable) @NotNull public Metric metricFailedToBeSentToDLQ(@Nullable String errorCode, @Nullable MetricOptions props) Metric for failed invocations that also failed to deliver to DLQ.Default: - sum over 5 minutes
- Specified by:
metricFailedToBeSentToDLQin interfaceIScheduleGroup- Parameters:
errorCode-props-
-
metricFailedToBeSentToDLQ
Metric for failed invocations that also failed to deliver to DLQ.Default: - sum over 5 minutes
- Specified by:
metricFailedToBeSentToDLQin interfaceIScheduleGroup- Parameters:
errorCode-
-
metricFailedToBeSentToDLQ
Metric for failed invocations that also failed to deliver to DLQ.Default: - sum over 5 minutes
- Specified by:
metricFailedToBeSentToDLQin interfaceIScheduleGroup
-
metricSentToDLQ
Metric for invocations delivered to the DLQ.Default: - sum over 5 minutes
- Specified by:
metricSentToDLQin interfaceIScheduleGroup- Parameters:
props-
-
metricSentToDLQ
Metric for invocations delivered to the DLQ.Default: - sum over 5 minutes
- Specified by:
metricSentToDLQin interfaceIScheduleGroup
-
metricSentToDLQTruncated
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.Default: - sum over 5 minutes
- Specified by:
metricSentToDLQTruncatedin interfaceIScheduleGroup- Parameters:
props-
-
metricSentToDLQTruncated
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.Default: - sum over 5 minutes
- Specified by:
metricSentToDLQTruncatedin interfaceIScheduleGroup
-
metricTargetErrors
Emitted when the target returns an exception after EventBridge Scheduler calls the target API.Default: - sum over 5 minutes
- Specified by:
metricTargetErrorsin interfaceIScheduleGroup- Parameters:
props-
-
metricTargetErrors
Emitted when the target returns an exception after EventBridge Scheduler calls the target API.Default: - sum over 5 minutes
- Specified by:
metricTargetErrorsin interfaceIScheduleGroup
-
metricTargetThrottled
Metric for invocation failures due to API throttling by the target.Default: - sum over 5 minutes
- Specified by:
metricTargetThrottledin interfaceIScheduleGroup- Parameters:
props-
-
metricTargetThrottled
Metric for invocation failures due to API throttling by the target.Default: - sum over 5 minutes
- Specified by:
metricTargetThrottledin interfaceIScheduleGroup
-
metricThrottled
Metric for the number of invocations that were throttled because it exceeds your service quotas.Default: - sum over 5 minutes
- Specified by:
metricThrottledin interfaceIScheduleGroup- Parameters:
props-- See Also:
-
metricThrottled
Metric for the number of invocations that were throttled because it exceeds your service quotas.Default: - sum over 5 minutes
- Specified by:
metricThrottledin interfaceIScheduleGroup- See Also:
-
getGrants
Collection of grant methods for a ScheduleGroup. -
getScheduleGroupArn
The arn of the schedule group.- Specified by:
getScheduleGroupArnin interfaceIScheduleGroup
-
getScheduleGroupName
The name of the schedule group.- Specified by:
getScheduleGroupNamein interfaceIScheduleGroup
-
getScheduleGroupRef
A reference to a ScheduleGroup resource.- Specified by:
getScheduleGroupRefin interfaceIScheduleGroupRef
-