aws-sdk-rds 1.179.0 → 1.180.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-rds/account_quota.rb +3 -1
  5. data/lib/aws-sdk-rds/certificate.rb +6 -2
  6. data/lib/aws-sdk-rds/client.rb +58 -7
  7. data/lib/aws-sdk-rds/client_api.rb +2 -0
  8. data/lib/aws-sdk-rds/db_cluster.rb +40 -10
  9. data/lib/aws-sdk-rds/db_cluster_parameter_group.rb +18 -6
  10. data/lib/aws-sdk-rds/db_cluster_snapshot.rb +21 -7
  11. data/lib/aws-sdk-rds/db_engine.rb +12 -4
  12. data/lib/aws-sdk-rds/db_engine_version.rb +12 -4
  13. data/lib/aws-sdk-rds/db_instance.rb +76 -16
  14. data/lib/aws-sdk-rds/db_log_file.rb +6 -2
  15. data/lib/aws-sdk-rds/db_parameter_group.rb +33 -11
  16. data/lib/aws-sdk-rds/db_parameter_group_family.rb +9 -3
  17. data/lib/aws-sdk-rds/db_security_group.rb +27 -9
  18. data/lib/aws-sdk-rds/db_snapshot.rb +30 -10
  19. data/lib/aws-sdk-rds/db_snapshot_attribute.rb +6 -2
  20. data/lib/aws-sdk-rds/db_subnet_group.rb +15 -5
  21. data/lib/aws-sdk-rds/event.rb +3 -1
  22. data/lib/aws-sdk-rds/event_category_map.rb +6 -2
  23. data/lib/aws-sdk-rds/event_subscription.rb +21 -7
  24. data/lib/aws-sdk-rds/option_group.rb +18 -6
  25. data/lib/aws-sdk-rds/option_group_option.rb +3 -1
  26. data/lib/aws-sdk-rds/parameter.rb +3 -1
  27. data/lib/aws-sdk-rds/pending_maintenance_action.rb +12 -4
  28. data/lib/aws-sdk-rds/reserved_db_instance.rb +6 -2
  29. data/lib/aws-sdk-rds/reserved_db_instances_offering.rb +9 -3
  30. data/lib/aws-sdk-rds/resource.rb +85 -25
  31. data/lib/aws-sdk-rds/resource_pending_maintenance_action_list.rb +3 -1
  32. data/lib/aws-sdk-rds/types.rb +48 -8
  33. data/lib/aws-sdk-rds.rb +1 -1
  34. metadata +4 -4
@@ -792,7 +792,9 @@ module Aws::RDS
792
792
  #
793
793
  # @return [self]
794
794
  def load
795
- resp = @client.describe_db_instances(db_instance_identifier: @id)
795
+ resp = Aws::Plugins::UserAgent.feature('resource') do
796
+ @client.describe_db_instances(db_instance_identifier: @id)
797
+ end
796
798
  @data = resp.db_instances[0]
797
799
  self
798
800
  end
@@ -907,7 +909,9 @@ module Aws::RDS
907
909
  :retry
908
910
  end
909
911
  end
910
- Aws::Waiters::Waiter.new(options).wait({})
912
+ Aws::Plugins::UserAgent.feature('resource') do
913
+ Aws::Waiters::Waiter.new(options).wait({})
914
+ end
911
915
  end
912
916
 
913
917
  # @!group Actions
@@ -2080,7 +2084,9 @@ module Aws::RDS
2080
2084
  # @return [DBInstance]
2081
2085
  def create(options = {})
2082
2086
  options = options.merge(db_instance_identifier: @id)
