aws-sdk-workspaces 1.27.0 → 1.28.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
  SHA1:
3
- metadata.gz: c4ff694f83486348a00a9cad023fe84c20285d3e
4
- data.tar.gz: 48718773841a57f56ad5d618700cd7e5c15892c3
3
+ metadata.gz: f0cb46ce9b3f3759081c104a53e26083eec5a609
4
+ data.tar.gz: 1f62e40aec30db7c2d193805d0a0cee83c28f394
5
5
  SHA512:
6
- metadata.gz: 83cff1d3c52db0df908d954824adcf2a4e355590fb0c70327f16178be6ed7e906fa605e3670d2c45cf1599a2f51ba10643ecf2c43ec4e9ea28af2d067781a66e
7
- data.tar.gz: 671a29056ccfc1e1b86643e1aa8fd0b7d5f84793faeec31e348a2d90007c10a148a38e1e9ce2a0b0fe52c0d11f5a71e947ae71ad5d4f6d37e0359e1c00492bf5
6
+ metadata.gz: b4aea4fefbee3b26ccfacb6807d8b1e51b5e7a97d4435d88cb81f96fe1f1a3549889bc0d5a55c5d400b274bdbb35fc8ae3f9bd59df48fd1e65b58447780f1e03
7
+ data.tar.gz: 561894f80301d380a9f59b5dba7845cebcb397f5ebaa32a79a47c537ad2ce8daa6a7764c5476d0ca0f20f754187f503bd0d8f9ff4e473e93a62f254a387c9aec
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-workspaces/customizations'
42
42
  # @service
43
43
  module Aws::WorkSpaces
44
44
 
45
- GEM_VERSION = '1.27.0'
45
+ GEM_VERSION = '1.28.0'
46
46
 
47
47
  end
@@ -537,7 +537,7 @@ module Aws::WorkSpaces
537
537
  # resp.pending_requests[0].directory_id #=> String
538
538
  # resp.pending_requests[0].user_name #=> String
539
539
  # resp.pending_requests[0].ip_address #=> String
540
- # resp.pending_requests[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
540
+ # resp.pending_requests[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "RESTORING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
541
541
  # resp.pending_requests[0].bundle_id #=> String
542
542
  # resp.pending_requests[0].subnet_id #=> String
543
543
  # resp.pending_requests[0].error_message #=> String
@@ -969,6 +969,38 @@ module Aws::WorkSpaces
969
969
  req.send_request(options)
970
970
  end
971
971
 
972
+ # Describes the snapshots for the specified WorkSpace.
973
+ #
974
+ # @option params [required, String] :workspace_id
975
+ # The identifier of the WorkSpace.
976
+ #
977
+ # @return [Types::DescribeWorkspaceSnapshotsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
978
+ #
979
+ # * {Types::DescribeWorkspaceSnapshotsResult#rebuild_snapshots #rebuild_snapshots} => Array<Types::Snapshot>
980
+ # * {Types::DescribeWorkspaceSnapshotsResult#restore_snapshots #restore_snapshots} => Array<Types::Snapshot>
981
+ #
982
+ # @example Request syntax with placeholder values
983
+ #
984
+ # resp = client.describe_workspace_snapshots({
985
+ # workspace_id: "WorkspaceId", # required
986
+ # })
987
+ #
988
+ # @example Response structure
989
+ #
990
+ # resp.rebuild_snapshots #=> Array
991
+ # resp.rebuild_snapshots[0].snapshot_time #=> Time
992
+ # resp.restore_snapshots #=> Array
993
+ # resp.restore_snapshots[0].snapshot_time #=> Time
994
+ #
995
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceSnapshots AWS API Documentation
996
+ #
997
+ # @overload describe_workspace_snapshots(params = {})
998
+ # @param [Hash] params ({})
999
+ def describe_workspace_snapshots(params = {}, options = {})
1000
+ req = build_request(:describe_workspace_snapshots, params)
1001
+ req.send_request(options)
1002
+ end
1003
+
972
1004
  # Describes the specified WorkSpaces.
973
1005
  #
974
1006
  # You can filter the results by using the bundle identifier, directory
@@ -1026,7 +1058,7 @@ module Aws::WorkSpaces
1026
1058
  # resp.workspaces[0].directory_id #=> String
1027
1059
  # resp.workspaces[0].user_name #=> String
1028
1060
  # resp.workspaces[0].ip_address #=> String
1029
- # resp.workspaces[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
1061
+ # resp.workspaces[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "RESTORING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
1030
1062
  # resp.workspaces[0].bundle_id #=> String
1031
1063
  # resp.workspaces[0].subnet_id #=> String
