404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.119.100.196: ~ $
"""
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: MIT-0
"""
from cfnlint.rules import CloudFormationLintRule, RuleMatch


class Description(CloudFormationLintRule):
    """Check Template Description is only a String"""

    id = "E1004"
    shortdesc = "Template description can only be a string"
    description = "Template description can only be a string"
    source_url = "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-description-structure.html"
    tags = ["description"]

    def match(self, cfn):
        matches = []

        description = cfn.template.get("Description")
        if not "Description" in cfn.template:
            return matches

        if not isinstance(description, str):
            message = "Description can only be a string"
            matches.append(RuleMatch(["Description"], message))
        return matches

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
ApproachingLimitDescription.py File 1.2 KB 0644
ApproachingLimitSize.py File 1.43 KB 0644
Base.py File 2.9 KB 0644
Description.py File 916 B 0644
LimitDescription.py File 1.25 KB 0644
LimitSize.py File 1.3 KB 0644
__init__.py File 106 B 0644