aws-sdk-backupgateway 1.4.0 → 1.5.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: fb2ed7e0e3674332eb19e5ebd2f0b9cb68aeb05a016117ee8adfd833b925450d
4
- data.tar.gz: '080046744cf9383207b9854bacd576fd02a28d05315808663e50e017848fe590'
3
+ metadata.gz: 721bd3ad6d15ed76b7bcd3bee66970aba8b959baf5fd9df735e277dcd2ef65a6
4
+ data.tar.gz: 401cb059a7d268e56529aa7fda491e71bebd0fba605c1750127fec4f83d72909
5
5
  SHA512:
6
- metadata.gz: f19188617e218d484c2eadaf917827e8520fb3e925f518bc15fe1788dad1b6aa0d43a04484c3ac04b3541fef70708bb05a6f8651ba3926377b751e1db567aed0
7
- data.tar.gz: f004dfdfcbdf3e0b0692392983191ab8b6035a9737ce7b57aef663918d9f67cf12c9bf198bc15f9dbeaecef28eccca3e70b443e2370087865b0c05c02602e66c
6
+ metadata.gz: 7d86c6a9b55e1fd8722c93e4c4d9db31e297c5e2f00552e1a1cf681929896f1aac4add3470482e6f4bf01078336fdeeb7283f2fa5da2fcbd1612926f6203a2d4
7
+ data.tar.gz: 32787e682b2887d577d578fd1d1e89761cb92fa6efc154329a901afbe358627f5a2564c919d996b0d5f2155083e14f8e6ec353246196fd89ede32d007379a640
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.5.0 (2022-09-22)
5
+ ------------------
6
+
7
+ * Feature - Changes include: new GetVirtualMachineApi to fetch a single user's VM, improving ListVirtualMachines to fetch filtered VMs as well as all VMs, and improving GetGatewayApi to now also return the gateway's MaintenanceStartTime.
8
+
4
9
  1.4.0 (2022-06-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.5.0
@@ -555,6 +555,10 @@ module Aws::BackupGateway
555
555
  # resp.gateway.gateway_type #=> String, one of "BACKUP_VM"
556
556
  # resp.gateway.hypervisor_id #=> String
557
557
  # resp.gateway.last_seen_time #=> Time
558
+ # resp.gateway.maintenance_start_time.day_of_month #=> Integer
559
+ # resp.gateway.maintenance_start_time.day_of_week #=> Integer
560
+ # resp.gateway.maintenance_start_time.hour_of_day #=> Integer
561
+ # resp.gateway.maintenance_start_time.minute_of_hour #=> Integer
558
562
  # resp.gateway.next_update_availability_time #=> Time
559
563
  # resp.gateway.vpc_endpoint #=> String
560
564
  #
@@ -567,6 +571,40 @@ module Aws::BackupGateway
567
571
  req.send_request(options)
568
572
  end
569
573
 
574
+ # By providing the ARN (Amazon Resource Name), this API returns the
575
+ # virtual machine.
576
+ #
577
+ # @option params [required, String] :resource_arn
578
+ # The Amazon Resource Name (ARN) of the virtual machine.
579
+ #
580
+ # @return [Types::GetVirtualMachineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
581
+ #
582
+ # * {Types::GetVirtualMachineOutput#virtual_machine #virtual_machine} => Types::VirtualMachineDetails
583
+ #
584
+ # @example Request syntax with placeholder values
585
+ #
586
+ # resp = client.get_virtual_machine({
587
+ # resource_arn: "ResourceArn", # required
588
+ # })
589
+ #
590
+ # @example Response structure
591
+ #
592
+ # resp.virtual_machine.host_name #=> String
593
+ # resp.virtual_machine.hypervisor_id #=> String
594
+ # resp.virtual_machine.last_backup_date #=> Time
595
+ # resp.virtual_machine.name #=> String
596
+ # resp.virtual_machine.path #=> String
597
+ # resp.virtual_machine.resource_arn #=> String
598
+ #
599
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine AWS API Documentation
600
+ #
601
+ # @overload get_virtual_machine(params = {})
602
+ # @param [Hash] params ({})
603
+ def get_virtual_machine(params = {}, options = {})
604
+ req = build_request(:get_virtual_machine, params)
605
+ req.send_request(options)
606
+ end
607
+
570
608
  # Connect to a hypervisor by importing its configuration.
571
609
  #
572
610
  # @option params [required, String] :host
@@ -746,6 +784,10 @@ module Aws::BackupGateway
746
784
 
747
785
  # Lists your virtual machines.
748
786
  #
787
+ # @option params [String] :hypervisor_arn
788
+ # The Amazon Resource Name (ARN) of the hypervisor connected to your
789
+ # virtual machine.
790
+ #
749
791
  # @option params [Integer] :max_results
750
792
  # The maximum number of virtual machines to list.
751
793
  #
@@ -765,6 +807,7 @@ module Aws::BackupGateway
765
807
  # @example Request syntax with placeholder values
766
808
  #
767
809
  # resp = client.list_virtual_machines({
810
+ # hypervisor_arn: "ServerArn",
768
811
  # max_results: 1,
769
812
  # next_token: "NextToken",
770
813
  # })
@@ -1071,7 +1114,7 @@ module Aws::BackupGateway
1071
1114
  params: params,
1072
1115
  config: config)
