aws-sdk-workspaces 1.76.0 → 1.77.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ced20f21794e37aaa1d4d5e4beeef4ccfb17249611dec81129a7b77ed4e4722f
4
- data.tar.gz: c8f312881dcc9439aee9b98f75c74ec366976e97c0d11ea2f4ebc4dcc3b35cf1
3
+ metadata.gz: 81401fc211ec787c1521119c1e2c02eaa9ce4320105f06080767542b059e8f60
4
+ data.tar.gz: d1d6c0d1ca92287eb5de292359d643d22467dc077b721ed4849af0a2043f7dbc
5
5
  SHA512:
6
- metadata.gz: d360ffc7257bef159e99aafce795e648c3f8c79ab2dbf3afc275df3b5d6a6757897c831380de1f216e3c0a91622c64c08d47c95456147efd3648b38dfb843627
7
- data.tar.gz: 31902a4ec491a5c595ebfc8e2c11052450a728e7c8cf2718fba568ef7a080ece69f1aba07c6bfd5ada4072b13975119c669d2cad3b8aadcf533faf5e95e33e09
6
+ metadata.gz: 0cefb02b08095edabecdde2a4b77aabb1b1a78ea9f5a30e060382909d9f78b9767bddf92c552dd9b3568efcda8399d180432d9bf5e692c1b6ad12e1126be5fa4
7
+ data.tar.gz: be4e2601bde3b2bac8facff76649ada3733bfca73c0f4fb30ce3a1f4dd55459c1e7b2b8a0d1f8d157a501ea2716488be647510d9c8e8fa59ede3a9b962b56295
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.77.0 (2022-11-17)
5
+ ------------------
6
+
7
+ * Feature - The release introduces CreateStandbyWorkspaces, an API that allows you to create standby WorkSpaces associated with a primary WorkSpace in another Region. DescribeWorkspaces now includes related WorkSpaces properties. DescribeWorkspaceBundles and CreateWorkspaceBundle now return more bundle details.
8
+
4
9
  1.76.0 (2022-11-15)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.76.0
1
+ 1.77.0
@@ -708,6 +708,64 @@ module Aws::WorkSpaces
708
708
  req.send_request(options)
709
709
  end
710
710
 
711
+ # Creates a Standby WorkSpace in a secondary region.
712
+ #
713
+ # @option params [required, String] :primary_region
714
+ # The Region of the primary WorkSpace.
715
+ #
716
+ # @option params [required, Array<Types::StandbyWorkspace>] :standby_workspaces
717
+ # Information about the Standby WorkSpace to be created.
718
+ #
719
+ # @return [Types::CreateStandbyWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
720
+ #
721
+ # * {Types::CreateStandbyWorkspacesResult#failed_standby_requests #failed_standby_requests} => Array&lt;Types::FailedCreateStandbyWorkspacesRequest&gt;
722
+ # * {Types::CreateStandbyWorkspacesResult#pending_standby_requests #pending_standby_requests} => Array&lt;Types::PendingCreateStandbyWorkspacesRequest&gt;
723
+ #
724
+ # @example Request syntax with placeholder values
725
+ #
726
+ # resp = client.create_standby_workspaces({
727
+ # primary_region: "Region", # required
728
+ # standby_workspaces: [ # required
729
+ # {
730
+ # primary_workspace_id: "WorkspaceId", # required
731
+ # volume_encryption_key: "VolumeEncryptionKey",
732
+ # directory_id: "DirectoryId", # required
733
+ # tags: [
734
+ # {
735
+ # key: "TagKey", # required
736
+ # value: "TagValue",
737
+ # },
738
+ # ],
739
+ # },
740
+ # ],
741
+ # })
742
+ #
743
+ # @example Response structure
744
+ #
745
+ # resp.failed_standby_requests #=> Array
746
+ # resp.failed_standby_requests[0].standby_workspace_request.primary_workspace_id #=> String
747
+ # resp.failed_standby_requests[0].standby_workspace_request.volume_encryption_key #=> String
748
+ # resp.failed_standby_requests[0].standby_workspace_request.directory_id #=> String
749
+ # resp.failed_standby_requests[0].standby_workspace_request.tags #=> Array
750
+ # resp.failed_standby_requests[0].standby_workspace_request.tags[0].key #=> String
751
+ # resp.failed_standby_requests[0].standby_workspace_request.tags[0].value #=> String
752
+ # resp.failed_standby_requests[0].error_code #=> String
753
+ # resp.failed_standby_requests[0].error_message #=> String
754
+ # resp.pending_standby_requests #=> Array
755
+ # resp.pending_standby_requests[0].user_name #=> String
756
+ # resp.pending_standby_requests[0].directory_id #=> String
757
+ # resp.pending_standby_requests[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "RESTORING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
758
+ # resp.pending_standby_requests[0].workspace_id #=> String
759
+ #
760
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateStandbyWorkspaces AWS API Documentation
761
+ #
762
+ # @overload create_standby_workspaces(params = {})
763
+ # @param [Hash] params ({})
764
+ def create_standby_workspaces(params = {}, options = {})
765
+ req = build_request(:create_standby_workspaces, params)
766
+ req.send_request(options)
767
+ end
768
+
711
769
  # Creates the specified tags for the specified WorkSpaces resource.
