-
Notifications
You must be signed in to change notification settings - Fork 151
/
outputs.py
775 lines (683 loc) · 33.4 KB
/
outputs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'DirectorySelfServicePermissions',
'DirectoryWorkspaceAccessProperties',
'DirectoryWorkspaceCreationProperties',
'IpGroupRule',
'WorkspaceWorkspaceProperties',
'GetBundleComputeTypeResult',
'GetBundleRootStorageResult',
'GetBundleUserStorageResult',
'GetDirectorySelfServicePermissionResult',
'GetDirectoryWorkspaceAccessPropertyResult',
'GetDirectoryWorkspaceCreationPropertyResult',
'GetWorkspaceWorkspacePropertyResult',
]
@pulumi.output_type
class DirectorySelfServicePermissions(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "changeComputeType":
suggest = "change_compute_type"
elif key == "increaseVolumeSize":
suggest = "increase_volume_size"
elif key == "rebuildWorkspace":
suggest = "rebuild_workspace"
elif key == "restartWorkspace":
suggest = "restart_workspace"
elif key == "switchRunningMode":
suggest = "switch_running_mode"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in DirectorySelfServicePermissions. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
DirectorySelfServicePermissions.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
DirectorySelfServicePermissions.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
change_compute_type: Optional[bool] = None,
increase_volume_size: Optional[bool] = None,
rebuild_workspace: Optional[bool] = None,
restart_workspace: Optional[bool] = None,
switch_running_mode: Optional[bool] = None):
"""
:param bool change_compute_type: Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default `false`.
:param bool increase_volume_size: Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default `false`.
:param bool rebuild_workspace: Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default `false`.
:param bool restart_workspace: Whether WorkSpaces directory users can restart their workspace. Default `true`.
:param bool switch_running_mode: Whether WorkSpaces directory users can switch the running mode of their workspace. Default `false`.
"""
if change_compute_type is not None:
pulumi.set(__self__, "change_compute_type", change_compute_type)
if increase_volume_size is not None:
pulumi.set(__self__, "increase_volume_size", increase_volume_size)
if rebuild_workspace is not None:
pulumi.set(__self__, "rebuild_workspace", rebuild_workspace)
if restart_workspace is not None:
pulumi.set(__self__, "restart_workspace", restart_workspace)
if switch_running_mode is not None:
pulumi.set(__self__, "switch_running_mode", switch_running_mode)
@property
@pulumi.getter(name="changeComputeType")
def change_compute_type(self) -> Optional[bool]:
"""
Whether WorkSpaces directory users can change the compute type (bundle) for their workspace. Default `false`.
"""
return pulumi.get(self, "change_compute_type")
@property
@pulumi.getter(name="increaseVolumeSize")
def increase_volume_size(self) -> Optional[bool]:
"""
Whether WorkSpaces directory users can increase the volume size of the drives on their workspace. Default `false`.
"""
return pulumi.get(self, "increase_volume_size")
@property
@pulumi.getter(name="rebuildWorkspace")
def rebuild_workspace(self) -> Optional[bool]:
"""
Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state. Default `false`.
"""
return pulumi.get(self, "rebuild_workspace")
@property
@pulumi.getter(name="restartWorkspace")
def restart_workspace(self) -> Optional[bool]:
"""
Whether WorkSpaces directory users can restart their workspace. Default `true`.
"""
return pulumi.get(self, "restart_workspace")
@property
@pulumi.getter(name="switchRunningMode")
def switch_running_mode(self) -> Optional[bool]:
"""
Whether WorkSpaces directory users can switch the running mode of their workspace. Default `false`.
"""
return pulumi.get(self, "switch_running_mode")
@pulumi.output_type
class DirectoryWorkspaceAccessProperties(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "deviceTypeAndroid":
suggest = "device_type_android"
elif key == "deviceTypeChromeos":
suggest = "device_type_chromeos"
elif key == "deviceTypeIos":
suggest = "device_type_ios"
elif key == "deviceTypeOsx":
suggest = "device_type_osx"
elif key == "deviceTypeWeb":
suggest = "device_type_web"
elif key == "deviceTypeWindows":
suggest = "device_type_windows"
elif key == "deviceTypeZeroclient":
suggest = "device_type_zeroclient"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in DirectoryWorkspaceAccessProperties. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
DirectoryWorkspaceAccessProperties.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
DirectoryWorkspaceAccessProperties.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
device_type_android: Optional[str] = None,
device_type_chromeos: Optional[str] = None,
device_type_ios: Optional[str] = None,
device_type_osx: Optional[str] = None,
device_type_web: Optional[str] = None,
device_type_windows: Optional[str] = None,
device_type_zeroclient: Optional[str] = None):
"""
:param str device_type_android: Indicates whether users can use Android devices to access their WorkSpaces.
:param str device_type_chromeos: Indicates whether users can use Chromebooks to access their WorkSpaces.
:param str device_type_ios: Indicates whether users can use iOS devices to access their WorkSpaces.
:param str device_type_osx: Indicates whether users can use macOS clients to access their WorkSpaces.
:param str device_type_web: Indicates whether users can access their WorkSpaces through a web browser.
:param str device_type_windows: Indicates whether users can use Windows clients to access their WorkSpaces.
:param str device_type_zeroclient: Indicates whether users can use zero client devices to access their WorkSpaces.
"""
if device_type_android is not None:
pulumi.set(__self__, "device_type_android", device_type_android)
if device_type_chromeos is not None:
pulumi.set(__self__, "device_type_chromeos", device_type_chromeos)
if device_type_ios is not None:
pulumi.set(__self__, "device_type_ios", device_type_ios)
if device_type_osx is not None:
pulumi.set(__self__, "device_type_osx", device_type_osx)
if device_type_web is not None:
pulumi.set(__self__, "device_type_web", device_type_web)
if device_type_windows is not None:
pulumi.set(__self__, "device_type_windows", device_type_windows)
if device_type_zeroclient is not None:
pulumi.set(__self__, "device_type_zeroclient", device_type_zeroclient)
@property
@pulumi.getter(name="deviceTypeAndroid")
def device_type_android(self) -> Optional[str]:
"""
Indicates whether users can use Android devices to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_android")
@property
@pulumi.getter(name="deviceTypeChromeos")
def device_type_chromeos(self) -> Optional[str]:
"""
Indicates whether users can use Chromebooks to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_chromeos")
@property
@pulumi.getter(name="deviceTypeIos")
def device_type_ios(self) -> Optional[str]:
"""
Indicates whether users can use iOS devices to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_ios")
@property
@pulumi.getter(name="deviceTypeOsx")
def device_type_osx(self) -> Optional[str]:
"""
Indicates whether users can use macOS clients to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_osx")
@property
@pulumi.getter(name="deviceTypeWeb")
def device_type_web(self) -> Optional[str]:
"""
Indicates whether users can access their WorkSpaces through a web browser.
"""
return pulumi.get(self, "device_type_web")
@property
@pulumi.getter(name="deviceTypeWindows")
def device_type_windows(self) -> Optional[str]:
"""
Indicates whether users can use Windows clients to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_windows")
@property
@pulumi.getter(name="deviceTypeZeroclient")
def device_type_zeroclient(self) -> Optional[str]:
"""
Indicates whether users can use zero client devices to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_zeroclient")
@pulumi.output_type
class DirectoryWorkspaceCreationProperties(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "customSecurityGroupId":
suggest = "custom_security_group_id"
elif key == "defaultOu":
suggest = "default_ou"
elif key == "enableInternetAccess":
suggest = "enable_internet_access"
elif key == "enableMaintenanceMode":
suggest = "enable_maintenance_mode"
elif key == "userEnabledAsLocalAdministrator":
suggest = "user_enabled_as_local_administrator"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in DirectoryWorkspaceCreationProperties. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
DirectoryWorkspaceCreationProperties.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
DirectoryWorkspaceCreationProperties.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
custom_security_group_id: Optional[str] = None,
default_ou: Optional[str] = None,
enable_internet_access: Optional[bool] = None,
enable_maintenance_mode: Optional[bool] = None,
user_enabled_as_local_administrator: Optional[bool] = None):
"""
:param str custom_security_group_id: The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in.
:param str default_ou: The default organizational unit (OU) for your WorkSpace directories. Should conform `"OU=<value>,DC=<value>,...,DC=<value>"` pattern.
:param bool enable_internet_access: Indicates whether internet access is enabled for your WorkSpaces.
:param bool enable_maintenance_mode: Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see [WorkSpace Maintenance](https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html)..
:param bool user_enabled_as_local_administrator: Indicates whether users are local administrators of their WorkSpaces.
"""
if custom_security_group_id is not None:
pulumi.set(__self__, "custom_security_group_id", custom_security_group_id)
if default_ou is not None:
pulumi.set(__self__, "default_ou", default_ou)
if enable_internet_access is not None:
pulumi.set(__self__, "enable_internet_access", enable_internet_access)
if enable_maintenance_mode is not None:
pulumi.set(__self__, "enable_maintenance_mode", enable_maintenance_mode)
if user_enabled_as_local_administrator is not None:
pulumi.set(__self__, "user_enabled_as_local_administrator", user_enabled_as_local_administrator)
@property
@pulumi.getter(name="customSecurityGroupId")
def custom_security_group_id(self) -> Optional[str]:
"""
The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in.
"""
return pulumi.get(self, "custom_security_group_id")
@property
@pulumi.getter(name="defaultOu")
def default_ou(self) -> Optional[str]:
"""
The default organizational unit (OU) for your WorkSpace directories. Should conform `"OU=<value>,DC=<value>,...,DC=<value>"` pattern.
"""
return pulumi.get(self, "default_ou")
@property
@pulumi.getter(name="enableInternetAccess")
def enable_internet_access(self) -> Optional[bool]:
"""
Indicates whether internet access is enabled for your WorkSpaces.
"""
return pulumi.get(self, "enable_internet_access")
@property
@pulumi.getter(name="enableMaintenanceMode")
def enable_maintenance_mode(self) -> Optional[bool]:
"""
Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see [WorkSpace Maintenance](https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html)..
"""
return pulumi.get(self, "enable_maintenance_mode")
@property
@pulumi.getter(name="userEnabledAsLocalAdministrator")
def user_enabled_as_local_administrator(self) -> Optional[bool]:
"""
Indicates whether users are local administrators of their WorkSpaces.
"""
return pulumi.get(self, "user_enabled_as_local_administrator")
@pulumi.output_type
class IpGroupRule(dict):
def __init__(__self__, *,
source: str,
description: Optional[str] = None):
"""
:param str source: The IP address range, in CIDR notation, e.g. `10.0.0.0/16`
:param str description: The description.
"""
pulumi.set(__self__, "source", source)
if description is not None:
pulumi.set(__self__, "description", description)
@property
@pulumi.getter
def source(self) -> str:
"""
The IP address range, in CIDR notation, e.g. `10.0.0.0/16`
"""
return pulumi.get(self, "source")
@property
@pulumi.getter
def description(self) -> Optional[str]:
"""
The description.
"""
return pulumi.get(self, "description")
@pulumi.output_type
class WorkspaceWorkspaceProperties(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "computeTypeName":
suggest = "compute_type_name"
elif key == "rootVolumeSizeGib":
suggest = "root_volume_size_gib"
elif key == "runningMode":
suggest = "running_mode"
elif key == "runningModeAutoStopTimeoutInMinutes":
suggest = "running_mode_auto_stop_timeout_in_minutes"
elif key == "userVolumeSizeGib":
suggest = "user_volume_size_gib"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in WorkspaceWorkspaceProperties. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
WorkspaceWorkspaceProperties.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
WorkspaceWorkspaceProperties.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
compute_type_name: Optional[str] = None,
root_volume_size_gib: Optional[int] = None,
running_mode: Optional[str] = None,
running_mode_auto_stop_timeout_in_minutes: Optional[int] = None,
user_volume_size_gib: Optional[int] = None):
"""
:param str compute_type_name: The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO` and `GRAPHICSPRO`.
:param int root_volume_size_gib: The size of the root volume.
:param str running_mode: The running mode. For more information, see [Manage the WorkSpace Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html). Valid values are `AUTO_STOP` and `ALWAYS_ON`.
:param int running_mode_auto_stop_timeout_in_minutes: The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
:param int user_volume_size_gib: The size of the user storage.
"""
if compute_type_name is not None:
pulumi.set(__self__, "compute_type_name", compute_type_name)
if root_volume_size_gib is not None:
pulumi.set(__self__, "root_volume_size_gib", root_volume_size_gib)
if running_mode is not None:
pulumi.set(__self__, "running_mode", running_mode)
if running_mode_auto_stop_timeout_in_minutes is not None:
pulumi.set(__self__, "running_mode_auto_stop_timeout_in_minutes", running_mode_auto_stop_timeout_in_minutes)
if user_volume_size_gib is not None:
pulumi.set(__self__, "user_volume_size_gib", user_volume_size_gib)
@property
@pulumi.getter(name="computeTypeName")
def compute_type_name(self) -> Optional[str]:
"""
The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO` and `GRAPHICSPRO`.
"""
return pulumi.get(self, "compute_type_name")
@property
@pulumi.getter(name="rootVolumeSizeGib")
def root_volume_size_gib(self) -> Optional[int]:
"""
The size of the root volume.
"""
return pulumi.get(self, "root_volume_size_gib")
@property
@pulumi.getter(name="runningMode")
def running_mode(self) -> Optional[str]:
"""
The running mode. For more information, see [Manage the WorkSpace Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html). Valid values are `AUTO_STOP` and `ALWAYS_ON`.
"""
return pulumi.get(self, "running_mode")
@property
@pulumi.getter(name="runningModeAutoStopTimeoutInMinutes")
def running_mode_auto_stop_timeout_in_minutes(self) -> Optional[int]:
"""
The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
"""
return pulumi.get(self, "running_mode_auto_stop_timeout_in_minutes")
@property
@pulumi.getter(name="userVolumeSizeGib")
def user_volume_size_gib(self) -> Optional[int]:
"""
The size of the user storage.
"""
return pulumi.get(self, "user_volume_size_gib")
@pulumi.output_type
class GetBundleComputeTypeResult(dict):
def __init__(__self__, *,
name: str):
"""
:param str name: The name of the bundle. You cannot combine this parameter with `bundle_id`.
"""
pulumi.set(__self__, "name", name)
@property
@pulumi.getter
def name(self) -> str:
"""
The name of the bundle. You cannot combine this parameter with `bundle_id`.
"""
return pulumi.get(self, "name")
@pulumi.output_type
class GetBundleRootStorageResult(dict):
def __init__(__self__, *,
capacity: str):
"""
:param str capacity: The size of the user storage.
"""
pulumi.set(__self__, "capacity", capacity)
@property
@pulumi.getter
def capacity(self) -> str:
"""
The size of the user storage.
"""
return pulumi.get(self, "capacity")
@pulumi.output_type
class GetBundleUserStorageResult(dict):
def __init__(__self__, *,
capacity: str):
"""
:param str capacity: The size of the user storage.
"""
pulumi.set(__self__, "capacity", capacity)
@property
@pulumi.getter
def capacity(self) -> str:
"""
The size of the user storage.
"""
return pulumi.get(self, "capacity")
@pulumi.output_type
class GetDirectorySelfServicePermissionResult(dict):
def __init__(__self__, *,
change_compute_type: bool,
increase_volume_size: bool,
rebuild_workspace: bool,
restart_workspace: bool,
switch_running_mode: bool):
"""
:param bool change_compute_type: Whether WorkSpaces directory users can change the compute type (bundle) for their workspace.
:param bool increase_volume_size: Whether WorkSpaces directory users can increase the volume size of the drives on their workspace.
:param bool rebuild_workspace: Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state.
:param bool restart_workspace: Whether WorkSpaces directory users can restart their workspace.
:param bool switch_running_mode: Whether WorkSpaces directory users can switch the running mode of their workspace.
"""
pulumi.set(__self__, "change_compute_type", change_compute_type)
pulumi.set(__self__, "increase_volume_size", increase_volume_size)
pulumi.set(__self__, "rebuild_workspace", rebuild_workspace)
pulumi.set(__self__, "restart_workspace", restart_workspace)
pulumi.set(__self__, "switch_running_mode", switch_running_mode)
@property
@pulumi.getter(name="changeComputeType")
def change_compute_type(self) -> bool:
"""
Whether WorkSpaces directory users can change the compute type (bundle) for their workspace.
"""
return pulumi.get(self, "change_compute_type")
@property
@pulumi.getter(name="increaseVolumeSize")
def increase_volume_size(self) -> bool:
"""
Whether WorkSpaces directory users can increase the volume size of the drives on their workspace.
"""
return pulumi.get(self, "increase_volume_size")
@property
@pulumi.getter(name="rebuildWorkspace")
def rebuild_workspace(self) -> bool:
"""
Whether WorkSpaces directory users can rebuild the operating system of a workspace to its original state.
"""
return pulumi.get(self, "rebuild_workspace")
@property
@pulumi.getter(name="restartWorkspace")
def restart_workspace(self) -> bool:
"""
Whether WorkSpaces directory users can restart their workspace.
"""
return pulumi.get(self, "restart_workspace")
@property
@pulumi.getter(name="switchRunningMode")
def switch_running_mode(self) -> bool:
"""
Whether WorkSpaces directory users can switch the running mode of their workspace.
"""
return pulumi.get(self, "switch_running_mode")
@pulumi.output_type
class GetDirectoryWorkspaceAccessPropertyResult(dict):
def __init__(__self__, *,
device_type_android: str,
device_type_chromeos: str,
device_type_ios: str,
device_type_osx: str,
device_type_web: str,
device_type_windows: str,
device_type_zeroclient: str):
"""
:param str device_type_android: (Optional) Indicates whether users can use Android devices to access their WorkSpaces.
:param str device_type_chromeos: (Optional) Indicates whether users can use Chromebooks to access their WorkSpaces.
:param str device_type_ios: (Optional) Indicates whether users can use iOS devices to access their WorkSpaces.
:param str device_type_osx: (Optional) Indicates whether users can use macOS clients to access their WorkSpaces.
:param str device_type_web: (Optional) Indicates whether users can access their WorkSpaces through a web browser.
:param str device_type_windows: (Optional) Indicates whether users can use Windows clients to access their WorkSpaces.
:param str device_type_zeroclient: (Optional) Indicates whether users can use zero client devices to access their WorkSpaces.
"""
pulumi.set(__self__, "device_type_android", device_type_android)
pulumi.set(__self__, "device_type_chromeos", device_type_chromeos)
pulumi.set(__self__, "device_type_ios", device_type_ios)
pulumi.set(__self__, "device_type_osx", device_type_osx)
pulumi.set(__self__, "device_type_web", device_type_web)
pulumi.set(__self__, "device_type_windows", device_type_windows)
pulumi.set(__self__, "device_type_zeroclient", device_type_zeroclient)
@property
@pulumi.getter(name="deviceTypeAndroid")
def device_type_android(self) -> str:
"""
(Optional) Indicates whether users can use Android devices to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_android")
@property
@pulumi.getter(name="deviceTypeChromeos")
def device_type_chromeos(self) -> str:
"""
(Optional) Indicates whether users can use Chromebooks to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_chromeos")
@property
@pulumi.getter(name="deviceTypeIos")
def device_type_ios(self) -> str:
"""
(Optional) Indicates whether users can use iOS devices to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_ios")
@property
@pulumi.getter(name="deviceTypeOsx")
def device_type_osx(self) -> str:
"""
(Optional) Indicates whether users can use macOS clients to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_osx")
@property
@pulumi.getter(name="deviceTypeWeb")
def device_type_web(self) -> str:
"""
(Optional) Indicates whether users can access their WorkSpaces through a web browser.
"""
return pulumi.get(self, "device_type_web")
@property
@pulumi.getter(name="deviceTypeWindows")
def device_type_windows(self) -> str:
"""
(Optional) Indicates whether users can use Windows clients to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_windows")
@property
@pulumi.getter(name="deviceTypeZeroclient")
def device_type_zeroclient(self) -> str:
"""
(Optional) Indicates whether users can use zero client devices to access their WorkSpaces.
"""
return pulumi.get(self, "device_type_zeroclient")
@pulumi.output_type
class GetDirectoryWorkspaceCreationPropertyResult(dict):
def __init__(__self__, *,
custom_security_group_id: str,
default_ou: str,
enable_internet_access: bool,
enable_maintenance_mode: bool,
user_enabled_as_local_administrator: bool):
"""
:param str custom_security_group_id: The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in.
:param str default_ou: The default organizational unit (OU) for your WorkSpace directories.
:param bool enable_internet_access: Indicates whether internet access is enabled for your WorkSpaces.
:param bool enable_maintenance_mode: Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see [WorkSpace Maintenance](https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html).
:param bool user_enabled_as_local_administrator: Indicates whether users are local administrators of their WorkSpaces.
"""
pulumi.set(__self__, "custom_security_group_id", custom_security_group_id)
pulumi.set(__self__, "default_ou", default_ou)
pulumi.set(__self__, "enable_internet_access", enable_internet_access)
pulumi.set(__self__, "enable_maintenance_mode", enable_maintenance_mode)
pulumi.set(__self__, "user_enabled_as_local_administrator", user_enabled_as_local_administrator)
@property
@pulumi.getter(name="customSecurityGroupId")
def custom_security_group_id(self) -> str:
"""
The identifier of your custom security group. Should relate to the same VPC, where workspaces reside in.
"""
return pulumi.get(self, "custom_security_group_id")
@property
@pulumi.getter(name="defaultOu")
def default_ou(self) -> str:
"""
The default organizational unit (OU) for your WorkSpace directories.
"""
return pulumi.get(self, "default_ou")
@property
@pulumi.getter(name="enableInternetAccess")
def enable_internet_access(self) -> bool:
"""
Indicates whether internet access is enabled for your WorkSpaces.
"""
return pulumi.get(self, "enable_internet_access")
@property
@pulumi.getter(name="enableMaintenanceMode")
def enable_maintenance_mode(self) -> bool:
"""
Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see [WorkSpace Maintenance](https://docs.aws.amazon.com/workspaces/latest/adminguide/workspace-maintenance.html).
"""
return pulumi.get(self, "enable_maintenance_mode")
@property
@pulumi.getter(name="userEnabledAsLocalAdministrator")
def user_enabled_as_local_administrator(self) -> bool:
"""
Indicates whether users are local administrators of their WorkSpaces.
"""
return pulumi.get(self, "user_enabled_as_local_administrator")
@pulumi.output_type
class GetWorkspaceWorkspacePropertyResult(dict):
def __init__(__self__, *,
compute_type_name: str,
root_volume_size_gib: int,
running_mode: str,
running_mode_auto_stop_timeout_in_minutes: int,
user_volume_size_gib: int):
"""
:param str compute_type_name: The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO` and `GRAPHICSPRO`.
:param int root_volume_size_gib: The size of the root volume.
:param str running_mode: The running mode. For more information, see [Manage the WorkSpace Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html). Valid values are `AUTO_STOP` and `ALWAYS_ON`.
:param int running_mode_auto_stop_timeout_in_minutes: The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
:param int user_volume_size_gib: The size of the user storage.
"""
pulumi.set(__self__, "compute_type_name", compute_type_name)
pulumi.set(__self__, "root_volume_size_gib", root_volume_size_gib)
pulumi.set(__self__, "running_mode", running_mode)
pulumi.set(__self__, "running_mode_auto_stop_timeout_in_minutes", running_mode_auto_stop_timeout_in_minutes)
pulumi.set(__self__, "user_volume_size_gib", user_volume_size_gib)
@property
@pulumi.getter(name="computeTypeName")
def compute_type_name(self) -> str:
"""
The compute type. For more information, see [Amazon WorkSpaces Bundles](http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles). Valid values are `VALUE`, `STANDARD`, `PERFORMANCE`, `POWER`, `GRAPHICS`, `POWERPRO` and `GRAPHICSPRO`.
"""
return pulumi.get(self, "compute_type_name")
@property
@pulumi.getter(name="rootVolumeSizeGib")
def root_volume_size_gib(self) -> int:
"""
The size of the root volume.
"""
return pulumi.get(self, "root_volume_size_gib")
@property
@pulumi.getter(name="runningMode")
def running_mode(self) -> str:
"""
The running mode. For more information, see [Manage the WorkSpace Running Mode](https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html). Valid values are `AUTO_STOP` and `ALWAYS_ON`.
"""
return pulumi.get(self, "running_mode")
@property
@pulumi.getter(name="runningModeAutoStopTimeoutInMinutes")
def running_mode_auto_stop_timeout_in_minutes(self) -> int:
"""
The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals.
"""
return pulumi.get(self, "running_mode_auto_stop_timeout_in_minutes")
@property
@pulumi.getter(name="userVolumeSizeGib")
def user_volume_size_gib(self) -> int:
"""
The size of the user storage.
"""
return pulumi.get(self, "user_volume_size_gib")