forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDBInstanceDBInstanceClassEnum.py
More file actions
27 lines (23 loc) · 982 Bytes
/
DBInstanceDBInstanceClassEnum.py
File metadata and controls
27 lines (23 loc) · 982 Bytes
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
"""
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
import cfnlint.data.schemas.extensions.aws_neptune_dbinstance
from cfnlint.rules.jsonschema.CfnLintJsonSchema import SchemaDetails
from cfnlint.rules.jsonschema.CfnLintJsonSchemaRegional import CfnLintJsonSchemaRegional
class DBInstanceDBInstanceClassEnum(CfnLintJsonSchemaRegional):
id = "E3635"
shortdesc = "Validate Neptune DB instance class"
description = (
"Validates the instance types for Neptune DB based on region "
"and data gathered from the pricing APIs"
)
tags = ["resources"]
def __init__(self) -> None:
super().__init__(
keywords=["Resources/AWS::Neptune::DBInstance/Properties/DBInstanceClass"],
schema_details=SchemaDetails(
module=cfnlint.data.schemas.extensions.aws_neptune_dbinstance,
filename="dbinstanceclass_enum.json",
),
)