aws-sdk-ec2 1.431.0 → 1.522.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 (68) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +465 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +26 -16
  5. data/lib/aws-sdk-ec2/client.rb +10867 -4155
  6. data/lib/aws-sdk-ec2/client_api.rb +2924 -510
  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 +14 -18
  14. data/lib/aws-sdk-ec2/endpoints.rb +2 -8608
  15. data/lib/aws-sdk-ec2/image.rb +166 -95
  16. data/lib/aws-sdk-ec2/instance.rb +425 -356
  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 +94 -78
  23. data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
  24. data/lib/aws-sdk-ec2/placement_group.rb +37 -19
  25. data/lib/aws-sdk-ec2/plugins/endpoints.rb +20 -1242
  26. data/lib/aws-sdk-ec2/resource.rb +944 -811
  27. data/lib/aws-sdk-ec2/route.rb +34 -34
  28. data/lib/aws-sdk-ec2/route_table.rb +44 -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 +391 -359
  33. data/lib/aws-sdk-ec2/tag.rb +7 -4
  34. data/lib/aws-sdk-ec2/types.rb +13807 -4774
  35. data/lib/aws-sdk-ec2/volume.rb +157 -119
  36. data/lib/aws-sdk-ec2/vpc.rb +278 -224
  37. data/lib/aws-sdk-ec2/vpc_address.rb +31 -21
  38. data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
  39. data/lib/aws-sdk-ec2.rb +40 -36
  40. data/sig/classic_address.rbs +105 -0
  41. data/sig/client.rbs +14622 -0
  42. data/sig/dhcp_options.rbs +84 -0
  43. data/sig/errors.rbs +16 -0
  44. data/sig/image.rbs +228 -0
  45. data/sig/instance.rbs +564 -0
  46. data/sig/internet_gateway.rbs +91 -0
  47. data/sig/key_pair.rbs +54 -0
  48. data/sig/key_pair_info.rbs +63 -0
  49. data/sig/nat_gateway.rbs +107 -0
  50. data/sig/network_acl.rbs +144 -0
  51. data/sig/network_interface.rbs +239 -0
  52. data/sig/network_interface_association.rbs +62 -0
  53. data/sig/placement_group.rbs +78 -0
  54. data/sig/resource.rbs +1042 -0
  55. data/sig/route.rbs +113 -0
  56. data/sig/route_table.rbs +117 -0
  57. data/sig/route_table_association.rbs +69 -0
  58. data/sig/security_group.rbs +311 -0
  59. data/sig/snapshot.rbs +204 -0
  60. data/sig/subnet.rbs +436 -0
  61. data/sig/tag.rbs +63 -0
  62. data/sig/types.rbs +16812 -0
  63. data/sig/volume.rbs +210 -0
  64. data/sig/vpc.rbs +404 -0
  65. data/sig/vpc_address.rbs +101 -0
  66. data/sig/vpc_peering_connection.rbs +84 -0
  67. data/sig/waiters.rbs +664 -0
  68. metadata +44 -18
@@ -35,61 +35,12 @@ 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.
45
- # @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]
67
- end
68
-
69
38
  # The Amazon Resource Name (ARN) of the Outpost.
70
39
  # @return [String]
71
40
  def outpost_arn
72
41
  data[:outpost_arn]
73
42
  end
74
43
 
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
44
  # The number of I/O operations per second (IOPS). For `gp3`, `io1`, and
94
45
  # `io2` volumes, this represents the number of IOPS that are provisioned
95
46
  # for the volume. For `gp2` volumes, this represents the baseline
@@ -112,6 +63,10 @@ module Aws::EC2
112
63
  data[:volume_type]
113
64
  end
114
65
 
66
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
67
+ #
68
+ # </note>
69
+ #
115
70
  # Indicates whether the volume was created using fast snapshot restore.
116
71
  # @return [Boolean]
117
72
  def fast_restored
@@ -130,12 +85,84 @@ module Aws::EC2
130
85
  data[:throughput]
131
86
  end
132
87
 
88
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
89
+ #
90
+ # </note>
91
+ #
133
92
  # Reserved for future use.
134
93
  # @return [String]
135
94
  def sse_type
136
95
  data[:sse_type]
137
96
  end
138
97
 