712
770
  #
713
771
  # @option params [required, String] :resource_id
@@ -888,6 +946,8 @@ module Aws::WorkSpaces
888
946
  # resp.workspace_bundle.compute_type.name #=> String, one of "VALUE", "STANDARD", "PERFORMANCE", "POWER", "GRAPHICS", "POWERPRO", "GRAPHICSPRO", "GRAPHICS_G4DN", "GRAPHICSPRO_G4DN"
889
947
  # resp.workspace_bundle.last_updated_time #=> Time
890
948
  # resp.workspace_bundle.creation_time #=> Time
949
+ # resp.workspace_bundle.state #=> String, one of "AVAILABLE", "PENDING", "ERROR"
950
+ # resp.workspace_bundle.bundle_type #=> String, one of "REGULAR", "STANDBY"
891
951
  #
892
952
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaceBundle AWS API Documentation
893
953
  #
@@ -1056,6 +1116,11 @@ module Aws::WorkSpaces
1056
1116
  # resp.pending_requests[0].modification_states #=> Array
1057
1117
  # resp.pending_requests[0].modification_states[0].resource #=> String, one of "ROOT_VOLUME", "USER_VOLUME", "COMPUTE_TYPE"
1058
1118
  # resp.pending_requests[0].modification_states[0].state #=> String, one of "UPDATE_INITIATED", "UPDATE_IN_PROGRESS"
1119
+ # resp.pending_requests[0].related_workspaces #=> Array
1120
+ # resp.pending_requests[0].related_workspaces[0].workspace_id #=> String
1121
+ # resp.pending_requests[0].related_workspaces[0].region #=> String
1122
+ # resp.pending_requests[0].related_workspaces[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "RESTORING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
1123
+ # resp.pending_requests[0].related_workspaces[0].type #=> String, one of "PRIMARY", "STANDBY"
1059
1124
  #
1060
1125
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaces AWS API Documentation
1061
1126
  #
@@ -1772,6 +1837,8 @@ module Aws::WorkSpaces
1772
1837
  # resp.bundles[0].compute_type.name #=> String, one of "VALUE", "STANDARD", "PERFORMANCE", "POWER", "GRAPHICS", "POWERPRO", "GRAPHICSPRO", "GRAPHICS_G4DN", "GRAPHICSPRO_G4DN"
1773
1838
  # resp.bundles[0].last_updated_time #=> Time
1774
1839
  # resp.bundles[0].creation_time #=> Time
1840
+ # resp.bundles[0].state #=> String, one of "AVAILABLE", "PENDING", "ERROR"
1841
+ # resp.bundles[0].bundle_type #=> String, one of "REGULAR", "STANDBY"
1775
1842
  # resp.next_token #=> String
1776
1843
  #
1777
1844
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceBundles AWS API Documentation
@@ -2076,6 +2143,11 @@ module Aws::WorkSpaces
2076
2143
  # resp.workspaces[0].modification_states #=> Array
2077
2144
  # resp.workspaces[0].modification_states[0].resource #=> String, one of "ROOT_VOLUME", "USER_VOLUME", "COMPUTE_TYPE"
2078
2145
  # resp.workspaces[0].modification_states[0].state #=> String, one of "UPDATE_INITIATED", "UPDATE_IN_PROGRESS"
2146
+ # resp.workspaces[0].related_workspaces #=> Array
2147
+ # resp.workspaces[0].related_workspaces[0].workspace_id #=> String
2148
+ # resp.workspaces[0].related_workspaces[0].region #=> String
2149
+ # resp.workspaces[0].related_workspaces[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "RESTORING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
2150
+ # resp.workspaces[0].related_workspaces[0].type #=> String, one of "PRIMARY", "STANDBY"
2079
2151
  # resp.next_token #=> String
2080
2152
  #
2081
2153
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaces AWS API Documentation
@@ -3499,7 +3571,7 @@ module Aws::WorkSpaces
3499
3571
  params: params,
3500
3572
  config: config)
3501
3573
  context[:gem_name] = 'aws-sdk-workspaces'
3502
- context[:gem_version] = '1.76.0'
3574
+ context[:gem_version] = '1.77.0'
3503
3575
  Seahorse::Client::Request.new(handlers, context)
3504
3576
  end
3505
3577
 
@@ -37,6 +37,7 @@ module Aws::WorkSpaces
37
37
  BundleIdList = Shapes::ListShape.new(name: 'BundleIdList')
38
38
  BundleList = Shapes::ListShape.new(name: 'BundleList')
39
39
  BundleOwner = Shapes::StringShape.new(name: 'BundleOwner')
40
+ BundleType = Shapes::StringShape.new(name: 'BundleType')
40
41
  CertificateAuthorityArn = Shapes::StringShape.new(name: 'CertificateAuthorityArn')
