
from . import AWSObject


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

    props = {
        'BundleId': (basestring, True),
        'DirectoryId': (basestring, True),
        'UserName': (basestring, True),
    }


from . import AWSObject
from .validators import boolean


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

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

Add encryption properties to Workspace
Add encryption properties to Workspace

  
  from . import AWSObject
+ from .validators import boolean
  
  
  class Workspace(AWSObject):
      resource_type = "AWS::WorkSpaces::Workspace"
  
      props = {
          'BundleId': (basestring, True),
          'DirectoryId': (basestring, True),
          'UserName': (basestring, True),
+         'RootVolumeEncryptionEnabled': (boolean, False),
+         'UserVolumeEncryptionEnabled': (boolean, False),
+         'VolumeEncryptionKey': (basestring, False),
      }
  
Add encryption properties to Workspace
## Code Before:

from . import AWSObject


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

    props = {
        'BundleId': (basestring, True),
        'DirectoryId': (basestring, True),
        'UserName': (basestring, True),
    }

## Instruction:
Add encryption properties to Workspace
## Code After:

from . import AWSObject
from .validators import boolean


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

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