aws-sdk-workspaces 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-workspaces.rb +1 -1
- data/lib/aws-sdk-workspaces/client.rb +328 -22
- data/lib/aws-sdk-workspaces/client_api.rb +221 -0
- data/lib/aws-sdk-workspaces/types.rb +374 -18
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52e09f19a0e3c2a8c2e925b9423a63a3a2223423
|
4
|
+
data.tar.gz: 7334331c71f6b6ef57d514b83af4427988be5a66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c2a370904126d28e0b6e885ea8deb19422e2deffd58ce454474753f578e6a486a7d66d7c1bfc0b920aeb42d019c098da774b66a710660254ba9d802d7b102d3
|
7
|
+
data.tar.gz: e43872efd0548c7697281b127d8e6ef2ec432cc96aa17fbb2108808bf737e0e65a0dafd04ee6c81479823f5981b1a9c73df8c568255c42555decac49dc632618
|
data/lib/aws-sdk-workspaces.rb
CHANGED
@@ -155,13 +155,129 @@ module Aws::WorkSpaces
|
|
155
155
|
|
156
156
|
# @!group API Operations
|
157
157
|
|
158
|
-
#
|
158
|
+
# Associates the specified IP access control group with the specified
|
159
|
+
# directory.
|
160
|
+
#
|
161
|
+
# @option params [required, String] :directory_id
|
162
|
+
# The ID of the directory.
|
163
|
+
#
|
164
|
+
# @option params [required, Array<String>] :group_ids
|
165
|
+
# The IDs of one or more IP access control groups.
|
166
|
+
#
|
167
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
168
|
+
#
|
169
|
+
# @example Request syntax with placeholder values
|
170
|
+
#
|
171
|
+
# resp = client.associate_ip_groups({
|
172
|
+
# directory_id: "DirectoryId", # required
|
173
|
+
# group_ids: ["IpGroupId"], # required
|
174
|
+
# })
|
175
|
+
#
|
176
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/AssociateIpGroups AWS API Documentation
|
177
|
+
#
|
178
|
+
# @overload associate_ip_groups(params = {})
|
179
|
+
# @param [Hash] params ({})
|
180
|
+
def associate_ip_groups(params = {}, options = {})
|
181
|
+
req = build_request(:associate_ip_groups, params)
|
182
|
+
req.send_request(options)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Adds one or more rules to the specified IP access control group.
|
186
|
+
#
|
187
|
+
# This action gives users permission to access their WorkSpaces from the
|
188
|
+
# CIDR address ranges specified in the rules.
|
189
|
+
#
|
190
|
+
# @option params [required, String] :group_id
|
191
|
+
# The ID of the group.
|
192
|
+
#
|
193
|
+
# @option params [required, Array<Types::IpRuleItem>] :user_rules
|
194
|
+
# The rules to add to the group.
|
195
|
+
#
|
196
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
197
|
+
#
|
198
|
+
# @example Request syntax with placeholder values
|
199
|
+
#
|
200
|
+
# resp = client.authorize_ip_rules({
|
201
|
+
# group_id: "IpGroupId", # required
|
202
|
+
# user_rules: [ # required
|
203
|
+
# {
|
204
|
+
# ip_rule: "IpRule",
|
205
|
+
# rule_desc: "IpRuleDesc",
|
206
|
+
# },
|
207
|
+
# ],
|
208
|
+
# })
|
209
|
+
#
|
210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/AuthorizeIpRules AWS API Documentation
|
211
|
+
#
|
212
|
+
# @overload authorize_ip_rules(params = {})
|
213
|
+
# @param [Hash] params ({})
|
214
|
+
def authorize_ip_rules(params = {}, options = {})
|
215
|
+
req = build_request(:authorize_ip_rules, params)
|
216
|
+
req.send_request(options)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Creates an IP access control group.
|
220
|
+
#
|
221
|
+
# An IP access control group provides you with the ability to control
|
222
|
+
# the IP addresses from which users are allowed to access their
|
223
|
+
# WorkSpaces. To specify the CIDR address ranges, add rules to your IP
|
224
|
+
# access control group and then associate the group with your directory.
|
225
|
+
# You can add rules when you create the group or at any time using
|
226
|
+
# AuthorizeIpRules.
|
227
|
+
#
|
228
|
+
# There is a default IP access control group associated with your
|
229
|
+
# directory. If you don't associate an IP access control group with
|
230
|
+
# your directory, the default group is used. The default group includes
|
231
|
+
# a default rule that allows users to access their WorkSpaces from
|
232
|
+
# anywhere. You cannot modify the default IP access control group for
|
233
|
+
# your directory.
|
234
|
+
#
|
235
|
+
# @option params [required, String] :group_name
|
236
|
+
# The name of the group.
|
237
|
+
#
|
238
|
+
# @option params [String] :group_desc
|
239
|
+
# The description of the group.
|
240
|
+
#
|
241
|
+
# @option params [Array<Types::IpRuleItem>] :user_rules
|
242
|
+
# The rules to add to the group.
|
243
|
+
#
|
244
|
+
# @return [Types::CreateIpGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
245
|
+
#
|
246
|
+
# * {Types::CreateIpGroupResult#group_id #group_id} => String
|
247
|
+
#
|
248
|
+
# @example Request syntax with placeholder values
|
249
|
+
#
|
250
|
+
# resp = client.create_ip_group({
|
251
|
+
# group_name: "IpGroupName", # required
|
252
|
+
# group_desc: "IpGroupDesc",
|
253
|
+
# user_rules: [
|
254
|
+
# {
|
255
|
+
# ip_rule: "IpRule",
|
256
|
+
# rule_desc: "IpRuleDesc",
|
257
|
+
# },
|
258
|
+
# ],
|
259
|
+
# })
|
260
|
+
#
|
261
|
+
# @example Response structure
|
262
|
+
#
|
263
|
+
# resp.group_id #=> String
|
264
|
+
#
|
265
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateIpGroup AWS API Documentation
|
266
|
+
#
|
267
|
+
# @overload create_ip_group(params = {})
|
268
|
+
# @param [Hash] params ({})
|
269
|
+
def create_ip_group(params = {}, options = {})
|
270
|
+
req = build_request(:create_ip_group, params)
|
271
|
+
req.send_request(options)
|
272
|
+
end
|
273
|
+
|
274
|
+
# Creates the specified tags for the specified WorkSpace.
|
159
275
|
#
|
160
276
|
# @option params [required, String] :resource_id
|
161
|
-
# The ID of the
|
277
|
+
# The ID of the WorkSpace. To find this ID, use DescribeWorkspaces.
|
162
278
|
#
|
163
279
|
# @option params [required, Array<Types::Tag>] :tags
|
164
|
-
# The tags. Each
|
280
|
+
# The tags. Each WorkSpace can have a maximum of 50 tags.
|
165
281
|
#
|
166
282
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
167
283
|
#
|
@@ -192,7 +308,7 @@ module Aws::WorkSpaces
|
|
192
308
|
# created.
|
193
309
|
#
|
194
310
|
# @option params [required, Array<Types::WorkspaceRequest>] :workspaces
|
195
|
-
#
|
311
|
+
# The WorkSpaces to create. You can specify up to 25 WorkSpaces.
|
196
312
|
#
|
197
313
|
# @return [Types::CreateWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
198
314
|
#
|
@@ -251,7 +367,7 @@ module Aws::WorkSpaces
|
|
251
367
|
# resp.pending_requests[0].directory_id #=> String
|
252
368
|
# resp.pending_requests[0].user_name #=> String
|
253
369
|
# resp.pending_requests[0].ip_address #=> String
|
254
|
-
# resp.pending_requests[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
|
370
|
+
# 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"
|
255
371
|
# resp.pending_requests[0].bundle_id #=> String
|
256
372
|
# resp.pending_requests[0].subnet_id #=> String
|
257
373
|
# resp.pending_requests[0].error_message #=> String
|
@@ -278,10 +394,35 @@ module Aws::WorkSpaces
|
|
278
394
|
req.send_request(options)
|
279
395
|
end
|
280
396
|
|
281
|
-
# Deletes the specified
|
397
|
+
# Deletes the specified IP access control group.
|
398
|
+
#
|
399
|
+
# You cannot delete an IP access control group that is associated with a
|
400
|
+
# directory.
|
401
|
+
#
|
402
|
+
# @option params [required, String] :group_id
|
403
|
+
# The ID of the IP access control group.
|
404
|
+
#
|
405
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
406
|
+
#
|
407
|
+
# @example Request syntax with placeholder values
|
408
|
+
#
|
409
|
+
# resp = client.delete_ip_group({
|
410
|
+
# group_id: "IpGroupId", # required
|
411
|
+
# })
|
412
|
+
#
|
413
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DeleteIpGroup AWS API Documentation
|
414
|
+
#
|
415
|
+
# @overload delete_ip_group(params = {})
|
416
|
+
# @param [Hash] params ({})
|
417
|
+
def delete_ip_group(params = {}, options = {})
|
418
|
+
req = build_request(:delete_ip_group, params)
|
419
|
+
req.send_request(options)
|
420
|
+
end
|
421
|
+
|
422
|
+
# Deletes the specified tags from the specified WorkSpace.
|
282
423
|
#
|
283
424
|
# @option params [required, String] :resource_id
|
284
|
-
# The ID of the
|
425
|
+
# The ID of the WorkSpace. To find this ID, use DescribeWorkspaces.
|
285
426
|
#
|
286
427
|
# @option params [required, Array<String>] :tag_keys
|
287
428
|
# The tag keys.
|
@@ -304,10 +445,55 @@ module Aws::WorkSpaces
|
|
304
445
|
req.send_request(options)
|
305
446
|
end
|
306
447
|
|
307
|
-
# Describes
|
448
|
+
# Describes one or more of your IP access control groups.
|
449
|
+
#
|
450
|
+
# @option params [Array<String>] :group_ids
|
451
|
+
# The IDs of one or more IP access control groups.
|
452
|
+
#
|
453
|
+
# @option params [String] :next_token
|
454
|
+
# The token for the next set of results. (You received this token from a
|
455
|
+
# previous call.)
|
456
|
+
#
|
457
|
+
# @option params [Integer] :max_results
|
458
|
+
# The maximum number of items to return.
|
459
|
+
#
|
460
|
+
# @return [Types::DescribeIpGroupsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
461
|
+
#
|
462
|
+
# * {Types::DescribeIpGroupsResult#result #result} => Array<Types::WorkspacesIpGroup>
|
463
|
+
# * {Types::DescribeIpGroupsResult#next_token #next_token} => String
|
464
|
+
#
|
465
|
+
# @example Request syntax with placeholder values
|
466
|
+
#
|
467
|
+
# resp = client.describe_ip_groups({
|
468
|
+
# group_ids: ["IpGroupId"],
|
469
|
+
# next_token: "PaginationToken",
|
470
|
+
# max_results: 1,
|
471
|
+
# })
|
472
|
+
#
|
473
|
+
# @example Response structure
|
474
|
+
#
|
475
|
+
# resp.result #=> Array
|
476
|
+
# resp.result[0].group_id #=> String
|
477
|
+
# resp.result[0].group_name #=> String
|
478
|
+
# resp.result[0].group_desc #=> String
|
479
|
+
# resp.result[0].user_rules #=> Array
|
480
|
+
# resp.result[0].user_rules[0].ip_rule #=> String
|
481
|
+
# resp.result[0].user_rules[0].rule_desc #=> String
|
482
|
+
# resp.next_token #=> String
|
483
|
+
#
|
484
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeIpGroups AWS API Documentation
|
485
|
+
#
|
486
|
+
# @overload describe_ip_groups(params = {})
|
487
|
+
# @param [Hash] params ({})
|
488
|
+
def describe_ip_groups(params = {}, options = {})
|
489
|
+
req = build_request(:describe_ip_groups, params)
|
490
|
+
req.send_request(options)
|
491
|
+
end
|
492
|
+
|
493
|
+
# Describes the specified tags for the specified WorkSpace.
|
308
494
|
#
|
309
495
|
# @option params [required, String] :resource_id
|
310
|
-
# The ID of the
|
496
|
+
# The ID of the WorkSpace. To find this ID, use DescribeWorkspaces.
|
311
497
|
#
|
312
498
|
# @return [Types::DescribeTagsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
313
499
|
#
|
@@ -432,6 +618,8 @@ module Aws::WorkSpaces
|
|
432
618
|
# resp.directories[0].workspace_creation_properties.default_ou #=> String
|
433
619
|
# resp.directories[0].workspace_creation_properties.custom_security_group_id #=> String
|
434
620
|
# resp.directories[0].workspace_creation_properties.user_enabled_as_local_administrator #=> Boolean
|
621
|
+
# resp.directories[0].ip_group_ids #=> Array
|
622
|
+
# resp.directories[0].ip_group_ids[0] #=> String
|
435
623
|
# resp.next_token #=> String
|
436
624
|
#
|
437
625
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceDirectories AWS API Documentation
|
@@ -500,7 +688,7 @@ module Aws::WorkSpaces
|
|
500
688
|
# resp.workspaces[0].directory_id #=> String
|
501
689
|
# resp.workspaces[0].user_name #=> String
|
502
690
|
# resp.workspaces[0].ip_address #=> String
|
503
|
-
# resp.workspaces[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
|
691
|
+
# resp.workspaces[0].state #=> String, one of "PENDING", "AVAILABLE", "IMPAIRED", "UNHEALTHY", "REBOOTING", "STARTING", "REBUILDING", "MAINTENANCE", "ADMIN_MAINTENANCE", "TERMINATING", "TERMINATED", "SUSPENDED", "UPDATING", "STOPPING", "STOPPED", "ERROR"
|
504
692
|
# resp.workspaces[0].bundle_id #=> String
|
505
693
|
# resp.workspaces[0].subnet_id #=> String
|
506
694
|
# resp.workspaces[0].error_message #=> String
|
@@ -531,7 +719,8 @@ module Aws::WorkSpaces
|
|
531
719
|
# Describes the connection status of the specified WorkSpaces.
|
532
720
|
#
|
533
721
|
# @option params [Array<String>] :workspace_ids
|
534
|
-
# The identifiers of the WorkSpaces.
|
722
|
+
# The identifiers of the WorkSpaces. You can specify up to 25
|
723
|
+
# WorkSpaces.
|
535
724
|
#
|
536
725
|
# @option params [String] :next_token
|
537
726
|
# The token for the next set of results. (You received this token from a
|
@@ -567,6 +756,33 @@ module Aws::WorkSpaces
|
|
567
756
|
req.send_request(options)
|
568
757
|
end
|
569
758
|
|
759
|
+
# Disassociates the specified IP access control group from the specified
|
760
|
+
# directory.
|
761
|
+
#
|
762
|
+
# @option params [required, String] :directory_id
|
763
|
+
# The ID of the directory.
|
764
|
+
#
|
765
|
+
# @option params [required, Array<String>] :group_ids
|
766
|
+
# The IDs of one or more IP access control groups.
|
767
|
+
#
|
768
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
769
|
+
#
|
770
|
+
# @example Request syntax with placeholder values
|
771
|
+
#
|
772
|
+
# resp = client.disassociate_ip_groups({
|
773
|
+
# directory_id: "DirectoryId", # required
|
774
|
+
# group_ids: ["IpGroupId"], # required
|
775
|
+
# })
|
776
|
+
#
|
777
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DisassociateIpGroups AWS API Documentation
|
778
|
+
#
|
779
|
+
# @overload disassociate_ip_groups(params = {})
|
780
|
+
# @param [Hash] params ({})
|
781
|
+
def disassociate_ip_groups(params = {}, options = {})
|
782
|
+
req = build_request(:disassociate_ip_groups, params)
|
783
|
+
req.send_request(options)
|
784
|
+
end
|
785
|
+
|
570
786
|
# Modifies the specified WorkSpace properties.
|
571
787
|
#
|
572
788
|
# @option params [required, String] :workspace_id
|
@@ -599,16 +815,48 @@ module Aws::WorkSpaces
|
|
599
815
|
req.send_request(options)
|
600
816
|
end
|
601
817
|
|
818
|
+
# Sets the state of the specified WorkSpace.
|
819
|
+
#
|
820
|
+
# To maintain a WorkSpace without being interrupted, set the WorkSpace
|
821
|
+
# state to `ADMIN_MAINTENANCE`. WorkSpaces in this state do not respond
|
822
|
+
# to requests to reboot, stop, start, or rebuild. An AutoStop WorkSpace
|
823
|
+
# in this state is not stopped. Users can log into a WorkSpace in the
|
824
|
+
# `ADMIN_MAINTENANCE` state.
|
825
|
+
#
|
826
|
+
# @option params [required, String] :workspace_id
|
827
|
+
# The ID of the WorkSpace.
|
828
|
+
#
|
829
|
+
# @option params [required, String] :workspace_state
|
830
|
+
# The WorkSpace state.
|
831
|
+
#
|
832
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
833
|
+
#
|
834
|
+
# @example Request syntax with placeholder values
|
835
|
+
#
|
836
|
+
# resp = client.modify_workspace_state({
|
837
|
+
# workspace_id: "WorkspaceId", # required
|
838
|
+
# workspace_state: "AVAILABLE", # required, accepts AVAILABLE, ADMIN_MAINTENANCE
|
839
|
+
# })
|
840
|
+
#
|
841
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ModifyWorkspaceState AWS API Documentation
|
842
|
+
#
|
843
|
+
# @overload modify_workspace_state(params = {})
|
844
|
+
# @param [Hash] params ({})
|
845
|
+
def modify_workspace_state(params = {}, options = {})
|
846
|
+
req = build_request(:modify_workspace_state, params)
|
847
|
+
req.send_request(options)
|
848
|
+
end
|
849
|
+
|
602
850
|
# Reboots the specified WorkSpaces.
|
603
851
|
#
|
604
|
-
# You cannot reboot a WorkSpace unless its state is `AVAILABLE
|
605
|
-
# `
|
852
|
+
# You cannot reboot a WorkSpace unless its state is `AVAILABLE` or
|
853
|
+
# `UNHEALTHY`.
|
606
854
|
#
|
607
855
|
# This operation is asynchronous and returns before the WorkSpaces have
|
608
856
|
# rebooted.
|
609
857
|
#
|
610
858
|
# @option params [required, Array<Types::RebootRequest>] :reboot_workspace_requests
|
611
|
-
# The WorkSpaces to reboot.
|
859
|
+
# The WorkSpaces to reboot. You can specify up to 25 WorkSpaces.
|
612
860
|
#
|
613
861
|
# @return [Types::RebootWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
614
862
|
#
|
@@ -640,10 +888,10 @@ module Aws::WorkSpaces
|
|
640
888
|
req.send_request(options)
|
641
889
|
end
|
642
890
|
|
643
|
-
# Rebuilds the specified
|
891
|
+
# Rebuilds the specified WorkSpace.
|
644
892
|
#
|
645
|
-
# You cannot rebuild a WorkSpace unless its state is `AVAILABLE
|
646
|
-
# `ERROR`.
|
893
|
+
# You cannot rebuild a WorkSpace unless its state is `AVAILABLE`,
|
894
|
+
# `ERROR`, or `UNHEALTHY`.
|
647
895
|
#
|
648
896
|
# Rebuilding a WorkSpace is a potentially destructive action that can
|
649
897
|
# result in the loss of data. For more information, see [Rebuild a
|
@@ -657,7 +905,7 @@ module Aws::WorkSpaces
|
|
657
905
|
# [1]: http://docs.aws.amazon.com/workspaces/latest/adminguide/reset-workspace.html
|
658
906
|
#
|
659
907
|
# @option params [required, Array<Types::RebuildRequest>] :rebuild_workspace_requests
|
660
|
-
# The
|
908
|
+
# The WorkSpace to rebuild. You can specify a single WorkSpace.
|
661
909
|
#
|
662
910
|
# @return [Types::RebuildWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
663
911
|
#
|
@@ -689,13 +937,39 @@ module Aws::WorkSpaces
|
|
689
937
|
req.send_request(options)
|
690
938
|
end
|
691
939
|
|
940
|
+
# Removes one or more rules from the specified IP access control group.
|
941
|
+
#
|
942
|
+
# @option params [required, String] :group_id
|
943
|
+
# The ID of the group.
|
944
|
+
#
|
945
|
+
# @option params [required, Array<String>] :user_rules
|
946
|
+
# The rules to remove from the group.
|
947
|
+
#
|
948
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
949
|
+
#
|
950
|
+
# @example Request syntax with placeholder values
|
951
|
+
#
|
952
|
+
# resp = client.revoke_ip_rules({
|
953
|
+
# group_id: "IpGroupId", # required
|
954
|
+
# user_rules: ["IpRule"], # required
|
955
|
+
# })
|
956
|
+
#
|
957
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/RevokeIpRules AWS API Documentation
|
958
|
+
#
|
959
|
+
# @overload revoke_ip_rules(params = {})
|
960
|
+
# @param [Hash] params ({})
|
961
|
+
def revoke_ip_rules(params = {}, options = {})
|
962
|
+
req = build_request(:revoke_ip_rules, params)
|
963
|
+
req.send_request(options)
|
964
|
+
end
|
965
|
+
|
692
966
|
# Starts the specified WorkSpaces.
|
693
967
|
#
|
694
968
|
# You cannot start a WorkSpace unless it has a running mode of
|
695
969
|
# `AutoStop` and a state of `STOPPED`.
|
696
970
|
#
|
697
971
|
# @option params [required, Array<Types::StartRequest>] :start_workspace_requests
|
698
|
-
# The WorkSpaces to start.
|
972
|
+
# The WorkSpaces to start. You can specify up to 25 WorkSpaces.
|
699
973
|
#
|
700
974
|
# @return [Types::StartWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
701
975
|
#
|
@@ -733,7 +1007,7 @@ module Aws::WorkSpaces
|
|
733
1007
|
# and a state of `AVAILABLE`, `IMPAIRED`, `UNHEALTHY`, or `ERROR`.
|
734
1008
|
#
|
735
1009
|
# @option params [required, Array<Types::StopRequest>] :stop_workspace_requests
|
736
|
-
# The WorkSpaces to stop.
|
1010
|
+
# The WorkSpaces to stop. You can specify up to 25 WorkSpaces.
|
737
1011
|
#
|
738
1012
|
# @return [Types::StopWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
739
1013
|
#
|
@@ -777,7 +1051,7 @@ module Aws::WorkSpaces
|
|
777
1051
|
# been completely terminated.
|
778
1052
|
#
|
779
1053
|
# @option params [required, Array<Types::TerminateRequest>] :terminate_workspace_requests
|
780
|
-
# The WorkSpaces to terminate.
|
1054
|
+
# The WorkSpaces to terminate. You can specify up to 25 WorkSpaces.
|
781
1055
|
#
|
782
1056
|
# @return [Types::TerminateWorkspacesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
783
1057
|
#
|
@@ -809,6 +1083,38 @@ module Aws::WorkSpaces
|
|
809
1083
|
req.send_request(options)
|
810
1084
|
end
|
811
1085
|
|
1086
|
+
# Replaces the current rules of the specified IP access control group
|
1087
|
+
# with the specified rules.
|
1088
|
+
#
|
1089
|
+
# @option params [required, String] :group_id
|
1090
|
+
# The ID of the group.
|
1091
|
+
#
|
1092
|
+
# @option params [required, Array<Types::IpRuleItem>] :user_rules
|
1093
|
+
# One or more rules.
|
1094
|
+
#
|
1095
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1096
|
+
#
|
1097
|
+
# @example Request syntax with placeholder values
|
1098
|
+
#
|
1099
|
+
# resp = client.update_rules_of_ip_group({
|
1100
|
+
# group_id: "IpGroupId", # required
|
1101
|
+
# user_rules: [ # required
|
1102
|
+
# {
|
1103
|
+
# ip_rule: "IpRule",
|
1104
|
+
# rule_desc: "IpRuleDesc",
|
1105
|
+
# },
|
1106
|
+
# ],
|
1107
|
+
# })
|
1108
|
+
#
|
1109
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateRulesOfIpGroup AWS API Documentation
|
1110
|
+
#
|
1111
|
+
# @overload update_rules_of_ip_group(params = {})
|
1112
|
+
# @param [Hash] params ({})
|
1113
|
+
def update_rules_of_ip_group(params = {}, options = {})
|
1114
|
+
req = build_request(:update_rules_of_ip_group, params)
|
1115
|
+
req.send_request(options)
|
1116
|
+
end
|
1117
|
+
|
812
1118
|
# @!endgroup
|
813
1119
|
|
814
1120
|
# @param params ({})
|
@@ -822,7 +1128,7 @@ module Aws::WorkSpaces
|
|
822
1128
|
params: params,
|
823
1129
|
config: config)
|
824
1130
|
context[:gem_name] = 'aws-sdk-workspaces'
|
825
|
-
context[:gem_version] = '1.
|
1131
|
+
context[:gem_version] = '1.2.0'
|
826
1132
|
Seahorse::Client::Request.new(handlers, context)
|
827
1133
|
end
|
828
1134
|
|