aws-sdk-ec2 1.364.0 → 1.365.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +343 -198
- data/lib/aws-sdk-ec2/client_api.rb +4 -4
- data/lib/aws-sdk-ec2/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-ec2/endpoint_provider.rb +34 -31
- data/lib/aws-sdk-ec2/types.rb +442 -259
- data/lib/aws-sdk-ec2/volume.rb +13 -14
- data/lib/aws-sdk-ec2/waiters.rb +45 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
data/lib/aws-sdk-ec2/volume.rb
CHANGED
@@ -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
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
526
|
-
#
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
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
|
533
|
-
#
|
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.
|
data/lib/aws-sdk-ec2/waiters.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|