aws-sdk-ec2 1.402.0 → 1.547.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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +735 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +32 -20
  5. data/lib/aws-sdk-ec2/client.rb +14212 -4429
  6. data/lib/aws-sdk-ec2/client_api.rb +4004 -515
  7. data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
  8. data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
  9. data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
  10. data/lib/aws-sdk-ec2/customizations.rb +0 -22
  11. data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
  12. data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
  13. data/lib/aws-sdk-ec2/endpoint_provider.rb +16 -20
  14. data/lib/aws-sdk-ec2/endpoints.rb +2 -8314
  15. data/lib/aws-sdk-ec2/image.rb +207 -98
  16. data/lib/aws-sdk-ec2/instance.rb +514 -348
  17. data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
  18. data/lib/aws-sdk-ec2/key_pair.rb +14 -14
  19. data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
  20. data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
  21. data/lib/aws-sdk-ec2/network_acl.rb +70 -70
  22. data/lib/aws-sdk-ec2/network_interface.rb +150 -78
  23. data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
  24. data/lib/aws-sdk-ec2/placement_group.rb +123 -42
  25. data/lib/aws-sdk-ec2/plugins/endpoints.rb +23 -1202
  26. data/lib/aws-sdk-ec2/resource.rb +1118 -864
  27. data/lib/aws-sdk-ec2/route.rb +50 -34
  28. data/lib/aws-sdk-ec2/route_table.rb +47 -44
  29. data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
  30. data/lib/aws-sdk-ec2/security_group.rb +212 -201
  31. data/lib/aws-sdk-ec2/snapshot.rb +169 -105
  32. data/lib/aws-sdk-ec2/subnet.rb +534 -406
  33. data/lib/aws-sdk-ec2/tag.rb +7 -4
  34. data/lib/aws-sdk-ec2/types.rb +18252 -4766
  35. data/lib/aws-sdk-ec2/volume.rb +160 -116
  36. data/lib/aws-sdk-ec2/vpc.rb +387 -262
  37. data/lib/aws-sdk-ec2/vpc_address.rb +37 -25
  38. data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
  39. data/lib/aws-sdk-ec2/waiters.rb +146 -38
  40. data/lib/aws-sdk-ec2.rb +40 -36
  41. data/sig/classic_address.rbs +108 -0
  42. data/sig/client.rbs +14833 -0
  43. data/sig/dhcp_options.rbs +84 -0
  44. data/sig/errors.rbs +16 -0
  45. data/sig/image.rbs +232 -0
  46. data/sig/instance.rbs +576 -0
  47. data/sig/internet_gateway.rbs +91 -0
  48. data/sig/key_pair.rbs +54 -0
  49. data/sig/key_pair_info.rbs +63 -0
  50. data/sig/nat_gateway.rbs +107 -0
  51. data/sig/network_acl.rbs +144 -0
  52. data/sig/network_interface.rbs +249 -0
  53. data/sig/network_interface_association.rbs +62 -0
  54. data/sig/placement_group.rbs +78 -0
  55. data/sig/resource.rbs +1049 -0
  56. data/sig/route.rbs +120 -0
  57. data/sig/route_table.rbs +118 -0
  58. data/sig/route_table_association.rbs +69 -0
  59. data/sig/security_group.rbs +311 -0
  60. data/sig/snapshot.rbs +204 -0
  61. data/sig/subnet.rbs +442 -0
  62. data/sig/tag.rbs +63 -0
  63. data/sig/types.rbs +17078 -0
  64. data/sig/volume.rbs +213 -0
  65. data/sig/vpc.rbs +404 -0
  66. data/sig/vpc_address.rbs +104 -0
  67. data/sig/vpc_peering_connection.rbs +84 -0
  68. data/sig/waiters.rbs +700 -0
  69. metadata +45 -19
@@ -35,35 +35,10 @@ module Aws::EC2
35
35
  end
36
36
  alias :volume_id :id
37
37
 
38
- # Information about the volume attachments.
39
- # @return [Array<Types::VolumeAttachment>]
40
- def attachments
41
- data[:attachments]
42
- end
43
-
44
- # The Availability Zone for the volume.
38
+ # The ID of the Availability Zone for the volume.
45
39
  # @return [String]
