From 1ae5a42f2e67ec6ae52e6d09d105d9a0b597f3a8 Mon Sep 17 00:00:00 2001 From: Kevin DeJong Date: Tue, 10 Dec 2024 14:39:53 -0800 Subject: [PATCH] Add pattern for SNS topic name --- .../patches/providers/all/aws_sns_topic/policyname.json | 7 +++++++ .../data/schemas/providers/us_east_1/aws-sns-topic.json | 1 + 2 files changed, 8 insertions(+) create mode 100644 src/cfnlint/data/schemas/patches/providers/all/aws_sns_topic/policyname.json diff --git a/src/cfnlint/data/schemas/patches/providers/all/aws_sns_topic/policyname.json b/src/cfnlint/data/schemas/patches/providers/all/aws_sns_topic/policyname.json new file mode 100644 index 0000000000..5bad769102 --- /dev/null +++ b/src/cfnlint/data/schemas/patches/providers/all/aws_sns_topic/policyname.json @@ -0,0 +1,7 @@ +[ + { + "op": "add", + "path": "/properties/TopicName/pattern", + "value": "^[a-zA-Z0-9-_](\\.fifo)?$" + } +] diff --git a/src/cfnlint/data/schemas/providers/us_east_1/aws-sns-topic.json b/src/cfnlint/data/schemas/providers/us_east_1/aws-sns-topic.json index 4d536abd38..1bda403330 100644 --- a/src/cfnlint/data/schemas/providers/us_east_1/aws-sns-topic.json +++ b/src/cfnlint/data/schemas/providers/us_east_1/aws-sns-topic.json @@ -129,6 +129,7 @@ "TopicName": { "maxLength": 256, "minLength": 1, + "pattern": "^[a-zA-Z0-9-_](\\.fifo)?$", "type": "string" }, "TracingConfig": {