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