interface IScheduleGroup
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Scheduler.IScheduleGroup |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsscheduler#IScheduleGroup |
Java | software.amazon.awscdk.services.scheduler.IScheduleGroup |
Python | aws_cdk.aws_scheduler.IScheduleGroup |
TypeScript (source) | aws-cdk-lib » aws_scheduler » IScheduleGroup |
Implemented by
Schedule
Obtainable from
Schedule.fromDefaultScheduleGroup(), Schedule.fromScheduleGroupArn(), Schedule.fromScheduleGroupName()
Interface representing a created or an imported ScheduleGroup.
Properties
| Name | Type | Description |
|---|---|---|
| env | Resource | The environment this resource belongs to. |
| node | Node | The tree node. |
| schedule | string | The arn of the schedule group. |
| schedule | string | The name of the schedule group. |
| schedule | Schedule | A reference to a ScheduleGroup resource. |
| stack | Stack | The stack in which this resource is defined. |
env
Type:
Resource
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
Type:
Node
The tree node.
scheduleGroupArn
Type:
string
The arn of the schedule group.
scheduleGroupName
Type:
string
The name of the schedule group.
scheduleGroupRef
Type:
Schedule
A reference to a ScheduleGroup resource.
stack
Type:
Stack
The stack in which this resource is defined.
Methods
| Name | Description |
|---|---|
| apply | Apply the given removal policy to this resource. |
| grant(grantee, ...actions) | Grant the indicated permissions on this group to the given principal. |
| grant | Grant delete schedule permission for schedules in this group to the given principal. |
| grant | Grant list and get schedule permissions for schedules in this group to the given principal. |
| grant | Grant create and update schedule permissions for schedules in this group to the given principal. |
| metric(metricName, props?) | Return the given named metric for this group schedules. |
| metric | Metric for all invocation attempts. |
| metric | Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted. |
| metric | Metric for failed invocations that also failed to deliver to DLQ. |
| metric | Metric for invocations delivered to the DLQ. |
| 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. |
| metric | Emitted when the target returns an exception after EventBridge Scheduler calls the target API. |
| metric | Metric for invocation failures due to API throttling by the target. |
| metric | Metric for the number of invocations that were throttled because it exceeds your service quotas. |
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
RemovalPolicy
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, ...actions)
public grant(grantee: IGrantable, ...actions: string[]): Grant
Parameters
- grantee
IGrantable - actions
string
Returns
Grant the indicated permissions on this group to the given principal.
grantDeleteSchedules(identity)
public grantDeleteSchedules(identity: IGrantable): Grant
Parameters
- identity
IGrantable
Returns
Grant delete schedule permission for schedules in this group to the given principal.
grantReadSchedules(identity)
public grantReadSchedules(identity: IGrantable): Grant
Parameters
- identity
IGrantable
Returns
Grant list and get schedule permissions for schedules in this group to the given principal.
grantWriteSchedules(identity)
public grantWriteSchedules(identity: IGrantable): Grant
Parameters
- identity
IGrantable
Returns
Grant create and update schedule permissions for schedules in this group to the given principal.
metric(metricName, props?)
public metric(metricName: string, props?: MetricOptions): Metric
Parameters
- metricName
string - props
MetricOptions
Returns
Return the given named metric for this group schedules.
metricAttempts(props?)
public metricAttempts(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for all invocation attempts.
metricDropped(props?)
public metricDropped(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for dropped invocations when EventBridge Scheduler stops attempting to invoke the target after a schedule's retry policy has been exhausted.
metricFailedToBeSentToDLQ(errorCode?, props?)
public metricFailedToBeSentToDLQ(errorCode?: string, props?: MetricOptions): Metric
Parameters
- errorCode
string - props
MetricOptions
Returns
Metric for failed invocations that also failed to deliver to DLQ.
metricSentToDLQ(props?)
public metricSentToDLQ(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for invocations delivered to the DLQ.
metricSentToDLQTruncated(props?)
public metricSentToDLQTruncated(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
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?)
public metricTargetErrors(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Emitted when the target returns an exception after EventBridge Scheduler calls the target API.
metricTargetThrottled(props?)
public metricTargetThrottled(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for invocation failures due to API throttling by the target.
metricThrottled(props?)
public metricThrottled(props?: MetricOptions): Metric
Parameters
- props
MetricOptions
Returns
Metric for the number of invocations that were throttled because it exceeds your service quotas.
See also: https://docs.aws.amazon.com/scheduler/latest/UserGuide/scheduler-quotas.html

.NET
Go
Java
Python
TypeScript (