1073
1116
  context[:gem_name] = 'aws-sdk-backupgateway'
1074
- context[:gem_version] = '1.4.0'
1117
+ context[:gem_version] = '1.5.0'
1075
1118
  Seahorse::Client::Request.new(handlers, context)
1076
1119
  end
1077
1120
 
@@ -35,6 +35,8 @@ module Aws::BackupGateway
35
35
  Gateways = Shapes::ListShape.new(name: 'Gateways')
36
36
  GetGatewayInput = Shapes::StructureShape.new(name: 'GetGatewayInput')
37
37
  GetGatewayOutput = Shapes::StructureShape.new(name: 'GetGatewayOutput')
38
+ GetVirtualMachineInput = Shapes::StructureShape.new(name: 'GetVirtualMachineInput')
39
+ GetVirtualMachineOutput = Shapes::StructureShape.new(name: 'GetVirtualMachineOutput')
38
40
  Host = Shapes::StringShape.new(name: 'Host')
39
41
  HourOfDay = Shapes::IntegerShape.new(name: 'HourOfDay')
40
42
  Hypervisor = Shapes::StructureShape.new(name: 'Hypervisor')
@@ -53,6 +55,7 @@ module Aws::BackupGateway
53
55
  ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
54
56
  ListVirtualMachinesInput = Shapes::StructureShape.new(name: 'ListVirtualMachinesInput')
55
57
  ListVirtualMachinesOutput = Shapes::StructureShape.new(name: 'ListVirtualMachinesOutput')
58
+ MaintenanceStartTime = Shapes::StructureShape.new(name: 'MaintenanceStartTime')
56
59
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
57
60
  MinuteOfHour = Shapes::IntegerShape.new(name: 'MinuteOfHour')
58
61
  Name = Shapes::StringShape.new(name: 'Name')
@@ -73,6 +76,7 @@ module Aws::BackupGateway
73
76
  Tags = Shapes::ListShape.new(name: 'Tags')
74
77
  TestHypervisorConfigurationInput = Shapes::StructureShape.new(name: 'TestHypervisorConfigurationInput')
75
78
  TestHypervisorConfigurationOutput = Shapes::StructureShape.new(name: 'TestHypervisorConfigurationOutput')
79
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
76
80
  Time = Shapes::TimestampShape.new(name: 'Time')
77
81
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
78
82
  UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
@@ -85,6 +89,7 @@ module Aws::BackupGateway
85
89
  Username = Shapes::StringShape.new(name: 'Username')
86
90
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
87
91
  VirtualMachine = Shapes::StructureShape.new(name: 'VirtualMachine')
92
+ VirtualMachineDetails = Shapes::StructureShape.new(name: 'VirtualMachineDetails')
88
93
  VirtualMachines = Shapes::ListShape.new(name: 'VirtualMachines')
89
94
  VpcEndpoint = Shapes::StringShape.new(name: 'VpcEndpoint')
90
95
  string = Shapes::StringShape.new(name: 'string')