1032
1064
  # resp.workspaces[0].error_message #=> String
@@ -1436,6 +1468,42 @@ module Aws::WorkSpaces
1436
1468
  req.send_request(options)
1437
1469
  end
1438
1470
 
1471
+ # Restores the specified WorkSpace to its last known healthy state.
1472
+ #
1473
+ # You cannot restore a WorkSpace unless its state is ` AVAILABLE`,
1474
+ # `ERROR`, or `UNHEALTHY`.
1475
+ #
1476
+ # Restoring a WorkSpace is a potentially destructive action that can
1477
+ # result in the loss of data. For more information, see [Restore a
1478
+ # WorkSpace][1].
1479
+ #
1480
+ # This operation is asynchronous and returns before the WorkSpace is
1481
+ # completely restored.
1482
+ #
1483
+ #
1484
+ #
1485
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/restore-workspace.html
1486
+ #
1487
+ # @option params [required, String] :workspace_id
1488
+ # The identifier of the WorkSpace.
1489
+ #
1490
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1491
+ #
1492
+ # @example Request syntax with placeholder values
1493
+ #
1494
+ # resp = client.restore_workspace({
1495
+ # workspace_id: "WorkspaceId", # required
1496
+ # })
1497
+ #
1498
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RestoreWorkspace AWS API Documentation
1499
+ #
1500
+ # @overload restore_workspace(params = {})
1501
+ # @param [Hash] params ({})
1502
+ def restore_workspace(params = {}, options = {})
1503
+ req = build_request(:restore_workspace, params)
1504
+ req.send_request(options)
1505
+ end
1506
+
1439
1507
  # Removes one or more rules from the specified IP access control group.
1440
1508
  #
1441
1509
  # @option params [required, String] :group_id
@@ -1627,7 +1695,7 @@ module Aws::WorkSpaces
1627
1695
  params: params,
1628
1696
  config: config)
1629
1697
  context[:gem_name] = 'aws-sdk-workspaces'
1630
- context[:gem_version] = '1.27.0'
1698
+ context[:gem_version] = '1.28.0'
1631
1699
  Seahorse::Client::Request.new(handlers, context)
1632
1700
  end
1633
1701
 
@@ -69,6 +69,8 @@ module Aws::WorkSpaces
69
69
  DescribeWorkspaceDirectoriesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceDirectoriesResult')
70
70
  DescribeWorkspaceImagesRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagesRequest')
71
71
  DescribeWorkspaceImagesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagesResult')
72
+ DescribeWorkspaceSnapshotsRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceSnapshotsRequest')
73
+ DescribeWorkspaceSnapshotsResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceSnapshotsResult')
72
74
  DescribeWorkspacesConnectionStatusRequest = Shapes::StructureShape.new(name: 'DescribeWorkspacesConnectionStatusRequest')
73
75
  DescribeWorkspacesConnectionStatusResult = Shapes::StructureShape.new(name: 'DescribeWorkspacesConnectionStatusResult')
74
76
  DescribeWorkspacesRequest = Shapes::StructureShape.new(name: 'DescribeWorkspacesRequest')
@@ -147,6 +149,8 @@ module Aws::WorkSpaces
147
149
  ResourceLimitExceededException = Shapes::StructureShape.new(name: 'ResourceLimitExceededException')
148
150
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
149
151
  ResourceUnavailableException = Shapes::StructureShape.new(name: 'ResourceUnavailableException')
152
+ RestoreWorkspaceRequest = Shapes::StructureShape.new(name: 'RestoreWorkspaceRequest')
153
+ RestoreWorkspaceResult = Shapes::StructureShape.new(name: 'RestoreWorkspaceResult')
150
154
  RevokeIpRulesRequest = Shapes::StructureShape.new(name: 'RevokeIpRulesRequest')
151
155
  RevokeIpRulesResult = Shapes::StructureShape.new(name: 'RevokeIpRulesResult')
152
156
  RootStorage = Shapes::StructureShape.new(name: 'RootStorage')
@@ -154,6 +158,8 @@ module Aws::WorkSpaces
154
158
  RunningMode = Shapes::StringShape.new(name: 'RunningMode')
155
159
  RunningModeAutoStopTimeoutInMinutes = Shapes::IntegerShape.new(name: 'RunningModeAutoStopTimeoutInMinutes')
156
160
  SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
161
+ Snapshot = Shapes::StructureShape.new(name: 'Snapshot')
162
+ SnapshotList = Shapes::ListShape.new(name: 'SnapshotList')
157
163
  StartRequest = Shapes::StructureShape.new(name: 'StartRequest')