46
- def availability_zone
47
- data[:availability_zone]
48
- end
49
-
50
- # The time stamp when volume creation was initiated.
51
- # @return [Time]
52
- def create_time
53
- data[:create_time]
54
- end
55
-
56
- # Indicates whether the volume is encrypted.
57
- # @return [Boolean]
58
- def encrypted
59
- data[:encrypted]
60
- end
61
-
62
- # The Amazon Resource Name (ARN) of the Key Management Service (KMS) KMS
63
- # key that was used to protect the volume encryption key for the volume.
64
- # @return [String]
65
- def kms_key_id
66
- data[:kms_key_id]
40
+ def availability_zone_id
41
+ data[:availability_zone_id]
67
42
  end
68
43
 
69
44
  # The Amazon Resource Name (ARN) of the Outpost.
@@ -72,24 +47,6 @@ module Aws::EC2
72
47
  data[:outpost_arn]
73
48
  end
74
49
 
75
- # The size of the volume, in GiBs.
76
- # @return [Integer]
77
- def size
78
- data[:size]
79
- end
80
-
81
- # The snapshot from which the volume was created, if applicable.
82
- # @return [String]
83
- def snapshot_id
84
- data[:snapshot_id]
85
- end
86
-
87
- # The volume state.
88
- # @return [String]
89
- def state
90
- data[:state]
91
- end
92
-
93
50
  # The number of I/O operations per second (IOPS). For `gp3`, `io1`, and
94
51
  # `io2` volumes, this represents the number of IOPS that are provisioned
95
52
  # for the volume. For `gp2` volumes, this represents the baseline
@@ -112,6 +69,10 @@ module Aws::EC2
112
69
  data[:volume_type]
113
70
  end
114
71
 
72
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
73
+ #
74
+ # </note>
75
+ #
115
76
  # Indicates whether the volume was created using fast snapshot restore.
116
77
  # @return [Boolean]
117
78
  def fast_restored
@@ -130,12 +91,84 @@ module Aws::EC2
130
91
  data[:throughput]
131
92
  end
132
93
 
94
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
95
+ #
96
+ # </note>
97
+ #
133
98
  # Reserved for future use.
134
99
  # @return [String]
135
100
  def sse_type
136
101
  data[:sse_type]
137
102
  end
138
103
 
104
+ # The service provider that manages the volume.
105
+ # @return [Types::OperatorResponse]
106
+ def operator
107
+ data[:operator]
108
+ end
109
+
110
+ # The Amazon EBS Provisioned Rate for Volume Initialization (volume
111
+ # initialization rate) specified for the volume during creation, in
112
+ # MiB/s. If no volume initialization rate was specified, the value is
113
+ # `null`.
114
+ # @return [Integer]
115
+ def volume_initialization_rate
116
+ data[:volume_initialization_rate]
117
+ end
118
+
119
+ # The size of the volume, in GiBs.
120
+ # @return [Integer]
121
+ def size
122
+ data[:size]
123
+ end
124
+
125
+ # The snapshot from which the volume was created, if applicable.
126
+ # @return [String]
127
+ def snapshot_id
128
+ data[:snapshot_id]
129
+ end
130
+
131
+ # The Availability Zone for the volume.
132
+ # @return [String]
133
+ def availability_zone
134
+ data[:availability_zone]
135
+ end
136
+
137
+ # The volume state.
138
+ # @return [String]
139
+ def state
140
+ data[:state]
141
+ end
142
+
143
+ # The time stamp when volume creation was initiated.
144
+ # @return [Time]
145
+ def create_time
146
+ data[:create_time]
147
+ end
148
+
149
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
150
+ #
151
+ # </note>
152
+ #
153
+ # Information about the volume attachments.
154
+ # @return [Array<Types::VolumeAttachment>]
155
+ def attachments
156
+ data[:attachments]
157
+ end
158
+
159
+ # Indicates whether the volume is encrypted.
160
+ # @return [Boolean]
161
+ def encrypted
162
+ data[:encrypted]
163
+ end
164
+
165
+ # The Amazon Resource Name (ARN) of the KMS key that was used to protect
166
+ # the volume encryption key for the volume.
167
+ # @return [String]
168
+ def kms_key_id
169
+ data[:kms_key_id]
170
+ end
171
+
139
172
  # @!endgroup
140
173
 
141
174
  # @return [Client]
@@ -150,7 +183,7 @@ module Aws::EC2
150
183
  #
151
184
  # @return [self]
152
185
  def load
153
- resp = Aws::Plugins::UserAgent.feature('resource') do
186
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
154
187
  @client.describe_volumes(volume_ids: [@id])
155
188
  end