@@ -143,6 +148,7 @@ module Aws::BackupGateway
143
148
  GatewayDetails.add_member(:gateway_type, Shapes::ShapeRef.new(shape: GatewayType, location_name: "GatewayType"))
144
149
  GatewayDetails.add_member(:hypervisor_id, Shapes::ShapeRef.new(shape: HypervisorId, location_name: "HypervisorId"))
145
150
  GatewayDetails.add_member(:last_seen_time, Shapes::ShapeRef.new(shape: Time, location_name: "LastSeenTime"))
151
+ GatewayDetails.add_member(:maintenance_start_time, Shapes::ShapeRef.new(shape: MaintenanceStartTime, location_name: "MaintenanceStartTime"))
146
152
  GatewayDetails.add_member(:next_update_availability_time, Shapes::ShapeRef.new(shape: Time, location_name: "NextUpdateAvailabilityTime"))
147
153
  GatewayDetails.add_member(:vpc_endpoint, Shapes::ShapeRef.new(shape: VpcEndpoint, location_name: "VpcEndpoint"))
148
154
  GatewayDetails.struct_class = Types::GatewayDetails
@@ -155,6 +161,12 @@ module Aws::BackupGateway
155
161
  GetGatewayOutput.add_member(:gateway, Shapes::ShapeRef.new(shape: GatewayDetails, location_name: "Gateway"))
156
162
  GetGatewayOutput.struct_class = Types::GetGatewayOutput
157
163
 
164
+ GetVirtualMachineInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
165
+ GetVirtualMachineInput.struct_class = Types::GetVirtualMachineInput
166
+
167
+ GetVirtualMachineOutput.add_member(:virtual_machine, Shapes::ShapeRef.new(shape: VirtualMachineDetails, location_name: "VirtualMachine"))
168
+ GetVirtualMachineOutput.struct_class = Types::GetVirtualMachineOutput
169
+
158
170
  Hypervisor.add_member(:host, Shapes::ShapeRef.new(shape: Host, location_name: "Host"))
159
171
  Hypervisor.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
160
172
  Hypervisor.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
@@ -202,6 +214,7 @@ module Aws::BackupGateway
202
214
  ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
203
215
  ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
204
216
 
217
+ ListVirtualMachinesInput.add_member(:hypervisor_arn, Shapes::ShapeRef.new(shape: ServerArn, location_name: "HypervisorArn"))
205
218
  ListVirtualMachinesInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
206
219
  ListVirtualMachinesInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
207
220
  ListVirtualMachinesInput.struct_class = Types::ListVirtualMachinesInput
@@ -210,6 +223,12 @@ module Aws::BackupGateway
210
223
  ListVirtualMachinesOutput.add_member(:virtual_machines, Shapes::ShapeRef.new(shape: VirtualMachines, location_name: "VirtualMachines"))
211
224
  ListVirtualMachinesOutput.struct_class = Types::ListVirtualMachinesOutput
212
225
 
226
+ MaintenanceStartTime.add_member(:day_of_month, Shapes::ShapeRef.new(shape: DayOfMonth, location_name: "DayOfMonth"))
227
+ MaintenanceStartTime.add_member(:day_of_week, Shapes::ShapeRef.new(shape: DayOfWeek, location_name: "DayOfWeek"))
228
+ MaintenanceStartTime.add_member(:hour_of_day, Shapes::ShapeRef.new(shape: HourOfDay, required: true, location_name: "HourOfDay"))
229
+ MaintenanceStartTime.add_member(:minute_of_hour, Shapes::ShapeRef.new(shape: MinuteOfHour, required: true, location_name: "MinuteOfHour"))
230
+ MaintenanceStartTime.struct_class = Types::MaintenanceStartTime
231
+
213
232
  PutMaintenanceStartTimeInput.add_member(:day_of_month, Shapes::ShapeRef.new(shape: DayOfMonth, location_name: "DayOfMonth"))
214
233
  PutMaintenanceStartTimeInput.add_member(:day_of_week, Shapes::ShapeRef.new(shape: DayOfWeek, location_name: "DayOfWeek"))
215
234
  PutMaintenanceStartTimeInput.add_member(:gateway_arn, Shapes::ShapeRef.new(shape: GatewayArn, required: true, location_name: "GatewayArn"))
