aws-sdk-cloudfront 1.26.0 → 1.27.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b377334a0c36a314560f12962831526e96258b7d
4
- data.tar.gz: fcd47dd54ef0430f24492dcc724f05b31446c327
2
+ SHA256:
3
+ metadata.gz: 7f93abab99808eadaa877a0195106ce2f3bb02e4899d83633930a58ea86a6bc2
4
+ data.tar.gz: cdfa566d8e2f9c69709ac9ad6686b5bdbc50af390a43e8039417613fa148569e
5
5
  SHA512:
6
- metadata.gz: 6d4e1ee11180bc758447383709255bb9cf25d73bd65e4332957d15084c9036f6f99f99137cf38ea4e778b13d071c259a742a850397e81c7102fa18b6f2a9b6a5
7
- data.tar.gz: ce5429ab6a0cd7b9b3d36e16a07191c794483a7fd2d0ae26d41a9ca93a70ae20d9a49edc42cf7288b56dfcb6d6067498f75ac6859225460d1137b80b0e0f588e
6
+ metadata.gz: 8730c76a34ac99860ebce41aa49662d8a47017cdc9388ce445335e3bc0a0bda1c5bc1c31d0f42293b687cd818d8aae249788f13ad17f40bc91390984ed3edbbe
7
+ data.tar.gz: 1dcf93ab7dcb45a26f75dff4380346af8b5ffd173e0dec9e2d9746e0bc0606371e25964fc06cc767d992a39b35aa74a3ecb1e23a7d774c557b9c64a8a9ebbd45
@@ -46,6 +46,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
46
46
  # @service
47
47
  module Aws::CloudFront
48
48
 
49
- GEM_VERSION = '1.26.0'
49
+ GEM_VERSION = '1.27.0'
50
50
 
51
51
  end
@@ -32,11 +32,11 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:cloudfront)
32
32
  module Aws::CloudFront
33
33
  # An API client for CloudFront. To construct a client, you need to configure a `:region` and `:credentials`.
34
34
  #
35
- # client = Aws::CloudFront::Client.new(
36
- # region: region_name,
37
- # credentials: credentials,
38
- # # ...
39
- # )
35
+ # client = Aws::CloudFront::Client.new(
36
+ # region: region_name,
37
+ # credentials: credentials,
38
+ # # ...
39
+ # )
40
40
  #
41
41
  # For details on configuring region and credentials see
42
42
  # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
@@ -105,7 +105,7 @@ module Aws::CloudFront
105
105
  # @option options [required, String] :region
106
106
  # The AWS region to connect to. The configured `:region` is
107
107
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
108
+ # a default `:region` is searched for in the following locations:
109
109
  #
110
110
  # * `Aws.config[:region]`
111
111
  # * `ENV['AWS_REGION']`
@@ -161,7 +161,7 @@ module Aws::CloudFront
161
161
  # @option options [String] :endpoint
162
162
  # The client endpoint is normally constructed from the `:region`
163
163
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
164
+ # to test endpoints. This should be a valid HTTP(S) URI.
165
165
  #
166
166
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
167
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -229,15 +229,19 @@ module Aws::CloudFront
229
229
  #
230
230
  # @option options [String] :retry_mode ("legacy")
231
231
  # Specifies which retry algorithm to use. Values are:
232
- # * `legacy` - The pre-existing retry behavior. This is default value if
233
- # no retry mode is provided.
234
- # * `standard` - A standardized set of retry rules across the AWS SDKs.
235
- # This includes support for retry quotas, which limit the number of
236
- # unsuccessful retries a client can make.
237
- # * `adaptive` - An experimental retry mode that includes all the
238
- # functionality of `standard` mode along with automatic client side
239
- # throttling. This is a provisional mode that may change behavior
240
- # in the future.
232
+ #
233
+ # * `legacy` - The pre-existing retry behavior. This is default value if
234
+ # no retry mode is provided.
235
+ #
236
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
237
+ # This includes support for retry quotas, which limit the number of
238
+ # unsuccessful retries a client can make.
239
+ #
240
+ # * `adaptive` - An experimental retry mode that includes all the
241
+ # functionality of `standard` mode along with automatic client side
242
+ # throttling. This is a provisional mode that may change behavior
243
+ # in the future.
244
+ #
241
245
  #
242
246
  # @option options [String] :secret_access_key
243
247
  #
@@ -265,8 +269,7 @@ module Aws::CloudFront
265
269
  #
266
270
  # @option options [Integer] :http_read_timeout (60) The default
267
271
  # number of seconds to wait for response data. This value can
268
- # safely be set
269
- # per-request on the session yielded by {#session_for}.
272
+ # safely be set per-request on the session.
270
273
  #
271
274
  # @option options [Float] :http_idle_timeout (5) The number of
272
275
  # seconds a connection is allowed to sit idle before it is
