@@ -58,7 +58,8 @@ def __init__(
5858 self .modification_states : List [
5959 Dict [str , str ]
6060 ] = [] # modify_workspace_properties
61- self .related_workspaces : List [Dict [str , str ]] = [] # create_standy_workspace
61+ # create_standy_workspace
62+ self .related_workspaces : List [Dict [str , str ]] = []
6263 self .data_replication_settings : Dict [str , Any ] = {}
6364 # The properties of the standby WorkSpace related to related_workspaces
6465 self .standby_workspaces_properties : List [Dict [str , Any ]] = []
@@ -141,7 +142,13 @@ def __init__(
141142 self .dns_ip_addresses = directory .dns_ip_addrs
142143 self .customer_username = "Administrator"
143144 self .iam_rold_id = f"arn:aws:iam::{ account_id } :role/workspaces_DefaultRole"
144- self .directory_type = directory .directory_type
145+ dir_type = directory .directory_type
146+ if dir_type == "ADConnector" :
147+ self .directory_type = "AD_CONNECTOR"
148+ elif dir_type == "SimpleAD" :
149+ self .directory_type = "SIMPLE_AD"
150+ else :
151+ self .directory_type = dir_type
145152 self .workspace_security_group_id = security_group_id
146153 self .state = "REGISTERED"
147154 # Default values for workspace_creation_properties
0 commit comments