@@ -247,6 +266,10 @@ module Aws::BackupGateway
247
266
 
248
267
  TestHypervisorConfigurationOutput.struct_class = Types::TestHypervisorConfigurationOutput
249
268
 
269
+ ThrottlingException.add_member(:error_code, Shapes::ShapeRef.new(shape: string, required: true, location_name: "ErrorCode"))
270
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "Message"))
271
+ ThrottlingException.struct_class = Types::ThrottlingException
272
+
250
273
  UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceARN"))
251
274
  UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeys, required: true, location_name: "TagKeys"))
252
275
  UntagResourceInput.struct_class = Types::UntagResourceInput
@@ -289,6 +312,14 @@ module Aws::BackupGateway
289
312
  VirtualMachine.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
290
313
  VirtualMachine.struct_class = Types::VirtualMachine
291
314
 
315
+ VirtualMachineDetails.add_member(:host_name, Shapes::ShapeRef.new(shape: Name, location_name: "HostName"))
316
+ VirtualMachineDetails.add_member(:hypervisor_id, Shapes::ShapeRef.new(shape: string, location_name: "HypervisorId"))
317
+ VirtualMachineDetails.add_member(:last_backup_date, Shapes::ShapeRef.new(shape: Time, location_name: "LastBackupDate"))
318
+ VirtualMachineDetails.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "Name"))
319
+ VirtualMachineDetails.add_member(:path, Shapes::ShapeRef.new(shape: Path, location_name: "Path"))
320
+ VirtualMachineDetails.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
321
+ VirtualMachineDetails.struct_class = Types::VirtualMachineDetails
322
+
292
323
  VirtualMachines.member = Shapes::ShapeRef.new(shape: VirtualMachine)
293
324
 
294
325
 
@@ -319,6 +350,7 @@ module Aws::BackupGateway
319
350
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
320
351
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
321
352
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
353
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
322
354
  end)
323
355
 
324
356
  api.add_operation(:create_gateway, Seahorse::Model::Operation.new.tap do |o|
@@ -329,6 +361,7 @@ module Aws::BackupGateway
329
361
  o.output = Shapes::ShapeRef.new(shape: CreateGatewayOutput)
330
362
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
331
363
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
364
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
332
365
  end)
333
366
 
334
367
  api.add_operation(:delete_gateway, Seahorse::Model::Operation.new.tap do |o|
@@ -340,6 +373,7 @@ module Aws::BackupGateway
340
373
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
341
374
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
342
375
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
376
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
343
377
  end)
344
378
 
345
379
  api.add_operation(:delete_hypervisor, Seahorse::Model::Operation.new.tap do |o|
@@ -352,6 +386,7 @@ module Aws::BackupGateway
352
386
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
353
387
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
354
388
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
389
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
355
390
  end)
356
391
 
357
392
  api.add_operation(:disassociate_gateway_from_server, Seahorse::Model::Operation.new.tap do |o|
@@ -364,6 +399,7 @@ module Aws::BackupGateway
364
399
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
365
400
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
366
401
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
402
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
367
403
  end)
368
404
 
369
405
  api.add_operation(:get_gateway, Seahorse::Model::Operation.new.tap do |o|
@@ -375,6 +411,19 @@ module Aws::BackupGateway
375
411
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
376
412
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
377
413
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
414
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
415
+ end)
416
+
417
+ api.add_operation(:get_virtual_machine, Seahorse::Model::Operation.new.tap do |o|
418
+ o.name = "GetVirtualMachine"
419
+ o.http_method = "POST"
420
+ o.http_request_uri = "/"
421
+ o.input = Shapes::ShapeRef.new(shape: GetVirtualMachineInput)
422
+ o.output = Shapes::ShapeRef.new(shape: GetVirtualMachineOutput)
423
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
424
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
425
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
426
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
378
427
  end)
379
428
 
380
429
  api.add_operation(:import_hypervisor_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -386,6 +435,7 @@ module Aws::BackupGateway
386
435
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
387
436
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
388
437
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
438
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
389
439
  end)
390
440
 