156
189
  @data = resp.volumes[0]
@@ -267,7 +300,7 @@ module Aws::EC2
267
300
  :retry
268
301
  end
269
302
  end
270
- Aws::Plugins::UserAgent.feature('resource') do
303
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
271
304
  Aws::Waiters::Waiter.new(options).wait({})
272
305
  end
273
306
  end
@@ -294,7 +327,7 @@ module Aws::EC2
294
327
  # @return [Types::VolumeAttachment]
295
328
  def attach_to_instance(options = {})
296
329
  options = options.merge(volume_id: @id)
297
- resp = Aws::Plugins::UserAgent.feature('resource') do
330
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
298
331
  @client.attach_volume(options)
299
332
  end
300
333
  resp.data
@@ -307,7 +340,7 @@ module Aws::EC2
307
340
  # outpost_arn: "String",
308
341
  # tag_specifications: [
309
342
  # {
310
- # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
343
+ # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token, capacity-block, mac-modification-task
311
344
  # tags: [
312
345
  # {
313
346
  # key: "String",
@@ -316,34 +349,46 @@ module Aws::EC2
316
349
  # ],
317
350
  # },
318
351
  # ],
352
+ # location: "regional", # accepts regional, local
319
353
  # dry_run: false,
320
354
  # })
321
355
  # @param [Hash] options ({})
322
356
  # @option options [String] :description
323
357
  # A description for the snapshot.
324
358
  # @option options [String] :outpost_arn
325
- # The Amazon Resource Name (ARN) of the Outpost on which to create a
326
- # local snapshot.
359
+ # <note markdown="1"> Only supported for volumes on Outposts. If the source volume is not on
360
+ # an Outpost, omit this parameter.
327
361
  #
328
- # * To create a snapshot of a volume in a Region, omit this parameter.
329
- # The snapshot is created in the same Region as the volume.
362
+ # </note>
330
363
  #
331
- # * To create a snapshot of a volume on an Outpost and store the
332
- # snapshot in the Region, omit this parameter. The snapshot is created
333
- # in the Region for the Outpost.
364
+ # * To create the snapshot on the same Outpost as the source volume,
365
+ # specify the ARN of that Outpost. The snapshot must be created on the
366
+ # same Outpost as the volume.
334
367
  #
335
- # * To create a snapshot of a volume on an Outpost and store the
336
- # snapshot on an Outpost, specify the ARN of the destination Outpost.
337
- # The snapshot must be created on the same Outpost as the volume.
368
+ # * To create the snapshot in the parent Region of the Outpost, omit
369
+ # this parameter.
338
370
  #
339
371
  # For more information, see [Create local snapshots from volumes on an
340
- # Outpost][1] in the *Amazon Elastic Compute Cloud User Guide*.
372
+ # Outpost][1] in the *Amazon EBS User Guide*.
341
373
  #
342
374
  #
343
375
  #
344
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-snapshot
376
+ # [1]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#create-snapshot
345
377
  # @option options [Array<Types::TagSpecification>] :tag_specifications
346
378
  # The tags to apply to the snapshot during creation.
379
+ # @option options [String] :location
380
+ # <note markdown="1"> Only supported for volumes in Local Zones. If the source volume is not
381
+ # in a Local Zone, omit this parameter.
382
+ #
383
+ # </note>
384
+ #
385
+ # * To create a local snapshot in the same Local Zone as the source
386
+ # volume, specify `local`.
387
+ #
388
+ # * To create a regional snapshot in the parent Region of the Local
389
+ # Zone, specify `regional` or omit this parameter.
390
+ #
391
+ # Default value: `regional`
347
392
  # @option options [Boolean] :dry_run
348
393
  # Checks whether you have the required permissions for the action,
349
394
  # without actually making the request, and provides an error response.
@@ -352,7 +397,7 @@ module Aws::EC2
352
397
  # @return [Snapshot]
353
398
  def create_snapshot(options = {})
354
399
  options = options.merge(volume_id: @id)
355
- resp = Aws::Plugins::UserAgent.feature('resource') do
400
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
356
401
  @client.create_snapshot(options)
357
402
  end