@@ -278,7 +281,7 @@ module Aws::CloudFront
278
281
  # request body. This option has no effect unless the request has
279
282
  # "Expect" header set to "100-continue". Defaults to `nil` which
280
283
  # disables this behaviour. This value can safely be set per
281
- # request on the session yielded by {#session_for}.
284
+ # request on the session.
282
285
  #
283
286
  # @option options [Boolean] :http_wire_trace (false) When `true`,
284
287
  # HTTP debug output will be sent to the `:logger`.
@@ -2019,6 +2022,11 @@ module Aws::CloudFront
2019
2022
  # resp.distribution.alias_icp_recordals[0].icp_recordal_status #=> String, one of "APPROVED", "SUSPENDED", "PENDING"
2020
2023
  # resp.etag #=> String
2021
2024
  #
2025
+ #
2026
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2027
+ #
2028
+ # * distribution_deployed
2029
+ #
2022
2030
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetDistribution2019_03_26 AWS API Documentation
2023
2031
  #
2024
2032
  # @overload get_distribution(params = {})
@@ -2387,6 +2395,11 @@ module Aws::CloudFront
2387
2395
  # resp.invalidation.invalidation_batch.paths.items[0] #=> String
2388
2396
  # resp.invalidation.invalidation_batch.caller_reference #=> String
2389
2397
  #
2398
+ #
2399
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2400
+ #
2401
+ # * invalidation_completed
2402
+ #
2390
2403
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetInvalidation2019_03_26 AWS API Documentation
2391
2404
  #
2392
2405
  # @overload get_invalidation(params = {})
@@ -2513,6 +2526,11 @@ module Aws::CloudFront
2513
2526
  # resp.streaming_distribution.streaming_distribution_config.enabled #=> Boolean
2514
2527
  # resp.etag #=> String
2515
2528
  #
2529
+ #
2530
+ # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
2531
+ #
2532
+ # * streaming_distribution_deployed
2533
+ #
2516
2534
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/GetStreamingDistribution2019_03_26 AWS API Documentation
2517
2535
  #
2518
2536
  # @overload get_streaming_distribution(params = {})
@@ -2585,6 +2603,8 @@ module Aws::CloudFront
2585
2603
  #
2586
2604
  # * {Types::ListCloudFrontOriginAccessIdentitiesResult#cloud_front_origin_access_identity_list #cloud_front_origin_access_identity_list} => Types::CloudFrontOriginAccessIdentityList
2587
2605
  #
2606
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2607
+ #
2588
2608
  # @example Request syntax with placeholder values
2589
2609
  #
2590
2610
  # resp = client.list_cloud_front_origin_access_identities({
@@ -2629,6 +2649,8 @@ module Aws::CloudFront
2629
2649
  #
2630
2650
  # * {Types::ListDistributionsResult#distribution_list #distribution_list} => Types::DistributionList
2631
2651
  #
2652
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2653
+ #
2632
2654
  # @example Request syntax with placeholder values
2633
2655
  #
2634
2656
  # resp = client.list_distributions({
@@ -3099,6 +3121,8 @@ module Aws::CloudFront
3099
3121
  #
3100
3122
  # * {Types::ListInvalidationsResult#invalidation_list #invalidation_list} => Types::InvalidationList
3101
3123
  #
3124
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3125
+ #
3102
3126
  # @example Request syntax with placeholder values
3103
3127
  #
3104
3128
  # resp = client.list_invalidations({
@@ -3185,6 +3209,8 @@ module Aws::CloudFront
3185
3209
  #
3186
3210
  # * {Types::ListStreamingDistributionsResult#streaming_distribution_list #streaming_distribution_list} => Types::StreamingDistributionList
3187
3211
  #
3212
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3213
+ #
3188
3214
  # @example Request syntax with placeholder values
3189
3215
  #
3190
3216
  # resp = client.list_streaming_distributions({
@@ -4132,7 +4158,7 @@ module Aws::CloudFront
4132
4158
  params: params,
4133
4159
  config: config)
4134
4160
  context[:gem_name] = 'aws-sdk-cloudfront'
4135
- context[:gem_version] = '1.26.0'
4161
+ context[:gem_version] = '1.27.0'
4136
4162
  Seahorse::Client::Request.new(handlers, context)
4137
4163
  end
4138
4164
 
@@ -4198,11 +4224,11 @@ module Aws::CloudFront
4198
4224
  # The following table lists the valid waiter names, the operations they call,
4199
4225
  # and the default `:delay` and `:max_attempts` values.
4200
4226
  #