391
441
  api.add_operation(:list_gateways, Seahorse::Model::Operation.new.tap do |o|
@@ -396,6 +446,7 @@ module Aws::BackupGateway
396
446
  o.output = Shapes::ShapeRef.new(shape: ListGatewaysOutput)
397
447
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
398
448
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
449
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
399
450
  o[:pager] = Aws::Pager.new(
400
451
  limit_key: "max_results",
401
452
  tokens: {
@@ -412,6 +463,7 @@ module Aws::BackupGateway
412
463
  o.output = Shapes::ShapeRef.new(shape: ListHypervisorsOutput)
413
464
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
414
465
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
466
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
415
467
  o[:pager] = Aws::Pager.new(
416
468
  limit_key: "max_results",
417
469
  tokens: {
@@ -429,6 +481,7 @@ module Aws::BackupGateway
429
481
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
430
482
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
431
483
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
484
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
432
485
  end)
433
486
 
434
487
  api.add_operation(:list_virtual_machines, Seahorse::Model::Operation.new.tap do |o|
@@ -439,6 +492,7 @@ module Aws::BackupGateway
439
492
  o.output = Shapes::ShapeRef.new(shape: ListVirtualMachinesOutput)
440
493
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
441
494
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
495
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
442
496
  o[:pager] = Aws::Pager.new(
443
497
  limit_key: "max_results",
444
498
  tokens: {
@@ -457,6 +511,7 @@ module Aws::BackupGateway
457
511
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
458
512
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
459
513
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
514
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
460
515
  end)
461
516
 
462
517
  api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -468,6 +523,7 @@ module Aws::BackupGateway
468
523
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
469
524
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
470
525
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
526
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
471
527
  end)
472
528
 
473
529
  api.add_operation(:test_hypervisor_configuration, Seahorse::Model::Operation.new.tap do |o|
@@ -480,6 +536,7 @@ module Aws::BackupGateway
480
536
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
481
537
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
482
538
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
539
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
483
540
  end)
484
541
 
485
542
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
@@ -491,6 +548,7 @@ module Aws::BackupGateway
491
548
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
492
549
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
493
550
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
551
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
494
552
  end)
495
553
 
496
554
  api.add_operation(:update_gateway_information, Seahorse::Model::Operation.new.tap do |o|
@@ -503,6 +561,7 @@ module Aws::BackupGateway
503
561
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
504
562
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
505
563
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
564
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
506
565
  end)
507
566
 
508
567
  api.add_operation(:update_gateway_software_now, Seahorse::Model::Operation.new.tap do |o|
@@ -514,6 +573,7 @@ module Aws::BackupGateway
514
573
  o.errors << Shapes::ShapeRef.new(shape: ValidationException)
515
574
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
516
575
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
576
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
517
577
  end)
518
578
 
519
579
  api.add_operation(:update_hypervisor, Seahorse::Model::Operation.new.tap do |o|
@@ -526,6 +586,7 @@ module Aws::BackupGateway
526
586
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
527
587
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
528
588
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
589
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
529
590
  end)
530
591
  end
531
592
 
@@ -31,6 +31,7 @@ module Aws::BackupGateway
31
31
  # * {ConflictException}
32
32
  # * {InternalServerException}
33
33
  # * {ResourceNotFoundException}
34
+ # * {ThrottlingException}
34
35
  # * {ValidationException}
35
36
  #
36
37
  # Additionally, error classes are dynamically generated for service errors based on the error code
@@ -119,6 +120,26 @@ module Aws::BackupGateway
119
120
  end
120
121
  end
121
122
 
123
+ class ThrottlingException < ServiceError
124
+
125
+ # @param [Seahorse::Client::RequestContext] context
126
+ # @param [String] message
127
+ # @param [Aws::BackupGateway::Types::ThrottlingException] data
128
+ def initialize(context, message, data = Aws::EmptyStructure.new)
129
+ super(context, message, data)
130
+ end
131
+
132
+ # @return [String]
133
+ def error_code
134
+ @data[:error_code]
135
+ end
136
+
137
+ # @return [String]
138
+ def message
139
+ @message || @data[:message]
140
+ end
141
+ end
142
+
122
143
  class ValidationException < ServiceError
123
144
 
124
145
  # @param [Seahorse::Client::RequestContext] context
@@ -299,6 +299,12 @@ module Aws::BackupGateway
299
299
  # cloud, in Unix format and UTC time.
300
300
  # @return [Time]
301
301
  #
302
+ # @!attribute [rw] maintenance_start_time
303
+ # Returns your gateway's weekly maintenance start time including the
304
+ # day and time of the week. Note that values are in terms of the
305
+ # gateway's time zone. Can be weekly or monthly.
306
+ # @return [Types::MaintenanceStartTime]
307
+ #
302
308
  # @!attribute [rw] next_update_availability_time
303
309
  # Details showing the next update availability time of the gateway.
304
310
  # @return [Time]
@@ -316,6 +322,7 @@ module Aws::BackupGateway
316
322
  :gateway_type,
317
323
  :hypervisor_id,
318
324
  :last_seen_time,
325
+ :maintenance_start_time,
319
326
  :next_update_availability_time,
320
327
  :vpc_endpoint)
321
328
  SENSITIVE = []
@@ -354,6 +361,38 @@ module Aws::BackupGateway
354
361
  include Aws::Structure
355
362
  end
356
363
 
364
+ # @note When making an API call, you may pass GetVirtualMachineInput
365
+ # data as a hash:
366
+ #
367
+ # {
368
+ # resource_arn: "ResourceArn", # required
369
+ # }
370
+ #
371
+ # @!attribute [rw] resource_arn
372
+ # The Amazon Resource Name (ARN) of the virtual machine.
373
+ # @return [String]
374
+ #
375
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachineInput AWS API Documentation
376
+ #
377
+ class GetVirtualMachineInput < Struct.new(
378
+ :resource_arn)
379
+ SENSITIVE = []
380
+ include Aws::Structure
381
+ end
382
+
383
+ # @!attribute [rw] virtual_machine
384
+ # This object contains the basic attributes of `VirtualMachine`
385
+ # contained by the output of `GetVirtualMachine`
386
+ # @return [Types::VirtualMachineDetails]
387
+ #
388
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachineOutput AWS API Documentation
389
+ #
390
+ class GetVirtualMachineOutput < Struct.new(
391
+ :virtual_machine)
392
+ SENSITIVE = []
393
+ include Aws::Structure
394
+ end
395
+
357
396
  # Represents the hypervisor's permissions to which the gateway will
358
397
  # connect.
359
398
  #
@@ -618,10 +657,16 @@ module Aws::BackupGateway
618
657
  # data as a hash:
619
658
  #
620
659
  # {
660
+ # hypervisor_arn: "ServerArn",
621
661
  # max_results: 1,
622
662
  # next_token: "NextToken",
623
663
  # }
624
664
  #
665
+ # @!attribute [rw] hypervisor_arn
666
+ # The Amazon Resource Name (ARN) of the hypervisor connected to your
667
+ # virtual machine.
668
+ # @return [String]
669
+ #
625
670
  # @!attribute [rw] max_results
626
671
  # The maximum number of virtual machines to list.
627
672
  # @return [Integer]
@@ -636,6 +681,7 @@ module Aws::BackupGateway
636
681
  # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ListVirtualMachinesInput AWS API Documentation
637
682
  #
638
683
  class ListVirtualMachinesInput < Struct.new(
684
+ :hypervisor_arn,
639
685
  :max_results,
640
686
  :next_token)
641
687
  SENSITIVE = []
@@ -663,6 +709,46 @@ module Aws::BackupGateway
663
709
  include Aws::Structure
664
710
  end
665
711
 
712
+ # This is your gateway's weekly maintenance start time including the
713
+ # day and time of the week. Note that values are in terms of the
714
+ # gateway's time zone. Can be weekly or monthly.
715
+ #
716
+ # @!attribute [rw] day_of_month
717
+ # The day of the month component of the maintenance start time
718
+ # represented as an ordinal number from 1 to 28, where 1 represents
719
+ # the first day of the month and 28 represents the last day of the
720
+ # month.
721
+ # @return [Integer]
722
+ #
723
+ # @!attribute [rw] day_of_week
724
+ # An ordinal number between 0 and 6 that represents the day of the
725
+ # week, where 0 represents Sunday and 6 represents Saturday. The day
726
+ # of week is in the time zone of the gateway.
727
+ # @return [Integer]
728
+ #
729
+ # @!attribute [rw] hour_of_day
730
+ # The hour component of the maintenance start time represented as
731
+ # *hh*, where *hh* is the hour (0 to 23). The hour of the day is in
732
+ # the time zone of the gateway.
733
+ # @return [Integer]
734
+ #
735
+ # @!attribute [rw] minute_of_hour
736
+ # The minute component of the maintenance start time represented as
737
+ # *mm*, where *mm* is the minute (0 to 59). The minute of the hour is
738
+ # in the time zone of the gateway.
739
+ # @return [Integer]
740
+ #
741
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/MaintenanceStartTime AWS API Documentation
742
+ #
743
+ class MaintenanceStartTime < Struct.new(
744
+ :day_of_month,
745
+ :day_of_week,
746
+ :hour_of_day,
747
+ :minute_of_hour)
748
+ SENSITIVE = []
749
+ include Aws::Structure
750
+ end
751
+
666
752
  # @note When making an API call, you may pass PutMaintenanceStartTimeInput
667
753
  # data as a hash:
668
754
  #
@@ -855,6 +941,26 @@ module Aws::BackupGateway
855
941
  #
856
942
  class TestHypervisorConfigurationOutput < Aws::EmptyStructure; end
857
943
 
944
+ # TPS has been limited to protect against intentional or unintentional
945
+ # high request volumes.
946
+ #
947
+ # @!attribute [rw] error_code
948
+ # Error: TPS has been limited to protect against intentional or
949
+ # unintentional high request volumes.
950
+ # @return [String]
951
+ #
952
+ # @!attribute [rw] message
953
+ # @return [String]
954
+ #
955
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/ThrottlingException AWS API Documentation
956
+ #
957
+ class ThrottlingException < Struct.new(
958
+ :error_code,
959
+ :message)
960
+ SENSITIVE = []
961
+ include Aws::Structure
962
+ end
963
+
858
964
  # @note When making an API call, you may pass UntagResourceInput
859
965
  # data as a hash:
860
966
  #
@@ -1077,5 +1183,47 @@ module Aws::BackupGateway
1077
1183
  include Aws::Structure
1078
1184
  end
1079
1185
 
1186
+ # Your `VirtualMachine` objects, ordered by their Amazon Resource Names
1187
+ # (ARNs).
1188
+ #
1189
+ # @!attribute [rw] host_name
1190
+ # The host name of the virtual machine.
1191
+ # @return [String]
1192
+ #
1193
+ # @!attribute [rw] hypervisor_id
1194
+ # The ID of the virtual machine's hypervisor.
1195
+ # @return [String]
1196
+ #
1197
+ # @!attribute [rw] last_backup_date
1198
+ # The most recent date a virtual machine was backed up, in Unix format
1199
+ # and UTC time.
1200
+ # @return [Time]
1201
+ #
1202
+ # @!attribute [rw] name
1203
+ # The name of the virtual machine.
1204
+ # @return [String]
1205
+ #
1206
+ # @!attribute [rw] path
1207
+ # The path of the virtual machine.
1208
+ # @return [String]
1209
+ #
1210
+ # @!attribute [rw] resource_arn
1211
+ # The Amazon Resource Name (ARN) of the virtual machine. For example,
1212
+ # `arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL`.
1213
+ # @return [String]
1214
+ #
1215
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/VirtualMachineDetails AWS API Documentation
1216
+ #
1217
+ class VirtualMachineDetails < Struct.new(
1218
+ :host_name,
1219
+ :hypervisor_id,
1220
+ :last_backup_date,
1221
+ :name,
1222
+ :path,
1223
+ :resource_arn)
1224
+ SENSITIVE = []
1225
+ include Aws::Structure
1226
+ end
1227
+
1080
1228
  end
1081
1229
  end
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-backupgateway/customizations'
48
48
  # @!group service
49
49
  module Aws::BackupGateway
50
50
 
51
- GEM_VERSION = '1.4.0'
51
+ GEM_VERSION = '1.5.0'
52
52
 
53
53
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-backupgateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.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-06-01 00:00:00.000000000 Z
11
+ date: 2022-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core