aws-sdk-ec2 1.364.0 → 1.365.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -518,21 +518,20 @@ module Aws::EC2
518
518
  # * `volume-status.status` - The status of the volume (`ok` \|
519
519
  # `impaired` \| `warning` \| `insufficient-data`).
520
520
  # @option options [Integer] :max_results
521
- # The maximum number of volume results returned by
522
- # `DescribeVolumeStatus` in paginated output. When this parameter is
523
- # used, the request only returns `MaxResults` results in a single page
524
- # along with a `NextToken` response element. The remaining results of
525
- # the initial request can be seen by sending another request with the
526
- # returned `NextToken` value. This value can be between 5 and 1,000; if
527
- # `MaxResults` is given a value larger than 1,000, only 1,000 results
528
- # are returned. If this parameter is not used, then
529
- # `DescribeVolumeStatus` returns all results. You cannot specify this
530
- # parameter and the volume IDs parameter in the same request.
521
+ # The maximum number of items to return for this request. To get the
522
+ # next page of items, make another request with the token returned in
523
+ # the output. This value can be between 5 and 1,000; if the value is
524
+ # larger than 1,000, only 1,000 results are returned. If this parameter
525
+ # is not used, then all items are returned. You cannot specify this
526
+ # parameter and the volume IDs parameter in the same request. For more
527
+ # information, see [Pagination][1].
528
+ #
529
+ #
530
+ #
531
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
531
532
  # @option options [String] :next_token
532
- # The `NextToken` value to include in a future `DescribeVolumeStatus`
533
- # request. When the results of the request exceed `MaxResults`, this
534
- # value can be used to retrieve the next page of results. This value is
535
- # `null` when there are no more results to return.
533
+ # The token returned from a previous paginated request. Pagination
534
+ # continues from the end of the items returned by the previous request.
536
535
  # @option options [Boolean] :dry_run
537
536
  # Checks whether you have the required permissions for the action,
538
537
  # without actually making the request, and provides an error response.
@@ -91,6 +91,7 @@ module Aws::EC2
91
91
  # | password_data_available | {Client#get_password_data} | 15 | 40 |
92
92
  # | security_group_exists | {Client#describe_security_groups} | 5 | 6 |
93
93
  # | snapshot_completed | {Client#describe_snapshots} | 15 | 40 |
94
+ # | snapshot_imported | {Client#describe_import_snapshot_tasks} | 15 | 40 |
94
95
  # | spot_instance_request_fulfilled | {Client#describe_spot_instance_requests} | 15 | 40 |
95
96
  # | subnet_available | {Client#describe_subnets} | 15 | 40 |
96
97
  # | system_status_ok | {Client#describe_instance_status} | 15 | 40 |
@@ -1084,6 +1085,50 @@ module Aws::EC2
1084
1085
 
1085
1086
  end
1086
1087
 
1088
+ class SnapshotImported
1089
+
1090
+ # @param [Hash] options
1091
+ # @option options [required, Client] :client
1092
+ # @option options [Integer] :max_attempts (40)
1093
+ # @option options [Integer] :delay (15)
1094
+ # @option options [Proc] :before_attempt
1095
+ # @option options [Proc] :before_wait
1096
+ def initialize(options)
1097
+ @client = options.fetch(:client)
1098
+ @waiter = Aws::Waiters::Waiter.new({
1099
+ max_attempts: 40,
1100
+ delay: 15,
1101
+ poller: Aws::Waiters::Poller.new(
1102
+ operation_name: :describe_import_snapshot_tasks,
1103
+ acceptors: [
1104
+ {
1105
+ "expected" => "completed",
1106
+ "matcher" => "pathAll",
1107
+ "state" => "success",
1108
+ "argument" => "import_snapshot_tasks[].snapshot_task_detail.status"
1109
+ },
1110
+ {
1111
+ "expected" => "error",
1112
+ "matcher" => "pathAny",
1113
+ "state" => "failure",
1114
+ "argument" => "import_snapshot_tasks[].snapshot_task_detail.status"
1115
+ }
1116
+ ]
1117
+ )
1118
+ }.merge(options))
1119
+ end
1120
+
1121
+ # @option (see Client#describe_import_snapshot_tasks)
1122
+ # @return (see Client#describe_import_snapshot_tasks)
1123
+ def wait(params = {})
1124
+ @waiter.wait(client: @client, params: params)
1125
+ end
1126
+
1127
+ # @api private
1128
+ attr_reader :waiter
1129
+
1130
+ end
1131
+
1087
1132
  class SpotInstanceRequestFulfilled
1088
1133
 
1089
1134
  # @param [Hash] options
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.364.0'
79
+ GEM_VERSION = '1.365.0'
80
80
 
81
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.364.0
4
+ version: 1.365.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-02 00:00:00.000000000 Z
11
+ date: 2023-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4