41
42
  CertificateBasedAuthProperties = Shapes::StructureShape.new(name: 'CertificateBasedAuthProperties')
42
43
  CertificateBasedAuthStatusEnum = Shapes::StringShape.new(name: 'CertificateBasedAuthStatusEnum')
@@ -74,6 +75,8 @@ module Aws::WorkSpaces
74
75
  CreateConnectionAliasResult = Shapes::StructureShape.new(name: 'CreateConnectionAliasResult')
75
76
  CreateIpGroupRequest = Shapes::StructureShape.new(name: 'CreateIpGroupRequest')
76
77
  CreateIpGroupResult = Shapes::StructureShape.new(name: 'CreateIpGroupResult')
78
+ CreateStandbyWorkspacesRequest = Shapes::StructureShape.new(name: 'CreateStandbyWorkspacesRequest')
79
+ CreateStandbyWorkspacesResult = Shapes::StructureShape.new(name: 'CreateStandbyWorkspacesResult')
77
80
  CreateTagsRequest = Shapes::StructureShape.new(name: 'CreateTagsRequest')
78
81
  CreateTagsResult = Shapes::StructureShape.new(name: 'CreateTagsResult')
79
82
  CreateUpdatedWorkspaceImageRequest = Shapes::StructureShape.new(name: 'CreateUpdatedWorkspaceImageRequest')
@@ -160,6 +163,8 @@ module Aws::WorkSpaces
160
163
  ErrorType = Shapes::StringShape.new(name: 'ErrorType')
161
164
  ExceptionErrorCode = Shapes::StringShape.new(name: 'ExceptionErrorCode')
162
165
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
166
+ FailedCreateStandbyWorkspacesRequest = Shapes::StructureShape.new(name: 'FailedCreateStandbyWorkspacesRequest')
167
+ FailedCreateStandbyWorkspacesRequestList = Shapes::ListShape.new(name: 'FailedCreateStandbyWorkspacesRequestList')
163
168
  FailedCreateWorkspaceRequest = Shapes::StructureShape.new(name: 'FailedCreateWorkspaceRequest')
164
169
  FailedCreateWorkspaceRequests = Shapes::ListShape.new(name: 'FailedCreateWorkspaceRequests')
165
170
  FailedRebootWorkspaceRequests = Shapes::ListShape.new(name: 'FailedRebootWorkspaceRequests')
@@ -229,6 +234,8 @@ module Aws::WorkSpaces
229
234
  OperationInProgressException = Shapes::StructureShape.new(name: 'OperationInProgressException')
230
235
  OperationNotSupportedException = Shapes::StructureShape.new(name: 'OperationNotSupportedException')
231
236
  PaginationToken = Shapes::StringShape.new(name: 'PaginationToken')
237
+ PendingCreateStandbyWorkspacesRequest = Shapes::StructureShape.new(name: 'PendingCreateStandbyWorkspacesRequest')
238
+ PendingCreateStandbyWorkspacesRequestList = Shapes::ListShape.new(name: 'PendingCreateStandbyWorkspacesRequestList')
232
239
  Protocol = Shapes::StringShape.new(name: 'Protocol')
233
240
  ProtocolList = Shapes::ListShape.new(name: 'ProtocolList')
234
241
  RebootRequest = Shapes::StructureShape.new(name: 'RebootRequest')
@@ -244,6 +251,8 @@ module Aws::WorkSpaces
244
251
  RegisterWorkspaceDirectoryRequest = Shapes::StructureShape.new(name: 'RegisterWorkspaceDirectoryRequest')
245
252
  RegisterWorkspaceDirectoryResult = Shapes::StructureShape.new(name: 'RegisterWorkspaceDirectoryResult')
246
253
  RegistrationCode = Shapes::StringShape.new(name: 'RegistrationCode')
254
+ RelatedWorkspaceProperties = Shapes::StructureShape.new(name: 'RelatedWorkspaceProperties')
255
+ RelatedWorkspaces = Shapes::ListShape.new(name: 'RelatedWorkspaces')
247
256
  ResourceAlreadyExistsException = Shapes::StructureShape.new(name: 'ResourceAlreadyExistsException')
248
257
  ResourceAssociatedException = Shapes::StructureShape.new(name: 'ResourceAssociatedException')
249
258
  ResourceCreationFailedException = Shapes::StructureShape.new(name: 'ResourceCreationFailedException')
@@ -266,6 +275,9 @@ module Aws::WorkSpaces
266
275
  SelfservicePermissions = Shapes::StructureShape.new(name: 'SelfservicePermissions')
267
276
  Snapshot = Shapes::StructureShape.new(name: 'Snapshot')
268
277
  SnapshotList = Shapes::ListShape.new(name: 'SnapshotList')
278
+ StandbyWorkspace = Shapes::StructureShape.new(name: 'StandbyWorkspace')
279
+ StandbyWorkspaceRelationshipType = Shapes::StringShape.new(name: 'StandbyWorkspaceRelationshipType')
280
+ StandbyWorkspacesList = Shapes::ListShape.new(name: 'StandbyWorkspacesList')
269
281
  StartRequest = Shapes::StructureShape.new(name: 'StartRequest')