98
+ # The service provider that manages the volume.
99
+ # @return [Types::OperatorResponse]
100
+ def operator
101
+ data[:operator]
102
+ end
103
+
104
+ # The Amazon EBS Provisioned Rate for Volume Initialization (volume
105
+ # initialization rate) specified for the volume during creation, in
106
+ # MiB/s. If no volume initialization rate was specified, the value is
107
+ # `null`.
108
+ # @return [Integer]
109
+ def volume_initialization_rate
110
+ data[:volume_initialization_rate]
111
+ end
112
+
113
+ # The size of the volume, in GiBs.
114
+ # @return [Integer]
115
+ def size
116
+ data[:size]
117
+ end
118
+
119
+ # The snapshot from which the volume was created, if applicable.
120
+ # @return [String]
121
+ def snapshot_id
122
+ data[:snapshot_id]
123
+ end
124
+
125
+ # The Availability Zone for the volume.
126
+ # @return [String]
127
+ def availability_zone
128
+ data[:availability_zone]
129
+ end
130
+
131
+ # The volume state.
132
+ # @return [String]
133
+ def state
134
+ data[:state]
135
+ end
136
+
137
+ # The time stamp when volume creation was initiated.
138
+ # @return [Time]
139
+ def create_time
140
+ data[:create_time]
141
+ end
142
+
143
+ # <note markdown="1"> This parameter is not returned by CreateVolume.
144
+ #
145
+ # </note>
146
+ #
147
+ # Information about the volume attachments.
148
+ # @return [Array<Types::VolumeAttachment>]
149
+ def attachments
150
+ data[:attachments]
151
+ end
152
+
153
+ # Indicates whether the volume is encrypted.
154
+ # @return [Boolean]
155
+ def encrypted
156
+ data[:encrypted]
157
+ end
158
+
159
+ # The Amazon Resource Name (ARN) of the KMS key that was used to protect
160
+ # the volume encryption key for the volume.
161
+ # @return [String]
162
+ def kms_key_id
163
+ data[:kms_key_id]
164
+ end
165
+
139
166
  # @!endgroup
140
167
 
141
168
  # @return [Client]
@@ -150,7 +177,7 @@ module Aws::EC2
150
177
  #
151
178
  # @return [self]
152
179
  def load
153
- resp = Aws::Plugins::UserAgent.feature('resource') do
180
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
154
181
  @client.describe_volumes(volume_ids: [@id])
155
182
  end
156
183
  @data = resp.volumes[0]
@@ -267,7 +294,7 @@ module Aws::EC2
267
294
  :retry
268
295
  end
269
296
  end
270
- Aws::Plugins::UserAgent.feature('resource') do
297
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
271
298
  Aws::Waiters::Waiter.new(options).wait({})
272
299
  end
273
300
  end
@@ -294,7 +321,7 @@ module Aws::EC2
294
321
  # @return [Types::VolumeAttachment]
295
322
  def attach_to_instance(options = {})
296
323
  options = options.merge(volume_id: @id)
297
- resp = Aws::Plugins::UserAgent.feature('resource') do
324
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
298
325
  @client.attach_volume(options)
299
326
  end
300
327
  resp.data
@@ -307,7 +334,7 @@ module Aws::EC2
307
334
  # outpost_arn: "String",
308
335
  # tag_specifications: [
309
336
  # {
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
337
+ # 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
311
338
  # tags: [
312
339
  # {
313
340
  # key: "String",
@@ -316,34 +343,46 @@ module Aws::EC2
316
343
  # ],
317
344
  # },
318
345
  # ],
346
+ # location: "regional", # accepts regional, local
319
347
  # dry_run: false,
320
348
  # })
321
349
  # @param [Hash] options ({})
322
350
  # @option options [String] :description
323
351
  # A description for the snapshot.
324
352
  # @option options [String] :outpost_arn
325
- # The Amazon Resource Name (ARN) of the Outpost on which to create a
326
- # local snapshot.
353
+ # <note markdown="1"> Only supported for volumes on Outposts. If the source volume is not on
354
+ # an Outpost, omit this parameter.
327
355
  #
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.
356
+ # </note>
330
357
  #
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.
358
+ # * To create the snapshot on the same Outpost as the source volume,
359
+ # specify the ARN of that Outpost. The snapshot must be created on the
360
+ # same Outpost as the volume.
334
361
  #
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.
362
+ # * To create the snapshot in the parent Region of the Outpost, omit
363
+ # this parameter.
338
364
  #
339
365
  # For more information, see [Create local snapshots from volumes on an
340
- # Outpost][1] in the *Amazon Elastic Compute Cloud User Guide*.
366
+ # Outpost][1] in the *Amazon EBS User Guide*.
341
367
  #
