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


from . import AWSObject
from . import AWSProperty
from troposphere import Tags


class EndpointDetails(AWSProperty):
    props = {
        'VpcEndpointId': (basestring, True),
    }


class IdentityProviderDetails(AWSProperty):
    props = {
        'InvocationRole': (basestring, True),
        'Url': (basestring, True),
    }


class Server(AWSObject):
    resource_type = "AWS::Transfer::Server"

    props = {
        'EndpointDetails': (EndpointDetails, False),
        'EndpointType': (basestring, False),
        'IdentityProviderDetails': (IdentityProviderDetails, False),
        'IdentityProviderType': (basestring, False),
        'LoggingRole': (basestring, False),
        'Tags': (Tags, False),
    }


class SshPublicKey(AWSProperty):
    props = {
    }


class User(AWSObject):
    resource_type = "AWS::Transfer::User"

    props = {
        'HomeDirectory': (basestring, False),
        'Policy': (basestring, False),
        'Role': (basestring, True),
        'ServerId': (basestring, True),
        'SshPublicKeys': ([SshPublicKey], False),
        'Tags': (Tags, False),
        'UserName': (basestring, True),
    }

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


from . import AWSObject
from . import AWSProperty
from troposphere import Tags


class EndpointDetails(AWSProperty):
    props = {
        'VpcEndpointId': (basestring, True),
    }


class IdentityProviderDetails(AWSProperty):
    props = {
        'InvocationRole': (basestring, True),
        'Url': (basestring, True),
    }


class Server(AWSObject):
    resource_type = "AWS::Transfer::Server"

    props = {
        'EndpointDetails': (EndpointDetails, False),
        'EndpointType': (basestring, False),
        'IdentityProviderDetails': (IdentityProviderDetails, False),
        'IdentityProviderType': (basestring, False),
        'LoggingRole': (basestring, False),
        'Tags': (Tags, False),
    }


class User(AWSObject):
    resource_type = "AWS::Transfer::User"

    props = {
        'HomeDirectory': (basestring, False),
        'Policy': (basestring, False),
        'Role': (basestring, True),
        'ServerId': (basestring, True),
        'SshPublicKeys': ([basestring], False),
        'Tags': (Tags, False),
        'UserName': (basestring, True),
    }

Fix Transfer::User SshPublicKeys type (#1459)