# Copyright (c) 2020, <NAME> <<EMAIL>>
# All rights reserved.
#
# See LICENSE file for full license.

from . import AWSObject, AWSProperty, Tags
from .validators import resourcequery_type


class TagFilter(AWSProperty):
    props = {
        "Key": (str, False),
        "Values": ([str], False),
    }


class Query(AWSProperty):
    props = {
        "ResourceTypeFilters": ([str], False),
        "StackIdentifier": (str, False),
        "TagFilters": ([TagFilter], False),
    }


class ResourceQuery(AWSProperty):
    props = {
        "Query": (Query, False),
        "Type": (resourcequery_type, False),
    }


class Group(AWSObject):
    resource_type = "AWS::ResourceGroups::Group"

    props = {
        "Description": (str, False),
        "Name": (str, True),
        "ResourceQuery": (ResourceQuery, False),
        "Tags": (Tags, False),
    }

# Copyright (c) 2020, <NAME> <<EMAIL>>
# All rights reserved.
#
# See LICENSE file for full license.

from . import AWSObject, AWSProperty, Tags
from .validators import resourcequery_type


class TagFilter(AWSProperty):
    props = {
        "Key": (str, False),
        "Values": ([str], False),
    }


class Query(AWSProperty):
    props = {
        "ResourceTypeFilters": ([str], False),
        "StackIdentifier": (str, False),
        "TagFilters": ([TagFilter], False),
    }


class ResourceQuery(AWSProperty):
    props = {
        "Query": (Query, False),
        "Type": (resourcequery_type, False),
    }


class Group(AWSObject):
    resource_type = "AWS::ResourceGroups::Group"

    props = {
        "Description": (str, False),
        "Name": (str, True),
        "ResourceQuery": (ResourceQuery, False),
        "Tags": (Tags, False),
    }

# Copyright (c) 2020, <NAME> <<EMAIL>> # All rights reserved. # # See LICENSE file for full license.