2083
- resp = @client.create_db_instance(options)
2087
+ resp = Aws::Plugins::UserAgent.feature('resource') do
2088
+ @client.create_db_instance(options)
2089
+ end
2084
2090
  DBInstance.new(
2085
2091
  id: resp.data.db_instance.db_instance_identifier,
2086
2092
  data: resp.data.db_instance,
@@ -2657,7 +2663,9 @@ module Aws::RDS
2657
2663
  # @return [DBInstance]
2658
2664
  def create_read_replica(options = {})
2659
2665
  options = options.merge(source_db_instance_identifier: @id)
2660
- resp = @client.create_db_instance_read_replica(options)
2666
+ resp = Aws::Plugins::UserAgent.feature('resource') do
2667
+ @client.create_db_instance_read_replica(options)
2668
+ end
2661
2669
  DBInstance.new(
2662
2670
  id: resp.data.db_instance.db_instance_identifier,
2663
2671
  data: resp.data.db_instance,
@@ -2701,7 +2709,9 @@ module Aws::RDS
2701
2709
  # @return [DBSnapshot]
2702
2710
  def create_snapshot(options = {})
2703
2711
  options = options.merge(db_instance_identifier: @id)
2704
- resp = @client.create_db_snapshot(options)
2712
+ resp = Aws::Plugins::UserAgent.feature('resource') do
2713
+ @client.create_db_snapshot(options)
2714
+ end
2705
2715
  DBSnapshot.new(
2706
2716
  instance_id: resp.data.db_snapshot.db_instance_identifier,
2707
2717
  snapshot_id: resp.data.db_snapshot.db_snapshot_identifier,
@@ -2767,7 +2777,9 @@ module Aws::RDS
2767
2777
  # @return [DBInstance]
2768
2778
  def delete(options = {})
2769
2779
  options = options.merge(db_instance_identifier: @id)
2770
- resp = @client.delete_db_instance(options)
2780
+ resp = Aws::Plugins::UserAgent.feature('resource') do
2781
+ @client.delete_db_instance(options)
2782
+ end
2771
2783
  DBInstance.new(
2772
2784
  id: resp.data.db_instance.db_instance_identifier,
2773
2785
  data: resp.data.db_instance,
@@ -2837,6 +2849,7 @@ module Aws::RDS
2837
2849
  # manage_master_user_password: false,
2838
2850
  # rotate_master_user_password: false,
2839
2851
  # master_user_secret_kms_key_id: "String",
2852
+ # engine: "String",
2840
2853
  # })
2841
2854
  # @param [Hash] options ({})
2842
2855
  # @option options [Integer] :allocated_storage
@@ -3711,10 +3724,39 @@ module Aws::RDS
3711
3724
  # There is a default KMS key for your Amazon Web Services account. Your
3712
3725
  # Amazon Web Services account has a different default KMS key for each
3713
3726
  # Amazon Web Services Region.
3727
+ # @option options [String] :engine
3728
+ # The target Oracle DB engine when you convert a non-CDB to a CDB. This
3729
+ # intermediate step is necessary to upgrade an Oracle Database 19c
3730
+ # non-CDB to an Oracle Database 21c CDB.
3731
+ #
3732
+ # Note the following requirements:
3733
+ #
3734
+ # * Make sure that you specify `oracle-ee-cdb` or `oracle-se2-cdb`.
3735
+ #
3736
+ # * Make sure that your DB engine runs Oracle Database 19c with an April
3737
+ # 2021 or later RU.
3738
+ #
3739
+ # Note the following limitations:
3740
+ #
3741
+ # * You can't convert a CDB to a non-CDB.
3742
+ #
3743
+ # * You can't convert a replica database.
3744
+ #
3745
+ # * You can't convert a non-CDB to a CDB and upgrade the engine version
3746
+ # in the same command.
3747
+ #
3748
+ # * You can't convert the existing custom parameter or option group
3749
+ # when it has options or parameters that are permanent or persistent.
3750
+ # In this situation, the DB instance reverts to the default option and
3751
+ # parameter group. To avoid reverting to the default, specify a new
3752
+ # parameter group with `--db-parameter-group-name` and a new option
3753
+ # group with `--option-group-name`.
3714
3754
  # @return [DBInstance]
3715
3755
  def modify(options = {})
3716
3756
  options = options.merge(db_instance_identifier: @id)
3717
- resp = @client.modify_db_instance(options)
3757
+ resp = Aws::Plugins::UserAgent.feature('resource') do
3758
+ @client.modify_db_instance(options)
3759
+ end
3718
3760
  DBInstance.new(
3719
3761
  id: resp.data.db_instance.db_instance_identifier,
3720
3762
  data: resp.data.db_instance,
@@ -3767,7 +3809,9 @@ module Aws::RDS
3767
3809
  # @return [DBInstance]
3768
3810
  def promote(options = {})
3769
3811
  options = options.merge(db_instance_identifier: @id)
3770
- resp = @client.promote_read_replica(options)
3812
+ resp = Aws::Plugins::UserAgent.feature('resource') do
3813
+ @client.promote_read_replica(options)
3814
+ end
3771
3815
  DBInstance.new(
3772
3816
  id: resp.data.db_instance.db_instance_identifier,
3773
3817
  data: resp.data.db_instance,
@@ -3790,7 +3834,9 @@ module Aws::RDS
3790
3834
  # @return [DBInstance]
3791
3835
  def reboot(options = {})
3792
3836
  options = options.merge(db_instance_identifier: @id)
3793
- resp = @client.reboot_db_instance(options)
3837
+ resp = Aws::Plugins::UserAgent.feature('resource') do
3838
+ @client.reboot_db_instance(options)
3839
+ end
3794
3840
  DBInstance.new(
3795
3841
  id: resp.data.db_instance.db_instance_identifier,
3796
3842
  data: resp.data.db_instance,
@@ -4238,7 +4284,9 @@ module Aws::RDS
4238
4284
  # @return [DBInstance]
4239
4285
  def restore(options = {})
4240
4286
  options = options.merge(source_db_instance_identifier: @id)
4241
- resp = @client.restore_db_instance_to_point_in_time(options)
4287
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4288
+ @client.restore_db_instance_to_point_in_time(options)
4289
+ end
4242
4290
  DBInstance.new(
4243
4291
  id: resp.data.db_instance.db_instance_identifier,
4244
4292
  data: resp.data.db_instance,
@@ -4258,7 +4306,9 @@ module Aws::RDS
4258
4306
  # @return [EventSubscription]
4259
4307
  def subscribe_to(options = {})
4260
4308
  options = options.merge(source_identifier: @id)
4261
- resp = @client.add_source_identifier_to_subscription(options)
4309
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4310
+ @client.add_source_identifier_to_subscription(options)
4311
+ end
4262
4312
  EventSubscription.new(
4263
4313
  name: resp.data.event_subscription.cust_subscription_id,
4264
4314
  data: resp.data.event_subscription,
@@ -4278,7 +4328,9 @@ module Aws::RDS
4278
4328
  # @return [EventSubscription]
4279
4329
  def unsubscribe_from(options = {})
4280
4330
  options = options.merge(source_identifier: @id)
4281
- resp = @client.remove_source_identifier_from_subscription(options)
4331
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4332
+ @client.remove_source_identifier_from_subscription(options)
4333
+ end
4282
4334
  EventSubscription.new(
4283
4335
  name: resp.data.event_subscription.cust_subscription_id,
4284
4336
  data: resp.data.event_subscription,
@@ -4363,7 +4415,9 @@ module Aws::RDS
4363
4415
  source_type: "db-instance",
4364
4416
  source_identifier: @id
4365
4417
  )
4366
- resp = @client.describe_events(options)
4418
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4419
+ @client.describe_events(options)
4420
+ end
4367
4421
  resp.each_page do |page|
4368
4422
  batch = []
4369
4423
  page.data.events.each do |e|
@@ -4409,7 +4463,9 @@ module Aws::RDS
4409
4463
  def log_files(options = {})
4410
4464
  batches = Enumerator.new do |y|
4411
4465
  options = options.merge(db_instance_identifier: @id)
4412
- resp = @client.describe_db_log_files(options)
4466
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4467
+ @client.describe_db_log_files(options)
4468
+ end
4413
4469
  resp.each_page do |page|
4414
4470
  batch = []
4415
4471
  page.data.describe_db_log_files.each do |d|
@@ -4484,7 +4540,9 @@ module Aws::RDS
4484
4540
  name: "db-instance-id",
4485
4541
  values: [@id]
4486
4542
  }])
4487
- resp = @client.describe_pending_maintenance_actions(options)
4543
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4544
+ @client.describe_pending_maintenance_actions(options)
4545
+ end
4488
4546
  resp.each_page do |page|
4489
4547
  batch = []
4490
4548
  page.data.pending_maintenance_actions_0.pending_maintenance_action_details.each do |p|
@@ -4631,7 +4689,9 @@ module Aws::RDS
4631
4689
  def snapshots(options = {})
4632
4690
  batches = Enumerator.new do |y|
4633
4691
  options = options.merge(db_instance_identifier: @id)
4634
- resp = @client.describe_db_snapshots(options)
4692
+ resp = Aws::Plugins::UserAgent.feature('resource') do
4693
+ @client.describe_db_snapshots(options)
4694
+ end
4635
4695
  resp.each_page do |page|
4636
4696
  batch = []
4637
4697
  page.data.db_snapshots.each do |d|
@@ -179,7 +179,9 @@ module Aws::RDS
179
179
  :retry
180
180
  end
181
181
  end
182
- Aws::Waiters::Waiter.new(options).wait({})
182
+ Aws::Plugins::UserAgent.feature('resource') do
183
+ Aws::Waiters::Waiter.new(options).wait({})
184
+ end
183
185
  end
184
186
 
185
187
  # @!group Actions
@@ -226,7 +228,9 @@ module Aws::RDS
226
228
  db_instance_identifier: @instance_id,
227
229
  log_file_name: @name
228
230
  )
229
- resp = @client.download_db_log_file_portion(options)
231
+ resp = Aws::Plugins::UserAgent.feature('resource') do
232
+ @client.download_db_log_file_portion(options)
233
+ end
230
234
  resp.data
231
235
  end
232
236
 
@@ -69,7 +69,9 @@ module Aws::RDS
69
69
  #
70
70
  # @return [self]
71
71
  def load
72
- resp = @client.describe_db_parameter_groups(db_parameter_group_name: @name)
72
+ resp = Aws::Plugins::UserAgent.feature('resource') do
73
+ @client.describe_db_parameter_groups(db_parameter_group_name: @name)
74
+ end
73
75
  @data = resp.db_parameter_groups[0]
74
76
  self
75
77
  end
@@ -184,7 +186,9 @@ module Aws::RDS
184
186
  :retry
185
187
  end
186
188
  end
187
- Aws::Waiters::Waiter.new(options).wait({})
189
+ Aws::Plugins::UserAgent.feature('resource') do
190
+ Aws::Waiters::Waiter.new(options).wait({})
191
+ end
188
192
  end
189
193
 
190
194
  # @!group Actions
@@ -258,7 +262,9 @@ module Aws::RDS
258
262
  # @return [DBParameterGroup]
259
263
  def create(options = {})
260
264
  options = options.merge(db_parameter_group_name: @name)
261
- resp = @client.create_db_parameter_group(options)
265
+ resp = Aws::Plugins::UserAgent.feature('resource') do
266
+ @client.create_db_parameter_group(options)
267
+ end
262
268
  DBParameterGroup.new(
263
269
  name: resp.data.db_parameter_group.db_parameter_group_name,
264
270
  data: resp.data.db_parameter_group,
@@ -305,7 +311,9 @@ module Aws::RDS
305
311
  # @return [DBParameterGroup]
306
312
  def copy(options = {})
307
313
  options = options.merge(source_db_parameter_group_identifier: @name)
308
- resp = @client.copy_db_parameter_group(options)
314
+ resp = Aws::Plugins::UserAgent.feature('resource') do
315
+ @client.copy_db_parameter_group(options)
316
+ end
309
317
  DBParameterGroup.new(
310
318
  name: resp.data.db_parameter_group.db_parameter_group_name,
311
319
  data: resp.data.db_parameter_group,
@@ -320,7 +328,9 @@ module Aws::RDS
320
328
  # @return [EmptyStructure]
321
329
  def delete(options = {})
322
330
  options = options.merge(db_parameter_group_name: @name)
323
- resp = @client.delete_db_parameter_group(options)
331
+ resp = Aws::Plugins::UserAgent.feature('resource') do
332
+ @client.delete_db_parameter_group(options)
333
+ end
324
334
  resp.data
325
335
  end
326
336
 
@@ -379,7 +389,9 @@ module Aws::RDS
379
389
  # @return [DBParameterGroup]
380
390
  def modify(options = {})
381
391
  options = options.merge(db_parameter_group_name: @name)
382
- resp = @client.modify_db_parameter_group(options)
392
+ resp = Aws::Plugins::UserAgent.feature('resource') do
393
+ @client.modify_db_parameter_group(options)
394
+ end
383
395
  DBParameterGroup.new(
384
396
  name: resp.data.db_parameter_group_name,
385
397
  client: @client
@@ -440,7 +452,9 @@ module Aws::RDS
440
452
  # @return [DBParameterGroup]
441
453
  def reset(options = {})
442
454
  options = options.merge(db_parameter_group_name: @name)
443
- resp = @client.reset_db_parameter_group(options)
455
+ resp = Aws::Plugins::UserAgent.feature('resource') do
456
+ @client.reset_db_parameter_group(options)
457
+ end
444
458
  DBParameterGroup.new(
445
459
  name: resp.data.db_parameter_group_name,
446
460
  client: @client
@@ -459,7 +473,9 @@ module Aws::RDS
459
473
  # @return [EventSubscription]
460
474
  def subscribe_to(options = {})
461
475
  options = options.merge(source_identifier: @name)
462
- resp = @client.add_source_identifier_to_subscription(options)
476
+ resp = Aws::Plugins::UserAgent.feature('resource') do
477
+ @client.add_source_identifier_to_subscription(options)
478
+ end
463
479
  EventSubscription.new(
464
480
  name: resp.data.event_subscription.cust_subscription_id,
465
481
  data: resp.data.event_subscription,
@@ -479,7 +495,9 @@ module Aws::RDS
479
495
  # @return [EventSubscription]
480
496
  def unsubscribe_from(options = {})
481
497
  options = options.merge(source_identifier: @name)
482
- resp = @client.remove_source_identifier_from_subscription(options)
498
+ resp = Aws::Plugins::UserAgent.feature('resource') do
499
+ @client.remove_source_identifier_from_subscription(options)
500
+ end
483
501
  EventSubscription.new(
484
502
  name: resp.data.event_subscription.cust_subscription_id,
485
503
  data: resp.data.event_subscription,
@@ -540,7 +558,9 @@ module Aws::RDS
540
558
  source_type: "db-parameter-group",
541
559
  source_identifier: @name
542
560
  )
543
- resp = @client.describe_events(options)
561
+ resp = Aws::Plugins::UserAgent.feature('resource') do
562
+ @client.describe_events(options)
563
+ end
544
564
  resp.each_page do |page|
545
565
  batch = []
546
566
  page.data.events.each do |e|
@@ -581,7 +601,9 @@ module Aws::RDS
581
601
  def parameters(options = {})
582
602
  batches = Enumerator.new do |y|
583
603
  options = options.merge(db_parameter_group_name: @name)
584
- resp = @client.describe_db_parameters(options)
604
+ resp = Aws::Plugins::UserAgent.feature('resource') do
605
+ @client.describe_db_parameters(options)
606
+ end
585
607
  resp.each_page do |page|
586
608
  batch = []
587
609
  page.data.parameters.each do |p|
@@ -156,7 +156,9 @@ module Aws::RDS
156
156
  :retry
157
157
  end
158
158
  end
159
- Aws::Waiters::Waiter.new(options).wait({})
159
+ Aws::Plugins::UserAgent.feature('resource') do
160
+ Aws::Waiters::Waiter.new(options).wait({})
161
+ end
160
162
  end
161
163
 
162
164
  # @!group Associations
@@ -195,7 +197,9 @@ module Aws::RDS
195
197
  batches = Enumerator.new do |y|
196
198
  batch = []
197
199
  options = options.merge(db_parameter_group_family: @name)
198
- resp = @client.describe_engine_default_cluster_parameters(options)
200
+ resp = Aws::Plugins::UserAgent.feature('resource') do
201
+ @client.describe_engine_default_cluster_parameters(options)
202
+ end
199
203
  resp.data.engine_defaults.parameters.each do |p|
200
204
  batch << Parameter.new(
201
205
  name: p.parameter_name,
@@ -225,7 +229,9 @@ module Aws::RDS
225
229
  def engine_default_parameters(options = {})
226
230
  batches = Enumerator.new do |y|
227
231
  options = options.merge(db_parameter_group_family: @name)
228
- resp = @client.describe_engine_default_parameters(options)
232
+ resp = Aws::Plugins::UserAgent.feature('resource') do
233
+ @client.describe_engine_default_parameters(options)
234
+ end
229
235
  resp.each_page do |page|
230
236
  batch = []
231
237
  page.data.engine_defaults.parameters.each do |p|
@@ -86,7 +86,9 @@ module Aws::RDS
86
86
  #
87
87
  # @return [self]
88
88
  def load
89
- resp = @client.describe_db_security_groups(db_security_group_name: @name)
89
+ resp = Aws::Plugins::UserAgent.feature('resource') do
90
+ @client.describe_db_security_groups(db_security_group_name: @name)
91
+ end
90
92
  @data = resp.db_security_groups[0]
91
93
  self
92
94
  end
@@ -201,7 +203,9 @@ module Aws::RDS
201
203
  :retry
202
204
  end
203
205
  end
204
- Aws::Waiters::Waiter.new(options).wait({})
206
+ Aws::Plugins::UserAgent.feature('resource') do
207
+ Aws::Waiters::Waiter.new(options).wait({})
208
+ end
205
209
  end
206
210
 
207
211
  # @!group Actions
@@ -237,7 +241,9 @@ module Aws::RDS
237
241
  # @return [DBSecurityGroup]
238
242
  def authorize_ingress(options = {})
239
243
  options = options.merge(db_security_group_name: @name)
240
- resp = @client.authorize_db_security_group_ingress(options)
244
+ resp = Aws::Plugins::UserAgent.feature('resource') do
245
+ @client.authorize_db_security_group_ingress(options)
246
+ end
241
247
  DBSecurityGroup.new(
242
248
  name: resp.data.db_security_group.db_security_group_name,
243
249
  data: resp.data.db_security_group,
@@ -264,7 +270,9 @@ module Aws::RDS
264
270
  # @return [DBSecurityGroup]
265
271
  def create(options = {})
266
272
  options = options.merge(db_security_group_name: @name)
267
- resp = @client.create_db_security_group(options)
273
+ resp = Aws::Plugins::UserAgent.feature('resource') do
274
+ @client.create_db_security_group(options)
275
+ end
268
276
  DBSecurityGroup.new(
269
277
  name: resp.data.db_security_group.db_security_group_name,
270
278
  data: resp.data.db_security_group,
@@ -279,7 +287,9 @@ module Aws::RDS
279
287
  # @return [EmptyStructure]
280
288
  def delete(options = {})
281
289
  options = options.merge(db_security_group_name: @name)
282
- resp = @client.delete_db_security_group(options)
290
+ resp = Aws::Plugins::UserAgent.feature('resource') do
291
+ @client.delete_db_security_group(options)
292
+ end
283
293
  resp.data
284
294
  end
285
295
 
@@ -316,7 +326,9 @@ module Aws::RDS
316
326
  # @return [DBSecurityGroup]
317
327
  def revoke_ingress(options = {})
318
328
  options = options.merge(db_security_group_name: @name)
319
- resp = @client.revoke_db_security_group_ingress(options)
329
+ resp = Aws::Plugins::UserAgent.feature('resource') do
330
+ @client.revoke_db_security_group_ingress(options)
331
+ end
320
332
  DBSecurityGroup.new(
321
333
  name: resp.data.db_security_group.db_security_group_name,
322
334
  data: resp.data.db_security_group,
@@ -336,7 +348,9 @@ module Aws::RDS
336
348
  # @return [EventSubscription]
337
349
  def subscribe_to(options = {})
338
350
  options = options.merge(source_identifier: @name)
339
- resp = @client.add_source_identifier_to_subscription(options)
351
+ resp = Aws::Plugins::UserAgent.feature('resource') do
352
+ @client.add_source_identifier_to_subscription(options)
353
+ end
340
354
  EventSubscription.new(
341
355
  name: resp.data.event_subscription.cust_subscription_id,
342
356
  data: resp.data.event_subscription,
@@ -356,7 +370,9 @@ module Aws::RDS
356
370
  # @return [EventSubscription]
357
371
  def unsubscribe_from(options = {})
358
372
  options = options.merge(source_identifier: @name)
359
- resp = @client.remove_source_identifier_from_subscription(options)
373
+ resp = Aws::Plugins::UserAgent.feature('resource') do
374
+ @client.remove_source_identifier_from_subscription(options)
375
+ end
360
376
  EventSubscription.new(
361
377
  name: resp.data.event_subscription.cust_subscription_id,
362
378
  data: resp.data.event_subscription,
@@ -417,7 +433,9 @@ module Aws::RDS
417
433
  source_type: "db-security-group",
418
434
  source_identifier: @name
419
435
  )
420
- resp = @client.describe_events(options)
436
+ resp = Aws::Plugins::UserAgent.feature('resource') do
437
+ @client.describe_events(options)
438
+ end
421
439
  resp.each_page do |page|
422
440
  batch = []
423
441
  page.data.events.each do |e|
@@ -279,7 +279,9 @@ module Aws::RDS
279
279
  #
280
280
  # @return [self]
281
281
  def load
282
- resp = @client.describe_db_snapshots(db_snapshot_identifier: @snapshot_id)
282
+ resp = Aws::Plugins::UserAgent.feature('resource') do
283
+ @client.describe_db_snapshots(db_snapshot_identifier: @snapshot_id)
284
+ end
283
285
  @data = resp.db_snapshots[0]
284
286
  self
285
287
  end
@@ -394,7 +396,9 @@ module Aws::RDS
394
396
  :retry
395
397
  end
396
398
  end
397
- Aws::Waiters::Waiter.new(options).wait({})
399
+ Aws::Plugins::UserAgent.feature('resource') do
400
+ Aws::Waiters::Waiter.new(options).wait({})
401
+ end
398
402
  end
399
403
 
400
404
  # @!group Actions
@@ -423,7 +427,9 @@ module Aws::RDS
423
427
  db_instance_identifier: @instance_id,
424
428
  db_snapshot_identifier: @snapshot_id
425
429
  )
426
- resp = @client.create_db_snapshot(options)
430
+ resp = Aws::Plugins::UserAgent.feature('resource') do
431
+ @client.create_db_snapshot(options)
432
+ end
427
433
  DBSnapshot.new(
428
434
  instance_id: resp.data.db_snapshot.db_instance_identifier,
429
435
  snapshot_id: resp.data.db_snapshot.db_snapshot_identifier,
@@ -596,7 +602,9 @@ module Aws::RDS
596
602
  # @return [DBSnapshot]
597
603
  def copy(options = {})
598
604
  options = options.merge(source_db_snapshot_identifier: @snapshot_id)
599
- resp = @client.copy_db_snapshot(options)
605
+ resp = Aws::Plugins::UserAgent.feature('resource') do
606
+ @client.copy_db_snapshot(options)
607
+ end
600
608
  DBSnapshot.new(
601
609
  instance_id: resp.data.db_snapshot.db_instance_identifier,
602
610
  snapshot_id: resp.data.db_snapshot.db_snapshot_identifier,
@@ -612,7 +620,9 @@ module Aws::RDS
612
620
  # @return [DBSnapshot]
613
621
  def delete(options = {})
614
622
  options = options.merge(db_snapshot_identifier: @snapshot_id)
615
- resp = @client.delete_db_snapshot(options)
623
+ resp = Aws::Plugins::UserAgent.feature('resource') do
624
+ @client.delete_db_snapshot(options)
625
+ end
616
626
  DBSnapshot.new(
617
627
  instance_id: resp.data.db_snapshot.db_instance_identifier,
618
628
  snapshot_id: resp.data.db_snapshot.db_snapshot_identifier,
@@ -1067,7 +1077,9 @@ module Aws::RDS
1067
1077
  # @return [DBInstance]
1068
1078
  def restore(options = {})
1069
1079
  options = options.merge(db_snapshot_identifier: @snapshot_id)
1070
- resp = @client.restore_db_instance_from_db_snapshot(options)
1080
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1081
+ @client.restore_db_instance_from_db_snapshot(options)
1082
+ end
1071
1083
  DBInstance.new(
1072
1084
  id: resp.data.db_instance.db_instance_identifier,
1073
1085
  data: resp.data.db_instance,
@@ -1087,7 +1099,9 @@ module Aws::RDS
1087
1099
  # @return [EventSubscription]
1088
1100
  def subscribe_to(options = {})
1089
1101
  options = options.merge(source_identifier: @snapshot_id)
1090
- resp = @client.add_source_identifier_to_subscription(options)
1102
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1103
+ @client.add_source_identifier_to_subscription(options)
1104
+ end
1091
1105
  EventSubscription.new(
1092
1106
  name: resp.data.event_subscription.cust_subscription_id,
1093
1107
  data: resp.data.event_subscription,
@@ -1107,7 +1121,9 @@ module Aws::RDS
1107
1121
  # @return [EventSubscription]
1108
1122
  def unsubscribe_from(options = {})
1109
1123
  options = options.merge(source_identifier: @snapshot_id)
1110
- resp = @client.remove_source_identifier_from_subscription(options)
1124
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1125
+ @client.remove_source_identifier_from_subscription(options)
1126
+ end
1111
1127
  EventSubscription.new(
1112
1128
  name: resp.data.event_subscription.cust_subscription_id,
1113
1129
  data: resp.data.event_subscription,
@@ -1126,7 +1142,9 @@ module Aws::RDS
1126
1142
  batches = Enumerator.new do |y|
1127
1143
  batch = []
1128
1144
  options = options.merge(db_snapshot_identifier: @snapshot_id)
1129
- resp = @client.describe_db_snapshot_attributes(options)
1145
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1146
+ @client.describe_db_snapshot_attributes(options)
1147
+ end
1130
1148
  resp.data.db_snapshot_attributes_result.db_snapshot_attributes.each do |d|
1131
1149
  batch << DBSnapshotAttribute.new(
1132
1150
  snapshot_id: @snapshot_id,
@@ -1191,7 +1209,9 @@ module Aws::RDS
1191
1209
  source_type: "db-snapshot",
1192
1210
  source_identifier: @snapshot_id
1193
1211
  )
1194
- resp = @client.describe_events(options)
1212
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1213
+ @client.describe_events(options)
1214
+ end
1195
1215
  resp.each_page do |page|
1196
1216
  batch = []
1197
1217
  page.data.events.each do |e|
@@ -179,7 +179,9 @@ module Aws::RDS
179
179
  :retry
180
180
  end
181
181
  end
182
- Aws::Waiters::Waiter.new(options).wait({})
182
+ Aws::Plugins::UserAgent.feature('resource') do
183
+ Aws::Waiters::Waiter.new(options).wait({})
184
+ end
183
185
  end
184
186
 
185
187
  # @!group Actions
@@ -218,7 +220,9 @@ module Aws::RDS
218
220
  attribute_name: @name,
219
221
  db_snapshot_identifier: @snapshot_id
220
222
  )
221
- resp = @client.modify_db_snapshot_attribute(options)
223
+ resp = Aws::Plugins::UserAgent.feature('resource') do
224
+ @client.modify_db_snapshot_attribute(options)
225
+ end
222
226
  resp.data
223
227
  end
224
228
 
@@ -101,7 +101,9 @@ module Aws::RDS
101
101
  #
102
102
  # @return [self]
103
103
  def load
104
- resp = @client.describe_db_subnet_groups(db_subnet_group_name: @name)
104
+ resp = Aws::Plugins::UserAgent.feature('resource') do
105
+ @client.describe_db_subnet_groups(db_subnet_group_name: @name)
106
+ end
105
107
  @data = resp.db_subnet_groups[0]
106
108
  self
107
109
  end
@@ -216,7 +218,9 @@ module Aws::RDS
216
218
  :retry
217
219
  end
218
220
  end
219
- Aws::Waiters::Waiter.new(options).wait({})
221
+ Aws::Plugins::UserAgent.feature('resource') do
222
+ Aws::Waiters::Waiter.new(options).wait({})
223
+ end
220
224
  end
221
225
 
222
226
  # @!group Actions
@@ -243,7 +247,9 @@ module Aws::RDS
243
247
  # @return [DBSubnetGroup]
244
248
  def create(options = {})
245
249
  options = options.merge(db_subnet_group_name: @name)
246
- resp = @client.create_db_subnet_group(options)
250
+ resp = Aws::Plugins::UserAgent.feature('resource') do
251
+ @client.create_db_subnet_group(options)
252
+ end
247
253
  DBSubnetGroup.new(
248
254
  name: resp.data.db_subnet_group.db_subnet_group_name,
249
255
  data: resp.data.db_subnet_group,
@@ -258,7 +264,9 @@ module Aws::RDS
258
264
  # @return [EmptyStructure]
259
265
  def delete(options = {})
260
266
  options = options.merge(db_subnet_group_name: @name)
261
- resp = @client.delete_db_subnet_group(options)
267
+ resp = Aws::Plugins::UserAgent.feature('resource') do
268
+ @client.delete_db_subnet_group(options)
269
+ end
262
270
  resp.data
263
271
  end
264
272
 
@@ -276,7 +284,9 @@ module Aws::RDS
276
284
  # @return [DBSubnetGroup]
277
285
  def modify(options = {})
278
286
  options = options.merge(db_subnet_group_name: @name)
279
- resp = @client.modify_db_subnet_group(options)
287
+ resp = Aws::Plugins::UserAgent.feature('resource') do
288
+ @client.modify_db_subnet_group(options)
289
+ end
280
290
  DBSubnetGroup.new(
281
291
  name: resp.data.db_subnet_group.db_subnet_group_name,
282
292
  data: resp.data.db_subnet_group,
@@ -191,7 +191,9 @@ module Aws::RDS
191
191
  :retry
192
192
  end
193
193
  end
194
- Aws::Waiters::Waiter.new(options).wait({})
194
+ Aws::Plugins::UserAgent.feature('resource') do
195
+ Aws::Waiters::Waiter.new(options).wait({})
196
+ end
195
197
  end
196
198
 
197
199
  # @deprecated