Skip to content

Commit

Permalink
fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
lpizzinidev committed Oct 19, 2023
1 parent c655f1f commit a5259c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/@aws-cdk/aws-scheduler-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,12 +209,10 @@ If you wish you can also provide a customer managed key to encrypt and decrypt t
Target classes will automatically add AWS KMS Decrypt permission to your schedule's execution role permissions policy.

```ts
import * as kms from '@aws-cdk/aws-kms';

declare const encryptionKey: kms.Key;

const schedule = new Schedule(this, 'Schedule', {
scheduleExpression: ScheduleExpression.rate(Duration.minutes(10)),
schedule: ScheduleExpression.rate(Duration.minutes(10)),
target,
key: encryptionKey,
});
Expand Down

0 comments on commit a5259c5

Please sign in to comment.