# Copyright (c) 2012-2025, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***


from . import AWSObject, AWSProperty, PropsDictType, Tags
from .validators import boolean


class MultiRegionProperties(AWSProperty):
    """
    `MultiRegionProperties <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dsql-cluster-multiregionproperties.html>`__
    """

    props: PropsDictType = {
        "Clusters": ([str], False),
        "WitnessRegion": (str, False),
    }


class Cluster(AWSObject):
    """
    `Cluster <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-dsql-cluster.html>`__
    """

    resource_type = "AWS::DSQL::Cluster"

    props: PropsDictType = {
        "DeletionProtectionEnabled": (boolean, False),
        "KmsEncryptionKey": (str, False),
        "MultiRegionProperties": (MultiRegionProperties, False),
        "Tags": (Tags, False),
    }


class EncryptionDetails(AWSProperty):
    """
    `EncryptionDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dsql-cluster-encryptiondetails.html>`__
    """

    props: PropsDictType = {
        "EncryptionStatus": (str, False),
        "EncryptionType": (str, False),
        "KmsKeyArn": (str, False),
    }