270
282
  StartWorkspaceRequests = Shapes::ListShape.new(name: 'StartWorkspaceRequests')
271
283
  StartWorkspacesRequest = Shapes::StructureShape.new(name: 'StartWorkspacesRequest')
@@ -311,6 +323,7 @@ module Aws::WorkSpaces
311
323
  WorkspaceBundle = Shapes::StructureShape.new(name: 'WorkspaceBundle')
312
324
  WorkspaceBundleDescription = Shapes::StringShape.new(name: 'WorkspaceBundleDescription')
313
325
  WorkspaceBundleName = Shapes::StringShape.new(name: 'WorkspaceBundleName')
326
+ WorkspaceBundleState = Shapes::StringShape.new(name: 'WorkspaceBundleState')
314
327
  WorkspaceConnectionStatus = Shapes::StructureShape.new(name: 'WorkspaceConnectionStatus')
315
328
  WorkspaceConnectionStatusList = Shapes::ListShape.new(name: 'WorkspaceConnectionStatusList')
316
329
  WorkspaceCreationProperties = Shapes::StructureShape.new(name: 'WorkspaceCreationProperties')
@@ -463,6 +476,14 @@ module Aws::WorkSpaces
463
476
  CreateIpGroupResult.add_member(:group_id, Shapes::ShapeRef.new(shape: IpGroupId, location_name: "GroupId"))
464
477
  CreateIpGroupResult.struct_class = Types::CreateIpGroupResult
465
478
 
479
+ CreateStandbyWorkspacesRequest.add_member(:primary_region, Shapes::ShapeRef.new(shape: Region, required: true, location_name: "PrimaryRegion"))
480
+ CreateStandbyWorkspacesRequest.add_member(:standby_workspaces, Shapes::ShapeRef.new(shape: StandbyWorkspacesList, required: true, location_name: "StandbyWorkspaces"))
481
+ CreateStandbyWorkspacesRequest.struct_class = Types::CreateStandbyWorkspacesRequest
482
+
483
+ CreateStandbyWorkspacesResult.add_member(:failed_standby_requests, Shapes::ShapeRef.new(shape: FailedCreateStandbyWorkspacesRequestList, location_name: "FailedStandbyRequests"))
484
+ CreateStandbyWorkspacesResult.add_member(:pending_standby_requests, Shapes::ShapeRef.new(shape: PendingCreateStandbyWorkspacesRequestList, location_name: "PendingStandbyRequests"))
485
+ CreateStandbyWorkspacesResult.struct_class = Types::CreateStandbyWorkspacesResult
486
+
466
487
  CreateTagsRequest.add_member(:resource_id, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "ResourceId"))
467
488
  CreateTagsRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
468
489
  CreateTagsRequest.struct_class = Types::CreateTagsRequest
@@ -740,6 +761,13 @@ module Aws::WorkSpaces
740
761
 
741
762
  DnsIpAddresses.member = Shapes::ShapeRef.new(shape: IpAddress)
742
763
 
764
+ FailedCreateStandbyWorkspacesRequest.add_member(:standby_workspace_request, Shapes::ShapeRef.new(shape: StandbyWorkspace, location_name: "StandbyWorkspaceRequest"))
765
+ FailedCreateStandbyWorkspacesRequest.add_member(:error_code, Shapes::ShapeRef.new(shape: WorkspaceErrorCode, location_name: "ErrorCode"))
766
+ FailedCreateStandbyWorkspacesRequest.add_member(:error_message, Shapes::ShapeRef.new(shape: Description, location_name: "ErrorMessage"))
767
+ FailedCreateStandbyWorkspacesRequest.struct_class = Types::FailedCreateStandbyWorkspacesRequest
768
+
769
+ FailedCreateStandbyWorkspacesRequestList.member = Shapes::ShapeRef.new(shape: FailedCreateStandbyWorkspacesRequest)
770
+
743
771
  FailedCreateWorkspaceRequest.add_member(:workspace_request, Shapes::ShapeRef.new(shape: WorkspaceRequest, location_name: "WorkspaceRequest"))
744
772
  FailedCreateWorkspaceRequest.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorType, location_name: "ErrorCode"))
745
773
  FailedCreateWorkspaceRequest.add_member(:error_message, Shapes::ShapeRef.new(shape: Description, location_name: "ErrorMessage"))
@@ -921,6 +949,14 @@ module Aws::WorkSpaces
921
949
  OperationNotSupportedException.add_member(:reason, Shapes::ShapeRef.new(shape: ExceptionErrorCode, location_name: "reason"))
922
950
  OperationNotSupportedException.struct_class = Types::OperationNotSupportedException
923
951
 
