aws-sdk-backupgateway 1.4.0 → 1.6.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: 4548692649dce5d39795d0c797a57277c8b0e06a880ee7d97f8ce3d7ff70e3f5
4
+ data.tar.gz: 37f59952781c11abaf31913ee5e85f18a16e3f07c1d7c8cdf57f78cb6fec11d4
5
5
  SHA512:
6
- metadata.gz: f19188617e218d484c2eadaf917827e8520fb3e925f518bc15fe1788dad1b6aa0d43a04484c3ac04b3541fef70708bb05a6f8651ba3926377b751e1db567aed0
7
- data.tar.gz: f004dfdfcbdf3e0b0692392983191ab8b6035a9737ce7b57aef663918d9f67cf12c9bf198bc15f9dbeaecef28eccca3e70b443e2370087865b0c05c02602e66c
6
+ metadata.gz: a5a5b7ff01e9cd2930d040dcbd9fa7a5990984a025ab3d65d75450d9866acd8e976ebcb4d210c06a8a4a6d0631d6b63764b4011546a4a3fe071762c1551a9751
7
+ data.tar.gz: 6c28adf17a6fd10ce350f85bbe348f9f48dbcc7ce2e9451f6a118d5cb31bfb17ef784f2a200647129aab0825a4c83c36c7f06ae1a6045b48dfdca547bb74bfb4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.6.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.5.0 (2022-09-22)
10
+ ------------------
11
+
12
+ * 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.
13
+
4
14
  1.4.0 (2022-06-01)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.6.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:backupgateway)
