aws-sdk-rds 1.233.0 → 1.235.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -86,7 +86,7 @@ module Aws::RDS
86
86
  #
87
87
  # @return [self]
88
88
  def load
89
- resp = Aws::Plugins::UserAgent.feature('resource') do
89
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
90
90
  @client.describe_db_security_groups(db_security_group_name: @name)
91
91
  end
92
92
  @data = resp.db_security_groups[0]
@@ -203,7 +203,7 @@ module Aws::RDS
203
203
  :retry
204
204
  end
205
205
  end
206
- Aws::Plugins::UserAgent.feature('resource') do
206
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
207
207
  Aws::Waiters::Waiter.new(options).wait({})
208
208
  end
209
209
  end
@@ -241,7 +241,7 @@ module Aws::RDS
241
241
  # @return [DBSecurityGroup]
242
242
  def authorize_ingress(options = {})
243
243
  options = options.merge(db_security_group_name: @name)
244
- resp = Aws::Plugins::UserAgent.feature('resource') do
244
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
245
245
  @client.authorize_db_security_group_ingress(options)
246
246
  end
247
247
  DBSecurityGroup.new(
@@ -270,7 +270,7 @@ module Aws::RDS
270
270
  # @return [DBSecurityGroup]
271
271
  def create(options = {})
272
272
  options = options.merge(db_security_group_name: @name)
273
- resp = Aws::Plugins::UserAgent.feature('resource') do
273
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
274
274
  @client.create_db_security_group(options)
275
275
  end
276
276
  DBSecurityGroup.new(
@@ -287,7 +287,7 @@ module Aws::RDS
287
287
  # @return [EmptyStructure]
288
288
  def delete(options = {})
289
289
  options = options.merge(db_security_group_name: @name)
290
- resp = Aws::Plugins::UserAgent.feature('resource') do
290
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
291
291
  @client.delete_db_security_group(options)
292
292
  end
293
293
  resp.data
@@ -326,7 +326,7 @@ module Aws::RDS
326
326
  # @return [DBSecurityGroup]
327
327
  def revoke_ingress(options = {})
328
328
  options = options.merge(db_security_group_name: @name)
329
- resp = Aws::Plugins::UserAgent.feature('resource') do
329
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
330
330
  @client.revoke_db_security_group_ingress(options)
331
331
  end
332
332
  DBSecurityGroup.new(
@@ -348,7 +348,7 @@ module Aws::RDS
348
348
  # @return [EventSubscription]
349
349
  def subscribe_to(options = {})
350
350
  options = options.merge(source_identifier: @name)
351
- resp = Aws::Plugins::UserAgent.feature('resource') do
351
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
352
352
  @client.add_source_identifier_to_subscription(options)
353
353
  end
354
354
  EventSubscription.new(
@@ -370,7 +370,7 @@ module Aws::RDS
370
370
  # @return [EventSubscription]
371
371
  def unsubscribe_from(options = {})
372
372
  options = options.merge(source_identifier: @name)
373
- resp = Aws::Plugins::UserAgent.feature('resource') do
373
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
374
374
  @client.remove_source_identifier_from_subscription(options)
375
375
  end
376
376
  EventSubscription.new(
@@ -433,7 +433,7 @@ module Aws::RDS
433
433
  source_type: "db-security-group",
434
434
  source_identifier: @name
435
435
  )
436
- resp = Aws::Plugins::UserAgent.feature('resource') do
436
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
437
437
  @client.describe_events(options)
438
438
  end
439
439
  resp.each_page do |page|
@@ -302,7 +302,7 @@ module Aws::RDS
302
302
  #
303
303
  # @return [self]
304
304
  def load
305
- resp = Aws::Plugins::UserAgent.feature('resource') do
305
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
306
306
  @client.describe_db_snapshots(db_snapshot_identifier: @snapshot_id)
307
307
  end
308
308
  @data = resp.db_snapshots[0]
@@ -419,7 +419,7 @@ module Aws::RDS
419
419
  :retry
420
420
  end
421
421
  end
422
- Aws::Plugins::UserAgent.feature('resource') do
422
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
423
423
  Aws::Waiters::Waiter.new(options).wait({})
424
424
  end
425
425
  end
@@ -450,7 +450,7 @@ module Aws::RDS
450
450
  db_instance_identifier: @instance_id,
451
451
  db_snapshot_identifier: @snapshot_id
452
452
  )
453
- resp = Aws::Plugins::UserAgent.feature('resource') do
453
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
454
454
  @client.create_db_snapshot(options)
455
455
  end
456
456
  DBSnapshot.new(
@@ -625,7 +625,7 @@ module Aws::RDS
625
625
  # @return [DBSnapshot]
626
626
  def copy(options = {})
627
627
  options = options.merge(source_db_snapshot_identifier: @snapshot_id)
628
- resp = Aws::Plugins::UserAgent.feature('resource') do
628
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
629
629
  @client.copy_db_snapshot(options)
630
630
  end
631
631
  DBSnapshot.new(
@@ -643,7 +643,7 @@ module Aws::RDS
643
643
  # @return [DBSnapshot]
644
644
  def delete(options = {})
645
645
  options = options.merge(db_snapshot_identifier: @snapshot_id)
646
- resp = Aws::Plugins::UserAgent.feature('resource') do
646
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
647
647
  @client.delete_db_snapshot(options)
648
648
  end
649
649
  DBSnapshot.new(
@@ -1230,7 +1230,7 @@ module Aws::RDS
1230
1230
  # @return [DBInstance]
1231
1231
  def restore(options = {})
1232
1232
  options = options.merge(db_snapshot_identifier: @snapshot_id)
1233
- resp = Aws::Plugins::UserAgent.feature('resource') do
1233
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1234
1234
  @client.restore_db_instance_from_db_snapshot(options)
1235
1235
  end
1236
1236
  DBInstance.new(
@@ -1252,7 +1252,7 @@ module Aws::RDS
1252
1252
  # @return [EventSubscription]
1253
1253
  def subscribe_to(options = {})
1254
1254
  options = options.merge(source_identifier: @snapshot_id)
1255
- resp = Aws::Plugins::UserAgent.feature('resource') do
1255
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1256
1256
  @client.add_source_identifier_to_subscription(options)
1257
1257
  end
1258
1258
  EventSubscription.new(
@@ -1274,7 +1274,7 @@ module Aws::RDS
1274
1274
  # @return [EventSubscription]
1275
1275
  def unsubscribe_from(options = {})
1276
1276
  options = options.merge(source_identifier: @snapshot_id)
1277
- resp = Aws::Plugins::UserAgent.feature('resource') do
1277
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1278
1278
  @client.remove_source_identifier_from_subscription(options)
1279
1279
  end
1280
1280
  EventSubscription.new(
@@ -1295,7 +1295,7 @@ module Aws::RDS
1295
1295
  batches = Enumerator.new do |y|
1296
1296
  batch = []
1297
1297
  options = options.merge(db_snapshot_identifier: @snapshot_id)
1298
- resp = Aws::Plugins::UserAgent.feature('resource') do
1298
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1299
1299
  @client.describe_db_snapshot_attributes(options)
1300
1300
  end
1301
1301
  resp.data.db_snapshot_attributes_result.db_snapshot_attributes.each do |d|
@@ -1362,7 +1362,7 @@ module Aws::RDS
1362
1362
  source_type: "db-snapshot",
1363
1363
  source_identifier: @snapshot_id
1364
1364
  )
1365
- resp = Aws::Plugins::UserAgent.feature('resource') do
1365
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1366
1366
  @client.describe_events(options)
1367
1367
  end
1368
1368
  resp.each_page do |page|
@@ -179,7 +179,7 @@ module Aws::RDS
179
179
  :retry
180
180
  end
181
181
  end
182
- Aws::Plugins::UserAgent.feature('resource') do
182
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
183
183
  Aws::Waiters::Waiter.new(options).wait({})
184
184
  end
185
185
  end
@@ -220,7 +220,7 @@ module Aws::RDS
220
220
  attribute_name: @name,
221
221
  db_snapshot_identifier: @snapshot_id
222
222
  )
223
- resp = Aws::Plugins::UserAgent.feature('resource') do
223
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
224
224
  @client.modify_db_snapshot_attribute(options)
225
225
  end
226
226
  resp.data
@@ -101,7 +101,7 @@ module Aws::RDS
101
101
  #
102
102
  # @return [self]
103
103
  def load
104
- resp = Aws::Plugins::UserAgent.feature('resource') do
104
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
105
105
  @client.describe_db_subnet_groups(db_subnet_group_name: @name)
106
106
  end
107
107
  @data = resp.db_subnet_groups[0]
@@ -218,7 +218,7 @@ module Aws::RDS
218
218
  :retry
219
219
  end
220
220
  end
221
- Aws::Plugins::UserAgent.feature('resource') do
221
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
222
222
  Aws::Waiters::Waiter.new(options).wait({})
223
223
  end
224
224
  end
@@ -247,7 +247,7 @@ module Aws::RDS
247
247
  # @return [DBSubnetGroup]
248
248
  def create(options = {})
249
249
  options = options.merge(db_subnet_group_name: @name)
250
- resp = Aws::Plugins::UserAgent.feature('resource') do
250
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
251
251
  @client.create_db_subnet_group(options)
252
252
  end
253
253
  DBSubnetGroup.new(
@@ -264,7 +264,7 @@ module Aws::RDS
264
264
  # @return [EmptyStructure]
265
265
  def delete(options = {})
266
266
  options = options.merge(db_subnet_group_name: @name)
267
- resp = Aws::Plugins::UserAgent.feature('resource') do
267
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
268
268
  @client.delete_db_subnet_group(options)
269
269
  end
270
270
  resp.data
@@ -284,7 +284,7 @@ module Aws::RDS
284
284
  # @return [DBSubnetGroup]
285
285
  def modify(options = {})
286
286
  options = options.merge(db_subnet_group_name: @name)
287
- resp = Aws::Plugins::UserAgent.feature('resource') do
287
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
288
288
  @client.modify_db_subnet_group(options)
289
289
  end
290
290
  DBSubnetGroup.new(
@@ -191,7 +191,7 @@ module Aws::RDS
191
191
  :retry
192
192
  end
193
193
  end
194
- Aws::Plugins::UserAgent.feature('resource') do
194
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
195
195
  Aws::Waiters::Waiter.new(options).wait({})
196
196
  end
197
197
  end
@@ -54,7 +54,7 @@ module Aws::RDS
54
54
  #
55
55
  # @return [self]
56
56
  def load
57
- resp = Aws::Plugins::UserAgent.feature('resource') do
57
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
58
58
  @client.describe_event_categories(source_type: @name)
59
59
  end
60
60
  @data = resp.event_categories_map_list[0]
@@ -171,7 +171,7 @@ module Aws::RDS
171
171
  :retry
172
172
  end
173
173
  end
174
- Aws::Plugins::UserAgent.feature('resource') do
174
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
175
175
  Aws::Waiters::Waiter.new(options).wait({})
176
176
  end
177
177
  end
@@ -116,7 +116,7 @@ module Aws::RDS
116
116
  #
117
117
  # @return [self]
118
118
  def load
119
- resp = Aws::Plugins::UserAgent.feature('resource') do
119
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
120
120
  @client.describe_event_subscriptions(subscription_name: @name)
121
121
  end
122
122
  @data = resp.event_subscriptions_list[0]
@@ -233,7 +233,7 @@ module Aws::RDS
233
233
  :retry
234
234
  end
235
235
  end
236
- Aws::Plugins::UserAgent.feature('resource') do
236
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
237
237
  Aws::Waiters::Waiter.new(options).wait({})
238
238
  end
239
239
  end
@@ -274,7 +274,7 @@ module Aws::RDS
274
274
  # @return [EventSubscription]
275
275
  def add_subscriber(options = {})
276
276
  options = options.merge(subscription_name: @name)
277
- resp = Aws::Plugins::UserAgent.feature('resource') do
277
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
278
278
  @client.add_source_identifier_to_subscription(options)
279
279
  end
280
280
  EventSubscription.new(
@@ -380,7 +380,7 @@ module Aws::RDS
380
380
  # @return [EventSubscription]
381
381
  def create(options = {})
382
382
  options = options.merge(subscription_name: @name)
383
- resp = Aws::Plugins::UserAgent.feature('resource') do
383
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
384
384
  @client.create_event_subscription(options)
385
385
  end
386
386
  EventSubscription.new(
@@ -397,7 +397,7 @@ module Aws::RDS
397
397
  # @return [EventSubscription]
398
398
  def delete(options = {})
399
399
  options = options.merge(subscription_name: @name)
400
- resp = Aws::Plugins::UserAgent.feature('resource') do
400
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
401
401
  @client.delete_event_subscription(options)
402
402
  end
403
403
  EventSubscription.new(
@@ -443,7 +443,7 @@ module Aws::RDS
443
443
  # @return [EventSubscription]
444
444
  def modify(options = {})
445
445
  options = options.merge(subscription_name: @name)
446
- resp = Aws::Plugins::UserAgent.feature('resource') do
446
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
447
447
  @client.modify_event_subscription(options)
448
448
  end
449
449
  EventSubscription.new(
@@ -466,7 +466,7 @@ module Aws::RDS
466
466
  # @return [EventSubscription]
467
467
  def remove_subscriber(options = {})
468
468
  options = options.merge(subscription_name: @name)
469
- resp = Aws::Plugins::UserAgent.feature('resource') do
469
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
470
470
  @client.remove_source_identifier_from_subscription(options)
471
471
  end
472
472
  EventSubscription.new(
@@ -119,7 +119,7 @@ module Aws::RDS
119
119
  #
120
120
  # @return [self]
121
121
  def load
122
- resp = Aws::Plugins::UserAgent.feature('resource') do
122
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
123
123
  @client.describe_option_groups(option_group_name: @name)
124
124
  end
125
125
  @data = resp.option_groups_list[0]
@@ -236,7 +236,7 @@ module Aws::RDS
236
236
  :retry
237
237
  end
238
238
  end
239
- Aws::Plugins::UserAgent.feature('resource') do
239
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
240
240
  Aws::Waiters::Waiter.new(options).wait({})
241
241
  end
242
242
  end
@@ -297,7 +297,7 @@ module Aws::RDS
297
297
  # @return [OptionGroup]
298
298
  def create(options = {})
299
299
  options = options.merge(option_group_name: @name)
300
- resp = Aws::Plugins::UserAgent.feature('resource') do
300
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
301
301
  @client.create_option_group(options)
302
302
  end
303
303
  OptionGroup.new(
@@ -346,7 +346,7 @@ module Aws::RDS
346
346
  # @return [OptionGroup]
347
347
  def copy(options = {})
348
348
  options = options.merge(source_option_group_identifier: @name)
349
- resp = Aws::Plugins::UserAgent.feature('resource') do
349
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
350
350
  @client.copy_option_group(options)
351
351
  end
352
352
  OptionGroup.new(
@@ -363,7 +363,7 @@ module Aws::RDS
363
363
  # @return [EmptyStructure]
364
364
  def delete(options = {})
365
365
  options = options.merge(option_group_name: @name)
366
- resp = Aws::Plugins::UserAgent.feature('resource') do
366
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
367
367
  @client.delete_option_group(options)
368
368
  end
369
369
  resp.data
@@ -410,7 +410,7 @@ module Aws::RDS
410
410
  # @return [OptionGroup]
411
411
  def modify(options = {})
412
412
  options = options.merge(option_group_name: @name)
413
- resp = Aws::Plugins::UserAgent.feature('resource') do
413
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
414
414
  @client.modify_option_group(options)
415
415
  end
416
416
  OptionGroup.new(
@@ -268,7 +268,7 @@ module Aws::RDS
268
268
  :retry
269
269
  end
270
270
  end
271
- Aws::Plugins::UserAgent.feature('resource') do
271
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
272
272
  Aws::Waiters::Waiter.new(options).wait({})
273
273
  end
274
274
  end
@@ -221,7 +221,7 @@ module Aws::RDS
221
221
  :retry
222
222
  end
223
223
  end
224
- Aws::Plugins::UserAgent.feature('resource') do
224
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
225
225
  Aws::Waiters::Waiter.new(options).wait({})
226
226
  end
227
227
  end
@@ -210,7 +210,7 @@ module Aws::RDS
210
210
  :retry
211
211
  end
212
212
  end
213
- Aws::Plugins::UserAgent.feature('resource') do
213
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
214
214
  Aws::Waiters::Waiter.new(options).wait({})
215
215
  end
216
216
  end
@@ -228,7 +228,7 @@ module Aws::RDS
228
228
  resource_identifier: @target_arn,
229
229
  opt_in_type: "immediate"
230
230
  )
231
- resp = Aws::Plugins::UserAgent.feature('resource') do
231
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
232
232
  @client.apply_pending_maintenance_action(options)
233
233
  end
234
234
  ResourcePendingMaintenanceActionList.new(
@@ -249,7 +249,7 @@ module Aws::RDS
249
249
  resource_identifier: @target_arn,
250
250
  opt_in_type: "undo-opt-in"
251
251
  )
252
- resp = Aws::Plugins::UserAgent.feature('resource') do
252
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
253
253
  @client.apply_pending_maintenance_action(options)
254
254
  end
255
255
  ResourcePendingMaintenanceActionList.new(
@@ -270,7 +270,7 @@ module Aws::RDS
270
270
  resource_identifier: @target_arn,
271
271
  opt_in_type: "next-maintenance"
272
272
  )
273
- resp = Aws::Plugins::UserAgent.feature('resource') do
273
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
274
274
  @client.apply_pending_maintenance_action(options)
275
275
  end
276
276
  ResourcePendingMaintenanceActionList.new(
@@ -145,7 +145,7 @@ module Aws::RDS
145
145
  #
146
146
  # @return [self]
147
147
  def load
148
- resp = Aws::Plugins::UserAgent.feature('resource') do
148
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
149
149
  @client.describe_reserved_db_instances(reserved_db_instance_id: @id)
150
150
  end
151
151
  @data = resp.reserved_db_instances[0]
@@ -262,7 +262,7 @@ module Aws::RDS
262
262
  :retry
263
263
  end
264
264
  end
265
- Aws::Plugins::UserAgent.feature('resource') do
265
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
266
266
  Aws::Waiters::Waiter.new(options).wait({})
267
267
  end
268
268
  end
@@ -103,7 +103,7 @@ module Aws::RDS
103
103
  #
104
104
  # @return [self]
105
105
  def load
106
- resp = Aws::Plugins::UserAgent.feature('resource') do
106
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
107
107
  @client.describe_reserved_db_instances_offerings(reserved_db_instances_offering_id: @id)
108
108
  end
109
109
  @data = resp.reserved_db_instances_offerings[0]
@@ -220,7 +220,7 @@ module Aws::RDS
220
220
  :retry
221
221
  end
222
222
  end
223
- Aws::Plugins::UserAgent.feature('resource') do
223
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
224
224
  Aws::Waiters::Waiter.new(options).wait({})
225
225
  end
226
226
  end
@@ -258,7 +258,7 @@ module Aws::RDS
258
258
  # @return [ReservedDBInstance]
259
259
  def purchase(options = {})
260
260
  options = options.merge(reserved_db_instances_offering_id: @id)
261
- resp = Aws::Plugins::UserAgent.feature('resource') do
261
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
262
262
  @client.purchase_reserved_db_instances_offering(options)
263
263
  end
264
264
  ReservedDBInstance.new(