952
+ PendingCreateStandbyWorkspacesRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: UserName, location_name: "UserName"))
953
+ PendingCreateStandbyWorkspacesRequest.add_member(:directory_id, Shapes::ShapeRef.new(shape: DirectoryId, location_name: "DirectoryId"))
954
+ PendingCreateStandbyWorkspacesRequest.add_member(:state, Shapes::ShapeRef.new(shape: WorkspaceState, location_name: "State"))
955
+ PendingCreateStandbyWorkspacesRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, location_name: "WorkspaceId"))
956
+ PendingCreateStandbyWorkspacesRequest.struct_class = Types::PendingCreateStandbyWorkspacesRequest
957
+
958
+ PendingCreateStandbyWorkspacesRequestList.member = Shapes::ShapeRef.new(shape: PendingCreateStandbyWorkspacesRequest)
959
+
924
960
  ProtocolList.member = Shapes::ShapeRef.new(shape: Protocol)
925
961
 
926
962
  RebootRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "WorkspaceId"))
@@ -955,6 +991,14 @@ module Aws::WorkSpaces
955
991
 
956
992
  RegisterWorkspaceDirectoryResult.struct_class = Types::RegisterWorkspaceDirectoryResult
957
993
 
994
+ RelatedWorkspaceProperties.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, location_name: "WorkspaceId"))
995
+ RelatedWorkspaceProperties.add_member(:region, Shapes::ShapeRef.new(shape: Region, location_name: "Region"))
996
+ RelatedWorkspaceProperties.add_member(:state, Shapes::ShapeRef.new(shape: WorkspaceState, location_name: "State"))
997
+ RelatedWorkspaceProperties.add_member(:type, Shapes::ShapeRef.new(shape: StandbyWorkspaceRelationshipType, location_name: "Type"))
998
+ RelatedWorkspaceProperties.struct_class = Types::RelatedWorkspaceProperties
999
+
1000
+ RelatedWorkspaces.member = Shapes::ShapeRef.new(shape: RelatedWorkspaceProperties)
1001
+
958
1002
  ResourceAlreadyExistsException.add_member(:message, Shapes::ShapeRef.new(shape: ExceptionMessage, location_name: "message"))
959
1003
  ResourceAlreadyExistsException.struct_class = Types::ResourceAlreadyExistsException
960
1004
 
@@ -1008,6 +1052,14 @@ module Aws::WorkSpaces
1008
1052
 
1009
1053
  SnapshotList.member = Shapes::ShapeRef.new(shape: Snapshot)
1010
1054
 
1055
+ StandbyWorkspace.add_member(:primary_workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "PrimaryWorkspaceId"))
1056
+ StandbyWorkspace.add_member(:volume_encryption_key, Shapes::ShapeRef.new(shape: VolumeEncryptionKey, location_name: "VolumeEncryptionKey"))
1057
+ StandbyWorkspace.add_member(:directory_id, Shapes::ShapeRef.new(shape: DirectoryId, required: true, location_name: "DirectoryId"))
1058
+ StandbyWorkspace.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
1059
+ StandbyWorkspace.struct_class = Types::StandbyWorkspace
1060
+
1061
+ StandbyWorkspacesList.member = Shapes::ShapeRef.new(shape: StandbyWorkspace)
1062
+
1011
1063
  StartRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, location_name: "WorkspaceId"))
1012
1064
  StartRequest.struct_class = Types::StartRequest
1013
1065
 
@@ -1112,6 +1164,7 @@ module Aws::WorkSpaces
1112
1164
  Workspace.add_member(:root_volume_encryption_enabled, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "RootVolumeEncryptionEnabled"))
1113
1165
  Workspace.add_member(:workspace_properties, Shapes::ShapeRef.new(shape: WorkspaceProperties, location_name: "WorkspaceProperties"))
1114
1166
  Workspace.add_member(:modification_states, Shapes::ShapeRef.new(shape: ModificationStateList, location_name: "ModificationStates"))
1167
+ Workspace.add_member(:related_workspaces, Shapes::ShapeRef.new(shape: RelatedWorkspaces, location_name: "RelatedWorkspaces"))
1115
1168
  Workspace.struct_class = Types::Workspace
1116
1169
 
1117
1170
  WorkspaceAccessProperties.add_member(:device_type_windows, Shapes::ShapeRef.new(shape: AccessPropertyValue, location_name: "DeviceTypeWindows"))
@@ -1134,6 +1187,8 @@ module Aws::WorkSpaces
1134
1187
  WorkspaceBundle.add_member(:compute_type, Shapes::ShapeRef.new(shape: ComputeType, location_name: "ComputeType"))
1135
1188
  WorkspaceBundle.add_member(:last_updated_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "LastUpdatedTime"))
1136
1189
  WorkspaceBundle.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreationTime"))
1190
+ WorkspaceBundle.add_member(:state, Shapes::ShapeRef.new(shape: WorkspaceBundleState, location_name: "State"))
1191
+ WorkspaceBundle.add_member(:bundle_type, Shapes::ShapeRef.new(shape: BundleType, location_name: "BundleType"))
1137
1192
  WorkspaceBundle.struct_class = Types::WorkspaceBundle
1138
1193
 
1139
1194
  WorkspaceConnectionStatus.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, location_name: "WorkspaceId"))