158
164
  StartWorkspaceRequests = Shapes::ListShape.new(name: 'StartWorkspaceRequests')
159
165
  StartWorkspacesRequest = Shapes::StructureShape.new(name: 'StartWorkspacesRequest')
@@ -368,6 +374,13 @@ module Aws::WorkSpaces
368
374
  DescribeWorkspaceImagesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
369
375
  DescribeWorkspaceImagesResult.struct_class = Types::DescribeWorkspaceImagesResult
370
376
 
377
+ DescribeWorkspaceSnapshotsRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "WorkspaceId"))
378
+ DescribeWorkspaceSnapshotsRequest.struct_class = Types::DescribeWorkspaceSnapshotsRequest
379
+
380
+ DescribeWorkspaceSnapshotsResult.add_member(:rebuild_snapshots, Shapes::ShapeRef.new(shape: SnapshotList, location_name: "RebuildSnapshots"))
381
+ DescribeWorkspaceSnapshotsResult.add_member(:restore_snapshots, Shapes::ShapeRef.new(shape: SnapshotList, location_name: "RestoreSnapshots"))
382
+ DescribeWorkspaceSnapshotsResult.struct_class = Types::DescribeWorkspaceSnapshotsResult
383
+
371
384
  DescribeWorkspacesConnectionStatusRequest.add_member(:workspace_ids, Shapes::ShapeRef.new(shape: WorkspaceIdList, location_name: "WorkspaceIds"))
372
385
  DescribeWorkspacesConnectionStatusRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
373
386
  DescribeWorkspacesConnectionStatusRequest.struct_class = Types::DescribeWorkspacesConnectionStatusRequest
@@ -540,6 +553,11 @@ module Aws::WorkSpaces
540
553
  ResourceUnavailableException.add_member(:resource_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "ResourceId"))
541
554
  ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
542
555
 
556
+ RestoreWorkspaceRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "WorkspaceId"))
557
+ RestoreWorkspaceRequest.struct_class = Types::RestoreWorkspaceRequest
558
+
559
+ RestoreWorkspaceResult.struct_class = Types::RestoreWorkspaceResult
560
+
543
561
  RevokeIpRulesRequest.add_member(:group_id, Shapes::ShapeRef.new(shape: IpGroupId, required: true, location_name: "GroupId"))
544
562
  RevokeIpRulesRequest.add_member(:user_rules, Shapes::ShapeRef.new(shape: IpRevokedRuleList, required: true, location_name: "UserRules"))
545
563
  RevokeIpRulesRequest.struct_class = Types::RevokeIpRulesRequest
@@ -549,6 +567,11 @@ module Aws::WorkSpaces
549
567
  RootStorage.add_member(:capacity, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Capacity"))
550
568
  RootStorage.struct_class = Types::RootStorage
551
569
 
570
+ Snapshot.add_member(:snapshot_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "SnapshotTime"))
571
+ Snapshot.struct_class = Types::Snapshot
572
+
573
+ SnapshotList.member = Shapes::ShapeRef.new(shape: Snapshot)
574
+
552
575
  StartRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, location_name: "WorkspaceId"))
553
576
  StartRequest.struct_class = Types::StartRequest
554
577
 
@@ -910,6 +933,17 @@ module Aws::WorkSpaces
910
933
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
911
934
  end)
912
935
 
936
+ api.add_operation(:describe_workspace_snapshots, Seahorse::Model::Operation.new.tap do |o|
937
+ o.name = "DescribeWorkspaceSnapshots"
938
+ o.http_method = "POST"
939
+ o.http_request_uri = "/"
940
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkspaceSnapshotsRequest)
941
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkspaceSnapshotsResult)
942
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
943
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
944
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
945
+ end)
946
+
913
947
  api.add_operation(:describe_workspaces, Seahorse::Model::Operation.new.tap do |o|
914
948
  o.name = "DescribeWorkspaces"
915
949
  o.http_method = "POST"
@@ -1037,6 +1071,17 @@ module Aws::WorkSpaces
1037
1071
  o.output = Shapes::ShapeRef.new(shape: RebuildWorkspacesResult)
1038
1072
  end)
1039
1073
 