4201
- # | waiter_name | params | :delay | :max_attempts |
4202
- # | ------------------------------- | ----------------------------- | -------- | ------------- |
4203
- # | distribution_deployed | {#get_distribution} | 60 | 35 |
4204
- # | invalidation_completed | {#get_invalidation} | 20 | 30 |
4205
- # | streaming_distribution_deployed | {#get_streaming_distribution} | 60 | 25 |
4227
+ # | waiter_name | params | :delay | :max_attempts |
4228
+ # | ------------------------------- | ----------------------------------- | -------- | ------------- |
4229
+ # | distribution_deployed | {Client#get_distribution} | 60 | 35 |
4230
+ # | invalidation_completed | {Client#get_invalidation} | 20 | 30 |
4231
+ # | streaming_distribution_deployed | {Client#get_streaming_distribution} | 60 | 25 |
4206
4232
  #
4207
4233
  # @raise [Errors::FailureStateError] Raised when the waiter terminates
4208
4234
  # because the waiter has entered a state that it will not transition
@@ -6,13 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::CloudFront
9
- # This class provides a resource oriented interface for CloudFront.
10
- # To create a resource object:
11
- # resource = Aws::CloudFront::Resource.new(region: 'us-west-2')
12
- # You can supply a client object with custom configuration that will be used for all resource operations.
13
- # If you do not pass +:client+, a default client will be constructed.
14
- # client = Aws::CloudFront::Client.new(region: 'us-west-2')
15
- # resource = Aws::CloudFront::Resource.new(client: client)
9
+
16
10
  class Resource
17
11
 
18
12
  # @param options ({})
@@ -8,6 +8,69 @@
8
8
  require 'aws-sdk-core/waiters'
9
9
 
10
10
  module Aws::CloudFront
11
+ # Waiters are utility methods that poll for a particular state to occur
12
+ # on a client. Waiters can fail after a number of attempts at a polling
13
+ # interval defined for the service client.
14
+ #
15
+ # For a list of operations that can be waited for and the
16
+ # client methods called for each operation, see the table below or the
17
+ # {Client#wait_until} field documentation for the {Client}.
18
+ #
19
+ # # Invoking a Waiter
20
+ # To invoke a waiter, call #wait_until on a {Client}. The first parameter
21
+ # is the waiter name, which is specific to the service client and indicates
22
+ # which operation is being waited for. The second parameter is a hash of
23
+ # parameters that are passed to the client method called by the waiter,
24
+ # which varies according to the waiter name.
25
+ #
26
+ # # Wait Failures
27
+ # To catch errors in a waiter, use WaiterFailed,
28
+ # as shown in the following example.
29
+ #
30
+ # rescue rescue Aws::Waiters::Errors::WaiterFailed => error
31
+ # puts "failed waiting for instance running: #{error.message}
32
+ # end
33
+ #
34
+ # # Configuring a Waiter
35
+ # Each waiter has a default polling interval and a maximum number of
36
+ # attempts it will make before returning control to your program.
37
+ # To set these values, use the `max_attempts` and `delay` parameters
38
+ # in your `#wait_until` call.
39
+ # The following example waits for up to 25 seconds, polling every five seconds.
40
+ #
41
+ # client.wait_until(...) do |w|
42
+ # w.max_attempts = 5
43
+ # w.delay = 5
44
+ # end
45
+ #
46
+ # To disable wait failures, set the value of either of these parameters
47
+ # to `nil`.
48
+ #
49
+ # # Extending a Waiter
50
+ # To modify the behavior of waiters, you can register callbacks that are
51
+ # triggered before each polling attempt and before waiting.
52
+ #
53
+ # The following example implements an exponential backoff in a waiter
54
+ # by doubling the amount of time to wait on every attempt.
55
+ #
56
+ # client.wait_until(...) do |w|
57
+ # w.interval = 0 # disable normal sleep
58
+ # w.before_wait do |n, resp|
59
+ # sleep(n ** 2)
60
+ # end
61
+ # end
62
+ #
63
+ # # Available Waiters
64
+ #
65
+ # The following table lists the valid waiter names, the operations they call,
66
+ # and the default `:delay` and `:max_attempts` values.
67
+ #
68
+ # | waiter_name | params | :delay | :max_attempts |
69
+ # | ------------------------------- | ----------------------------------- | -------- | ------------- |
70
+ # | distribution_deployed | {Client#get_distribution} | 60 | 35 |
71
+ # | invalidation_completed | {Client#get_invalidation} | 20 | 30 |
72
+ # | streaming_distribution_deployed | {Client#get_streaming_distribution} | 60 | 25 |
73
+ #
11
74
  module Waiters
12
75
 
13
76
  # Wait until a distribution is deployed.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudfront
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.27.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: 2020-03-09 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  version: '0'
86
86
  requirements: []
87
87
  rubyforge_project:
88
- rubygems_version: 2.5.2.3
88
+ rubygems_version: 2.7.6.2
89
89
  signing_key:
90
90
  specification_version: 4
91
91
  summary: AWS SDK for Ruby - CloudFront