@@ -1338,6 +1393,19 @@ module Aws::WorkSpaces
1338
1393
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1339
1394
  end)
1340
1395
 
1396
+ api.add_operation(:create_standby_workspaces, Seahorse::Model::Operation.new.tap do |o|
1397
+ o.name = "CreateStandbyWorkspaces"
1398
+ o.http_method = "POST"
1399
+ o.http_request_uri = "/"
1400
+ o.input = Shapes::ShapeRef.new(shape: CreateStandbyWorkspacesRequest)
1401
+ o.output = Shapes::ShapeRef.new(shape: CreateStandbyWorkspacesResult)
1402
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1403
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1404
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1405
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1406
+ o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
1407
+ end)
1408
+
1341
1409
  api.add_operation(:create_tags, Seahorse::Model::Operation.new.tap do |o|
1342
1410
  o.name = "CreateTags"
1343
1411
  o.http_method = "POST"
@@ -1854,6 +1922,7 @@ module Aws::WorkSpaces
1854
1922
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1855
1923
  o.errors << Shapes::ShapeRef.new(shape: InvalidResourceStateException)
1856
1924
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1925
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1857
1926
  end)
1858
1927
 
1859
1928
  api.add_operation(:reboot_workspaces, Seahorse::Model::Operation.new.tap do |o|
@@ -1862,6 +1931,7 @@ module Aws::WorkSpaces
1862
1931
  o.http_request_uri = "/"
1863
1932
  o.input = Shapes::ShapeRef.new(shape: RebootWorkspacesRequest)
1864
1933
  o.output = Shapes::ShapeRef.new(shape: RebootWorkspacesResult)
1934
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1865
1935
  end)
1866
1936
 
1867
1937
  api.add_operation(:rebuild_workspaces, Seahorse::Model::Operation.new.tap do |o|
@@ -1870,6 +1940,7 @@ module Aws::WorkSpaces
1870
1940
  o.http_request_uri = "/"
1871
1941
  o.input = Shapes::ShapeRef.new(shape: RebuildWorkspacesRequest)
1872
1942
  o.output = Shapes::ShapeRef.new(shape: RebuildWorkspacesResult)
1943
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1873
1944
  end)
1874
1945
 
1875
1946
  api.add_operation(:register_workspace_directory, Seahorse::Model::Operation.new.tap do |o|
@@ -1897,6 +1968,7 @@ module Aws::WorkSpaces
1897
1968
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1898
1969
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1899
1970
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1971
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1900
1972
  end)
1901
1973
 
1902
1974
  api.add_operation(:revoke_ip_rules, Seahorse::Model::Operation.new.tap do |o|
@@ -1984,6 +2056,7 @@ module Aws::WorkSpaces
1984
2056
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1985
2057
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1986
2058
  o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
2059
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1987
2060
  end)
1988
2061
 
