aws-sdk-cloudfront 1.28.0 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudfront.rb +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +21 -1
- data/lib/aws-sdk-cloudfront/client_api.rb +2 -0
- data/lib/aws-sdk-cloudfront/types.rb +194 -159
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deffbf7396293693f9b2aaafdb4e25cdcda3c4e3ddc81a391f561204f76922d4
|
4
|
+
data.tar.gz: 47a00b93dee637cf573f81cfbd3cec2e7befddd25aa390f86653a03a6f944755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42817218a0b3e590bf3f905225195e50f23e02e1cef45814bab993bdc5344afd51909442e1d7a7207ec8fb5e32e6fb63f3657b02b784f9a73129543a6136b5cc
|
7
|
+
data.tar.gz: bfe60b24efa66ba95def2c29c500a213caf61d800985f58363ed19492e7434cb30db242f870b9512c1121b88204d2c7cbc68bfac12282464e9e4519626245989
|
data/lib/aws-sdk-cloudfront.rb
CHANGED
@@ -424,6 +424,8 @@ module Aws::CloudFront
|
|
424
424
|
# origin_read_timeout: 1,
|
425
425
|
# origin_keepalive_timeout: 1,
|
426
426
|
# },
|
427
|
+
# connection_attempts: 1,
|
428
|
+
# connection_timeout: 1,
|
427
429
|
# },
|
428
430
|
# ],
|
429
431
|
# },
|
@@ -637,6 +639,8 @@ module Aws::CloudFront
|
|
637
639
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
638
640
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
639
641
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
642
|
+
# resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer
|
643
|
+
# resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer
|
640
644
|
# resp.distribution.distribution_config.origin_groups.quantity #=> Integer
|
641
645
|
# resp.distribution.distribution_config.origin_groups.items #=> Array
|
642
646
|
# resp.distribution.distribution_config.origin_groups.items[0].id #=> String
|
@@ -811,6 +815,8 @@ module Aws::CloudFront
|
|
811
815
|
# origin_read_timeout: 1,
|
812
816
|
# origin_keepalive_timeout: 1,
|
813
817
|
# },
|
818
|
+
# connection_attempts: 1,
|
819
|
+
# connection_timeout: 1,
|
814
820
|
# },
|
815
821
|
# ],
|
816
822
|
# },
|
@@ -1033,6 +1039,8 @@ module Aws::CloudFront
|
|
1033
1039
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
1034
1040
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
1035
1041
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
1042
|
+
# resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer
|
1043
|
+
# resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer
|
1036
1044
|
# resp.distribution.distribution_config.origin_groups.quantity #=> Integer
|
1037
1045
|
# resp.distribution.distribution_config.origin_groups.items #=> Array
|
1038
1046
|
# resp.distribution.distribution_config.origin_groups.items[0].id #=> String
|
@@ -1910,6 +1918,8 @@ module Aws::CloudFront
|
|
1910
1918
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
1911
1919
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
1912
1920
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
1921
|
+
# resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer
|
1922
|
+
# resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer
|
1913
1923
|
# resp.distribution.distribution_config.origin_groups.quantity #=> Integer
|
1914
1924
|
# resp.distribution.distribution_config.origin_groups.items #=> Array
|
1915
1925
|
# resp.distribution.distribution_config.origin_groups.items[0].id #=> String
|
@@ -2078,6 +2088,8 @@ module Aws::CloudFront
|
|
2078
2088
|
# resp.distribution_config.origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
2079
2089
|
# resp.distribution_config.origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
2080
2090
|
# resp.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
2091
|
+
# resp.distribution_config.origins.items[0].connection_attempts #=> Integer
|
2092
|
+
# resp.distribution_config.origins.items[0].connection_timeout #=> Integer
|
2081
2093
|
# resp.distribution_config.origin_groups.quantity #=> Integer
|
2082
2094
|
# resp.distribution_config.origin_groups.items #=> Array
|
2083
2095
|
# resp.distribution_config.origin_groups.items[0].id #=> String
|
@@ -2692,6 +2704,8 @@ module Aws::CloudFront
|
|
2692
2704
|
# resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
2693
2705
|
# resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
2694
2706
|
# resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
2707
|
+
# resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer
|
2708
|
+
# resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer
|
2695
2709
|
# resp.distribution_list.items[0].origin_groups.quantity #=> Integer
|
2696
2710
|
# resp.distribution_list.items[0].origin_groups.items #=> Array
|
2697
2711
|
# resp.distribution_list.items[0].origin_groups.items[0].id #=> String
|
@@ -2874,6 +2888,8 @@ module Aws::CloudFront
|
|
2874
2888
|
# resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
2875
2889
|
# resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
2876
2890
|
# resp.distribution_list.items[0].origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
2891
|
+
# resp.distribution_list.items[0].origins.items[0].connection_attempts #=> Integer
|
2892
|
+
# resp.distribution_list.items[0].origins.items[0].connection_timeout #=> Integer
|
2877
2893
|
# resp.distribution_list.items[0].origin_groups.quantity #=> Integer
|
2878
2894
|
# resp.distribution_list.items[0].origin_groups.items #=> Array
|
2879
2895
|
# resp.distribution_list.items[0].origin_groups.items[0].id #=> String
|
@@ -3521,6 +3537,8 @@ module Aws::CloudFront
|
|
3521
3537
|
# origin_read_timeout: 1,
|
3522
3538
|
# origin_keepalive_timeout: 1,
|
3523
3539
|
# },
|
3540
|
+
# connection_attempts: 1,
|
3541
|
+
# connection_timeout: 1,
|
3524
3542
|
# },
|
3525
3543
|
# ],
|
3526
3544
|
# },
|
@@ -3736,6 +3754,8 @@ module Aws::CloudFront
|
|
3736
3754
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_ssl_protocols.items[0] #=> String, one of "SSLv3", "TLSv1", "TLSv1.1", "TLSv1.2"
|
3737
3755
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_read_timeout #=> Integer
|
3738
3756
|
# resp.distribution.distribution_config.origins.items[0].custom_origin_config.origin_keepalive_timeout #=> Integer
|
3757
|
+
# resp.distribution.distribution_config.origins.items[0].connection_attempts #=> Integer
|
3758
|
+
# resp.distribution.distribution_config.origins.items[0].connection_timeout #=> Integer
|
3739
3759
|
# resp.distribution.distribution_config.origin_groups.quantity #=> Integer
|
3740
3760
|
# resp.distribution.distribution_config.origin_groups.items #=> Array
|
3741
3761
|
# resp.distribution.distribution_config.origin_groups.items[0].id #=> String
|
@@ -4158,7 +4178,7 @@ module Aws::CloudFront
|
|
4158
4178
|
params: params,
|
4159
4179
|
config: config)
|
4160
4180
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
4161
|
-
context[:gem_version] = '1.
|
4181
|
+
context[:gem_version] = '1.29.0'
|
4162
4182
|
Seahorse::Client::Request.new(handlers, context)
|
4163
4183
|
end
|
4164
4184
|
|
@@ -1138,6 +1138,8 @@ module Aws::CloudFront
|
|
1138
1138
|
Origin.add_member(:custom_headers, Shapes::ShapeRef.new(shape: CustomHeaders, location_name: "CustomHeaders"))
|
1139
1139
|
Origin.add_member(:s3_origin_config, Shapes::ShapeRef.new(shape: S3OriginConfig, location_name: "S3OriginConfig"))
|
1140
1140
|
Origin.add_member(:custom_origin_config, Shapes::ShapeRef.new(shape: CustomOriginConfig, location_name: "CustomOriginConfig"))
|
1141
|
+
Origin.add_member(:connection_attempts, Shapes::ShapeRef.new(shape: integer, location_name: "ConnectionAttempts"))
|
1142
|
+
Origin.add_member(:connection_timeout, Shapes::ShapeRef.new(shape: integer, location_name: "ConnectionTimeout"))
|
1141
1143
|
Origin.struct_class = Types::Origin
|
1142
1144
|
|
1143
1145
|
OriginCustomHeader.add_member(:header_name, Shapes::ShapeRef.new(shape: string, required: true, location_name: "HeaderName"))
|
@@ -236,19 +236,19 @@ module Aws::CloudFront
|
|
236
236
|
#
|
237
237
|
# You must create at least as many cache behaviors (including the
|
238
238
|
# default cache behavior) as you have origins if you want CloudFront to
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
# For the current limit on the number of cache
|
246
|
-
# add to a distribution, see [
|
247
|
-
#
|
239
|
+
# serve objects from all of the origins. Each cache behavior specifies
|
240
|
+
# the one origin from which you want CloudFront to get objects. If you
|
241
|
+
# have two origins and only the default cache behavior, the default
|
242
|
+
# cache behavior will cause CloudFront to get objects from one of the
|
243
|
+
# origins, but the other origin is never used.
|
244
|
+
#
|
245
|
+
# For the current quota (formerly known as limit) on the number of cache
|
246
|
+
# behaviors that you can add to a distribution, see [Quotas][1] in the
|
247
|
+
# *Amazon CloudFront Developer Guide*.
|
248
248
|
#
|
249
|
-
# If you don
|
250
|
-
# empty `CacheBehaviors` element. Don
|
251
|
-
#
|
249
|
+
# If you don’t want to specify any cache behaviors, include only an
|
250
|
+
# empty `CacheBehaviors` element. Don’t include an empty `CacheBehavior`
|
251
|
+
# element because this is invalid.
|
252
252
|
#
|
253
253
|
# To delete all cache behaviors in an existing distribution, update the
|
254
254
|
# distribution configuration and include only an empty `CacheBehaviors`
|
@@ -258,12 +258,12 @@ module Aws::CloudFront
|
|
258
258
|
# distribution configuration and specify all of the cache behaviors that
|
259
259
|
# you want to include in the updated distribution.
|
260
260
|
#
|
261
|
-
# For more information about cache behaviors, see [Cache
|
262
|
-
# in the *Amazon CloudFront Developer Guide*.
|
261
|
+
# For more information about cache behaviors, see [Cache Behavior
|
262
|
+
# Settings][2] in the *Amazon CloudFront Developer Guide*.
|
263
263
|
#
|
264
264
|
#
|
265
265
|
#
|
266
|
-
# [1]: https://docs.aws.amazon.com/
|
266
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html
|
267
267
|
# [2]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesCacheBehavior
|
268
268
|
#
|
269
269
|
# @note When making an API call, you may pass CacheBehavior
|
@@ -349,9 +349,7 @@ module Aws::CloudFront
|
|
349
349
|
#
|
350
350
|
# @!attribute [rw] target_origin_id
|
351
351
|
# The value of `ID` for the origin that you want CloudFront to route
|
352
|
-
# requests to when
|
353
|
-
# cache behavior or for the default cache behavior in your
|
354
|
-
# distribution.
|
352
|
+
# requests to when they match this cache behavior.
|
355
353
|
# @return [String]
|
356
354
|
#
|
357
355
|
# @!attribute [rw] forwarded_values
|
@@ -367,15 +365,15 @@ module Aws::CloudFront
|
|
367
365
|
# target origin that match the `PathPattern` for this cache behavior,
|
368
366
|
# specify `true` for `Enabled`, and specify the applicable values for
|
369
367
|
# `Quantity` and `Items`. For more information, see [Serving Private
|
370
|
-
# Content
|
371
|
-
# Guide*.
|
368
|
+
# Content with Signed URLs and Signed Cookies][1] in the *Amazon
|
369
|
+
# CloudFront Developer Guide*.
|
372
370
|
#
|
373
|
-
# If you don
|
371
|
+
# If you don’t want to require signed URLs in requests for objects
|
374
372
|
# that match `PathPattern`, specify `false` for `Enabled` and `0` for
|
375
373
|
# `Quantity`. Omit `Items`.
|
376
374
|
#
|
377
375
|
# To add, change, or remove one or more trusted signers, change
|
378
|
-
# `Enabled` to `true` (if it
|
376
|
+
# `Enabled` to `true` (if it’s currently `false`), change `Quantity`
|
379
377
|
# as applicable, and specify all of the trusted signers that you want
|
380
378
|
# to include in the updated distribution.
|
381
379
|
#
|
@@ -399,26 +397,25 @@ module Aws::CloudFront
|
|
399
397
|
# * `https-only`\: If a viewer sends an HTTP request, CloudFront
|
400
398
|
# returns an HTTP status code of 403 (Forbidden).
|
401
399
|
#
|
402
|
-
# For more information about requiring the HTTPS protocol, see
|
403
|
-
#
|
400
|
+
# For more information about requiring the HTTPS protocol, see
|
401
|
+
# [Requiring HTTPS Between Viewers and CloudFront][1] in the *Amazon
|
404
402
|
# CloudFront Developer Guide*.
|
405
403
|
#
|
406
404
|
# <note markdown="1"> The only way to guarantee that viewers retrieve an object that was
|
407
405
|
# fetched from the origin using HTTPS is never to use any other
|
408
406
|
# protocol to fetch the object. If you have recently changed from HTTP
|
409
|
-
# to HTTPS, we recommend that you clear your objects
|
407
|
+
# to HTTPS, we recommend that you clear your objects’ cache because
|
410
408
|
# cached objects are protocol agnostic. That means that an edge
|
411
409
|
# location will return an object from the cache regardless of whether
|
412
410
|
# the current request protocol matches the protocol used previously.
|
413
|
-
# For more information, see [Managing
|
414
|
-
#
|
415
|
-
# Guide*.
|
411
|
+
# For more information, see [Managing Cache Expiration][2] in the
|
412
|
+
# *Amazon CloudFront Developer Guide*.
|
416
413
|
#
|
417
414
|
# </note>
|
418
415
|
#
|
419
416
|
#
|
420
417
|
#
|
421
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
418
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html
|
422
419
|
# [2]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html
|
423
420
|
# @return [String]
|
424
421
|
#
|
@@ -515,8 +512,7 @@ module Aws::CloudFront
|
|
515
512
|
# @!attribute [rw] field_level_encryption_id
|
516
513
|
# The value of `ID` for the field-level encryption configuration that
|
517
514
|
# you want CloudFront to use for encrypting specific fields of data
|
518
|
-
# for
|
519
|
-
# distribution.
|
515
|
+
# for this cache behavior.
|
520
516
|
# @return [String]
|
521
517
|
#
|
522
518
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CacheBehavior AWS API Documentation
|
@@ -1164,6 +1160,8 @@ module Aws::CloudFront
|
|
1164
1160
|
# origin_read_timeout: 1,
|
1165
1161
|
# origin_keepalive_timeout: 1,
|
1166
1162
|
# },
|
1163
|
+
# connection_attempts: 1,
|
1164
|
+
# connection_timeout: 1,
|
1167
1165
|
# },
|
1168
1166
|
# ],
|
1169
1167
|
# },
|
@@ -1419,6 +1417,8 @@ module Aws::CloudFront
|
|
1419
1417
|
# origin_read_timeout: 1,
|
1420
1418
|
# origin_keepalive_timeout: 1,
|
1421
1419
|
# },
|
1420
|
+
# connection_attempts: 1,
|
1421
|
+
# connection_timeout: 1,
|
1422
1422
|
# },
|
1423
1423
|
# ],
|
1424
1424
|
# },
|
@@ -2204,8 +2204,13 @@ module Aws::CloudFront
|
|
2204
2204
|
include Aws::Structure
|
2205
2205
|
end
|
2206
2206
|
|
2207
|
-
# A custom origin
|
2208
|
-
#
|
2207
|
+
# A custom origin. A custom origin is any origin that is *not* an Amazon
|
2208
|
+
# S3 bucket, with one exception. An Amazon S3 bucket that is [configured
|
2209
|
+
# with static website hosting][1] *is* a custom origin.
|
2210
|
+
#
|
2211
|
+
#
|
2212
|
+
#
|
2213
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosting.html
|
2209
2214
|
#
|
2210
2215
|
# @note When making an API call, you may pass CustomOriginConfig
|
2211
2216
|
# data as a hash:
|
@@ -2223,48 +2228,68 @@ module Aws::CloudFront
|
|
2223
2228
|
# }
|
2224
2229
|
#
|
2225
2230
|
# @!attribute [rw] http_port
|
2226
|
-
# The HTTP port
|
2231
|
+
# The HTTP port that CloudFront uses to connect to the origin. Specify
|
2232
|
+
# the HTTP port that the origin listens on.
|
2227
2233
|
# @return [Integer]
|
2228
2234
|
#
|
2229
2235
|
# @!attribute [rw] https_port
|
2230
|
-
# The HTTPS port
|
2236
|
+
# The HTTPS port that CloudFront uses to connect to the origin.
|
2237
|
+
# Specify the HTTPS port that the origin listens on.
|
2231
2238
|
# @return [Integer]
|
2232
2239
|
#
|
2233
2240
|
# @!attribute [rw] origin_protocol_policy
|
2234
|
-
#
|
2241
|
+
# Specifies the protocol (HTTP or HTTPS) that CloudFront uses to
|
2242
|
+
# connect to the origin. Valid values are:
|
2243
|
+
#
|
2244
|
+
# * `http-only` – CloudFront always uses HTTP to connect to the
|
2245
|
+
# origin.
|
2246
|
+
#
|
2247
|
+
# * `match-viewer` – CloudFront connects to the origin using the same
|
2248
|
+
# protocol that the viewer used to connect to CloudFront.
|
2249
|
+
#
|
2250
|
+
# * `https-only` – CloudFront always uses HTTPS to connect to the
|
2251
|
+
# origin.
|
2235
2252
|
# @return [String]
|
2236
2253
|
#
|
2237
2254
|
# @!attribute [rw] origin_ssl_protocols
|
2238
|
-
#
|
2239
|
-
#
|
2255
|
+
# Specifies the minimum SSL/TLS protocol that CloudFront uses when
|
2256
|
+
# connecting to your origin over HTTPS. Valid values include `SSLv3`,
|
2257
|
+
# `TLSv1`, `TLSv1.1`, and `TLSv1.2`.
|
2258
|
+
#
|
2259
|
+
# For more information, see [Minimum Origin SSL Protocol][1] in the
|
2260
|
+
# *Amazon CloudFront Developer Guide*.
|
2261
|
+
#
|
2262
|
+
#
|
2263
|
+
#
|
2264
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginSSLProtocols
|
2240
2265
|
# @return [Types::OriginSslProtocols]
|
2241
2266
|
#
|
2242
2267
|
# @!attribute [rw] origin_read_timeout
|
2243
|
-
#
|
2244
|
-
#
|
2245
|
-
#
|
2246
|
-
#
|
2268
|
+
# Specifies how long, in seconds, CloudFront waits for a response from
|
2269
|
+
# the origin. This is also known as the *origin response timeout*. The
|
2270
|
+
# minimum timeout is 1 second, the maximum is 60 seconds, and the
|
2271
|
+
# default (if you don’t specify otherwise) is 30 seconds.
|
2247
2272
|
#
|
2248
|
-
#
|
2249
|
-
#
|
2273
|
+
# For more information, see [Origin Response Timeout][1] in the
|
2274
|
+
# *Amazon CloudFront Developer Guide*.
|
2250
2275
|
#
|
2251
2276
|
#
|
2252
2277
|
#
|
2253
|
-
# [1]: https://
|
2278
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginResponseTimeout
|
2254
2279
|
# @return [Integer]
|
2255
2280
|
#
|
2256
2281
|
# @!attribute [rw] origin_keepalive_timeout
|
2257
|
-
#
|
2258
|
-
#
|
2259
|
-
#
|
2260
|
-
#
|
2282
|
+
# Specifies how long, in seconds, CloudFront persists its connection
|
2283
|
+
# to the origin. The minimum timeout is 1 second, the maximum is 60
|
2284
|
+
# seconds, and the default (if you don’t specify otherwise) is 5
|
2285
|
+
# seconds.
|
2261
2286
|
#
|
2262
|
-
#
|
2263
|
-
#
|
2287
|
+
# For more information, see [Origin Keep-alive Timeout][1] in the
|
2288
|
+
# *Amazon CloudFront Developer Guide*.
|
2264
2289
|
#
|
2265
2290
|
#
|
2266
2291
|
#
|
2267
|
-
# [1]: https://
|
2292
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginKeepaliveTimeout
|
2268
2293
|
# @return [Integer]
|
2269
2294
|
#
|
2270
2295
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/CustomOriginConfig AWS API Documentation
|
@@ -2279,10 +2304,10 @@ module Aws::CloudFront
|
|
2279
2304
|
include Aws::Structure
|
2280
2305
|
end
|
2281
2306
|
|
2282
|
-
# A complex type that describes the default cache behavior if you don
|
2283
|
-
# specify a `CacheBehavior` element or if
|
2284
|
-
# values of `PathPattern` in `CacheBehavior` elements. You must
|
2285
|
-
# exactly one default cache behavior.
|
2307
|
+
# A complex type that describes the default cache behavior if you don’t
|
2308
|
+
# specify a `CacheBehavior` element or if request URLs don’t match any
|
2309
|
+
# of the values of `PathPattern` in `CacheBehavior` elements. You must
|
2310
|
+
# create exactly one default cache behavior.
|
2286
2311
|
#
|
2287
2312
|
# @note When making an API call, you may pass DefaultCacheBehavior
|
2288
2313
|
# data as a hash:
|
@@ -2341,9 +2366,7 @@ module Aws::CloudFront
|
|
2341
2366
|
#
|
2342
2367
|
# @!attribute [rw] target_origin_id
|
2343
2368
|
# The value of `ID` for the origin that you want CloudFront to route
|
2344
|
-
# requests to when
|
2345
|
-
# cache behavior or for the default cache behavior in your
|
2346
|
-
# distribution.
|
2369
|
+
# requests to when they use the default cache behavior.
|
2347
2370
|
# @return [String]
|
2348
2371
|
#
|
2349
2372
|
# @!attribute [rw] forwarded_values
|
@@ -2359,15 +2382,15 @@ module Aws::CloudFront
|
|
2359
2382
|
# target origin that match the `PathPattern` for this cache behavior,
|
2360
2383
|
# specify `true` for `Enabled`, and specify the applicable values for
|
2361
2384
|
# `Quantity` and `Items`. For more information, see [Serving Private
|
2362
|
-
# Content
|
2363
|
-
# Developer Guide
|
2385
|
+
# Content with Signed URLs and Signed Cookies][1] in the *Amazon
|
2386
|
+
# CloudFront Developer Guide*.
|
2364
2387
|
#
|
2365
|
-
# If you don
|
2388
|
+
# If you don’t want to require signed URLs in requests for objects
|
2366
2389
|
# that match `PathPattern`, specify `false` for `Enabled` and `0` for
|
2367
2390
|
# `Quantity`. Omit `Items`.
|
2368
2391
|
#
|
2369
2392
|
# To add, change, or remove one or more trusted signers, change
|
2370
|
-
# `Enabled` to `true` (if it
|
2393
|
+
# `Enabled` to `true` (if it’s currently `false`), change `Quantity`
|
2371
2394
|
# as applicable, and specify all of the trusted signers that you want
|
2372
2395
|
# to include in the updated distribution.
|
2373
2396
|
#
|
@@ -2391,26 +2414,25 @@ module Aws::CloudFront
|
|
2391
2414
|
# * `https-only`\: If a viewer sends an HTTP request, CloudFront
|
2392
2415
|
# returns an HTTP status code of 403 (Forbidden).
|
2393
2416
|
#
|
2394
|
-
# For more information about requiring the HTTPS protocol, see
|
2395
|
-
#
|
2417
|
+
# For more information about requiring the HTTPS protocol, see
|
2418
|
+
# [Requiring HTTPS Between Viewers and CloudFront][1] in the *Amazon
|
2396
2419
|
# CloudFront Developer Guide*.
|
2397
2420
|
#
|
2398
2421
|
# <note markdown="1"> The only way to guarantee that viewers retrieve an object that was
|
2399
2422
|
# fetched from the origin using HTTPS is never to use any other
|
2400
2423
|
# protocol to fetch the object. If you have recently changed from HTTP
|
2401
|
-
# to HTTPS, we recommend that you clear your objects
|
2424
|
+
# to HTTPS, we recommend that you clear your objects’ cache because
|
2402
2425
|
# cached objects are protocol agnostic. That means that an edge
|
2403
2426
|
# location will return an object from the cache regardless of whether
|
2404
2427
|
# the current request protocol matches the protocol used previously.
|
2405
|
-
# For more information, see [Managing
|
2406
|
-
#
|
2407
|
-
# Guide*.
|
2428
|
+
# For more information, see [Managing Cache Expiration][2] in the
|
2429
|
+
# *Amazon CloudFront Developer Guide*.
|
2408
2430
|
#
|
2409
2431
|
# </note>
|
2410
2432
|
#
|
2411
2433
|
#
|
2412
2434
|
#
|
2413
|
-
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/
|
2435
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-https-viewers-to-cloudfront.html
|
2414
2436
|
# [2]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Expiration.html
|
2415
2437
|
# @return [String]
|
2416
2438
|
#
|
@@ -2507,8 +2529,7 @@ module Aws::CloudFront
|
|
2507
2529
|
# @!attribute [rw] field_level_encryption_id
|
2508
2530
|
# The value of `ID` for the field-level encryption configuration that
|
2509
2531
|
# you want CloudFront to use for encrypting specific fields of data
|
2510
|
-
# for
|
2511
|
-
# distribution.
|
2532
|
+
# for the default cache behavior.
|
2512
2533
|
# @return [String]
|
2513
2534
|
#
|
2514
2535
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/DefaultCacheBehavior AWS API Documentation
|
@@ -2862,6 +2883,8 @@ module Aws::CloudFront
|
|
2862
2883
|
# origin_read_timeout: 1,
|
2863
2884
|
# origin_keepalive_timeout: 1,
|
2864
2885
|
# },
|
2886
|
+
# connection_attempts: 1,
|
2887
|
+
# connection_timeout: 1,
|
2865
2888
|
# },
|
2866
2889
|
# ],
|
2867
2890
|
# },
|
@@ -3336,6 +3359,8 @@ module Aws::CloudFront
|
|
3336
3359
|
# origin_read_timeout: 1,
|
3337
3360
|
# origin_keepalive_timeout: 1,
|
3338
3361
|
# },
|
3362
|
+
# connection_attempts: 1,
|
3363
|
+
# connection_timeout: 1,
|
3339
3364
|
# },
|
3340
3365
|
# ],
|
3341
3366
|
# },
|
@@ -4976,7 +5001,7 @@ module Aws::CloudFront
|
|
4976
5001
|
include Aws::Structure
|
4977
5002
|
end
|
4978
5003
|
|
4979
|
-
#
|
5004
|
+
# An argument is invalid.
|
4980
5005
|
#
|
4981
5006
|
# @!attribute [rw] message
|
4982
5007
|
# @return [String]
|
@@ -6140,19 +6165,36 @@ module Aws::CloudFront
|
|
6140
6165
|
include Aws::Structure
|
6141
6166
|
end
|
6142
6167
|
|
6143
|
-
#
|
6144
|
-
#
|
6145
|
-
#
|
6146
|
-
#
|
6147
|
-
#
|
6168
|
+
# An origin.
|
6169
|
+
#
|
6170
|
+
# An origin is the location where content is stored, and from which
|
6171
|
+
# CloudFront gets content to serve to viewers. To specify an origin:
|
6172
|
+
#
|
6173
|
+
# * Use the `S3OriginConfig` type to specify an Amazon S3 bucket that is
|
6174
|
+
# <i> <b>not</b> </i> configured with static website hosting.
|
6175
|
+
#
|
6176
|
+
# * Use the `CustomOriginConfig` type to specify various other kinds of
|
6177
|
+
# content containers or HTTP servers, including:
|
6178
|
+
#
|
6179
|
+
# * An Amazon S3 bucket that is configured with static website hosting
|
6180
|
+
#
|
6181
|
+
# * An Elastic Load Balancing load balancer
|
6182
|
+
#
|
6183
|
+
# * An AWS Elemental MediaPackage origin
|
6184
|
+
#
|
6185
|
+
# * An AWS Elemental MediaStore container
|
6186
|
+
#
|
6187
|
+
# * Any other HTTP server, running on an Amazon EC2 instance or any
|
6188
|
+
# other kind of host
|
6148
6189
|
#
|
6149
|
-
# For the current
|
6150
|
-
#
|
6151
|
-
#
|
6190
|
+
# For the current maximum number of origins that you can specify per
|
6191
|
+
# distribution, see [General Quotas on Web Distributions][1] in the
|
6192
|
+
# *Amazon CloudFront Developer Guide* (quotas were formerly referred to
|
6193
|
+
# as limits).
|
6152
6194
|
#
|
6153
6195
|
#
|
6154
6196
|
#
|
6155
|
-
# [1]: https://docs.aws.amazon.com/
|
6197
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html#limits-web-distributions
|
6156
6198
|
#
|
6157
6199
|
# @note When making an API call, you may pass Origin
|
6158
6200
|
# data as a hash:
|
@@ -6184,60 +6226,23 @@ module Aws::CloudFront
|
|
6184
6226
|
# origin_read_timeout: 1,
|
6185
6227
|
# origin_keepalive_timeout: 1,
|
6186
6228
|
# },
|
6229
|
+
# connection_attempts: 1,
|
6230
|
+
# connection_timeout: 1,
|
6187
6231
|
# }
|
6188
6232
|
#
|
6189
6233
|
# @!attribute [rw] id
|
6190
|
-
# A unique identifier for the origin
|
6191
|
-
#
|
6192
|
-
#
|
6193
|
-
# When you specify the value of `TargetOriginId` for the default cache
|
6194
|
-
# behavior or for another cache behavior, you indicate the origin to
|
6195
|
-
# which you want the cache behavior to route requests by specifying
|
6196
|
-
# the value of the `Id` element for that origin. When a request
|
6197
|
-
# matches the path pattern for that cache behavior, CloudFront routes
|
6198
|
-
# the request to the specified origin. For more information, see
|
6199
|
-
# [Cache Behavior Settings][1] in the *Amazon CloudFront Developer
|
6200
|
-
# Guide*.
|
6201
|
-
#
|
6202
|
-
#
|
6234
|
+
# A unique identifier for the origin. This value must be unique within
|
6235
|
+
# the distribution.
|
6203
6236
|
#
|
6204
|
-
#
|
6237
|
+
# Use this value to specify the `TargetOriginId` in a CacheBehavior or
|
6238
|
+
# DefaultCacheBehavior.
|
6205
6239
|
# @return [String]
|
6206
6240
|
#
|
6207
6241
|
# @!attribute [rw] domain_name
|
6208
|
-
#
|
6209
|
-
# which you want CloudFront to get objects for this origin, for
|
6210
|
-
# example, `myawsbucket.s3.amazonaws.com`. If you set up your bucket
|
6211
|
-
# to be configured as a website endpoint, enter the Amazon S3 static
|
6212
|
-
# website hosting endpoint for the bucket.
|
6213
|
-
#
|
6214
|
-
# For more information about specifying this value for different types
|
6215
|
-
# of origins, see [Origin Domain Name][1] in the *Amazon CloudFront
|
6216
|
-
# Developer Guide*.
|
6217
|
-
#
|
6218
|
-
# Constraints for Amazon S3 origins:
|
6219
|
-
#
|
6220
|
-
# * If you configured Amazon S3 Transfer Acceleration for your bucket,
|
6221
|
-
# don't specify the `s3-accelerate` endpoint for `DomainName`.
|
6222
|
-
#
|
6223
|
-
# * The bucket name must be between 3 and 63 characters long
|
6224
|
-
# (inclusive).
|
6225
|
-
#
|
6226
|
-
# * The bucket name must contain only lowercase characters, numbers,
|
6227
|
-
# periods, underscores, and dashes.
|
6228
|
-
#
|
6229
|
-
# * The bucket name must not contain adjacent periods.
|
6242
|
+
# The domain name for the origin.
|
6230
6243
|
#
|
6231
|
-
#
|
6232
|
-
#
|
6233
|
-
# example, `www.example.com`.
|
6234
|
-
#
|
6235
|
-
# Constraints for custom origins:
|
6236
|
-
#
|
6237
|
-
# * `DomainName` must be a valid DNS name that contains only a-z, A-Z,
|
6238
|
-
# 0-9, dot (.), hyphen (-), or underscore (\_) characters.
|
6239
|
-
#
|
6240
|
-
# * The name cannot exceed 128 characters.
|
6244
|
+
# For more information, see [Origin Domain Name][1] in the *Amazon
|
6245
|
+
# CloudFront Developer Guide*.
|
6241
6246
|
#
|
6242
6247
|
#
|
6243
6248
|
#
|
@@ -6245,48 +6250,72 @@ module Aws::CloudFront
|
|
6245
6250
|
# @return [String]
|
6246
6251
|
#
|
6247
6252
|
# @!attribute [rw] origin_path
|
6248
|
-
# An optional
|
6249
|
-
#
|
6250
|
-
# When you include the `OriginPath` element, specify the directory
|
6251
|
-
# name, beginning with a `/`. CloudFront appends the directory name to
|
6252
|
-
# the value of `DomainName`, for example, `example.com/production`. Do
|
6253
|
-
# not include a `/` at the end of the directory name.
|
6253
|
+
# An optional path that CloudFront appends to the origin domain name
|
6254
|
+
# when CloudFront requests content from the origin.
|
6254
6255
|
#
|
6255
|
-
# For
|
6256
|
-
#
|
6257
|
-
#
|
6258
|
-
# * `DomainName`\: An Amazon S3 bucket named `myawsbucket`.
|
6259
|
-
#
|
6260
|
-
# * `OriginPath`\: `/production`
|
6256
|
+
# For more information, see [Origin Path][1] in the *Amazon CloudFront
|
6257
|
+
# Developer Guide*.
|
6261
6258
|
#
|
6262
|
-
# * `CNAME`\: `example.com`
|
6263
6259
|
#
|
6264
|
-
# When a user enters `example.com/index.html` in a browser, CloudFront
|
6265
|
-
# sends a request to Amazon S3 for
|
6266
|
-
# `myawsbucket/production/index.html`.
|
6267
6260
|
#
|
6268
|
-
#
|
6269
|
-
# CloudFront sends a request to Amazon S3 for
|
6270
|
-
# `myawsbucket/production/acme/index.html`.
|
6261
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#DownloadDistValuesOriginPath
|
6271
6262
|
# @return [String]
|
6272
6263
|
#
|
6273
6264
|
# @!attribute [rw] custom_headers
|
6274
|
-
# A
|
6275
|
-
#
|
6265
|
+
# A list of HTTP header names and values that CloudFront adds to
|
6266
|
+
# requests it sends to the origin.
|
6267
|
+
#
|
6268
|
+
# For more information, see [Adding Custom Headers to Origin
|
6269
|
+
# Requests][1] in the *Amazon CloudFront Developer Guide*.
|
6270
|
+
#
|
6271
|
+
#
|
6272
|
+
#
|
6273
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html
|
6276
6274
|
# @return [Types::CustomHeaders]
|
6277
6275
|
#
|
6278
6276
|
# @!attribute [rw] s3_origin_config
|
6279
|
-
#
|
6280
|
-
#
|
6281
|
-
#
|
6277
|
+
# Use this type to specify an origin that is an Amazon S3 bucket that
|
6278
|
+
# is <i> <b>not</b> </i> configured with static website hosting. To
|
6279
|
+
# specify any other type of origin, including an Amazon S3 bucket that
|
6280
|
+
# is configured with static website hosting, use the
|
6281
|
+
# `CustomOriginConfig` type instead.
|
6282
6282
|
# @return [Types::S3OriginConfig]
|
6283
6283
|
#
|
6284
6284
|
# @!attribute [rw] custom_origin_config
|
6285
|
-
#
|
6286
|
-
#
|
6287
|
-
#
|
6285
|
+
# Use this type to specify an origin that is a content container or
|
6286
|
+
# HTTP server, including an Amazon S3 bucket that is configured with
|
6287
|
+
# static website hosting. To specify an Amazon S3 bucket that is <i>
|
6288
|
+
# <b>not</b> </i> configured with static website hosting, use the
|
6289
|
+
# `S3OriginConfig` type instead.
|
6288
6290
|
# @return [Types::CustomOriginConfig]
|
6289
6291
|
#
|
6292
|
+
# @!attribute [rw] connection_attempts
|
6293
|
+
# The number of times that CloudFront attempts to connect to the
|
6294
|
+
# origin. The minimum number is 1, the maximum is 3, and the default
|
6295
|
+
# (if you don’t specify otherwise) is 3.
|
6296
|
+
#
|
6297
|
+
# For more information, see [Origin Connection Attempts][1] in the
|
6298
|
+
# *Amazon CloudFront Developer Guide*.
|
6299
|
+
#
|
6300
|
+
#
|
6301
|
+
#
|
6302
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-attempts
|
6303
|
+
# @return [Integer]
|
6304
|
+
#
|
6305
|
+
# @!attribute [rw] connection_timeout
|
6306
|
+
# The number of seconds that CloudFront waits when trying to establish
|
6307
|
+
# a connection to the origin. The minimum timeout is 1 second, the
|
6308
|
+
# maximum is 10 seconds, and the default (if you don’t specify
|
6309
|
+
# otherwise) is 10 seconds.
|
6310
|
+
#
|
6311
|
+
# For more information, see [Origin Connection Timeout][1] in the
|
6312
|
+
# *Amazon CloudFront Developer Guide*.
|
6313
|
+
#
|
6314
|
+
#
|
6315
|
+
#
|
6316
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/distribution-web-values-specify.html#origin-connection-timeout
|
6317
|
+
# @return [Integer]
|
6318
|
+
#
|
6290
6319
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2019-03-26/Origin AWS API Documentation
|
6291
6320
|
#
|
6292
6321
|
class Origin < Struct.new(
|
@@ -6295,7 +6324,9 @@ module Aws::CloudFront
|
|
6295
6324
|
:origin_path,
|
6296
6325
|
:custom_headers,
|
6297
6326
|
:s3_origin_config,
|
6298
|
-
:custom_origin_config
|
6327
|
+
:custom_origin_config,
|
6328
|
+
:connection_attempts,
|
6329
|
+
:connection_timeout)
|
6299
6330
|
include Aws::Structure
|
6300
6331
|
end
|
6301
6332
|
|
@@ -6573,6 +6604,8 @@ module Aws::CloudFront
|
|
6573
6604
|
# origin_read_timeout: 1,
|
6574
6605
|
# origin_keepalive_timeout: 1,
|
6575
6606
|
# },
|
6607
|
+
# connection_attempts: 1,
|
6608
|
+
# connection_timeout: 1,
|
6576
6609
|
# },
|
6577
6610
|
# ],
|
6578
6611
|
# }
|
@@ -6628,7 +6661,7 @@ module Aws::CloudFront
|
|
6628
6661
|
include Aws::Structure
|
6629
6662
|
end
|
6630
6663
|
|
6631
|
-
# The precondition given in one or more of the request
|
6664
|
+
# The precondition given in one or more of the request header fields
|
6632
6665
|
# evaluated to `false`.
|
6633
6666
|
#
|
6634
6667
|
# @!attribute [rw] message
|
@@ -7017,8 +7050,8 @@ module Aws::CloudFront
|
|
7017
7050
|
end
|
7018
7051
|
|
7019
7052
|
# A complex type that contains information about the Amazon S3 origin.
|
7020
|
-
# If the origin is a custom origin
|
7021
|
-
# instead.
|
7053
|
+
# If the origin is a custom origin or an S3 bucket that is configured as
|
7054
|
+
# a website endpoint, use the `CustomOriginConfig` element instead.
|
7022
7055
|
#
|
7023
7056
|
# @note When making an API call, you may pass S3OriginConfig
|
7024
7057
|
# data as a hash:
|
@@ -8180,6 +8213,8 @@ module Aws::CloudFront
|
|
8180
8213
|
# origin_read_timeout: 1,
|
8181
8214
|
# origin_keepalive_timeout: 1,
|
8182
8215
|
# },
|
8216
|
+
# connection_attempts: 1,
|
8217
|
+
# connection_timeout: 1,
|
8183
8218
|
# },
|
8184
8219
|
# ],
|
8185
8220
|
# },
|
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.
|
4
|
+
version: 1.29.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-05
|
11
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|