342
368
  #
343
369
  #
344
- # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html#create-snapshot
370
+ # [1]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#create-snapshot
345
371
  # @option options [Array<Types::TagSpecification>] :tag_specifications
346
372
  # The tags to apply to the snapshot during creation.
373
+ # @option options [String] :location
374
+ # <note markdown="1"> Only supported for volumes in Local Zones. If the source volume is not
375
+ # in a Local Zone, omit this parameter.
376
+ #
377
+ # </note>
378
+ #
379
+ # * To create a local snapshot in the same Local Zone as the source
380
+ # volume, specify `local`.
381
+ #
382
+ # * To create a regional snapshot in the parent Region of the Local
383
+ # Zone, specify `regional` or omit this parameter.
384
+ #
385
+ # Default value: `regional`
347
386
  # @option options [Boolean] :dry_run
348
387
  # Checks whether you have the required permissions for the action,
349
388
  # without actually making the request, and provides an error response.
@@ -352,7 +391,7 @@ module Aws::EC2
352
391
  # @return [Snapshot]
353
392
  def create_snapshot(options = {})
354
393
  options = options.merge(volume_id: @id)
355
- resp = Aws::Plugins::UserAgent.feature('resource') do
394
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
356
395
  @client.create_snapshot(options)
357
396
  end