1989
2062
  api.add_operation(:update_workspace_image_permission, Seahorse::Model::Operation.new.tap do |o|
@@ -109,6 +109,20 @@ module Aws::WorkSpaces
109
109
  end
110
110
  end
111
111
 
112
+ class CreateStandbyWorkspaces
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::WorkSpaces::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
112
126
  class CreateTags
113
127
  def self.build(context)
114
128
  unless context.config.regional_endpoint
@@ -70,6 +70,8 @@ module Aws::WorkSpaces
70
70
  Aws::WorkSpaces::Endpoints::CreateConnectionAlias.build(context)
71
71
  when :create_ip_group
72
72
  Aws::WorkSpaces::Endpoints::CreateIpGroup.build(context)
73
+ when :create_standby_workspaces
74
+ Aws::WorkSpaces::Endpoints::CreateStandbyWorkspaces.build(context)
73
75
  when :create_tags
74
76
  Aws::WorkSpaces::Endpoints::CreateTags.build(context)
75
77
  when :create_updated_workspace_image
@@ -628,6 +628,60 @@ module Aws::WorkSpaces
628
628
  include Aws::Structure
629
629
  end
630
630
 
631
+ # @note When making an API call, you may pass CreateStandbyWorkspacesRequest
632
+ # data as a hash:
633
+ #
634
+ # {
635
+ # primary_region: "Region", # required
636
+ # standby_workspaces: [ # required
637
+ # {
638
+ # primary_workspace_id: "WorkspaceId", # required
639
+ # volume_encryption_key: "VolumeEncryptionKey",
640
+ # directory_id: "DirectoryId", # required
641
+ # tags: [
642
+ # {
643
+ # key: "TagKey", # required
644
+ # value: "TagValue",
645
+ # },
646
+ # ],
647
+ # },
648
+ # ],
649
+ # }
650
+ #
651
+ # @!attribute [rw] primary_region
652
+ # The Region of the primary WorkSpace.
653
+ # @return [String]
654
+ #
655
+ # @!attribute [rw] standby_workspaces
656
+ # Information about the Standby WorkSpace to be created.
657
+ # @return [Array<Types::StandbyWorkspace>]
658
+ #
659
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateStandbyWorkspacesRequest AWS API Documentation
660
+ #
661
+ class CreateStandbyWorkspacesRequest < Struct.new(
662
+ :primary_region,
663
+ :standby_workspaces)
664
+ SENSITIVE = []
665
+ include Aws::Structure
666
+ end
667
+
668
+ # @!attribute [rw] failed_standby_requests
669
+ # Information about the Standby WorkSpace that could not be created.
670
+ # @return [Array<Types::FailedCreateStandbyWorkspacesRequest>]
671
+ #
672
+ # @!attribute [rw] pending_standby_requests
673
+ # Information about the Standby WorkSpace that was created.
674
+ # @return [Array<Types::PendingCreateStandbyWorkspacesRequest>]
675
+ #
676
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateStandbyWorkspacesResult AWS API Documentation
677
+ #
678
+ class CreateStandbyWorkspacesResult < Struct.new(
679
+ :failed_standby_requests,
680
+ :pending_standby_requests)
681
+ SENSITIVE = []
682
+ include Aws::Structure
683
+ end
684
+
631
685
  # @note When making an API call, you may pass CreateTagsRequest
632
686
  # data as a hash:
633
687
  #
@@ -2227,6 +2281,32 @@ module Aws::WorkSpaces
2227
2281
  #
2228
2282
  class DisassociateIpGroupsResult < Aws::EmptyStructure; end
2229
2283
 
2284
+ # Describes the Standby WorkSpace that could not be created.
2285
+ #
2286
+ # @!attribute [rw] standby_workspace_request
2287
+ # Information about the Standby WorkSpace that could not be created.
2288
+ # @return [Types::StandbyWorkspace]
2289
+ #
2290
+ # @!attribute [rw] error_code
2291
+ # The error code that is returned if the Standby WorkSpace could not
2292
+ # be created.
2293
+ # @return [String]
2294
+ #
2295
+ # @!attribute [rw] error_message
2296
+ # The text of the error message that is returned if the Standby
2297
+ # WorkSpace could not be created.
2298
+ # @return [String]
2299
+ #
2300
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/FailedCreateStandbyWorkspacesRequest AWS API Documentation
2301
+ #
2302
+ class FailedCreateStandbyWorkspacesRequest < Struct.new(
2303
+ :standby_workspace_request,
2304
+ :error_code,
2305
+ :error_message)
2306
+ SENSITIVE = []
2307
+ include Aws::Structure
2308
+ end
2309
+
2230
2310
  # Describes a WorkSpace that cannot be created.
2231
2311
  #
2232
2312
  # @!attribute [rw] workspace_request
@@ -3298,6 +3378,44 @@ module Aws::WorkSpaces
3298
3378
  include Aws::Structure
3299
3379
  end
3300
3380
 
3381
+ # Information about the Standby WorkSpace.
3382
+ #
3383
+ # @!attribute [rw] user_name
3384
+ # Describes the Standby WorkSpace that was created.
3385
+ #
3386
+ # Because this operation is asynchronous, the identifier returned is
3387
+ # not immediately available for use with other operations. For
3388
+ # example, if you call [ DescribeWorkspaces][1] before the WorkSpace
3389
+ # is created, the information returned can be incomplete.
3390
+ #
3391
+ #
3392
+ #
3393
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/api/API_DescribeWorkspaces.html
3394
+ # @return [String]
3395
+ #
3396
+ # @!attribute [rw] directory_id
3397
+ # The identifier of the directory for the Standby WorkSpace.
3398
+ # @return [String]
3399
+ #
3400
+ # @!attribute [rw] state
3401
+ # The operational state of the Standby WorkSpace.
3402
+ # @return [String]
3403
+ #
3404
+ # @!attribute [rw] workspace_id
3405
+ # The identifier of the Standby WorkSpace.
3406
+ # @return [String]
3407
+ #
3408
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/PendingCreateStandbyWorkspacesRequest AWS API Documentation
3409
+ #
3410
+ class PendingCreateStandbyWorkspacesRequest < Struct.new(
3411
+ :user_name,
3412
+ :directory_id,
3413
+ :state,
3414
+ :workspace_id)
3415
+ SENSITIVE = []
3416
+ include Aws::Structure
3417
+ end
3418
+
3301
3419
  # Describes the information used to reboot a WorkSpace.
3302
3420
  #
3303
3421
  # @note When making an API call, you may pass RebootRequest
@@ -3492,6 +3610,37 @@ module Aws::WorkSpaces
3492
3610
  #
3493
3611
  class RegisterWorkspaceDirectoryResult < Aws::EmptyStructure; end
3494
3612
 
3613
+ # Describes the related WorkSpace. The related WorkSpace could be a
3614
+ # Standby WorkSpace or Primary WorkSpace related to the specified
3615
+ # WorkSpace.
3616
+ #
3617
+ # @!attribute [rw] workspace_id
3618
+ # The identifier of the related WorkSpace.
3619
+ # @return [String]
3620
+ #
3621
+ # @!attribute [rw] region
3622
+ # The Region of the related WorkSpace.
3623
+ # @return [String]
3624
+ #
3625
+ # @!attribute [rw] state
3626
+ # Indicates the state of the WorkSpace.
3627
+ # @return [String]
3628
+ #
3629
+ # @!attribute [rw] type
3630
+ # Indicates the type of WorkSpace.
3631
+ # @return [String]
3632
+ #
3633
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RelatedWorkspaceProperties AWS API Documentation
3634
+ #
3635
+ class RelatedWorkspaceProperties < Struct.new(
3636
+ :workspace_id,
3637
+ :region,
3638
+ :state,
3639
+ :type)
3640
+ SENSITIVE = []
3641
+ include Aws::Structure
3642
+ end
3643
+
3495
3644
  # The specified resource already exists.
3496
3645
  #
3497
3646
  # @!attribute [rw] message
@@ -3787,6 +3936,50 @@ module Aws::WorkSpaces
3787
3936
  include Aws::Structure
3788
3937
  end
3789
3938
 
3939
+ # Describes a Standby WorkSpace.
3940
+ #
3941
+ # @note When making an API call, you may pass StandbyWorkspace
3942
+ # data as a hash:
3943
+ #
3944
+ # {
3945
+ # primary_workspace_id: "WorkspaceId", # required
3946
+ # volume_encryption_key: "VolumeEncryptionKey",
3947
+ # directory_id: "DirectoryId", # required
3948
+ # tags: [
3949
+ # {
3950
+ # key: "TagKey", # required
3951
+ # value: "TagValue",
3952
+ # },
3953
+ # ],
3954
+ # }
3955
+ #
3956
+ # @!attribute [rw] primary_workspace_id
3957
+ # The identifier of the Standby WorkSpace.
3958
+ # @return [String]
3959
+ #
3960
+ # @!attribute [rw] volume_encryption_key
3961
+ # The volume encryption key of the Standby WorkSpace.
3962
+ # @return [String]
3963
+ #
3964
+ # @!attribute [rw] directory_id
3965
+ # The identifier of the directory for the Standby WorkSpace.
3966
+ # @return [String]
3967
+ #
3968
+ # @!attribute [rw] tags
3969
+ # The tags associated with the Standby WorkSpace.
3970
+ # @return [Array<Types::Tag>]
3971
+ #
3972
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/StandbyWorkspace AWS API Documentation
3973
+ #
3974
+ class StandbyWorkspace < Struct.new(
3975
+ :primary_workspace_id,
3976
+ :volume_encryption_key,
3977
+ :directory_id,
3978
+ :tags)
3979
+ SENSITIVE = []
3980
+ include Aws::Structure
3981
+ end
3982
+
3790
3983
  # Information used to start a WorkSpace.
3791
3984
  #
3792
3985
  # @note When making an API call, you may pass StartRequest
@@ -4330,6 +4523,11 @@ module Aws::WorkSpaces
4330
4523
  # The modification states of the WorkSpace.
4331
4524
  # @return [Array<Types::ModificationState>]
4332
4525
  #
4526
+ # @!attribute [rw] related_workspaces
4527
+ # The Standby WorkSpace or Primary WorkSpace related to the specified
4528
+ # WorkSpace.
4529
+ # @return [Array<Types::RelatedWorkspaceProperties>]
4530
+ #
4333
4531
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/Workspace AWS API Documentation
4334
4532
  #
4335
4533
  class Workspace < Struct.new(
@@ -4347,7 +4545,8 @@ module Aws::WorkSpaces
4347
4545
  :user_volume_encryption_enabled,
4348
4546
  :root_volume_encryption_enabled,
4349
4547
  :workspace_properties,
4350
- :modification_states)
4548
+ :modification_states,
4549
+ :related_workspaces)
4351
4550
  SENSITIVE = []
