# -*- coding: utf-8 -*-

"""
This code is auto generated from troposphere_mate.code_generator.__init__.py scripts.
"""

import sys
if sys.version_info.major >= 3 and sys.version_info.minor >= 5:  # pragma: no cover
    from typing import Union, List, Any

import troposphere.certificatemanager

from troposphere.certificatemanager import (
    DomainValidationOption as _DomainValidationOption,
    Tags as _Tags,
)


from troposphere import Template, AWSHelperFn
from troposphere_mate.core.mate import preprocess_init_kwargs, Mixin
from troposphere_mate.core.sentiel import REQUIRED, NOTHING



class DomainValidationOption(troposphere.certificatemanager.DomainValidationOption, Mixin):
    def __init__(self,
                 title=None,
                 DomainName=REQUIRED, # type: Union[str, AWSHelperFn]
                 ValidationDomain=REQUIRED, # type: Union[str, AWSHelperFn]
                 **kwargs):
        processed_kwargs = preprocess_init_kwargs(
            title=title,
            DomainName=DomainName,
            ValidationDomain=ValidationDomain,
        )
        super(DomainValidationOption, self).__init__(**processed_kwargs)


class Certificate(troposphere.certificatemanager.Certificate, Mixin):
    def __init__(self,
                 title, # type: str
                 template=None, # type: Template
                 validation=True, # type: bool
                 DomainName=REQUIRED, # type: Union[str, AWSHelperFn]
                 DomainValidationOptions=NOTHING, # type: List[_DomainValidationOption]
                 SubjectAlternativeNames=NOTHING, # type: List[Union[str, AWSHelperFn]]
                 Tags=NOTHING, # type: Union[_Tags, list]
                 ValidationMethod=NOTHING, # type: Union[str, AWSHelperFn]
                 **kwargs):
        processed_kwargs = preprocess_init_kwargs(
            title=title,
            template=template,
            validation=validation,
            DomainName=DomainName,
            DomainValidationOptions=DomainValidationOptions,
            SubjectAlternativeNames=SubjectAlternativeNames,
            Tags=Tags,
            ValidationMethod=ValidationMethod,
        )
        super(Certificate, self).__init__(**processed_kwargs)