358
397
  Snapshot.new(
@@ -387,7 +426,7 @@ module Aws::EC2
387
426
  def create_tags(options = {})
388
427
  batch = []
389
428
  options = Aws::Util.deep_merge(options, resources: [@id])
390
- resp = Aws::Plugins::UserAgent.feature('resource') do
429
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
391
430
  @client.create_tags(options)
392
431
  end
393
432
  options[:tags].each do |t|
@@ -434,7 +473,7 @@ module Aws::EC2
434
473
  def delete_tags(options = {})
435
474
  batch = []
436
475
  options = Aws::Util.deep_merge(options, resources: [@id])
437
- resp = Aws::Plugins::UserAgent.feature('resource') do
476
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
438
477
  @client.delete_tags(options)
439
478
  end
440
479
  options[:tags].each do |t|
@@ -462,7 +501,7 @@ module Aws::EC2
462
501
  # @return [EmptyStructure]
463
502
  def delete(options = {})
464
503
  options = options.merge(volume_id: @id)
465
- resp = Aws::Plugins::UserAgent.feature('resource') do
504
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
466
505
  @client.delete_volume(options)
467
506
  end
468
507
  resp.data
@@ -485,7 +524,7 @@ module Aws::EC2
485
524
  # @return [Types::DescribeVolumeAttributeResult]
486
525
  def describe_attribute(options = {})
487
526
  options = options.merge(volume_id: @id)
488
- resp = Aws::Plugins::UserAgent.feature('resource') do
527
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
489
528
  @client.describe_volume_attribute(options)
490
529
  end
491
530
  resp.data
@@ -494,17 +533,33 @@ module Aws::EC2
494
533
  # @example Request syntax with placeholder values
495
534
  #
496
535
  # volume.describe_status({
536
+ # max_results: 1,
537
+ # next_token: "String",
538
+ # dry_run: false,
497
539
  # filters: [
498
540
  # {
499
541
  # name: "String",
500
542
  # values: ["String"],
501
543
  # },
502
544
  # ],
503
- # max_results: 1,
504
- # next_token: "String",
505
- # dry_run: false,
506
545
  # })
507
546
  # @param [Hash] options ({})
547
+ # @option options [Integer] :max_results
548
+ # The maximum number of items to return for this request. To get the
549
+ # next page of items, make another request with the token returned in
550
+ # the output. For more information, see [Pagination][1].
551
+ #
552
+ #
553
+ #
554
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
555
+ # @option options [String] :next_token
556
+ # The token returned from a previous paginated request. Pagination
557
+ # continues from the end of the items returned by the previous request.
558
+ # @option options [Boolean] :dry_run
559
+ # Checks whether you have the required permissions for the action,
560
+ # without actually making the request, and provides an error response.
561
+ # If you have the required permissions, the error response is
562
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
508
563
  # @option options [Array<Types::Filter>] :filters
509
564
  # The filters.
510
565
  #
@@ -539,30 +594,10 @@ module Aws::EC2
539
594
  #
540
595
  # * `volume-status.status` - The status of the volume (`ok` \|
541
596
  # `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
597
  # @return [Types::DescribeVolumeStatusResult]
563
598
  def describe_status(options = {})
564
599
  options = Aws::Util.deep_merge(options, volume_ids: [@id])
565
- resp = Aws::Plugins::UserAgent.feature('resource') do
600
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
566
601
  @client.describe_volume_status(options)
567
602
  end
568
603
  resp.data
@@ -599,7 +634,7 @@ module Aws::EC2
599
634
  # @return [Types::VolumeAttachment]
600
635
  def detach_from_instance(options = {})
601
636
  options = options.merge(volume_id: @id)
602
- resp = Aws::Plugins::UserAgent.feature('resource') do
637
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
603
638
  @client.detach_volume(options)
604
639
  end
605
640
  resp.data
@@ -619,7 +654,7 @@ module Aws::EC2
619
654
  # @return [EmptyStructure]
620
655
  def enable_io(options = {})
621
656
  options = options.merge(volume_id: @id)
622
- resp = Aws::Plugins::UserAgent.feature('resource') do
657
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
623
658
  @client.enable_volume_io(options)
624
659
  end
625
660
  resp.data
@@ -645,7 +680,7 @@ module Aws::EC2
645
680
  # @return [EmptyStructure]
646
681
  def modify_attribute(options = {})
647
682
  options = options.merge(volume_id: @id)
648
- resp = Aws::Plugins::UserAgent.feature('resource') do
683
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
649
684
  @client.modify_volume_attribute(options)
650
685
  end
651
686
  resp.data
@@ -656,18 +691,35 @@ module Aws::EC2
656
691
  # @example Request syntax with placeholder values
657
692
  #
658
693
  # snapshots = volume.snapshots({
694
+ # owner_ids: ["String"],
695
+ # restorable_by_user_ids: ["String"],
696
+ # snapshot_ids: ["SnapshotId"],
697
+ # dry_run: false,
659
698
  # filters: [
660
699
  # {
661
700
  # name: "String",
662
701
  # values: ["String"],
663
702
  # },
664
703
  # ],
665
- # owner_ids: ["String"],
666
- # restorable_by_user_ids: ["String"],
667
- # snapshot_ids: ["SnapshotId"],
668
- # dry_run: false,
669
704
  # })
670
705
  # @param [Hash] options ({})
706
+ # @option options [Array<String>] :owner_ids
707
+ # Scopes the results to snapshots with the specified owners. You can
708
+ # specify a combination of Amazon Web Services account IDs, `self`, and
709
+ # `amazon`.
710
+ # @option options [Array<String>] :restorable_by_user_ids
711
+ # The IDs of the Amazon Web Services accounts that can create volumes
712
+ # from the snapshot.
713
+ # @option options [Array<String>] :snapshot_ids
714
+ # The snapshot IDs.
715
+ #
716
+ # Default: Describes the snapshots for which you have create volume
717
+ # permissions.
718
+ # @option options [Boolean] :dry_run
719
+ # Checks whether you have the required permissions for the action,
720
+ # without actually making the request, and provides an error response.
721
+ # If you have the required permissions, the error response is
722
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
671
723
  # @option options [Array<Types::Filter>] :filters
672
724
  # The filters.
673
725
  #
@@ -697,6 +749,9 @@ module Aws::EC2
697
749
  # * `storage-tier` - The storage tier of the snapshot (`archive` \|
698
750
  # `standard`).
699
751
  #
752
+ # * `transfer-type` - The type of operation used to create the snapshot
753
+ # (`time-based` \| `standard`).
754
+ #
700
755
  # * `tag`:&lt;key&gt; - The key/value combination of a tag assigned to
701
756
  # the resource. Use the tag key in the filter name and the tag value
702
757
  # as the filter value. For example, to find all resources that have a
@@ -710,23 +765,6 @@ module Aws::EC2
710
765
  # * `volume-id` - The ID of the volume the snapshot is for.
711
766
  #
712
767
  # * `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
768
  # @return [Snapshot::Collection]
731
769
  def snapshots(options = {})
732
770
  batches = Enumerator.new do |y|
@@ -734,7 +772,7 @@ module Aws::EC2
734
772
  name: "volume-id",
735
773
  values: [@id]
736
774
  }])
737
- resp = Aws::Plugins::UserAgent.feature('resource') do
775
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
738
776
  @client.describe_snapshots(options)
739
777
  end
740
778
  resp.each_page do |page|