forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 2
/
RecordSet.py
30 lines (25 loc) · 1.07 KB
/
RecordSet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
"""
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
import cfnlint.data.schemas.extensions.aws_route53_recordset
from cfnlint.rules.jsonschema.CfnLintJsonSchema import CfnLintJsonSchema, SchemaDetails
class RecordSet(CfnLintJsonSchema):
"""Check Route53 Recordset Configuration"""
id = "E3023"
shortdesc = "Validate Route53 RecordSets"
description = "Check if all RecordSets are correctly configured"
source_url = "https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html"
tags = ["resources", "route53", "record_set"]
def __init__(self) -> None:
super().__init__(
keywords=[
"Resources/AWS::Route53::RecordSet/Properties",
"Resources/AWS::Route53::RecordSetGroup/Properties/RecordSets/*",
],
schema_details=SchemaDetails(
module=cfnlint.data.schemas.extensions.aws_route53_recordset,
filename="recordset_pattern.json",
),
all_matches=True,
)