aws-sdk-s3 1.61.1 → 1.61.2
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 +5 -5
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/bucket.rb +16 -12
- data/lib/aws-sdk-s3/bucket_acl.rb +13 -11
- data/lib/aws-sdk-s3/bucket_cors.rb +13 -11
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +13 -11
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +13 -11
- data/lib/aws-sdk-s3/bucket_logging.rb +13 -11
- data/lib/aws-sdk-s3/bucket_notification.rb +13 -11
- data/lib/aws-sdk-s3/bucket_policy.rb +13 -11
- data/lib/aws-sdk-s3/bucket_request_payment.rb +13 -11
- data/lib/aws-sdk-s3/bucket_tagging.rb +13 -11
- data/lib/aws-sdk-s3/bucket_versioning.rb +13 -11
- data/lib/aws-sdk-s3/bucket_website.rb +13 -11
- data/lib/aws-sdk-s3/client.rb +49 -24
- data/lib/aws-sdk-s3/multipart_upload.rb +13 -11
- data/lib/aws-sdk-s3/multipart_upload_part.rb +13 -11
- data/lib/aws-sdk-s3/object.rb +16 -12
- data/lib/aws-sdk-s3/object_acl.rb +13 -11
- data/lib/aws-sdk-s3/object_summary.rb +16 -12
- data/lib/aws-sdk-s3/object_version.rb +13 -11
- data/lib/aws-sdk-s3/plugins/md5s.rb +2 -0
- data/lib/aws-sdk-s3/resource.rb +6 -1
- data/lib/aws-sdk-s3/waiters.rb +64 -0
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 78cdfcf48bd51a03dbd3c59b32b1911ed9a1e1d9
|
|
4
|
+
data.tar.gz: c4e92d45fc239636c237fb1acad005ecc9162763
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5d25ecae5a1d929778c7040a5f18572b6f4562d16be623de24eba1e67630370859f44973238d0e206bab3682918ec0b2d9864328511168067179424095418bcd
|
|
7
|
+
data.tar.gz: 3438b81790a35d71c15e025620ec8104f803239bb050db632eccf8d288f2360b2f25a0fcbd5a9c77b3372629f12907dee37d17c4d7a11f99c1d43710f0d0ddcd
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/bucket.rb
CHANGED
|
@@ -121,7 +121,8 @@ module Aws::S3
|
|
|
121
121
|
# Waiter polls an API operation until a resource enters a desired
|
|
122
122
|
# state.
|
|
123
123
|
#
|
|
124
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
124
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
125
|
+
# remains unchanged.
|
|
125
126
|
#
|
|
126
127
|
# ## Basic Usage
|
|
127
128
|
#
|
|
@@ -134,13 +135,15 @@ module Aws::S3
|
|
|
134
135
|
#
|
|
135
136
|
# ## Example
|
|
136
137
|
#
|
|
137
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
138
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
139
|
+
# instance.state.name == 'running'
|
|
140
|
+
# end
|
|
138
141
|
#
|
|
139
142
|
# ## Configuration
|
|
140
143
|
#
|
|
141
144
|
# You can configure the maximum number of polling attempts, and the
|
|
142
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
143
|
-
# by passing a block to {#wait_until}:
|
|
145
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
146
|
+
# set by passing a block to {#wait_until}:
|
|
144
147
|
#
|
|
145
148
|
# # poll for ~25 seconds
|
|
146
149
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -171,17 +174,16 @@ module Aws::S3
|
|
|
171
174
|
# # resource did not enter the desired state in time
|
|
172
175
|
# end
|
|
173
176
|
#
|
|
177
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
174
178
|
#
|
|
175
|
-
# @
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
# because the waiter has entered a state that it will not transition
|
|
179
|
-
# out of, preventing success.
|
|
179
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
180
|
+
# terminates because the waiter has entered a state that it will not
|
|
181
|
+
# transition out of, preventing success.
|
|
180
182
|
#
|
|
181
183
|
# yet successful.
|
|
182
184
|
#
|
|
183
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
184
|
-
# while polling for a resource that is not expected.
|
|
185
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
186
|
+
# encountered while polling for a resource that is not expected.
|
|
185
187
|
#
|
|
186
188
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
187
189
|
#
|
|
@@ -836,7 +838,9 @@ module Aws::S3
|
|
|
836
838
|
end
|
|
837
839
|
|
|
838
840
|
def separate_params_and_options(options)
|
|
839
|
-
opts = Set.new(
|
|
841
|
+
opts = Set.new(
|
|
842
|
+
[:client, :max_attempts, :delay, :before_attempt, :before_wait]
|
|
843
|
+
)
|
|
840
844
|
waiter_opts = {}
|
|
841
845
|
waiter_params = {}
|
|
842
846
|
options.each_pair do |key, value|
|
|
@@ -84,7 +84,8 @@ module Aws::S3
|
|
|
84
84
|
# Waiter polls an API operation until a resource enters a desired
|
|
85
85
|
# state.
|
|
86
86
|
#
|
|
87
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
87
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
88
|
+
# remains unchanged.
|
|
88
89
|
#
|
|
89
90
|
# ## Basic Usage
|
|
90
91
|
#
|
|
@@ -97,13 +98,15 @@ module Aws::S3
|
|
|
97
98
|
#
|
|
98
99
|
# ## Example
|
|
99
100
|
#
|
|
100
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
101
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
102
|
+
# instance.state.name == 'running'
|
|
103
|
+
# end
|
|
101
104
|
#
|
|
102
105
|
# ## Configuration
|
|
103
106
|
#
|
|
104
107
|
# You can configure the maximum number of polling attempts, and the
|
|
105
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
106
|
-
# by passing a block to {#wait_until}:
|
|
108
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
109
|
+
# set by passing a block to {#wait_until}:
|
|
107
110
|
#
|
|
108
111
|
# # poll for ~25 seconds
|
|
109
112
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -134,17 +137,16 @@ module Aws::S3
|
|
|
134
137
|
# # resource did not enter the desired state in time
|
|
135
138
|
# end
|
|
136
139
|
#
|
|
140
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
137
141
|
#
|
|
138
|
-
# @
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
# because the waiter has entered a state that it will not transition
|
|
142
|
-
# out of, preventing success.
|
|
142
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
143
|
+
# terminates because the waiter has entered a state that it will not
|
|
144
|
+
# transition out of, preventing success.
|
|
143
145
|
#
|
|
144
146
|
# yet successful.
|
|
145
147
|
#
|
|
146
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
147
|
-
# while polling for a resource that is not expected.
|
|
148
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
149
|
+
# encountered while polling for a resource that is not expected.
|
|
148
150
|
#
|
|
149
151
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
150
152
|
#
|
|
@@ -79,7 +79,8 @@ module Aws::S3
|
|
|
79
79
|
# Waiter polls an API operation until a resource enters a desired
|
|
80
80
|
# state.
|
|
81
81
|
#
|
|
82
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
82
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
83
|
+
# remains unchanged.
|
|
83
84
|
#
|
|
84
85
|
# ## Basic Usage
|
|
85
86
|
#
|
|
@@ -92,13 +93,15 @@ module Aws::S3
|
|
|
92
93
|
#
|
|
93
94
|
# ## Example
|
|
94
95
|
#
|
|
95
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
96
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
97
|
+
# instance.state.name == 'running'
|
|
98
|
+
# end
|
|
96
99
|
#
|
|
97
100
|
# ## Configuration
|
|
98
101
|
#
|
|
99
102
|
# You can configure the maximum number of polling attempts, and the
|
|
100
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
101
|
-
# by passing a block to {#wait_until}:
|
|
103
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
104
|
+
# set by passing a block to {#wait_until}:
|
|
102
105
|
#
|
|
103
106
|
# # poll for ~25 seconds
|
|
104
107
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -129,17 +132,16 @@ module Aws::S3
|
|
|
129
132
|
# # resource did not enter the desired state in time
|
|
130
133
|
# end
|
|
131
134
|
#
|
|
135
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
132
136
|
#
|
|
133
|
-
# @
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
# because the waiter has entered a state that it will not transition
|
|
137
|
-
# out of, preventing success.
|
|
137
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
138
|
+
# terminates because the waiter has entered a state that it will not
|
|
139
|
+
# transition out of, preventing success.
|
|
138
140
|
#
|
|
139
141
|
# yet successful.
|
|
140
142
|
#
|
|
141
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
142
|
-
# while polling for a resource that is not expected.
|
|
143
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
144
|
+
# encountered while polling for a resource that is not expected.
|
|
143
145
|
#
|
|
144
146
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
145
147
|
#
|
|
@@ -78,7 +78,8 @@ module Aws::S3
|
|
|
78
78
|
# Waiter polls an API operation until a resource enters a desired
|
|
79
79
|
# state.
|
|
80
80
|
#
|
|
81
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
81
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
82
|
+
# remains unchanged.
|
|
82
83
|
#
|
|
83
84
|
# ## Basic Usage
|
|
84
85
|
#
|
|
@@ -91,13 +92,15 @@ module Aws::S3
|
|
|
91
92
|
#
|
|
92
93
|
# ## Example
|
|
93
94
|
#
|
|
94
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
95
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
96
|
+
# instance.state.name == 'running'
|
|
97
|
+
# end
|
|
95
98
|
#
|
|
96
99
|
# ## Configuration
|
|
97
100
|
#
|
|
98
101
|
# You can configure the maximum number of polling attempts, and the
|
|
99
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
100
|
-
# by passing a block to {#wait_until}:
|
|
102
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
103
|
+
# set by passing a block to {#wait_until}:
|
|
101
104
|
#
|
|
102
105
|
# # poll for ~25 seconds
|
|
103
106
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -128,17 +131,16 @@ module Aws::S3
|
|
|
128
131
|
# # resource did not enter the desired state in time
|
|
129
132
|
# end
|
|
130
133
|
#
|
|
134
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
131
135
|
#
|
|
132
|
-
# @
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
# because the waiter has entered a state that it will not transition
|
|
136
|
-
# out of, preventing success.
|
|
136
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
137
|
+
# terminates because the waiter has entered a state that it will not
|
|
138
|
+
# transition out of, preventing success.
|
|
137
139
|
#
|
|
138
140
|
# yet successful.
|
|
139
141
|
#
|
|
140
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
141
|
-
# while polling for a resource that is not expected.
|
|
142
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
143
|
+
# encountered while polling for a resource that is not expected.
|
|
142
144
|
#
|
|
143
145
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
144
146
|
#
|
|
@@ -78,7 +78,8 @@ module Aws::S3
|
|
|
78
78
|
# Waiter polls an API operation until a resource enters a desired
|
|
79
79
|
# state.
|
|
80
80
|
#
|
|
81
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
81
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
82
|
+
# remains unchanged.
|
|
82
83
|
#
|
|
83
84
|
# ## Basic Usage
|
|
84
85
|
#
|
|
@@ -91,13 +92,15 @@ module Aws::S3
|
|
|
91
92
|
#
|
|
92
93
|
# ## Example
|
|
93
94
|
#
|
|
94
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
95
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
96
|
+
# instance.state.name == 'running'
|
|
97
|
+
# end
|
|
95
98
|
#
|
|
96
99
|
# ## Configuration
|
|
97
100
|
#
|
|
98
101
|
# You can configure the maximum number of polling attempts, and the
|
|
99
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
100
|
-
# by passing a block to {#wait_until}:
|
|
102
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
103
|
+
# set by passing a block to {#wait_until}:
|
|
101
104
|
#
|
|
102
105
|
# # poll for ~25 seconds
|
|
103
106
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -128,17 +131,16 @@ module Aws::S3
|
|
|
128
131
|
# # resource did not enter the desired state in time
|
|
129
132
|
# end
|
|
130
133
|
#
|
|
134
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
131
135
|
#
|
|
132
|
-
# @
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
# because the waiter has entered a state that it will not transition
|
|
136
|
-
# out of, preventing success.
|
|
136
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
137
|
+
# terminates because the waiter has entered a state that it will not
|
|
138
|
+
# transition out of, preventing success.
|
|
137
139
|
#
|
|
138
140
|
# yet successful.
|
|
139
141
|
#
|
|
140
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
141
|
-
# while polling for a resource that is not expected.
|
|
142
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
143
|
+
# encountered while polling for a resource that is not expected.
|
|
142
144
|
#
|
|
143
145
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
144
146
|
#
|
|
@@ -85,7 +85,8 @@ module Aws::S3
|
|
|
85
85
|
# Waiter polls an API operation until a resource enters a desired
|
|
86
86
|
# state.
|
|
87
87
|
#
|
|
88
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
88
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
89
|
+
# remains unchanged.
|
|
89
90
|
#
|
|
90
91
|
# ## Basic Usage
|
|
91
92
|
#
|
|
@@ -98,13 +99,15 @@ module Aws::S3
|
|
|
98
99
|
#
|
|
99
100
|
# ## Example
|
|
100
101
|
#
|
|
101
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
102
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
103
|
+
# instance.state.name == 'running'
|
|
104
|
+
# end
|
|
102
105
|
#
|
|
103
106
|
# ## Configuration
|
|
104
107
|
#
|
|
105
108
|
# You can configure the maximum number of polling attempts, and the
|
|
106
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
107
|
-
# by passing a block to {#wait_until}:
|
|
109
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
110
|
+
# set by passing a block to {#wait_until}:
|
|
108
111
|
#
|
|
109
112
|
# # poll for ~25 seconds
|
|
110
113
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -135,17 +138,16 @@ module Aws::S3
|
|
|
135
138
|
# # resource did not enter the desired state in time
|
|
136
139
|
# end
|
|
137
140
|
#
|
|
141
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
138
142
|
#
|
|
139
|
-
# @
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
# because the waiter has entered a state that it will not transition
|
|
143
|
-
# out of, preventing success.
|
|
143
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
144
|
+
# terminates because the waiter has entered a state that it will not
|
|
145
|
+
# transition out of, preventing success.
|
|
144
146
|
#
|
|
145
147
|
# yet successful.
|
|
146
148
|
#
|
|
147
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
148
|
-
# while polling for a resource that is not expected.
|
|
149
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
150
|
+
# encountered while polling for a resource that is not expected.
|
|
149
151
|
#
|
|
150
152
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
151
153
|
#
|
|
@@ -93,7 +93,8 @@ module Aws::S3
|
|
|
93
93
|
# Waiter polls an API operation until a resource enters a desired
|
|
94
94
|
# state.
|
|
95
95
|
#
|
|
96
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
96
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
97
|
+
# remains unchanged.
|
|
97
98
|
#
|
|
98
99
|
# ## Basic Usage
|
|
99
100
|
#
|
|
@@ -106,13 +107,15 @@ module Aws::S3
|
|
|
106
107
|
#
|
|
107
108
|
# ## Example
|
|
108
109
|
#
|
|
109
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
110
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
111
|
+
# instance.state.name == 'running'
|
|
112
|
+
# end
|
|
110
113
|
#
|
|
111
114
|
# ## Configuration
|
|
112
115
|
#
|
|
113
116
|
# You can configure the maximum number of polling attempts, and the
|
|
114
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
115
|
-
# by passing a block to {#wait_until}:
|
|
117
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
118
|
+
# set by passing a block to {#wait_until}:
|
|
116
119
|
#
|
|
117
120
|
# # poll for ~25 seconds
|
|
118
121
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -143,17 +146,16 @@ module Aws::S3
|
|
|
143
146
|
# # resource did not enter the desired state in time
|
|
144
147
|
# end
|
|
145
148
|
#
|
|
149
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
146
150
|
#
|
|
147
|
-
# @
|
|
148
|
-
#
|
|
149
|
-
#
|
|
150
|
-
# because the waiter has entered a state that it will not transition
|
|
151
|
-
# out of, preventing success.
|
|
151
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
152
|
+
# terminates because the waiter has entered a state that it will not
|
|
153
|
+
# transition out of, preventing success.
|
|
152
154
|
#
|
|
153
155
|
# yet successful.
|
|
154
156
|
#
|
|
155
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
156
|
-
# while polling for a resource that is not expected.
|
|
157
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
158
|
+
# encountered while polling for a resource that is not expected.
|
|
157
159
|
#
|
|
158
160
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
159
161
|
#
|
|
@@ -78,7 +78,8 @@ module Aws::S3
|
|
|
78
78
|
# Waiter polls an API operation until a resource enters a desired
|
|
79
79
|
# state.
|
|
80
80
|
#
|
|
81
|
-
# @note The waiting operation is performed on a copy. The original resource
|
|
81
|
+
# @note The waiting operation is performed on a copy. The original resource
|
|
82
|
+
# remains unchanged.
|
|
82
83
|
#
|
|
83
84
|
# ## Basic Usage
|
|
84
85
|
#
|
|
@@ -91,13 +92,15 @@ module Aws::S3
|
|
|
91
92
|
#
|
|
92
93
|
# ## Example
|
|
93
94
|
#
|
|
94
|
-
# instance.wait_until(max_attempts:10, delay:5)
|
|
95
|
+
# instance.wait_until(max_attempts:10, delay:5) do |instance|
|
|
96
|
+
# instance.state.name == 'running'
|
|
97
|
+
# end
|
|
95
98
|
#
|
|
96
99
|
# ## Configuration
|
|
97
100
|
#
|
|
98
101
|
# You can configure the maximum number of polling attempts, and the
|
|
99
|
-
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
100
|
-
# by passing a block to {#wait_until}:
|
|
102
|
+
# delay (in seconds) between each polling attempt. The waiting condition is
|
|
103
|
+
# set by passing a block to {#wait_until}:
|
|
101
104
|
#
|
|
102
105
|
# # poll for ~25 seconds
|
|
103
106
|
# resource.wait_until(max_attempts:5,delay:5) {|resource|...}
|
|
@@ -128,17 +131,16 @@ module Aws::S3
|
|
|
128
131
|
# # resource did not enter the desired state in time
|
|
129
132
|
# end
|
|
130
133
|
#
|
|
134
|
+
# @yieldparam [Resource] resource to be used in the waiting condition.
|
|
131
135
|
#
|
|
132
|
-
# @
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
# because the waiter has entered a state that it will not transition
|
|
136
|
-
# out of, preventing success.
|
|
136
|
+
# @raise [Aws::Waiters::Errors::FailureStateError] Raised when the waiter
|
|
137
|
+
# terminates because the waiter has entered a state that it will not
|
|
138
|
+
# transition out of, preventing success.
|
|
137
139
|
#
|
|
138
140
|
# yet successful.
|
|
139
141
|
#
|
|
140
|
-
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
141
|
-
# while polling for a resource that is not expected.
|
|
142
|
+
# @raise [Aws::Waiters::Errors::UnexpectedError] Raised when an error is
|
|
143
|
+
# encountered while polling for a resource that is not expected.
|
|
142
144
|
#
|
|
143
145
|
# @raise [NotImplementedError] Raised when the resource does not
|
|
144
146
|
#
|