1074
+ api.add_operation(:restore_workspace, Seahorse::Model::Operation.new.tap do |o|
1075
+ o.name = "RestoreWorkspace"
1076
+ o.http_method = "POST"
1077
+ o.http_request_uri = "/"
1078
+ o.input = Shapes::ShapeRef.new(shape: RestoreWorkspaceRequest)
1079
+ o.output = Shapes::ShapeRef.new(shape: RestoreWorkspaceResult)
1080
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1081
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1082
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1083
+ end)
1084
+
1040
1085
  api.add_operation(:revoke_ip_rules, Seahorse::Model::Operation.new.tap do |o|
1041
1086
  o.name = "RevokeIpRules"
1042
1087
  o.http_method = "POST"
@@ -816,6 +816,43 @@ module Aws::WorkSpaces
816
816
  include Aws::Structure
817
817
  end
818
818
 
819
+ # @note When making an API call, you may pass DescribeWorkspaceSnapshotsRequest
820
+ # data as a hash:
821
+ #
822
+ # {
823
+ # workspace_id: "WorkspaceId", # required
824
+ # }
825
+ #
826
+ # @!attribute [rw] workspace_id
827
+ # The identifier of the WorkSpace.
828
+ # @return [String]
829
+ #
830
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceSnapshotsRequest AWS API Documentation
831
+ #
832
+ class DescribeWorkspaceSnapshotsRequest < Struct.new(
833
+ :workspace_id)
834
+ include Aws::Structure
835
+ end
836
+
837
+ # @!attribute [rw] rebuild_snapshots
838
+ # Information about the snapshots that can be used to rebuild a
839
+ # WorkSpace. These snapshots include the root volume.
840
+ # @return [Array<Types::Snapshot>]
841
+ #
842
+ # @!attribute [rw] restore_snapshots
843
+ # Information about the snapshots that can be used to restore a
844
+ # WorkSpace. These snapshots include both the root volume and the user
845
+ # volume.
846
+ # @return [Array<Types::Snapshot>]
847
+ #
848
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceSnapshotsResult AWS API Documentation
849
+ #
850
+ class DescribeWorkspaceSnapshotsResult < Struct.new(
851
+ :rebuild_snapshots,
852
+ :restore_snapshots)
853
+ include Aws::Structure
854
+ end
855
+
819
856
  # @note When making an API call, you may pass DescribeWorkspacesConnectionStatusRequest
820
857
  # data as a hash:
821
858
  #
@@ -992,8 +1029,9 @@ module Aws::WorkSpaces
992
1029
  end
993
1030
 
994
1031
  # Describes a WorkSpace that could not be rebooted. (RebootWorkspaces),
995
- # rebuilt (RebuildWorkspaces), terminated (TerminateWorkspaces), started
996
- # (StartWorkspaces), or stopped (StopWorkspaces).
1032
+ # rebuilt (RebuildWorkspaces), restored (RestoreWorkspace), terminated
1033
+ # (TerminateWorkspaces), started (StartWorkspaces), or stopped
1034
+ # (StopWorkspaces).
997
1035
  #
998
1036
  # @!attribute [rw] workspace_id
999
1037
  # The identifier of the WorkSpace.
@@ -1549,6 +1587,28 @@ module Aws::WorkSpaces
1549
1587
  include Aws::Structure
1550
1588
  end
1551
1589
 
1590
+ # @note When making an API call, you may pass RestoreWorkspaceRequest
1591
+ # data as a hash:
1592
+ #
1593
+ # {
1594
+ # workspace_id: "WorkspaceId", # required
1595
+ # }
1596
+ #
1597
+ # @!attribute [rw] workspace_id
1598
+ # The identifier of the WorkSpace.
1599
+ # @return [String]
1600
+ #
1601
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RestoreWorkspaceRequest AWS API Documentation
1602
+ #
1603
+ class RestoreWorkspaceRequest < Struct.new(
1604
+ :workspace_id)
1605
+ include Aws::Structure
1606
+ end
1607
+
1608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RestoreWorkspaceResult AWS API Documentation
1609
+ #
1610
+ class RestoreWorkspaceResult < Aws::EmptyStructure; end
1611
+
1552
1612
  # @note When making an API call, you may pass RevokeIpRulesRequest
1553
1613
  # data as a hash:
1554
1614
  #
@@ -1590,6 +1650,19 @@ module Aws::WorkSpaces
1590
1650
  include Aws::Structure
1591
1651
  end
1592
1652
 
1653
+ # Describes a snapshot.
1654
+ #
1655
+ # @!attribute [rw] snapshot_time
1656
+ # The time when the snapshot was created.
1657
+ # @return [Time]
1658
+ #
1659
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/Snapshot AWS API Documentation
1660
+ #
1661
+ class Snapshot < Struct.new(
1662
+ :snapshot_time)
1663
+ include Aws::Structure
1664
+ end
1665
+
1593
1666
  # Information used to start a WorkSpace.
1594
1667
  #
1595
1668
  # @note When making an API call, you may pass StartRequest
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.27.0
4
+ version: 1.28.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: 2019-07-25 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core