java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.scheduler.alpha.Group
All Implemented Interfaces:
IResource, IGroup, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.101.0 (build b95fe5d)", date="2024-07-11T03:46:03.748Z") @Stability(Experimental) public class Group extends Resource implements IGroup
Example:

 LambdaInvoke target;
 Group group = Group.Builder.create(this, "Group")
         .groupName("MyGroup")
         .build();
 Schedule.Builder.create(this, "Schedule")
         .schedule(ScheduleExpression.rate(Duration.minutes(10)))
         .target(target)
         .group(group)
         .build();
 
  • Constructor Details

    • Group

      protected Group(software.amazon.jsii.JsiiObjectRef objRef)
    • Group

      protected Group(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Group

      @Stability(Experimental) public Group(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull GroupProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.
  • Method Details

    • fromDefaultGroup

      @Stability(Experimental) @NotNull public static IGroup fromDefaultGroup(@NotNull software.constructs.Construct scope, @NotNull String id)
      (experimental) Import a default schedule group.

      Parameters:
      scope - construct scope. This parameter is required.
      id - construct id. This parameter is required.
    • fromGroupArn

      @Stability(Experimental) @NotNull public static IGroup fromGroupArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String groupArn)
      (experimental) Import an external group by ARN.

      Parameters:
      scope - construct scope. This parameter is required.
      id - construct id. This parameter is required.
      groupArn - the ARN of the group to import (e.g. arn:aws:scheduler:region:account-id:schedule-group/group-name). This parameter is required.
    • fromGroupName

      @Stability(Experimental) @NotNull public static IGroup fromGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String groupName)
      (experimental) Import an existing group with a given name.

      Parameters:
      scope - construct scope. This parameter is required.
      id - construct id. This parameter is required.
      groupName - the name of the existing group to import. This parameter is required.
    • grant

      @Stability(Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions)
      (experimental) Grant the indicated permissions on this group to the given principal.

      Specified by:
      grant in interface IGroup
      Parameters:
      grantee - This parameter is required.
      actions - This parameter is required.
    • grantDeleteSchedules

      @Stability(Experimental) @NotNull public Grant grantDeleteSchedules(@NotNull IGrantable identity)
      (experimental) Grant delete schedule permission for schedules in this group to the given principal.

      Specified by:
      grantDeleteSchedules in interface IGroup
      Parameters:
      identity - This parameter is required.
    • grantReadSchedules

      @Stability(Experimental) @NotNull public Grant grantReadSchedules(@NotNull IGrantable identity)
      (experimental) Grant list and get schedule permissions for schedules in this group to the given principal.

      Specified by:
      grantReadSchedules in interface IGroup
      Parameters:
      identity - This parameter is required.
    • grantWriteSchedules

      @Stability(Experimental) @NotNull public Grant grantWriteSchedules(@NotNull IGrantable identity)
      (experimental) Grant create and update schedule permissions for schedules in this group to the given principal.

      Specified by:
      grantWriteSchedules in interface IGroup
      Parameters:
      identity - This parameter is required.
    • metric

      @Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
      (experimental) Return the given named metric for this group schedules.

      Default: - sum over 5 minutes

      Specified by:
      metric in interface IGroup
      Parameters:
      metricName - This parameter is required.
      props -
    • metric

      @Stability(Experimental) @NotNull public Metric metric(@NotNull String metricName)
      (experimental) Return the given named metric for this group schedules.

      Default: - sum over 5 minutes

      Specified by:
      metric in interface IGroup
      Parameters:
      metricName - This parameter is required.
    • metricAttempts

      @Stability(Experimental) @NotNull public Metric metricAttempts(@Nullable MetricOptions props)
      (experimental) Metric for all invocation attempts.

      Default: - sum over 5 minutes

      Specified by:
      metricAttempts in interface IGroup
      Parameters:
      props -
    • metricAttempts

      @Stability(Experimental) @NotNull public Metric metricAttempts()
      (experimental) Metric for all invocation attempts.

      Default: - sum over 5 minutes

      Specified by:
      metricAttempts in interface IGroup
    • metricDropped

      @Stability(Experimental) @NotNull public Metric metricDropped(@Nullable MetricOptions props)
      (experimental) 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:
      metricDropped in interface IGroup
      Parameters:
      props -
    • metricDropped

      @Stability(Experimental) @NotNull public Metric metricDropped()
      (experimental) 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:
      metricDropped in interface IGroup
    • metricFailedToBeSentToDLQ

      @Stability(Experimental) @NotNull public Metric metricFailedToBeSentToDLQ(@Nullable String errorCode, @Nullable MetricOptions props)
      (experimental) Metric for failed invocations that also failed to deliver to DLQ.

      Default: - sum over 5 minutes

      Specified by:
      metricFailedToBeSentToDLQ in interface IGroup
      Parameters:
      errorCode -
      props -
    • metricFailedToBeSentToDLQ

      @Stability(Experimental) @NotNull public Metric metricFailedToBeSentToDLQ(@Nullable String errorCode)
      (experimental) Metric for failed invocations that also failed to deliver to DLQ.

      Default: - sum over 5 minutes

      Specified by:
      metricFailedToBeSentToDLQ in interface IGroup
      Parameters:
      errorCode -
    • metricFailedToBeSentToDLQ

      @Stability(Experimental) @NotNull public Metric metricFailedToBeSentToDLQ()
      (experimental) Metric for failed invocations that also failed to deliver to DLQ.

      Default: - sum over 5 minutes

      Specified by:
      metricFailedToBeSentToDLQ in interface IGroup
    • metricSentToDLQ

      @Stability(Experimental) @NotNull public Metric metricSentToDLQ(@Nullable MetricOptions props)
      (experimental) Metric for invocations delivered to the DLQ.

      Default: - sum over 5 minutes

      Specified by:
      metricSentToDLQ in interface IGroup
      Parameters:
      props -
    • metricSentToDLQ

      @Stability(Experimental) @NotNull public Metric metricSentToDLQ()
      (experimental) Metric for invocations delivered to the DLQ.

      Default: - sum over 5 minutes

      Specified by:
      metricSentToDLQ in interface IGroup
    • metricSentToDLQTruncated

      @Stability(Experimental) @NotNull public Metric metricSentToDLQTruncated(@Nullable MetricOptions props)
      (experimental) 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:
      metricSentToDLQTruncated in interface IGroup
      Parameters:
      props -
    • metricSentToDLQTruncated

      @Stability(Experimental) @NotNull public Metric metricSentToDLQTruncated()
      (experimental) 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:
      metricSentToDLQTruncated in interface IGroup
    • metricTargetErrors

      @Stability(Experimental) @NotNull public Metric metricTargetErrors(@Nullable MetricOptions props)
      (experimental) Emitted when the target returns an exception after EventBridge Scheduler calls the target API.

      Default: - sum over 5 minutes

      Specified by:
      metricTargetErrors in interface IGroup
      Parameters:
      props -
    • metricTargetErrors

      @Stability(Experimental) @NotNull public Metric metricTargetErrors()
      (experimental) Emitted when the target returns an exception after EventBridge Scheduler calls the target API.

      Default: - sum over 5 minutes

      Specified by:
      metricTargetErrors in interface IGroup
    • metricTargetThrottled

      @Stability(Experimental) @NotNull public Metric metricTargetThrottled(@Nullable MetricOptions props)
      (experimental) Metric for invocation failures due to API throttling by the target.

      Default: - sum over 5 minutes

      Specified by:
      metricTargetThrottled in interface IGroup
      Parameters:
      props -
    • metricTargetThrottled

      @Stability(Experimental) @NotNull public Metric metricTargetThrottled()
      (experimental) Metric for invocation failures due to API throttling by the target.

      Default: - sum over 5 minutes

      Specified by:
      metricTargetThrottled in interface IGroup
    • metricThrottled

      @Stability(Experimental) @NotNull public Metric metricThrottled(@Nullable MetricOptions props)
      (experimental) Metric for the number of invocations that were throttled because it exceeds your service quotas.

      Default: - sum over 5 minutes

      Specified by:
      metricThrottled in interface IGroup
      Parameters:
      props -
      See Also:
    • metricThrottled

      @Stability(Experimental) @NotNull public Metric metricThrottled()
      (experimental) Metric for the number of invocations that were throttled because it exceeds your service quotas.

      Default: - sum over 5 minutes

      Specified by:
      metricThrottled in interface IGroup
      See Also:
    • getGroupArn

      @Stability(Experimental) @NotNull public String getGroupArn()
      (experimental) The arn of the schedule group.
      Specified by:
      getGroupArn in interface IGroup
    • getGroupName

      @Stability(Experimental) @NotNull public String getGroupName()
      (experimental) The name of the schedule group.
      Specified by:
      getGroupName in interface IGroup