4352
4551
  include Aws::Structure
4353
4552
  end
@@ -4477,6 +4676,14 @@ module Aws::WorkSpaces
4477
4676
  # The time when the bundle was created.
4478
4677
  # @return [Time]
4479
4678
  #
4679
+ # @!attribute [rw] state
4680
+ # The state of the WorkSpace bundle.
4681
+ # @return [String]
4682
+ #
4683
+ # @!attribute [rw] bundle_type
4684
+ # The type of WorkSpace bundle.
4685
+ # @return [String]
4686
+ #
4480
4687
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceBundle AWS API Documentation
4481
4688
  #
4482
4689
  class WorkspaceBundle < Struct.new(
@@ -4489,7 +4696,9 @@ module Aws::WorkSpaces
4489
4696
  :user_storage,
4490
4697
  :compute_type,
4491
4698
  :last_updated_time,
4492
- :creation_time)
4699
+ :creation_time,
4700
+ :state,
4701
+ :bundle_type)
4493
4702
  SENSITIVE = []
4494
4703
  include Aws::Structure
4495
4704
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-workspaces/customizations'
52
52
  # @!group service
53
53
  module Aws::WorkSpaces
54
54
 
55
- GEM_VERSION = '1.76.0'
55
+ GEM_VERSION = '1.77.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-workspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.76.0
4
+ version: 1.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-15 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core