aws-sdk-cloudfront 1.114.0 → 1.115.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-cloudfront/client.rb +1742 -117
- data/lib/aws-sdk-cloudfront/client_api.rb +907 -0
- data/lib/aws-sdk-cloudfront/errors.rb +32 -0
- data/lib/aws-sdk-cloudfront/types.rb +1889 -32
- data/lib/aws-sdk-cloudfront/waiters.rb +43 -5
- data/lib/aws-sdk-cloudfront.rb +1 -1
- data/sig/client.rbs +454 -9
- data/sig/errors.rbs +6 -0
- data/sig/types.rbs +512 -4
- data/sig/waiters.rbs +11 -0
- metadata +2 -2
@@ -67,11 +67,12 @@ module Aws::CloudFront
|
|
67
67
|
# The following table lists the valid waiter names, the operations they call,
|
68
68
|
# and the default `:delay` and `:max_attempts` values.
|
69
69
|
#
|
70
|
-
# | waiter_name
|
71
|
-
# |
|
72
|
-
# | distribution_deployed
|
73
|
-
# | invalidation_completed
|
74
|
-
# |
|
70
|
+
# | waiter_name | params | :delay | :max_attempts |
|
71
|
+
# | ---------------------------------------------- | ------------------------------------------------- | -------- | ------------- |
|
72
|
+
# | distribution_deployed | {Client#get_distribution} | 60 | 35 |
|
73
|
+
# | invalidation_completed | {Client#get_invalidation} | 20 | 30 |
|
74
|
+
# | invalidation_for_distribution_tenant_completed | {Client#get_invalidation_for_distribution_tenant} | 20 | 30 |
|
75
|
+
# | streaming_distribution_deployed | {Client#get_streaming_distribution} | 60 | 25 |
|
75
76
|
#
|
76
77
|
module Waiters
|
77
78
|
|
@@ -149,6 +150,43 @@ module Aws::CloudFront
|
|
149
150
|
|
150
151
|
end
|
151
152
|
|
153
|
+
# Wait until an invalidation for distribution tenant has completed.
|
154
|
+
class InvalidationForDistributionTenantCompleted
|
155
|
+
|
156
|
+
# @param [Hash] options
|
157
|
+
# @option options [required, Client] :client
|
158
|
+
# @option options [Integer] :max_attempts (30)
|
159
|
+
# @option options [Integer] :delay (20)
|
160
|
+
# @option options [Proc] :before_attempt
|
161
|
+
# @option options [Proc] :before_wait
|
162
|
+
def initialize(options)
|
163
|
+
@client = options.fetch(:client)
|
164
|
+
@waiter = Aws::Waiters::Waiter.new({
|
165
|
+
max_attempts: 30,
|
166
|
+
delay: 20,
|
167
|
+
poller: Aws::Waiters::Poller.new(
|
168
|
+
operation_name: :get_invalidation_for_distribution_tenant,
|
169
|
+
acceptors: [{
|
170
|
+
"matcher" => "path",
|
171
|
+
"argument" => "invalidation.status",
|
172
|
+
"state" => "success",
|
173
|
+
"expected" => "Completed"
|
174
|
+
}]
|
175
|
+
)
|
176
|
+
}.merge(options))
|
177
|
+
end
|
178
|
+
|
179
|
+
# @option (see Client#get_invalidation_for_distribution_tenant)
|
180
|
+
# @return (see Client#get_invalidation_for_distribution_tenant)
|
181
|
+
def wait(params = {})
|
182
|
+
@waiter.wait(client: @client, params: params)
|
183
|
+
end
|
184
|
+
|
185
|
+
# @api private
|
186
|
+
attr_reader :waiter
|
187
|
+
|
188
|
+
end
|
189
|
+
|
152
190
|
# Wait until a streaming distribution is deployed.
|
153
191
|
class StreamingDistributionDeployed
|
154
192
|
|