# IScheduleGroup

Interface representing a created or an imported `ScheduleGroup`.

Extends: [IResource](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResource.html), [IScheduleGroupRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_scheduler.IScheduleGroupRef.html)
Implemented by: [ScheduleGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scheduler.ScheduleGroup.html)
Obtainable from: [ScheduleGroup.fromDefaultScheduleGroup](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scheduler.ScheduleGroup.html#fromdefaultschedulegroup), [ScheduleGroup.fromScheduleGroupArn](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scheduler.ScheduleGroup.html#fromschedulegrouparn), [ScheduleGroup.fromScheduleGroupName](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_scheduler.ScheduleGroup.html#fromschedulegroupname)

- Source: [`aws-scheduler/lib/schedule-group.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-scheduler/lib/schedule-group.ts#L37)
- Type last changed: v2.227.0 · 21 Nov 2025

## Properties

- `env`: [ResourceEnvironment](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.ResourceEnvironment.html) — The environment this resource belongs to.

  For resources that are created and managed in a Stack (those created by
  creating new class instances like `new Role()`, `new Bucket()`, etc.), this
  is always the same as the environment of the stack they belong to.

  For referenced resources (those obtained from referencing methods like
  `Role.fromRoleArn()`, `Bucket.fromBucketName()`, etc.), they might be
  different than the stack they were imported into.

- `node`: [Node](https://docs.aws.amazon.com/cdk/api/v2/docs/constructs.Node.html) — The tree node.

- `scheduleGroupArn`: string — The arn of the schedule group.

- `scheduleGroupName`: string — The name of the schedule group.

- `scheduleGroupRef`: [ScheduleGroupReference](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_scheduler.ScheduleGroupReference.html) — A reference to a ScheduleGroup resource.

- `stack`: [Stack](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.Stack.html) — The stack in which this resource is defined.

## Methods

- `applyRemovalPolicy(policy: RemovalPolicy): void` — Apply the given removal policy to this resource.

  The Removal Policy controls what happens to this resource when it stops
  being managed by CloudFormation, either because you've removed it from the
  CDK application or because you've made a change that requires the resource
  to be replaced.

  The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
  account for data recovery and cleanup later (`RemovalPolicy.RETAIN`).

- `grant(grantee: IGrantable, ...actions: string[]): Grant` — Grant the indicated permissions on this group to the given principal.

- `grantDeleteSchedules(identity: IGrantable): Grant` — Grant delete schedule permission for schedules in this group to the given principal.

- `grantReadSchedules(identity: IGrantable): Grant` — Grant list and get schedule permissions for schedules in this group to the given principal.

- `grantWriteSchedules(identity: IGrantable): Grant` — Grant create and update schedule permissions for schedules in this group to the given principal.

- `metric(metricName: string, props?: MetricOptions): Metric` — Return the given named metric for this group schedules.

- `metricAttempts(props?: MetricOptions): Metric` — Metric for all invocation attempts.

- `metricDropped(props?: MetricOptions): Metric` — Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.

- `metricFailedToBeSentToDLQ(errorCode?: string, props?: MetricOptions): Metric` — Metric for failed invocations that also failed to deliver to DLQ.

- `metricSentToDLQ(props?: MetricOptions): Metric` — Metric for invocations delivered to the DLQ.

- `metricSentToDLQTruncated(props?: MetricOptions): Metric` — 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.

- `metricTargetErrors(props?: MetricOptions): Metric` — Emitted when the target returns an exception after EventBridge Scheduler calls the target API.

- `metricTargetThrottled(props?: MetricOptions): Metric` — Metric for invocation failures due to API throttling by the target.

- `metricThrottled(props?: MetricOptions): Metric` — Metric for the number of invocations that were throttled because it exceeds your service quotas.

- `with(...mixins: IMixin[]): IConstruct` — Applies one or more mixins to this construct.

  Mixins are applied in order. The list of constructs is captured at the
  start of the call, so constructs added by a mixin will not be visited.

  **Parameters**

  - `mixins` — The mixins to apply.

  **Returns:** This construct for chaining
