forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelect.py
More file actions
26 lines (20 loc) · 767 Bytes
/
Select.py
File metadata and controls
26 lines (20 loc) · 767 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
"""
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
from __future__ import annotations
from cfnlint.rules.functions._BaseFn import BaseFn, all_types
class Select(BaseFn):
"""Check if Select values are correct"""
id = "E1017"
shortdesc = "Select validation of parameters"
description = "Making sure the Select function is properly configured"
source_url = "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-select.html"
tags = ["functions", "select"]
def __init__(self) -> None:
super().__init__(
"Fn::Select",
all_types,
resolved_rule="W1035",
)
self.fn_select = self.validate