# Copyright (c) 2015, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.

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


class WorkspaceProperties(AWSProperty):
    props = {
        'ComputeTypeName': (basestring, False),
        'RootVolumeSizeGib': (integer, False),
        'RunningMode': (basestring, False),
        'RunningModeAutoStopTimeoutInMinutes': (integer, False),
        'UserVolumeSizeGib': (integer, False),
    }


class Workspace(AWSObject):
    resource_type = "AWS::WorkSpaces::Workspace"

    props = {
        'BundleId': (basestring, True),
        'DirectoryId': (basestring, True),
        'UserName': (basestring, True),
        'RootVolumeEncryptionEnabled': (boolean, False),
        'Tags': (Tags, False),
        'UserVolumeEncryptionEnabled': (boolean, False),
        'VolumeEncryptionKey': (basestring, False),
        'WorkspaceProperties': (WorkspaceProperties, False),
    }

@@ -16,9 +16,14 @@
  201
-5
+2-2020
 , Ma
@@ -112,92 +112,439 @@
 se.%0A
-%0Afrom . import AWSObject, AWSProperty, Tags%0Afrom .validators import boolean, integer
+#%0A# *** Do not modify - this file is autogenerated ***%0A# Resource specification version: 18.6.0%0A%0A%0Afrom . import AWSObject%0Afrom . import AWSProperty%0Afrom troposphere import Tags%0Afrom .validators import boolean%0Afrom .validators import integer%0A%0A%0Aclass ConnectionAlias(AWSObject):%0A    resource_type = %22AWS::WorkSpaces::ConnectionAlias%22%0A%0A    props = %7B%0A        'ConnectionString': (basestring, True),%0A        'Tags': (Tags, False),%0A    %7D
 %0A%0A%0Ac
@@ -1034,48 +1034,8 @@
 e),%0A
-        'UserName': (basestring, True),%0A
     
@@ -1110,32 +1110,72 @@
  (Tags, False),%0A
+        'UserName': (basestring, True),%0A
         'UserVol

Add WorkSpaces::ConnectionAlias per 2020-10-01 changes