@@ -79,8 +79,9 @@ module Aws::BackupGateway
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
84
+ add_plugin(Aws::BackupGateway::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -297,6 +298,19 @@ module Aws::BackupGateway
297
298
  # ** Please note ** When response stubbing is enabled, no HTTP
298
299
  # requests are made, and retries are disabled.
299
300
  #
301
+ # @option options [Aws::TokenProvider] :token_provider
302
+ # A Bearer Token Provider. This can be an instance of any one of the
303
+ # following classes:
304
+ #
305
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
306
+ # tokens.
307
+ #
308
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
309
+ # access token generated from `aws login`.
310
+ #
311
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
312
+ # will be used to search for tokens configured for your profile in shared configuration files.
313
+ #
300
314
  # @option options [Boolean] :use_dualstack_endpoint
301
315
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
302
316
  # will be used if available.
@@ -310,6 +324,9 @@ module Aws::BackupGateway
310
324
  # When `true`, request parameters are validated before
311
325
  # sending the request.
312
326
  #
327
+ # @option options [Aws::BackupGateway::EndpointProvider] :endpoint_provider
328
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::BackupGateway::EndpointParameters`
329
+ #
313
330
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
314
331
  # requests through. Formatted like 'http://proxy.com:123'.
315
332
  #
@@ -555,6 +572,10 @@ module Aws::BackupGateway
555
572
  # resp.gateway.gateway_type #=> String, one of "BACKUP_VM"
556
573
  # resp.gateway.hypervisor_id #=> String
557
574
  # resp.gateway.last_seen_time #=> Time
575
+ # resp.gateway.maintenance_start_time.day_of_month #=> Integer
576
+ # resp.gateway.maintenance_start_time.day_of_week #=> Integer
577
+ # resp.gateway.maintenance_start_time.hour_of_day #=> Integer
578
+ # resp.gateway.maintenance_start_time.minute_of_hour #=> Integer
558
579
  # resp.gateway.next_update_availability_time #=> Time
559
580
  # resp.gateway.vpc_endpoint #=> String
560
581
  #
@@ -567,6 +588,40 @@ module Aws::BackupGateway
567
588
  req.send_request(options)
568
589
  end
569
590
 
591
+ # By providing the ARN (Amazon Resource Name), this API returns the
592
+ # virtual machine.
593
+ #
594
+ # @option params [required, String] :resource_arn
595
+ # The Amazon Resource Name (ARN) of the virtual machine.
596
+ #
597
+ # @return [Types::GetVirtualMachineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
598
+ #
599
+ # * {Types::GetVirtualMachineOutput#virtual_machine #virtual_machine} => Types::VirtualMachineDetails
600
+ #
601
+ # @example Request syntax with placeholder values
602
+ #
603
+ # resp = client.get_virtual_machine({
604
+ # resource_arn: "ResourceArn", # required
605
+ # })
606
+ #
607
+ # @example Response structure
608
+ #
609
+ # resp.virtual_machine.host_name #=> String
610
+ # resp.virtual_machine.hypervisor_id #=> String
611
+ # resp.virtual_machine.last_backup_date #=> Time
612
+ # resp.virtual_machine.name #=> String
613
+ # resp.virtual_machine.path #=> String
614
+ # resp.virtual_machine.resource_arn #=> String
615
+ #
616
+ # @see http://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/GetVirtualMachine AWS API Documentation
617
+ #
618
+ # @overload get_virtual_machine(params = {})
619
+ # @param [Hash] params ({})
620
+ def get_virtual_machine(params = {}, options = {})
621
+ req = build_request(:get_virtual_machine, params)
622
+ req.send_request(options)
623
+ end
624
+
570
625
  # Connect to a hypervisor by importing its configuration.
571
626
  #
572
627
  # @option params [required, String] :host
@@ -746,6 +801,10 @@ module Aws::BackupGateway
746
801
 
747
802
  # Lists your virtual machines.
748
803
  #
804
+ # @option params [String] :hypervisor_arn
805
+ # The Amazon Resource Name (ARN) of the hypervisor connected to your
806
+ # virtual machine.
807
+ #
749
808
  # @option params [Integer] :max_results
750
809
  # The maximum number of virtual machines to list.
751
810
  #
@@ -765,6 +824,7 @@ module Aws::BackupGateway
765
824
  # @example Request syntax with placeholder values
766
825
  #
767
826
  # resp = client.list_virtual_machines({
827
+ # hypervisor_arn: "ServerArn",
768
828
  # max_results: 1,
769
829
  # next_token: "NextToken",
770
830
  # })
@@ -1071,7 +1131,7 @@ module Aws::BackupGateway
1071
1131
  params: params,
1072
1132
  config: config)
1073
1133
  context[:gem_name] = 'aws-sdk-backupgateway'
1074
- context[:gem_version] = '1.4.0'
1134
+ context[:gem_version] = '1.6.0'
1075
1135
  Seahorse::Client::Request.new(handlers, context)
1076
1136
  end
1077
1137
 
@@ -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
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::BackupGateway
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::BackupGateway
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOmZhbHNlLCJkb2N1bWVu
33
+ dGF0aW9uIjoiVGhlIEFXUyByZWdpb24gdXNlZCB0byBkaXNwYXRjaCB0aGUg
34
+ cmVxdWVzdC4iLCJ0eXBlIjoiU3RyaW5nIn0sIlVzZUR1YWxTdGFjayI6eyJi
35
+ dWlsdEluIjoiQVdTOjpVc2VEdWFsU3RhY2siLCJyZXF1aXJlZCI6dHJ1ZSwi
36
+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nt9LCJoZWFk
102
+ ZXJzIjp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX0seyJjb25kaXRpb25zIjpb
103
+ XSwiZXJyb3IiOiJEdWFsU3RhY2sgaXMgZW5hYmxlZCBidXQgdGhpcyBwYXJ0
104
+ aXRpb24gZG9lcyBub3Qgc3VwcG9ydCBEdWFsU3RhY2siLCJ0eXBlIjoiZXJy
105
+ b3IifV19LHsiY29uZGl0aW9ucyI6W10sImVuZHBvaW50Ijp7InVybCI6Imh0
106
+ dHBzOi8vYmFja3VwLWdhdGV3YXkue1JlZ2lvbn0ue1BhcnRpdGlvblJlc3Vs
107
+ dCNkbnNTdWZmaXh9IiwicHJvcGVydGllcyI6e30sImhlYWRlcnMiOnt9fSwi
108
+ dHlwZSI6ImVuZHBvaW50In1dfV19
109
+
110
+ JSON
111
+ end
112
+ end
@@ -0,0 +1,281 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::BackupGateway
12
+ module Endpoints
13
+
14
+ class AssociateGatewayToServer
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::BackupGateway::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class CreateGateway
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::BackupGateway::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class DeleteGateway
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::BackupGateway::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class DeleteHypervisor
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::BackupGateway::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class DisassociateGatewayFromServer
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::BackupGateway::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class GetGateway
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::BackupGateway::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class GetVirtualMachine
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::BackupGateway::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ImportHypervisorConfiguration
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::BackupGateway::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
+
126
+ class ListGateways
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::BackupGateway::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class ListHypervisors
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::BackupGateway::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class ListTagsForResource
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::BackupGateway::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class ListVirtualMachines
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::BackupGateway::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class PutMaintenanceStartTime
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::BackupGateway::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class TagResource
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::BackupGateway::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ class TestHypervisorConfiguration
211
+ def self.build(context)
212
+ unless context.config.regional_endpoint
213
+ endpoint = context.config.endpoint.to_s
214
+ end
215
+ Aws::BackupGateway::EndpointParameters.new(
216
+ region: context.config.region,
217
+ use_dual_stack: context.config.use_dualstack_endpoint,
218
+ use_fips: context.config.use_fips_endpoint,
219
+ endpoint: endpoint,
220
+ )
221
+ end
222
+ end
223
+
224
+ class UntagResource
225
+ def self.build(context)
226
+ unless context.config.regional_endpoint
227
+ endpoint = context.config.endpoint.to_s
228
+ end
229
+ Aws::BackupGateway::EndpointParameters.new(
230
+ region: context.config.region,
231
+ use_dual_stack: context.config.use_dualstack_endpoint,
232
+ use_fips: context.config.use_fips_endpoint,
233
+ endpoint: endpoint,
234
+ )
235
+ end
236
+ end
237
+
238
+ class UpdateGatewayInformation
239
+ def self.build(context)
240
+ unless context.config.regional_endpoint
241
+ endpoint = context.config.endpoint.to_s
242
+ end
243
+ Aws::BackupGateway::EndpointParameters.new(
244
+ region: context.config.region,
245
+ use_dual_stack: context.config.use_dualstack_endpoint,
246
+ use_fips: context.config.use_fips_endpoint,
247
+ endpoint: endpoint,
248
+ )
249
+ end
250
+ end
251
+
252
+ class UpdateGatewaySoftwareNow
253
+ def self.build(context)
254
+ unless context.config.regional_endpoint
255
+ endpoint = context.config.endpoint.to_s
256
+ end
257
+ Aws::BackupGateway::EndpointParameters.new(
258
+ region: context.config.region,
259
+ use_dual_stack: context.config.use_dualstack_endpoint,
260
+ use_fips: context.config.use_fips_endpoint,
261
+ endpoint: endpoint,
262
+ )
263
+ end
264
+ end
265
+
266
+ class UpdateHypervisor
267
+ def self.build(context)
268
+ unless context.config.regional_endpoint
269
+ endpoint = context.config.endpoint.to_s
270
+ end
271
+ Aws::BackupGateway::EndpointParameters.new(
272
+ region: context.config.region,
273
+ use_dual_stack: context.config.use_dualstack_endpoint,
274
+ use_fips: context.config.use_fips_endpoint,
275
+ endpoint: endpoint,
276
+ )
277
+ end
278
+ end
279
+
280
+ end
281
+ end
@@ -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
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::BackupGateway
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::BackupGateway::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::BackupGateway::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::BackupGateway::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_gateway_to_server
60
+ Aws::BackupGateway::Endpoints::AssociateGatewayToServer.build(context)
61
+ when :create_gateway
62
+ Aws::BackupGateway::Endpoints::CreateGateway.build(context)
63
+ when :delete_gateway
64
+ Aws::BackupGateway::Endpoints::DeleteGateway.build(context)
65
+ when :delete_hypervisor
66
+ Aws::BackupGateway::Endpoints::DeleteHypervisor.build(context)
67
+ when :disassociate_gateway_from_server
68
+ Aws::BackupGateway::Endpoints::DisassociateGatewayFromServer.build(context)
69
+ when :get_gateway
70
+ Aws::BackupGateway::Endpoints::GetGateway.build(context)
71
+ when :get_virtual_machine
72
+ Aws::BackupGateway::Endpoints::GetVirtualMachine.build(context)
73
+ when :import_hypervisor_configuration
74
+ Aws::BackupGateway::Endpoints::ImportHypervisorConfiguration.build(context)
75
+ when :list_gateways
76
+ Aws::BackupGateway::Endpoints::ListGateways.build(context)
77
+ when :list_hypervisors
78
+ Aws::BackupGateway::Endpoints::ListHypervisors.build(context)
79
+ when :list_tags_for_resource
80
+ Aws::BackupGateway::Endpoints::ListTagsForResource.build(context)
81
+ when :list_virtual_machines
82
+ Aws::BackupGateway::Endpoints::ListVirtualMachines.build(context)
83
+ when :put_maintenance_start_time
84
+ Aws::BackupGateway::Endpoints::PutMaintenanceStartTime.build(context)
85
+ when :tag_resource
86
+ Aws::BackupGateway::Endpoints::TagResource.build(context)
87
+ when :test_hypervisor_configuration
88
+ Aws::BackupGateway::Endpoints::TestHypervisorConfiguration.build(context)
89
+ when :untag_resource
90
+ Aws::BackupGateway::Endpoints::UntagResource.build(context)
91
+ when :update_gateway_information
92
+ Aws::BackupGateway::Endpoints::UpdateGatewayInformation.build(context)
93
+ when :update_gateway_software_now
94
+ Aws::BackupGateway::Endpoints::UpdateGatewaySoftwareNow.build(context)
95
+ when :update_hypervisor
96
+ Aws::BackupGateway::Endpoints::UpdateHypervisor.build(context)
97
+ end
98
+ end
99
+ end
100
+
101
+ def add_handlers(handlers, _config)
102
+ handlers.add(Handler, step: :build, priority: 75)
103
+ end
104
+ end
105
+ end
106
+ end
@@ -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
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-backupgateway/types'
15
15
  require_relative 'aws-sdk-backupgateway/client_api'
16
+ require_relative 'aws-sdk-backupgateway/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-backupgateway/client'
17
18
  require_relative 'aws-sdk-backupgateway/errors'
18
19
  require_relative 'aws-sdk-backupgateway/resource'
20
+ require_relative 'aws-sdk-backupgateway/endpoint_parameters'
21
+ require_relative 'aws-sdk-backupgateway/endpoint_provider'
22
+ require_relative 'aws-sdk-backupgateway/endpoints'
19
23
  require_relative 'aws-sdk-backupgateway/customizations'
20
24
 
21
25
  # This module provides support for AWS Backup Gateway. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-backupgateway/customizations'
48
52
  # @!group service
49
53
  module Aws::BackupGateway
50
54
 
51
- GEM_VERSION = '1.4.0'
55
+ GEM_VERSION = '1.6.0'
52
56
 
53
57
  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.6.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-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-backupgateway/client.rb
60
60
  - lib/aws-sdk-backupgateway/client_api.rb
61
61
  - lib/aws-sdk-backupgateway/customizations.rb
62
+ - lib/aws-sdk-backupgateway/endpoint_parameters.rb
63
+ - lib/aws-sdk-backupgateway/endpoint_provider.rb
64
+ - lib/aws-sdk-backupgateway/endpoints.rb
62
65
  - lib/aws-sdk-backupgateway/errors.rb
66
+ - lib/aws-sdk-backupgateway/plugins/endpoints.rb
63
67
  - lib/aws-sdk-backupgateway/resource.rb
64
68
  - lib/aws-sdk-backupgateway/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby