aws-sdk-ec2 1.380.0 → 1.381.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: 8c587d43d4ecaf4be68743a8f5f0ff972f92c46fa3f19b9f1c7dbdc74a231b59
4
- data.tar.gz: 1376fa66f97a2e8f1259645590974222942f37fe3fbcc687f067d8291c036d21
3
+ metadata.gz: 6b8227b6cdcd9aea3233c9150cb666d23500ef1c783539a559b30d148dee2e8c
4
+ data.tar.gz: cf00f59ae7fa9483bf1d919f0b9d937a34360416745232464023d57de8e1b798
5
5
  SHA512:
6
- metadata.gz: 540b0c7d0a1f4cce2ec854b53183f55bc712c9ceb0fa4609457a7910243369ed2d27479009c2f7d2ff904312d186425080e52290079e368dd5102024b1fcd6af
7
- data.tar.gz: 790b2c52925d6b2a5fa067478856d278cf73060173114eca1a6584bb6000477d5770e861ade99e263e7c1c66d82653cac997af352563a242cc705b270edda162
6
+ metadata.gz: 9dc2d62ef87d7b7c398cd37df18b75f05f2a6ac8a3fd6c3637134b06e12e782b8ae2a90816e76ffa5ae6098afd67a7d9331d64286371b748467ccb276b3253ca
7
+ data.tar.gz: 5ca22effff59e66adb27196ea9ec3ec77c6df755acbc4bd2b84eae5e0d1d256147df587ce35e0ed4ca93e85512bdb7f8fd2b5a93d19073599c1ac64608a1d088
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.381.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
4
9
  1.380.0 (2023-05-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.380.0
1
+ 1.381.0
@@ -134,7 +134,9 @@ module Aws::EC2
134
134
  #
135
135
  # @return [self]
136
136
  def load
137
- resp = @client.describe_addresses(public_ips: [@public_ip])
137
+ resp = Aws::Plugins::UserAgent.feature('resource') do
138
+ @client.describe_addresses(public_ips: [@public_ip])
139
+ end
138
140
  @data = resp.addresses[0]
139
141
  self
140
142
  end
@@ -249,7 +251,9 @@ module Aws::EC2
249
251
  :retry
250
252
  end
251
253
  end
252
- Aws::Waiters::Waiter.new(options).wait({})
254
+ Aws::Plugins::UserAgent.feature('resource') do
255
+ Aws::Waiters::Waiter.new(options).wait({})
256
+ end
253
257
  end
254
258
 
255
259
  # @!group Actions
@@ -299,7 +303,9 @@ module Aws::EC2
299
303
  # @return [Types::AssociateAddressResult]
300
304
  def associate(options = {})
301
305
  options = options.merge(public_ip: @public_ip)
302
- resp = @client.associate_address(options)
306
+ resp = Aws::Plugins::UserAgent.feature('resource') do
307
+ @client.associate_address(options)
308
+ end
303
309
  resp.data
304
310
  end
305
311
 
@@ -320,7 +326,9 @@ module Aws::EC2
320
326
  # @return [EmptyStructure]
321
327
  def disassociate(options = {})
322
328
  options = options.merge(public_ip: data[:public_ip])
323
- resp = @client.disassociate_address(options)
329
+ resp = Aws::Plugins::UserAgent.feature('resource') do
330
+ @client.disassociate_address(options)
331
+ end
324
332
  resp.data
325
333
  end
326
334
 
@@ -352,7 +360,9 @@ module Aws::EC2
352
360
  # @return [EmptyStructure]
353
361
  def release(options = {})
354
362
  options = options.merge(public_ip: data[:public_ip])
355
- resp = @client.release_address(options)
363
+ resp = Aws::Plugins::UserAgent.feature('resource') do
364
+ @client.release_address(options)
365
+ end
356
366
  resp.data
357
367
  end
358
368
 
@@ -279,6 +279,11 @@ module Aws::EC2
279
279
  # in the future.
280
280
  #
281
281
  #
282
+ # @option options [String] :sdk_ua_app_id
283
+ # A unique and opaque application ID that is appended to the
284
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
285
+ # maximum length of 50.
286
+ #
282
287
  # @option options [String] :secret_access_key
283
288
  #
284
289
  # @option options [String] :session_token
@@ -56781,7 +56786,7 @@ module Aws::EC2
56781
56786
  params: params,
56782
56787
  config: config)
56783
56788
  context[:gem_name] = 'aws-sdk-ec2'
56784
- context[:gem_version] = '1.380.0'
56789
+ context[:gem_version] = '1.381.0'
56785
56790
  Seahorse::Client::Request.new(handlers, context)
56786
56791
  end
56787
56792
 
@@ -18,7 +18,9 @@ module Aws
18
18
  private
19
19
 
20
20
  def encrypted_password
21
- bytes = client.get_password_data(instance_id: id).password_data
21
+ bytes = Aws::Plugins::UserAgent.feature('resource') do
22
+ client.get_password_data(instance_id: id).password_data
23
+ end
22
24
  if bytes == ''
23
25
  raise 'password not available yet'
24
26
  else
@@ -5,7 +5,9 @@ module Aws
5
5
  class Resource
6
6
 
7
7
  def create_tags(options)
8
- resp = @client.create_tags(options)
8
+ resp = Aws::Plugins::UserAgent.feature('resource') do
9
+ @client.create_tags(options)
10
+ end
9
11
  tags = []
10
12
  options[:resources].each do |resource_id|
11
13
  options[:tags].each do |tag|
@@ -68,7 +68,9 @@ module Aws::EC2
68
68
  #
69
69
  # @return [self]
70
70
  def load
71
- resp = @client.describe_dhcp_options(dhcp_options_ids: [@id])
71
+ resp = Aws::Plugins::UserAgent.feature('resource') do
72
+ @client.describe_dhcp_options(dhcp_options_ids: [@id])
73
+ end
72
74
  @data = resp.dhcp_options[0]
73
75
  self
74
76
  end
@@ -183,7 +185,9 @@ module Aws::EC2
183
185
  :retry
184
186
  end
185
187
  end
186
- Aws::Waiters::Waiter.new(options).wait({})
188
+ Aws::Plugins::UserAgent.feature('resource') do
189
+ Aws::Waiters::Waiter.new(options).wait({})
190
+ end
187
191
  end
188
192
 
189
193
  # @!group Actions
@@ -205,7 +209,9 @@ module Aws::EC2
205
209
  # @return [EmptyStructure]
206
210
  def associate_with_vpc(options = {})
207
211
  options = options.merge(dhcp_options_id: @id)
208
- resp = @client.associate_dhcp_options(options)
212
+ resp = Aws::Plugins::UserAgent.feature('resource') do
213
+ @client.associate_dhcp_options(options)
214
+ end
209
215
  resp.data
210
216
  end
211
217
 
@@ -234,7 +240,9 @@ module Aws::EC2
234
240
  def create_tags(options = {})
235
241
  batch = []
236
242
  options = Aws::Util.deep_merge(options, resources: [@id])
237
- resp = @client.create_tags(options)
243
+ resp = Aws::Plugins::UserAgent.feature('resource') do
244
+ @client.create_tags(options)
245
+ end
238
246
  options[:tags].each do |t|
239
247
  batch << Tag.new(
240
248
  resource_id: @id,
@@ -279,7 +287,9 @@ module Aws::EC2
279
287
  def delete_tags(options = {})
280
288
  batch = []
281
289
  options = Aws::Util.deep_merge(options, resources: [@id])
282
- resp = @client.delete_tags(options)
290
+ resp = Aws::Plugins::UserAgent.feature('resource') do
291
+ @client.delete_tags(options)
292
+ end
283
293
  options[:tags].each do |t|
284
294
  batch << Tag.new(
285
295
  resource_id: @id,
@@ -305,7 +315,9 @@ module Aws::EC2
305
315
  # @return [EmptyStructure]
306
316
  def delete(options = {})
307
317
  options = options.merge(dhcp_options_id: @id)
308
- resp = @client.delete_dhcp_options(options)
318
+ resp = Aws::Plugins::UserAgent.feature('resource') do
319
+ @client.delete_dhcp_options(options)
320
+ end
309
321
  resp.data
310
322
  end
311
323
 
@@ -274,7 +274,9 @@ module Aws::EC2
274
274
  #
275
275
  # @return [self]
276
276
  def load
277
- resp = @client.describe_images(image_ids: [@id])
277
+ resp = Aws::Plugins::UserAgent.feature('resource') do
278
+ @client.describe_images(image_ids: [@id])
279
+ end
278
280
  @data = resp.images[0]
279
281
  self
280
282
  end
@@ -319,7 +321,9 @@ module Aws::EC2
319
321
  options, params = separate_params_and_options(options)
320
322
  waiter = Waiters::ImageExists.new(options)
321
323
  yield_waiter_and_warn(waiter, &block) if block_given?
322
- resp = waiter.wait(params.merge(image_ids: [@id]))
324
+ resp = Aws::Plugins::UserAgent.feature('resource') do
325
+ waiter.wait(params.merge(image_ids: [@id]))
326
+ end
323
327
  Image.new({
324
328
  id: @id,
325
329
  data: resp.data.images[0],
@@ -421,7 +425,9 @@ module Aws::EC2
421
425
  :retry
422
426
  end
423
427
  end
424
- Aws::Waiters::Waiter.new(options).wait({})
428
+ Aws::Plugins::UserAgent.feature('resource') do
429
+ Aws::Waiters::Waiter.new(options).wait({})
430
+ end
425
431
  end
426
432
 
427
433
  # @!group Actions
@@ -451,7 +457,9 @@ module Aws::EC2
451
457
  def create_tags(options = {})
452
458
  batch = []
453
459
  options = Aws::Util.deep_merge(options, resources: [@id])
454
- resp = @client.create_tags(options)
460
+ resp = Aws::Plugins::UserAgent.feature('resource') do
461
+ @client.create_tags(options)
462
+ end
455
463
  options[:tags].each do |t|
456
464
  batch << Tag.new(
457
465
  resource_id: @id,
@@ -496,7 +504,9 @@ module Aws::EC2
496
504
  def delete_tags(options = {})
497
505
  batch = []
498
506
  options = Aws::Util.deep_merge(options, resources: [@id])
499
- resp = @client.delete_tags(options)
507
+ resp = Aws::Plugins::UserAgent.feature('resource') do
508
+ @client.delete_tags(options)
509
+ end
500
510
  options[:tags].each do |t|
501
511
  batch << Tag.new(
502
512
  resource_id: @id,
@@ -522,7 +532,9 @@ module Aws::EC2
522
532
  # @return [EmptyStructure]
523
533
  def deregister(options = {})
524
534
  options = options.merge(image_id: @id)
525
- resp = @client.deregister_image(options)
535
+ resp = Aws::Plugins::UserAgent.feature('resource') do
536
+ @client.deregister_image(options)
537
+ end
526
538
  resp.data
527
539
  end
528
540
 
@@ -548,7 +560,9 @@ module Aws::EC2
548
560
  # @return [Types::ImageAttribute]
549
561
  def describe_attribute(options = {})
550
562
  options = options.merge(image_id: @id)
551
- resp = @client.describe_image_attribute(options)
563
+ resp = Aws::Plugins::UserAgent.feature('resource') do
564
+ @client.describe_image_attribute(options)
565
+ end
552
566
  resp.data
553
567
  end
554
568
 
@@ -638,7 +652,9 @@ module Aws::EC2
638
652
  # @return [EmptyStructure]
639
653
  def modify_attribute(options = {})
640
654
  options = options.merge(image_id: @id)
641
- resp = @client.modify_image_attribute(options)
655
+ resp = Aws::Plugins::UserAgent.feature('resource') do
656
+ @client.modify_image_attribute(options)
657
+ end
642
658
  resp.data
643
659
  end
644
660
 
@@ -660,7 +676,9 @@ module Aws::EC2
660
676
  # @return [EmptyStructure]
661
677
  def reset_attribute(options = {})
662
678
  options = options.merge(image_id: @id)
663
- resp = @client.reset_image_attribute(options)
679
+ resp = Aws::Plugins::UserAgent.feature('resource') do
680
+ @client.reset_image_attribute(options)
681
+ end
664
682
  resp.data
665
683
  end
666
684