358
403
  Snapshot.new(
@@ -387,7 +432,7 @@ module Aws::EC2
387
432
  def create_tags(options = {})
388
433
  batch = []
389
434
  options = Aws::Util.deep_merge(options, resources: [@id])
390
- resp = Aws::Plugins::UserAgent.feature('resource') do
435
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
391
436
  @client.create_tags(options)
392
437
  end
393
438
  options[:tags].each do |t|
@@ -434,7 +479,7 @@ module Aws::EC2
434
479
  def delete_tags(options = {})
435
480
  batch = []
436
481
  options = Aws::Util.deep_merge(options, resources: [@id])
437
- resp = Aws::Plugins::UserAgent.feature('resource') do
482
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
438
483
  @client.delete_tags(options)
439
484
  end
440
485
  options[:tags].each do |t|
@@ -462,7 +507,7 @@ module Aws::EC2
462
507
  # @return [EmptyStructure]
463
508
  def delete(options = {})
464
509
  options = options.merge(volume_id: @id)
465
- resp = Aws::Plugins::UserAgent.feature('resource') do
510
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
466
511
  @client.delete_volume(options)
467
512
  end
468
513
  resp.data
@@ -485,7 +530,7 @@ module Aws::EC2
485
530
  # @return [Types::DescribeVolumeAttributeResult]
486
531
  def describe_attribute(options = {})
487
532
  options = options.merge(volume_id: @id)
488
- resp = Aws::Plugins::UserAgent.feature('resource') do
533
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
489
534
  @client.describe_volume_attribute(options)
490
535
  end
491
536
  resp.data
@@ -494,17 +539,33 @@ module Aws::EC2
494
539
  # @example Request syntax with placeholder values
495
540
  #
496
541
  # volume.describe_status({
542
+ # max_results: 1,
543
+ # next_token: "String",
544
+ # dry_run: false,
497
545
  # filters: [
498
546
  # {
499
547
  # name: "String",
500
548
  # values: ["String"],
501
549
  # },
502
550
  # ],
503
- # max_results: 1,
504
- # next_token: "String",
505
- # dry_run: false,
506
551
  # })
507
552
  # @param [Hash] options ({})
553
+ # @option options [Integer] :max_results
554
+ # The maximum number of items to return for this request. To get the
555
+ # next page of items, make another request with the token returned in
556
+ # the output. For more information, see [Pagination][1].
557
+ #
558
+ #
559
+ #
560
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
561
+ # @option options [String] :next_token
562
+ # The token returned from a previous paginated request. Pagination
563
+ # continues from the end of the items returned by the previous request.
564
+ # @option options [Boolean] :dry_run
565
+ # Checks whether you have the required permissions for the action,
566
+ # without actually making the request, and provides an error response.
567
+ # If you have the required permissions, the error response is
568
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
508
569
  # @option options [Array<Types::Filter>] :filters
509
570
  # The filters.
510
571
  #
@@ -539,30 +600,10 @@ module Aws::EC2
539
600
  #
540
601
  # * `volume-status.status` - The status of the volume (`ok` \|
541
602
  # `impaired` \| `warning` \| `insufficient-data`).
542
- # @option options [Integer] :max_results
543
- # The maximum number of items to return for this request. To get the
544
- # next page of items, make another request with the token returned in
545
- # the output. This value can be between 5 and 1,000; if the value is
546
- # larger than 1,000, only 1,000 results are returned. If this parameter
547
- # is not used, then all items are returned. You cannot specify this
548
- # parameter and the volume IDs parameter in the same request. For more
549
- # information, see [Pagination][1].
550
- #
551
- #
552
- #
553
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
554
- # @option options [String] :next_token
555
- # The token returned from a previous paginated request. Pagination
556
- # continues from the end of the items returned by the previous request.
557
- # @option options [Boolean] :dry_run
558
- # Checks whether you have the required permissions for the action,
559
- # without actually making the request, and provides an error response.
560
- # If you have the required permissions, the error response is
561
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
562
603
  # @return [Types::DescribeVolumeStatusResult]
563
604
  def describe_status(options = {})
564
605
  options = Aws::Util.deep_merge(options, volume_ids: [@id])
565
- resp = Aws::Plugins::UserAgent.feature('resource') do
606
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
566
607
  @client.describe_volume_status(options)
567
608
  end
568
609
  resp.data
@@ -599,7 +640,7 @@ module Aws::EC2
599
640
  # @return [Types::VolumeAttachment]
600
641
  def detach_from_instance(options = {})
601
642
  options = options.merge(volume_id: @id)
602
- resp = Aws::Plugins::UserAgent.feature('resource') do
643
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
603
644
  @client.detach_volume(options)
604
645
  end
605
646
  resp.data
@@ -619,7 +660,7 @@ module Aws::EC2
619
660
  # @return [EmptyStructure]
620
661
  def enable_io(options = {})
621
662
  options = options.merge(volume_id: @id)
622
- resp = Aws::Plugins::UserAgent.feature('resource') do
663
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
623
664
  @client.enable_volume_io(options)
624
665
  end
625
666
  resp.data
@@ -645,7 +686,7 @@ module Aws::EC2
645
686
  # @return [EmptyStructure]
646
687
  def modify_attribute(options = {})
647
688
  options = options.merge(volume_id: @id)
648
- resp = Aws::Plugins::UserAgent.feature('resource') do
689
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
649
690
  @client.modify_volume_attribute(options)
650
691
  end
651
692
  resp.data
@@ -656,18 +697,35 @@ module Aws::EC2
656
697
  # @example Request syntax with placeholder values
657
698
  #
658
699
  # snapshots = volume.snapshots({
700
+ # owner_ids: ["String"],
701
+ # restorable_by_user_ids: ["String"],
702
+ # snapshot_ids: ["SnapshotId"],
703
+ # dry_run: false,
659
704
  # filters: [
660
705
  # {
661
706
  # name: "String",
662
707
  # values: ["String"],
663
708
  # },
664
709
  # ],
665
- # owner_ids: ["String"],
666
- # restorable_by_user_ids: ["String"],
667
- # snapshot_ids: ["SnapshotId"],
668
- # dry_run: false,
669
710
  # })
670
711
  # @param [Hash] options ({})
712
+ # @option options [Array<String>] :owner_ids
713
+ # Scopes the results to snapshots with the specified owners. You can
714
+ # specify a combination of Amazon Web Services account IDs, `self`, and
715
+ # `amazon`.
716
+ # @option options [Array<String>] :restorable_by_user_ids
717
+ # The IDs of the Amazon Web Services accounts that can create volumes
718
+ # from the snapshot.
719
+ # @option options [Array<String>] :snapshot_ids
720
+ # The snapshot IDs.
721
+ #
722
+ # Default: Describes the snapshots for which you have create volume
723
+ # permissions.
724
+ # @option options [Boolean] :dry_run
725
+ # Checks whether you have the required permissions for the action,
726
+ # without actually making the request, and provides an error response.
727
+ # If you have the required permissions, the error response is
728
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
671
729
  # @option options [Array<Types::Filter>] :filters
672
730
  # The filters.
673
731
  #
@@ -697,6 +755,9 @@ module Aws::EC2
697
755
  # * `storage-tier` - The storage tier of the snapshot (`archive` \|
698
756
  # `standard`).
699
757
  #
758
+ # * `transfer-type` - The type of operation used to create the snapshot
759
+ # (`time-based` \| `standard`).
760
+ #
700
761
  # * `tag`:&lt;key&gt; - The key/value combination of a tag assigned to
701
762
  # the resource. Use the tag key in the filter name and the tag value
702
763
  # as the filter value. For example, to find all resources that have a
@@ -710,23 +771,6 @@ module Aws::EC2
710
771
  # * `volume-id` - The ID of the volume the snapshot is for.
711
772
  #
712
773
  # * `volume-size` - The size of the volume, in GiB.
713
- # @option options [Array<String>] :owner_ids
714
- # Scopes the results to snapshots with the specified owners. You can
715
- # specify a combination of Amazon Web Services account IDs, `self`, and
716
- # `amazon`.
717
- # @option options [Array<String>] :restorable_by_user_ids
718
- # The IDs of the Amazon Web Services accounts that can create volumes
719
- # from the snapshot.
720
- # @option options [Array<String>] :snapshot_ids
721
- # The snapshot IDs.
722
- #
723
- # Default: Describes the snapshots for which you have create volume
724
- # permissions.
725
- # @option options [Boolean] :dry_run
726
- # Checks whether you have the required permissions for the action,
727
- # without actually making the request, and provides an error response.
728
- # If you have the required permissions, the error response is
729
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
730
774
  # @return [Snapshot::Collection]
731
775
  def snapshots(options = {})
732
776
  batches = Enumerator.new do |y|
@@ -734,7 +778,7 @@ module Aws::EC2
734
778
  name: "volume-id",
735
779
  values: [@id]
736
780
  }])
737
- resp = Aws::Plugins::UserAgent.feature('resource') do
781
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
738
782
  @client.describe_snapshots(options)
739
783
  end
740
784
  resp.each_page do |page|