From f4916ec922e0f967b345b6278e8e77612c398e34 Mon Sep 17 00:00:00 2001 From: Eli Polonsky Date: Wed, 18 Sep 2024 13:00:08 +0300 Subject: [PATCH] feat: configure SNS topics to receive stack events on the Stack construct (#58) Reroll of https://github.com/cdklabs/cloud-assembly-schema/pull/29 now that the release has been fixed. --- .projen/tasks.json | 2 +- lib/cloud-assembly/artifact-schema.ts | 7 +++++++ schema/cloud-assembly.schema.json | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.projen/tasks.json b/.projen/tasks.json index c8ae111..e987fe0 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -246,7 +246,7 @@ "description": "Prepare a release from \"main\" branch", "env": { "RELEASE": "true", - "MIN_MAJOR": "36" + "MIN_MAJOR": "37" }, "steps": [ { diff --git a/lib/cloud-assembly/artifact-schema.ts b/lib/cloud-assembly/artifact-schema.ts index 67e8484..a7d3f9b 100644 --- a/lib/cloud-assembly/artifact-schema.ts +++ b/lib/cloud-assembly/artifact-schema.ts @@ -54,6 +54,13 @@ export interface AwsCloudFormationStackProperties { */ readonly tags?: { [id: string]: string }; + /** + * SNS Notification ARNs that should receive CloudFormation Stack Events. + * + * @default - No notification arns + */ + readonly notificationArns?: string[]; + /** * The name to use for the CloudFormation stack. * @default - name derived from artifact ID diff --git a/schema/cloud-assembly.schema.json b/schema/cloud-assembly.schema.json index 279dfbe..2a2bd79 100644 --- a/schema/cloud-assembly.schema.json +++ b/schema/cloud-assembly.schema.json @@ -345,6 +345,13 @@ "type": "string" } }, + "notificationArns": { + "description": "SNS Notification ARNs that should receive CloudFormation Stack Events. (Default - No notification arns)", + "type": "array", + "items": { + "type": "string" + } + }, "stackName": { "description": "The name to use for the CloudFormation stack. (Default - name derived from artifact ID)", "type": "string"