aws-sdk-cloudfront 1.71.0 → 1.73.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +202 -160
- data/lib/aws-sdk-cloudfront/client_api.rb +19 -0
- data/lib/aws-sdk-cloudfront/errors.rb +16 -0
- data/lib/aws-sdk-cloudfront/types.rb +216 -161
- data/lib/aws-sdk-cloudfront.rb +1 -1
- metadata +2 -2
@@ -371,7 +371,7 @@ module Aws::CloudFront
|
|
371
371
|
# Associates an alias (also known as a CNAME or an alternate domain
|
372
372
|
# name) with a CloudFront distribution.
|
373
373
|
#
|
374
|
-
# With this operation you can move an alias that
|
374
|
+
# With this operation you can move an alias that's already in use on a
|
375
375
|
# CloudFront distribution to a different distribution in one step. This
|
376
376
|
# prevents the downtime that could occur if you first remove the alias
|
377
377
|
# from one distribution and then separately add the alias to another
|
@@ -389,7 +389,7 @@ module Aws::CloudFront
|
|
389
389
|
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move
|
390
390
|
#
|
391
391
|
# @option params [required, String] :target_distribution_id
|
392
|
-
# The ID of the distribution that you
|
392
|
+
# The ID of the distribution that you're associating the alias with.
|
393
393
|
#
|
394
394
|
# @option params [required, String] :alias
|
395
395
|
# The alias (also known as a CNAME) to add to the target distribution.
|
@@ -418,7 +418,7 @@ module Aws::CloudFront
|
|
418
418
|
# continuous deployment workflow.
|
419
419
|
#
|
420
420
|
# After you create a staging distribution, you can use
|
421
|
-
# `UpdateDistribution` to modify the staging distribution
|
421
|
+
# `UpdateDistribution` to modify the staging distribution's
|
422
422
|
# configuration. Then you can use `CreateContinuousDeploymentPolicy` to
|
423
423
|
# incrementally move traffic to the staging distribution.
|
424
424
|
#
|
@@ -657,7 +657,7 @@ module Aws::CloudFront
|
|
657
657
|
# Creates a cache policy.
|
658
658
|
#
|
659
659
|
# After you create a cache policy, you can attach it to one or more
|
660
|
-
# cache behaviors. When it
|
660
|
+
# cache behaviors. When it's attached to a cache behavior, the cache
|
661
661
|
# policy determines the following:
|
662
662
|
#
|
663
663
|
# * The values that CloudFront includes in the *cache key*. These values
|
@@ -670,9 +670,9 @@ module Aws::CloudFront
|
|
670
670
|
#
|
671
671
|
# The headers, cookies, and query strings that are included in the cache
|
672
672
|
# key are automatically included in requests that CloudFront sends to
|
673
|
-
# the origin. CloudFront sends a request when it can
|
674
|
-
# its cache that matches the request
|
675
|
-
# values to the origin but *not* include them in the cache key, use
|
673
|
+
# the origin. CloudFront sends a request when it can't find an object
|
674
|
+
# in its cache that matches the request's cache key. If you want to
|
675
|
+
# send values to the origin but *not* include them in the cache key, use
|
676
676
|
# `OriginRequestPolicy`.
|
677
677
|
#
|
678
678
|
# For more information about cache policies, see [Controlling the cache
|
@@ -815,12 +815,12 @@ module Aws::CloudFront
|
|
815
815
|
#
|
816
816
|
# To use a continuous deployment policy, first use `CopyDistribution` to
|
817
817
|
# create a staging distribution, then use `UpdateDistribution` to modify
|
818
|
-
# the staging distribution
|
818
|
+
# the staging distribution's configuration.
|
819
819
|
#
|
820
820
|
# After you create and update a staging distribution, you can use a
|
821
821
|
# continuous deployment policy to incrementally move traffic to the
|
822
822
|
# staging distribution. This workflow enables you to test changes to a
|
823
|
-
# distribution
|
823
|
+
# distribution's configuration before moving all of your domain's
|
824
824
|
# production traffic to the new configuration.
|
825
825
|
#
|
826
826
|
# @option params [required, Types::ContinuousDeploymentPolicyConfig] :continuous_deployment_policy_config
|
@@ -1972,21 +1972,22 @@ module Aws::CloudFront
|
|
1972
1972
|
# configuration information about the function. The response contains an
|
1973
1973
|
# Amazon Resource Name (ARN) that uniquely identifies the function.
|
1974
1974
|
#
|
1975
|
-
# When you create a function, it
|
1975
|
+
# When you create a function, it's in the `DEVELOPMENT` stage. In this
|
1976
1976
|
# stage, you can test the function with `TestFunction`, and update it
|
1977
1977
|
# with `UpdateFunction`.
|
1978
1978
|
#
|
1979
|
-
# When you
|
1980
|
-
# use `PublishFunction` to copy the function from the
|
1981
|
-
# stage to `LIVE`. When it
|
1982
|
-
# distribution
|
1979
|
+
# When you're ready to use your function with a CloudFront
|
1980
|
+
# distribution, use `PublishFunction` to copy the function from the
|
1981
|
+
# `DEVELOPMENT` stage to `LIVE`. When it's live, you can attach the
|
1982
|
+
# function to a distribution's cache behavior, using the function's
|
1983
|
+
# ARN.
|
1983
1984
|
#
|
1984
1985
|
# @option params [required, String] :name
|
1985
1986
|
# A name to identify the function.
|
1986
1987
|
#
|
1987
1988
|
# @option params [required, Types::FunctionConfig] :function_config
|
1988
1989
|
# Configuration information about the function, including an optional
|
1989
|
-
# comment and the function
|
1990
|
+
# comment and the function's runtime.
|
1990
1991
|
#
|
1991
1992
|
# @option params [required, String, StringIO, File] :function_code
|
1992
1993
|
# The function code. For more information about writing a CloudFront
|
@@ -2246,7 +2247,7 @@ module Aws::CloudFront
|
|
2246
2247
|
# Creates an origin request policy.
|
2247
2248
|
#
|
2248
2249
|
# After you create an origin request policy, you can attach it to one or
|
2249
|
-
# more cache behaviors. When it
|
2250
|
+
# more cache behaviors. When it's attached to a cache behavior, the
|
2250
2251
|
# origin request policy determines the values that CloudFront includes
|
2251
2252
|
# in requests that it sends to the origin. Each request that CloudFront
|
2252
2253
|
# sends to the origin includes the following:
|
@@ -2262,7 +2263,7 @@ module Aws::CloudFront
|
|
2262
2263
|
# items from the viewer request and, in the case of headers,
|
2263
2264
|
# additional ones that are added by CloudFront.
|
2264
2265
|
#
|
2265
|
-
# CloudFront sends a request when it can
|
2266
|
+
# CloudFront sends a request when it can't find a valid object in its
|
2266
2267
|
# cache that matches the request. If you want to send values to the
|
2267
2268
|
# origin and also include them in the cache key, use `CachePolicy`.
|
2268
2269
|
#
|
@@ -2471,19 +2472,28 @@ module Aws::CloudFront
|
|
2471
2472
|
# Creates a response headers policy.
|
2472
2473
|
#
|
2473
2474
|
# A response headers policy contains information about a set of HTTP
|
2474
|
-
#
|
2475
|
-
#
|
2476
|
-
#
|
2475
|
+
# headers. To create a response headers policy, you provide some
|
2476
|
+
# metadata about the policy and a set of configurations that specify the
|
2477
|
+
# headers.
|
2477
2478
|
#
|
2478
2479
|
# After you create a response headers policy, you can use its ID to
|
2479
2480
|
# attach it to one or more cache behaviors in a CloudFront distribution.
|
2480
|
-
# When it
|
2481
|
-
# the
|
2482
|
-
# cache behavior.
|
2481
|
+
# When it's attached to a cache behavior, the response headers policy
|
2482
|
+
# affects the HTTP headers that CloudFront includes in HTTP responses to
|
2483
|
+
# requests that match the cache behavior. CloudFront adds or removes
|
2484
|
+
# response headers according to the configuration of the response
|
2485
|
+
# headers policy.
|
2486
|
+
#
|
2487
|
+
# For more information, see [Adding or removing HTTP headers in
|
2488
|
+
# CloudFront responses][1] in the *Amazon CloudFront Developer Guide*.
|
2489
|
+
#
|
2490
|
+
#
|
2491
|
+
#
|
2492
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/modifying-response-headers.html
|
2483
2493
|
#
|
2484
2494
|
# @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
|
2485
2495
|
# Contains metadata about the response headers policy, and a set of
|
2486
|
-
# configurations that specify the
|
2496
|
+
# configurations that specify the HTTP headers.
|
2487
2497
|
#
|
2488
2498
|
# @return [Types::CreateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2489
2499
|
#
|
@@ -2561,6 +2571,14 @@ module Aws::CloudFront
|
|
2561
2571
|
# },
|
2562
2572
|
# ],
|
2563
2573
|
# },
|
2574
|
+
# remove_headers_config: {
|
2575
|
+
# quantity: 1, # required
|
2576
|
+
# items: [
|
2577
|
+
# {
|
2578
|
+
# header: "string", # required
|
2579
|
+
# },
|
2580
|
+
# ],
|
2581
|
+
# },
|
2564
2582
|
# },
|
2565
2583
|
# })
|
2566
2584
|
#
|
@@ -2607,6 +2625,9 @@ module Aws::CloudFront
|
|
2607
2625
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
2608
2626
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
2609
2627
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
2628
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
|
2629
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
|
2630
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
|
2610
2631
|
# resp.location #=> String
|
2611
2632
|
# resp.etag #=> String
|
2612
2633
|
#
|
@@ -2809,12 +2830,12 @@ module Aws::CloudFront
|
|
2809
2830
|
|
2810
2831
|
# Deletes a cache policy.
|
2811
2832
|
#
|
2812
|
-
# You cannot delete a cache policy if it
|
2813
|
-
# First update your distributions to remove the cache policy
|
2814
|
-
# cache behaviors, then delete the cache policy.
|
2833
|
+
# You cannot delete a cache policy if it's attached to a cache
|
2834
|
+
# behavior. First update your distributions to remove the cache policy
|
2835
|
+
# from all cache behaviors, then delete the cache policy.
|
2815
2836
|
#
|
2816
|
-
# To delete a cache policy, you must provide the policy
|
2817
|
-
# version. To get these values, you can use `ListCachePolicies` or
|
2837
|
+
# To delete a cache policy, you must provide the policy's identifier
|
2838
|
+
# and version. To get these values, you can use `ListCachePolicies` or
|
2818
2839
|
# `GetCachePolicy`.
|
2819
2840
|
#
|
2820
2841
|
# @option params [required, String] :id
|
@@ -2823,7 +2844,7 @@ module Aws::CloudFront
|
|
2823
2844
|
#
|
2824
2845
|
# @option params [String] :if_match
|
2825
2846
|
# The version of the cache policy that you are deleting. The version is
|
2826
|
-
# the cache policy
|
2847
|
+
# the cache policy's `ETag` value, which you can get using
|
2827
2848
|
# `ListCachePolicies`, `GetCachePolicy`, or `GetCachePolicyConfig`.
|
2828
2849
|
#
|
2829
2850
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -2873,7 +2894,7 @@ module Aws::CloudFront
|
|
2873
2894
|
|
2874
2895
|
# Deletes a continuous deployment policy.
|
2875
2896
|
#
|
2876
|
-
# You cannot delete a continuous deployment policy that
|
2897
|
+
# You cannot delete a continuous deployment policy that's attached to a
|
2877
2898
|
# primary distribution. First update your distribution to remove the
|
2878
2899
|
# continuous deployment policy, then you can delete the policy.
|
2879
2900
|
#
|
@@ -2986,13 +3007,13 @@ module Aws::CloudFront
|
|
2986
3007
|
|
2987
3008
|
# Deletes a CloudFront function.
|
2988
3009
|
#
|
2989
|
-
# You cannot delete a function if it
|
2990
|
-
# First, update your distributions to remove the function
|
2991
|
-
# from all cache behaviors, then delete the function.
|
3010
|
+
# You cannot delete a function if it's associated with a cache
|
3011
|
+
# behavior. First, update your distributions to remove the function
|
3012
|
+
# association from all cache behaviors, then delete the function.
|
2992
3013
|
#
|
2993
|
-
# To delete a function, you must provide the function
|
2994
|
-
# (`ETag` value). To get these values, you can use
|
2995
|
-
# `DescribeFunction`.
|
3014
|
+
# To delete a function, you must provide the function's name and
|
3015
|
+
# version (`ETag` value). To get these values, you can use
|
3016
|
+
# `ListFunctions` and `DescribeFunction`.
|
2996
3017
|
#
|
2997
3018
|
# @option params [required, String] :name
|
2998
3019
|
# The name of the function that you are deleting.
|
@@ -3025,8 +3046,8 @@ module Aws::CloudFront
|
|
3025
3046
|
# First update your distributions to remove the key group from all cache
|
3026
3047
|
# behaviors, then delete the key group.
|
3027
3048
|
#
|
3028
|
-
# To delete a key group, you must provide the key group
|
3029
|
-
# version. To get these values, use `ListKeyGroups` followed by
|
3049
|
+
# To delete a key group, you must provide the key group's identifier
|
3050
|
+
# and version. To get these values, use `ListKeyGroups` followed by
|
3030
3051
|
# `GetKeyGroup` or `GetKeyGroupConfig`.
|
3031
3052
|
#
|
3032
3053
|
# @option params [required, String] :id
|
@@ -3035,7 +3056,7 @@ module Aws::CloudFront
|
|
3035
3056
|
#
|
3036
3057
|
# @option params [String] :if_match
|
3037
3058
|
# The version of the key group that you are deleting. The version is the
|
3038
|
-
# key group
|
3059
|
+
# key group's `ETag` value. To get the `ETag`, use `GetKeyGroup` or
|
3039
3060
|
# `GetKeyGroupConfig`.
|
3040
3061
|
#
|
3041
3062
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -3113,12 +3134,12 @@ module Aws::CloudFront
|
|
3113
3134
|
|
3114
3135
|
# Deletes an origin request policy.
|
3115
3136
|
#
|
3116
|
-
# You cannot delete an origin request policy if it
|
3137
|
+
# You cannot delete an origin request policy if it's attached to any
|
3117
3138
|
# cache behaviors. First update your distributions to remove the origin
|
3118
3139
|
# request policy from all cache behaviors, then delete the origin
|
3119
3140
|
# request policy.
|
3120
3141
|
#
|
3121
|
-
# To delete an origin request policy, you must provide the policy
|
3142
|
+
# To delete an origin request policy, you must provide the policy's
|
3122
3143
|
# identifier and version. To get the identifier, you can use
|
3123
3144
|
# `ListOriginRequestPolicies` or `GetOriginRequestPolicy`.
|
3124
3145
|
#
|
@@ -3129,8 +3150,8 @@ module Aws::CloudFront
|
|
3129
3150
|
#
|
3130
3151
|
# @option params [String] :if_match
|
3131
3152
|
# The version of the origin request policy that you are deleting. The
|
3132
|
-
# version is the origin request policy
|
3133
|
-
# using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or
|
3153
|
+
# version is the origin request policy's `ETag` value, which you can
|
3154
|
+
# get using `ListOriginRequestPolicies`, `GetOriginRequestPolicy`, or
|
3134
3155
|
# `GetOriginRequestPolicyConfig`.
|
3135
3156
|
#
|
3136
3157
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
@@ -3180,13 +3201,13 @@ module Aws::CloudFront
|
|
3180
3201
|
|
3181
3202
|
# Deletes a real-time log configuration.
|
3182
3203
|
#
|
3183
|
-
# You cannot delete a real-time log configuration if it
|
3204
|
+
# You cannot delete a real-time log configuration if it's attached to a
|
3184
3205
|
# cache behavior. First update your distributions to remove the
|
3185
3206
|
# real-time log configuration from all cache behaviors, then delete the
|
3186
3207
|
# real-time log configuration.
|
3187
3208
|
#
|
3188
3209
|
# To delete a real-time log configuration, you can provide the
|
3189
|
-
# configuration
|
3210
|
+
# configuration's name or its Amazon Resource Name (ARN). You must
|
3190
3211
|
# provide at least one. If you provide both, CloudFront uses the name to
|
3191
3212
|
# identify the real-time log configuration to delete.
|
3192
3213
|
#
|
@@ -3217,12 +3238,12 @@ module Aws::CloudFront
|
|
3217
3238
|
|
3218
3239
|
# Deletes a response headers policy.
|
3219
3240
|
#
|
3220
|
-
# You cannot delete a response headers policy if it
|
3241
|
+
# You cannot delete a response headers policy if it's attached to a
|
3221
3242
|
# cache behavior. First update your distributions to remove the response
|
3222
3243
|
# headers policy from all cache behaviors, then delete the response
|
3223
3244
|
# headers policy.
|
3224
3245
|
#
|
3225
|
-
# To delete a response headers policy, you must provide the policy
|
3246
|
+
# To delete a response headers policy, you must provide the policy's
|
3226
3247
|
# identifier and version. To get these values, you can use
|
3227
3248
|
# `ListResponseHeadersPolicies` or `GetResponseHeadersPolicy`.
|
3228
3249
|
#
|
@@ -3234,7 +3255,7 @@ module Aws::CloudFront
|
|
3234
3255
|
# @option params [String] :if_match
|
3235
3256
|
# The version of the response headers policy that you are deleting.
|
3236
3257
|
#
|
3237
|
-
# The version is the response headers policy
|
3258
|
+
# The version is the response headers policy's `ETag` value, which you
|
3238
3259
|
# can get using `ListResponseHeadersPolicies`,
|
3239
3260
|
# `GetResponseHeadersPolicy`, or `GetResponseHeadersPolicyConfig`.
|
3240
3261
|
#
|
@@ -3327,18 +3348,18 @@ module Aws::CloudFront
|
|
3327
3348
|
end
|
3328
3349
|
|
3329
3350
|
# Gets configuration information and metadata about a CloudFront
|
3330
|
-
# function, but not the function
|
3351
|
+
# function, but not the function's code. To get a function's code, use
|
3331
3352
|
# `GetFunction`.
|
3332
3353
|
#
|
3333
3354
|
# To get configuration information and metadata about a function, you
|
3334
|
-
# must provide the function
|
3355
|
+
# must provide the function's name and stage. To get these values, you
|
3335
3356
|
# can use `ListFunctions`.
|
3336
3357
|
#
|
3337
3358
|
# @option params [required, String] :name
|
3338
3359
|
# The name of the function that you are getting information about.
|
3339
3360
|
#
|
3340
3361
|
# @option params [String] :stage
|
3341
|
-
# The function
|
3362
|
+
# The function's stage, either `DEVELOPMENT` or `LIVE`.
|
3342
3363
|
#
|
3343
3364
|
# @return [Types::DescribeFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3344
3365
|
#
|
@@ -3375,22 +3396,22 @@ module Aws::CloudFront
|
|
3375
3396
|
|
3376
3397
|
# Gets a cache policy, including the following metadata:
|
3377
3398
|
#
|
3378
|
-
# * The policy
|
3399
|
+
# * The policy's identifier.
|
3379
3400
|
#
|
3380
3401
|
# * The date and time when the policy was last modified.
|
3381
3402
|
#
|
3382
|
-
# To get a cache policy, you must provide the policy
|
3383
|
-
# the cache policy is attached to a distribution
|
3384
|
-
# can get the policy
|
3403
|
+
# To get a cache policy, you must provide the policy's identifier. If
|
3404
|
+
# the cache policy is attached to a distribution's cache behavior, you
|
3405
|
+
# can get the policy's identifier using `ListDistributions` or
|
3385
3406
|
# `GetDistribution`. If the cache policy is not attached to a cache
|
3386
3407
|
# behavior, you can get the identifier using `ListCachePolicies`.
|
3387
3408
|
#
|
3388
3409
|
# @option params [required, String] :id
|
3389
3410
|
# The unique identifier for the cache policy. If the cache policy is
|
3390
|
-
# attached to a distribution
|
3391
|
-
# identifier using `ListDistributions` or `GetDistribution`.
|
3392
|
-
# cache policy is not attached to a cache behavior, you can get
|
3393
|
-
# identifier using `ListCachePolicies`.
|
3411
|
+
# attached to a distribution's cache behavior, you can get the
|
3412
|
+
# policy's identifier using `ListDistributions` or `GetDistribution`.
|
3413
|
+
# If the cache policy is not attached to a cache behavior, you can get
|
3414
|
+
# the identifier using `ListCachePolicies`.
|
3394
3415
|
#
|
3395
3416
|
# @return [Types::GetCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3396
3417
|
#
|
@@ -3439,19 +3460,19 @@ module Aws::CloudFront
|
|
3439
3460
|
|
3440
3461
|
# Gets a cache policy configuration.
|
3441
3462
|
#
|
3442
|
-
# To get a cache policy configuration, you must provide the policy
|
3443
|
-
# identifier. If the cache policy is attached to a distribution
|
3444
|
-
# behavior, you can get the policy
|
3463
|
+
# To get a cache policy configuration, you must provide the policy's
|
3464
|
+
# identifier. If the cache policy is attached to a distribution's cache
|
3465
|
+
# behavior, you can get the policy's identifier using
|
3445
3466
|
# `ListDistributions` or `GetDistribution`. If the cache policy is not
|
3446
3467
|
# attached to a cache behavior, you can get the identifier using
|
3447
3468
|
# `ListCachePolicies`.
|
3448
3469
|
#
|
3449
3470
|
# @option params [required, String] :id
|
3450
3471
|
# The unique identifier for the cache policy. If the cache policy is
|
3451
|
-
# attached to a distribution
|
3452
|
-
# identifier using `ListDistributions` or `GetDistribution`.
|
3453
|
-
# cache policy is not attached to a cache behavior, you can get
|
3454
|
-
# identifier using `ListCachePolicies`.
|
3472
|
+
# attached to a distribution's cache behavior, you can get the
|
3473
|
+
# policy's identifier using `ListDistributions` or `GetDistribution`.
|
3474
|
+
# If the cache policy is not attached to a cache behavior, you can get
|
3475
|
+
# the identifier using `ListCachePolicies`.
|
3455
3476
|
#
|
3456
3477
|
# @return [Types::GetCachePolicyConfigResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3457
3478
|
#
|
@@ -3560,7 +3581,7 @@ module Aws::CloudFront
|
|
3560
3581
|
req.send_request(options)
|
3561
3582
|
end
|
3562
3583
|
|
3563
|
-
# Gets a continuous deployment policy, including metadata (the policy
|
3584
|
+
# Gets a continuous deployment policy, including metadata (the policy's
|
3564
3585
|
# identifier and the date and time when the policy was last modified).
|
3565
3586
|
#
|
3566
3587
|
# @option params [required, String] :id
|
@@ -4225,14 +4246,14 @@ module Aws::CloudFront
|
|
4225
4246
|
# Gets the code of a CloudFront function. To get configuration
|
4226
4247
|
# information and metadata about a function, use `DescribeFunction`.
|
4227
4248
|
#
|
4228
|
-
# To get a function
|
4249
|
+
# To get a function's code, you must provide the function's name and
|
4229
4250
|
# stage. To get these values, you can use `ListFunctions`.
|
4230
4251
|
#
|
4231
4252
|
# @option params [required, String] :name
|
4232
4253
|
# The name of the function whose code you are getting.
|
4233
4254
|
#
|
4234
4255
|
# @option params [String] :stage
|
4235
|
-
# The function
|
4256
|
+
# The function's stage, either `DEVELOPMENT` or `LIVE`.
|
4236
4257
|
#
|
4237
4258
|
# @return [Types::GetFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4238
4259
|
#
|
@@ -4309,9 +4330,9 @@ module Aws::CloudFront
|
|
4309
4330
|
# Gets a key group, including the date and time when the key group was
|
4310
4331
|
# last modified.
|
4311
4332
|
#
|
4312
|
-
# To get a key group, you must provide the key group
|
4313
|
-
# the key group is referenced in a distribution
|
4314
|
-
# can get the key group
|
4333
|
+
# To get a key group, you must provide the key group's identifier. If
|
4334
|
+
# the key group is referenced in a distribution's cache behavior, you
|
4335
|
+
# can get the key group's identifier using `ListDistributions` or
|
4315
4336
|
# `GetDistribution`. If the key group is not referenced in a cache
|
4316
4337
|
# behavior, you can get the identifier using `ListKeyGroups`.
|
4317
4338
|
#
|
@@ -4351,9 +4372,9 @@ module Aws::CloudFront
|
|
4351
4372
|
|
4352
4373
|
# Gets a key group configuration.
|
4353
4374
|
#
|
4354
|
-
# To get a key group configuration, you must provide the key group
|
4355
|
-
# identifier. If the key group is referenced in a distribution
|
4356
|
-
# behavior, you can get the key group
|
4375
|
+
# To get a key group configuration, you must provide the key group's
|
4376
|
+
# identifier. If the key group is referenced in a distribution's cache
|
4377
|
+
# behavior, you can get the key group's identifier using
|
4357
4378
|
# `ListDistributions` or `GetDistribution`. If the key group is not
|
4358
4379
|
# referenced in a cache behavior, you can get the identifier using
|
4359
4380
|
# `ListKeyGroups`.
|
@@ -4492,21 +4513,21 @@ module Aws::CloudFront
|
|
4492
4513
|
|
4493
4514
|
# Gets an origin request policy, including the following metadata:
|
4494
4515
|
#
|
4495
|
-
# * The policy
|
4516
|
+
# * The policy's identifier.
|
4496
4517
|
#
|
4497
4518
|
# * The date and time when the policy was last modified.
|
4498
4519
|
#
|
4499
|
-
# To get an origin request policy, you must provide the policy
|
4520
|
+
# To get an origin request policy, you must provide the policy's
|
4500
4521
|
# identifier. If the origin request policy is attached to a
|
4501
|
-
# distribution
|
4522
|
+
# distribution's cache behavior, you can get the policy's identifier
|
4502
4523
|
# using `ListDistributions` or `GetDistribution`. If the origin request
|
4503
4524
|
# policy is not attached to a cache behavior, you can get the identifier
|
4504
4525
|
# using `ListOriginRequestPolicies`.
|
4505
4526
|
#
|
4506
4527
|
# @option params [required, String] :id
|
4507
4528
|
# The unique identifier for the origin request policy. If the origin
|
4508
|
-
# request policy is attached to a distribution
|
4509
|
-
# get the policy
|
4529
|
+
# request policy is attached to a distribution's cache behavior, you
|
4530
|
+
# can get the policy's identifier using `ListDistributions` or
|
4510
4531
|
# `GetDistribution`. If the origin request policy is not attached to a
|
4511
4532
|
# cache behavior, you can get the identifier using
|
4512
4533
|
# `ListOriginRequestPolicies`.
|
@@ -4554,16 +4575,16 @@ module Aws::CloudFront
|
|
4554
4575
|
# Gets an origin request policy configuration.
|
4555
4576
|
#
|
4556
4577
|
# To get an origin request policy configuration, you must provide the
|
4557
|
-
# policy
|
4558
|
-
# distribution
|
4578
|
+
# policy's identifier. If the origin request policy is attached to a
|
4579
|
+
# distribution's cache behavior, you can get the policy's identifier
|
4559
4580
|
# using `ListDistributions` or `GetDistribution`. If the origin request
|
4560
4581
|
# policy is not attached to a cache behavior, you can get the identifier
|
4561
4582
|
# using `ListOriginRequestPolicies`.
|
4562
4583
|
#
|
4563
4584
|
# @option params [required, String] :id
|
4564
4585
|
# The unique identifier for the origin request policy. If the origin
|
4565
|
-
# request policy is attached to a distribution
|
4566
|
-
# get the policy
|
4586
|
+
# request policy is attached to a distribution's cache behavior, you
|
4587
|
+
# can get the policy's identifier using `ListDistributions` or
|
4567
4588
|
# `GetDistribution`. If the origin request policy is not attached to a
|
4568
4589
|
# cache behavior, you can get the identifier using
|
4569
4590
|
# `ListOriginRequestPolicies`.
|
@@ -4677,7 +4698,7 @@ module Aws::CloudFront
|
|
4677
4698
|
# Gets a real-time log configuration.
|
4678
4699
|
#
|
4679
4700
|
# To get a real-time log configuration, you can provide the
|
4680
|
-
# configuration
|
4701
|
+
# configuration's name or its Amazon Resource Name (ARN). You must
|
4681
4702
|
# provide at least one. If you provide both, CloudFront uses the name to
|
4682
4703
|
# identify the real-time log configuration to get.
|
4683
4704
|
#
|
@@ -4720,12 +4741,12 @@ module Aws::CloudFront
|
|
4720
4741
|
req.send_request(options)
|
4721
4742
|
end
|
4722
4743
|
|
4723
|
-
# Gets a response headers policy, including metadata (the policy
|
4744
|
+
# Gets a response headers policy, including metadata (the policy's
|
4724
4745
|
# identifier and the date and time when the policy was last modified).
|
4725
4746
|
#
|
4726
|
-
# To get a response headers policy, you must provide the policy
|
4747
|
+
# To get a response headers policy, you must provide the policy's
|
4727
4748
|
# identifier. If the response headers policy is attached to a
|
4728
|
-
# distribution
|
4749
|
+
# distribution's cache behavior, you can get the policy's identifier
|
4729
4750
|
# using `ListDistributions` or `GetDistribution`. If the response
|
4730
4751
|
# headers policy is not attached to a cache behavior, you can get the
|
4731
4752
|
# identifier using `ListResponseHeadersPolicies`.
|
@@ -4733,8 +4754,8 @@ module Aws::CloudFront
|
|
4733
4754
|
# @option params [required, String] :id
|
4734
4755
|
# The identifier for the response headers policy.
|
4735
4756
|
#
|
4736
|
-
# If the response headers policy is attached to a distribution
|
4737
|
-
# behavior, you can get the policy
|
4757
|
+
# If the response headers policy is attached to a distribution's cache
|
4758
|
+
# behavior, you can get the policy's identifier using
|
4738
4759
|
# `ListDistributions` or `GetDistribution`. If the response headers
|
4739
4760
|
# policy is not attached to a cache behavior, you can get the identifier
|
4740
4761
|
# using `ListResponseHeadersPolicies`.
|
@@ -4793,6 +4814,9 @@ module Aws::CloudFront
|
|
4793
4814
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4794
4815
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4795
4816
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4817
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
|
4818
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
|
4819
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
|
4796
4820
|
# resp.etag #=> String
|
4797
4821
|
#
|
4798
4822
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicy AWS API Documentation
|
@@ -4807,8 +4831,8 @@ module Aws::CloudFront
|
|
4807
4831
|
# Gets a response headers policy configuration.
|
4808
4832
|
#
|
4809
4833
|
# To get a response headers policy configuration, you must provide the
|
4810
|
-
# policy
|
4811
|
-
# distribution
|
4834
|
+
# policy's identifier. If the response headers policy is attached to a
|
4835
|
+
# distribution's cache behavior, you can get the policy's identifier
|
4812
4836
|
# using `ListDistributions` or `GetDistribution`. If the response
|
4813
4837
|
# headers policy is not attached to a cache behavior, you can get the
|
4814
4838
|
# identifier using `ListResponseHeadersPolicies`.
|
@@ -4816,8 +4840,8 @@ module Aws::CloudFront
|
|
4816
4840
|
# @option params [required, String] :id
|
4817
4841
|
# The identifier for the response headers policy.
|
4818
4842
|
#
|
4819
|
-
# If the response headers policy is attached to a distribution
|
4820
|
-
# behavior, you can get the policy
|
4843
|
+
# If the response headers policy is attached to a distribution's cache
|
4844
|
+
# behavior, you can get the policy's identifier using
|
4821
4845
|
# `ListDistributions` or `GetDistribution`. If the response headers
|
4822
4846
|
# policy is not attached to a cache behavior, you can get the identifier
|
4823
4847
|
# using `ListResponseHeadersPolicies`.
|
@@ -4874,6 +4898,9 @@ module Aws::CloudFront
|
|
4874
4898
|
# resp.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
4875
4899
|
# resp.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
4876
4900
|
# resp.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
4901
|
+
# resp.response_headers_policy_config.remove_headers_config.quantity #=> Integer
|
4902
|
+
# resp.response_headers_policy_config.remove_headers_config.items #=> Array
|
4903
|
+
# resp.response_headers_policy_config.remove_headers_config.items[0].header #=> String
|
4877
4904
|
# resp.etag #=> String
|
4878
4905
|
#
|
4879
4906
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetResponseHeadersPolicyConfig AWS API Documentation
|
@@ -5020,8 +5047,8 @@ module Aws::CloudFront
|
|
5020
5047
|
# Use this field when paginating results to indicate where to begin in
|
5021
5048
|
# your list of cache policies. The response includes cache policies in
|
5022
5049
|
# the list that occur after the marker. To get the next page of the
|
5023
|
-
# list, set this field
|
5024
|
-
# current page
|
5050
|
+
# list, set this field's value to the value of `NextMarker` from the
|
5051
|
+
# current page's response.
|
5025
5052
|
#
|
5026
5053
|
# @option params [Integer] :max_items
|
5027
5054
|
# The maximum number of cache policies that you want in the response.
|
@@ -5130,7 +5157,7 @@ module Aws::CloudFront
|
|
5130
5157
|
# conflicting alias. In the returned list, the distribution and account
|
5131
5158
|
# IDs are partially hidden, which allows you to identify the
|
5132
5159
|
# distributions and accounts that you own, but helps to protect the
|
5133
|
-
# information of ones that you don
|
5160
|
+
# information of ones that you don't own.
|
5134
5161
|
#
|
5135
5162
|
# Use this operation to find aliases that are in use in CloudFront that
|
5136
5163
|
# conflict or overlap with the provided alias. For example, if you
|
@@ -5170,8 +5197,8 @@ module Aws::CloudFront
|
|
5170
5197
|
# Use this field when paginating results to indicate where to begin in
|
5171
5198
|
# the list of conflicting aliases. The response includes conflicting
|
5172
5199
|
# aliases in the list that occur after the marker. To get the next page
|
5173
|
-
# of the list, set this field
|
5174
|
-
# the current page
|
5200
|
+
# of the list, set this field's value to the value of `NextMarker` from
|
5201
|
+
# the current page's response.
|
5175
5202
|
#
|
5176
5203
|
# @option params [Integer] :max_items
|
5177
5204
|
# The maximum number of conflicting aliases that you want in the
|
@@ -5223,8 +5250,8 @@ module Aws::CloudFront
|
|
5223
5250
|
# Use this field when paginating results to indicate where to begin in
|
5224
5251
|
# your list of continuous deployment policies. The response includes
|
5225
5252
|
# policies in the list that occur after the marker. To get the next page
|
5226
|
-
# of the list, set this field
|
5227
|
-
# the current page
|
5253
|
+
# of the list, set this field's value to the value of `NextMarker` from
|
5254
|
+
# the current page's response.
|
5228
5255
|
#
|
5229
5256
|
# @option params [Integer] :max_items
|
5230
5257
|
# The maximum number of continuous deployment policies that you want
|
@@ -5475,7 +5502,7 @@ module Aws::CloudFront
|
|
5475
5502
|
end
|
5476
5503
|
|
5477
5504
|
# Gets a list of distribution IDs for distributions that have a cache
|
5478
|
-
# behavior that
|
5505
|
+
# behavior that's associated with the specified cache policy.
|
5479
5506
|
#
|
5480
5507
|
# You can optionally specify the maximum number of items to receive in
|
5481
5508
|
# the response. If the total number of items in the list exceeds the
|
@@ -5488,8 +5515,8 @@ module Aws::CloudFront
|
|
5488
5515
|
# Use this field when paginating results to indicate where to begin in
|
5489
5516
|
# your list of distribution IDs. The response includes distribution IDs
|
5490
5517
|
# in the list that occur after the marker. To get the next page of the
|
5491
|
-
# list, set this field
|
5492
|
-
# current page
|
5518
|
+
# list, set this field's value to the value of `NextMarker` from the
|
5519
|
+
# current page's response.
|
5493
5520
|
#
|
5494
5521
|
# @option params [Integer] :max_items
|
5495
5522
|
# The maximum number of distribution IDs that you want in the response.
|
@@ -5543,8 +5570,8 @@ module Aws::CloudFront
|
|
5543
5570
|
# Use this field when paginating results to indicate where to begin in
|
5544
5571
|
# your list of distribution IDs. The response includes distribution IDs
|
5545
5572
|
# in the list that occur after the marker. To get the next page of the
|
5546
|
-
# list, set this field
|
5547
|
-
# current page
|
5573
|
+
# list, set this field's value to the value of `NextMarker` from the
|
5574
|
+
# current page's response.
|
5548
5575
|
#
|
5549
5576
|
# @option params [Integer] :max_items
|
5550
5577
|
# The maximum number of distribution IDs that you want in the response.
|
@@ -5585,7 +5612,7 @@ module Aws::CloudFront
|
|
5585
5612
|
end
|
5586
5613
|
|
5587
5614
|
# Gets a list of distribution IDs for distributions that have a cache
|
5588
|
-
# behavior that
|
5615
|
+
# behavior that's associated with the specified origin request policy.
|
5589
5616
|
#
|
5590
5617
|
# You can optionally specify the maximum number of items to receive in
|
5591
5618
|
# the response. If the total number of items in the list exceeds the
|
@@ -5598,8 +5625,8 @@ module Aws::CloudFront
|
|
5598
5625
|
# Use this field when paginating results to indicate where to begin in
|
5599
5626
|
# your list of distribution IDs. The response includes distribution IDs
|
5600
5627
|
# in the list that occur after the marker. To get the next page of the
|
5601
|
-
# list, set this field
|
5602
|
-
# current page
|
5628
|
+
# list, set this field's value to the value of `NextMarker` from the
|
5629
|
+
# current page's response.
|
5603
5630
|
#
|
5604
5631
|
# @option params [Integer] :max_items
|
5605
5632
|
# The maximum number of distribution IDs that you want in the response.
|
@@ -5639,7 +5666,7 @@ module Aws::CloudFront
|
|
5639
5666
|
req.send_request(options)
|
5640
5667
|
end
|
5641
5668
|
|
5642
|
-
# Gets a list of distributions that have a cache behavior that
|
5669
|
+
# Gets a list of distributions that have a cache behavior that's
|
5643
5670
|
# associated with the specified real-time log configuration.
|
5644
5671
|
#
|
5645
5672
|
# You can specify the real-time log configuration by its name or its
|
@@ -5658,8 +5685,8 @@ module Aws::CloudFront
|
|
5658
5685
|
# Use this field when paginating results to indicate where to begin in
|
5659
5686
|
# your list of distributions. The response includes distributions in the
|
5660
5687
|
# list that occur after the marker. To get the next page of the list,
|
5661
|
-
# set this field
|
5662
|
-
# page
|
5688
|
+
# set this field's value to the value of `NextMarker` from the current
|
5689
|
+
# page's response.
|
5663
5690
|
#
|
5664
5691
|
# @option params [Integer] :max_items
|
5665
5692
|
# The maximum number of distributions that you want in the response.
|
@@ -5866,7 +5893,8 @@ module Aws::CloudFront
|
|
5866
5893
|
end
|
5867
5894
|
|
5868
5895
|
# Gets a list of distribution IDs for distributions that have a cache
|
5869
|
-
# behavior that
|
5896
|
+
# behavior that's associated with the specified response headers
|
5897
|
+
# policy.
|
5870
5898
|
#
|
5871
5899
|
# You can optionally specify the maximum number of items to receive in
|
5872
5900
|
# the response. If the total number of items in the list exceeds the
|
@@ -5879,8 +5907,8 @@ module Aws::CloudFront
|
|
5879
5907
|
# Use this field when paginating results to indicate where to begin in
|
5880
5908
|
# your list of distribution IDs. The response includes distribution IDs
|
5881
5909
|
# in the list that occur after the marker. To get the next page of the
|
5882
|
-
# list, set this field
|
5883
|
-
# current page
|
5910
|
+
# list, set this field's value to the value of `NextMarker` from the
|
5911
|
+
# current page's response.
|
5884
5912
|
#
|
5885
5913
|
# @option params [Integer] :max_items
|
5886
5914
|
# The maximum number of distribution IDs that you want to get in the
|
@@ -6258,8 +6286,8 @@ module Aws::CloudFront
|
|
6258
6286
|
# Use this field when paginating results to indicate where to begin in
|
6259
6287
|
# your list of functions. The response includes functions in the list
|
6260
6288
|
# that occur after the marker. To get the next page of the list, set
|
6261
|
-
# this field
|
6262
|
-
# page
|
6289
|
+
# this field's value to the value of `NextMarker` from the current
|
6290
|
+
# page's response.
|
6263
6291
|
#
|
6264
6292
|
# @option params [Integer] :max_items
|
6265
6293
|
# The maximum number of functions that you want in the response.
|
@@ -6371,8 +6399,8 @@ module Aws::CloudFront
|
|
6371
6399
|
# Use this field when paginating results to indicate where to begin in
|
6372
6400
|
# your list of key groups. The response includes key groups in the list
|
6373
6401
|
# that occur after the marker. To get the next page of the list, set
|
6374
|
-
# this field
|
6375
|
-
# page
|
6402
|
+
# this field's value to the value of `NextMarker` from the current
|
6403
|
+
# page's response.
|
6376
6404
|
#
|
6377
6405
|
# @option params [Integer] :max_items
|
6378
6406
|
# The maximum number of key groups that you want in the response.
|
@@ -6493,8 +6521,8 @@ module Aws::CloudFront
|
|
6493
6521
|
# Use this field when paginating results to indicate where to begin in
|
6494
6522
|
# your list of origin request policies. The response includes origin
|
6495
6523
|
# request policies in the list that occur after the marker. To get the
|
6496
|
-
# next page of the list, set this field
|
6497
|
-
# `NextMarker` from the current page
|
6524
|
+
# next page of the list, set this field's value to the value of
|
6525
|
+
# `NextMarker` from the current page's response.
|
6498
6526
|
#
|
6499
6527
|
# @option params [Integer] :max_items
|
6500
6528
|
# The maximum number of origin request policies that you want in the
|
@@ -6607,8 +6635,8 @@ module Aws::CloudFront
|
|
6607
6635
|
# Use this field when paginating results to indicate where to begin in
|
6608
6636
|
# your list of real-time log configurations. The response includes
|
6609
6637
|
# real-time log configurations in the list that occur after the marker.
|
6610
|
-
# To get the next page of the list, set this field
|
6611
|
-
# of `NextMarker` from the current page
|
6638
|
+
# To get the next page of the list, set this field's value to the value
|
6639
|
+
# of `NextMarker` from the current page's response.
|
6612
6640
|
#
|
6613
6641
|
# @return [Types::ListRealtimeLogConfigsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6614
6642
|
#
|
@@ -6674,8 +6702,8 @@ module Aws::CloudFront
|
|
6674
6702
|
# Use this field when paginating results to indicate where to begin in
|
6675
6703
|
# your list of response headers policies. The response includes response
|
6676
6704
|
# headers policies in the list that occur after the marker. To get the
|
6677
|
-
# next page of the list, set this field
|
6678
|
-
# `NextMarker` from the current page
|
6705
|
+
# next page of the list, set this field's value to the value of
|
6706
|
+
# `NextMarker` from the current page's response.
|
6679
6707
|
#
|
6680
6708
|
# @option params [Integer] :max_items
|
6681
6709
|
# The maximum number of response headers policies that you want to get
|
@@ -6741,6 +6769,9 @@ module Aws::CloudFront
|
|
6741
6769
|
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
6742
6770
|
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
6743
6771
|
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
6772
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
|
6773
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
|
6774
|
+
# resp.response_headers_policy_list.items[0].response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
|
6744
6775
|
#
|
6745
6776
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListResponseHeadersPolicies AWS API Documentation
|
6746
6777
|
#
|
@@ -6843,10 +6874,10 @@ module Aws::CloudFront
|
|
6843
6874
|
# in the `LIVE` stage.
|
6844
6875
|
#
|
6845
6876
|
# When a function is published to the `LIVE` stage, you can attach the
|
6846
|
-
# function to a distribution
|
6877
|
+
# function to a distribution's cache behavior, using the function's
|
6847
6878
|
# Amazon Resource Name (ARN).
|
6848
6879
|
#
|
6849
|
-
# To publish a function, you must provide the function
|
6880
|
+
# To publish a function, you must provide the function's name and
|
6850
6881
|
# version (`ETag` value). To get these values, you can use
|
6851
6882
|
# `ListFunctions` and `DescribeFunction`.
|
6852
6883
|
#
|
@@ -6926,15 +6957,15 @@ module Aws::CloudFront
|
|
6926
6957
|
# To test a function, you provide an *event object* that represents an
|
6927
6958
|
# HTTP request or response that your CloudFront distribution could
|
6928
6959
|
# receive in production. CloudFront runs the function, passing it the
|
6929
|
-
# event object that you provided, and returns the function
|
6930
|
-
# modified event object) in the response. The response also
|
6931
|
-
# function logs and error messages, if any exist. For more
|
6932
|
-
# about testing functions, see [Testing functions][1] in the
|
6933
|
-
# CloudFront Developer Guide*.
|
6960
|
+
# event object that you provided, and returns the function's result
|
6961
|
+
# (the modified event object) in the response. The response also
|
6962
|
+
# contains function logs and error messages, if any exist. For more
|
6963
|
+
# information about testing functions, see [Testing functions][1] in the
|
6964
|
+
# *Amazon CloudFront Developer Guide*.
|
6934
6965
|
#
|
6935
|
-
# To test a function, you provide the function
|
6936
|
-
# (`ETag` value) along with the event object. To get the function
|
6937
|
-
# and version, you can use `ListFunctions` and `DescribeFunction`.
|
6966
|
+
# To test a function, you provide the function's name and version
|
6967
|
+
# (`ETag` value) along with the event object. To get the function's
|
6968
|
+
# name and version, you can use `ListFunctions` and `DescribeFunction`.
|
6938
6969
|
#
|
6939
6970
|
#
|
6940
6971
|
#
|
@@ -7040,19 +7071,19 @@ module Aws::CloudFront
|
|
7040
7071
|
#
|
7041
7072
|
# 3. Call `UpdateCachePolicy` by providing the entire cache policy
|
7042
7073
|
# configuration, including the fields that you modified and those
|
7043
|
-
# that you didn
|
7074
|
+
# that you didn't.
|
7044
7075
|
#
|
7045
7076
|
# @option params [required, Types::CachePolicyConfig] :cache_policy_config
|
7046
7077
|
# A cache policy configuration.
|
7047
7078
|
#
|
7048
7079
|
# @option params [required, String] :id
|
7049
7080
|
# The unique identifier for the cache policy that you are updating. The
|
7050
|
-
# identifier is returned in a cache behavior
|
7081
|
+
# identifier is returned in a cache behavior's `CachePolicyId` field in
|
7051
7082
|
# the response to `GetDistributionConfig`.
|
7052
7083
|
#
|
7053
7084
|
# @option params [String] :if_match
|
7054
7085
|
# The version of the cache policy that you are updating. The version is
|
7055
|
-
# returned in the cache policy
|
7086
|
+
# returned in the cache policy's `ETag` field in the response to
|
7056
7087
|
# `GetCachePolicyConfig`.
|
7057
7088
|
#
|
7058
7089
|
# @return [Types::UpdateCachePolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -7196,7 +7227,7 @@ module Aws::CloudFront
|
|
7196
7227
|
#
|
7197
7228
|
# 3. Use `UpdateContinuousDeploymentPolicy`, providing the entire
|
7198
7229
|
# continuous deployment policy configuration, including the fields
|
7199
|
-
# that you modified and those that you didn
|
7230
|
+
# that you modified and those that you didn't.
|
7200
7231
|
#
|
7201
7232
|
# @option params [required, Types::ContinuousDeploymentPolicyConfig] :continuous_deployment_policy_config
|
7202
7233
|
# The continuous deployment policy configuration.
|
@@ -7286,14 +7317,14 @@ module Aws::CloudFront
|
|
7286
7317
|
# unchanged. (Set the value of `IfMatch` to the value of `ETag`,
|
7287
7318
|
# then remove the `ETag` field.)
|
7288
7319
|
#
|
7289
|
-
# * You can
|
7320
|
+
# * You can't change the value of `CallerReference`.
|
7290
7321
|
#
|
7291
7322
|
# 3. Submit an `UpdateDistribution` request, providing the distribution
|
7292
7323
|
# configuration. The new configuration replaces the existing
|
7293
7324
|
# configuration. The values that you specify in an
|
7294
7325
|
# `UpdateDistribution` request are not merged into your existing
|
7295
7326
|
# configuration. Make sure to include all fields: the ones that you
|
7296
|
-
# modified and also the ones that you didn
|
7327
|
+
# modified and also the ones that you didn't.
|
7297
7328
|
#
|
7298
7329
|
# @option params [required, Types::DistributionConfig] :distribution_config
|
7299
7330
|
# The distribution's configuration information.
|
@@ -7778,10 +7809,10 @@ module Aws::CloudFront
|
|
7778
7809
|
# You can use this operation in a continuous deployment workflow after
|
7779
7810
|
# you have tested configuration changes on the staging distribution.
|
7780
7811
|
# After using a continuous deployment policy to move a portion of your
|
7781
|
-
# domain name
|
7812
|
+
# domain name's traffic to the staging distribution and verifying that
|
7782
7813
|
# it works as intended, you can use this operation to copy the staging
|
7783
|
-
# distribution
|
7784
|
-
# will disable the continuous deployment policy and move your domain
|
7814
|
+
# distribution's configuration to the primary distribution. This action
|
7815
|
+
# will disable the continuous deployment policy and move your domain's
|
7785
7816
|
# traffic back to the primary distribution.
|
7786
7817
|
#
|
7787
7818
|
# @option params [required, String] :id
|
@@ -8158,10 +8189,10 @@ module Aws::CloudFront
|
|
8158
8189
|
|
8159
8190
|
# Updates a CloudFront function.
|
8160
8191
|
#
|
8161
|
-
# You can update a function
|
8162
|
-
# function. You cannot update a function
|
8192
|
+
# You can update a function's code or the comment that describes the
|
8193
|
+
# function. You cannot update a function's name.
|
8163
8194
|
#
|
8164
|
-
# To update a function, you provide the function
|
8195
|
+
# To update a function, you provide the function's name and version
|
8165
8196
|
# (`ETag` value) along with the updated function code. To get the name
|
8166
8197
|
# and version, you can use `ListFunctions` and `DescribeFunction`.
|
8167
8198
|
#
|
@@ -8235,7 +8266,7 @@ module Aws::CloudFront
|
|
8235
8266
|
# update. For example, add or remove public key IDs.
|
8236
8267
|
#
|
8237
8268
|
# 3. Call `UpdateKeyGroup` with the entire key group object, including
|
8238
|
-
# the fields that you modified and those that you didn
|
8269
|
+
# the fields that you modified and those that you didn't.
|
8239
8270
|
#
|
8240
8271
|
# @option params [required, Types::KeyGroupConfig] :key_group_config
|
8241
8272
|
# The key group configuration.
|
@@ -8245,7 +8276,7 @@ module Aws::CloudFront
|
|
8245
8276
|
#
|
8246
8277
|
# @option params [String] :if_match
|
8247
8278
|
# The version of the key group that you are updating. The version is the
|
8248
|
-
# key group
|
8279
|
+
# key group's `ETag` value.
|
8249
8280
|
#
|
8250
8281
|
# @return [Types::UpdateKeyGroupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8251
8282
|
#
|
@@ -8349,21 +8380,21 @@ module Aws::CloudFront
|
|
8349
8380
|
#
|
8350
8381
|
# 3. Call `UpdateOriginRequestPolicy` by providing the entire origin
|
8351
8382
|
# request policy configuration, including the fields that you
|
8352
|
-
# modified and those that you didn
|
8383
|
+
# modified and those that you didn't.
|
8353
8384
|
#
|
8354
8385
|
# @option params [required, Types::OriginRequestPolicyConfig] :origin_request_policy_config
|
8355
8386
|
# An origin request policy configuration.
|
8356
8387
|
#
|
8357
8388
|
# @option params [required, String] :id
|
8358
8389
|
# The unique identifier for the origin request policy that you are
|
8359
|
-
# updating. The identifier is returned in a cache behavior
|
8390
|
+
# updating. The identifier is returned in a cache behavior's
|
8360
8391
|
# `OriginRequestPolicyId` field in the response to
|
8361
8392
|
# `GetDistributionConfig`.
|
8362
8393
|
#
|
8363
8394
|
# @option params [String] :if_match
|
8364
8395
|
# The version of the origin request policy that you are updating. The
|
8365
|
-
# version is returned in the origin request policy
|
8366
|
-
# response to `GetOriginRequestPolicyConfig`.
|
8396
|
+
# version is returned in the origin request policy's `ETag` field in
|
8397
|
+
# the response to `GetOriginRequestPolicyConfig`.
|
8367
8398
|
#
|
8368
8399
|
# @return [Types::UpdateOriginRequestPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8369
8400
|
#
|
@@ -8496,9 +8527,9 @@ module Aws::CloudFront
|
|
8496
8527
|
#
|
8497
8528
|
# 3. Call this API (`UpdateRealtimeLogConfig`) by providing the entire
|
8498
8529
|
# real-time log configuration, including the parameters that you
|
8499
|
-
# modified and those that you didn
|
8530
|
+
# modified and those that you didn't.
|
8500
8531
|
#
|
8501
|
-
# You cannot update a real-time log configuration
|
8532
|
+
# You cannot update a real-time log configuration's `Name` or `ARN`.
|
8502
8533
|
#
|
8503
8534
|
# @option params [Array<Types::EndPoint>] :end_points
|
8504
8535
|
# Contains information about the Amazon Kinesis data stream where you
|
@@ -8575,7 +8606,7 @@ module Aws::CloudFront
|
|
8575
8606
|
# replaced. You cannot update some policy fields independent of others.
|
8576
8607
|
# To update a response headers policy configuration:
|
8577
8608
|
#
|
8578
|
-
# 1. Use `GetResponseHeadersPolicyConfig` to get the current policy
|
8609
|
+
# 1. Use `GetResponseHeadersPolicyConfig` to get the current policy's
|
8579
8610
|
# configuration.
|
8580
8611
|
#
|
8581
8612
|
# 2. Modify the fields in the response headers policy configuration
|
@@ -8583,7 +8614,7 @@ module Aws::CloudFront
|
|
8583
8614
|
#
|
8584
8615
|
# 3. Call `UpdateResponseHeadersPolicy`, providing the entire response
|
8585
8616
|
# headers policy configuration, including the fields that you
|
8586
|
-
# modified and those that you didn
|
8617
|
+
# modified and those that you didn't.
|
8587
8618
|
#
|
8588
8619
|
# @option params [required, Types::ResponseHeadersPolicyConfig] :response_headers_policy_config
|
8589
8620
|
# A response headers policy configuration.
|
@@ -8594,7 +8625,7 @@ module Aws::CloudFront
|
|
8594
8625
|
# @option params [String] :if_match
|
8595
8626
|
# The version of the response headers policy that you are updating.
|
8596
8627
|
#
|
8597
|
-
# The version is returned in the cache policy
|
8628
|
+
# The version is returned in the cache policy's `ETag` field in the
|
8598
8629
|
# response to `GetResponseHeadersPolicyConfig`.
|
8599
8630
|
#
|
8600
8631
|
# @return [Types::UpdateResponseHeadersPolicyResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -8672,6 +8703,14 @@ module Aws::CloudFront
|
|
8672
8703
|
# },
|
8673
8704
|
# ],
|
8674
8705
|
# },
|
8706
|
+
# remove_headers_config: {
|
8707
|
+
# quantity: 1, # required
|
8708
|
+
# items: [
|
8709
|
+
# {
|
8710
|
+
# header: "string", # required
|
8711
|
+
# },
|
8712
|
+
# ],
|
8713
|
+
# },
|
8675
8714
|
# },
|
8676
8715
|
# id: "string", # required
|
8677
8716
|
# if_match: "string",
|
@@ -8720,6 +8759,9 @@ module Aws::CloudFront
|
|
8720
8759
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].header #=> String
|
8721
8760
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].value #=> String
|
8722
8761
|
# resp.response_headers_policy.response_headers_policy_config.custom_headers_config.items[0].override #=> Boolean
|
8762
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.quantity #=> Integer
|
8763
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items #=> Array
|
8764
|
+
# resp.response_headers_policy.response_headers_policy_config.remove_headers_config.items[0].header #=> String
|
8723
8765
|
# resp.etag #=> String
|
8724
8766
|
#
|
8725
8767
|
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateResponseHeadersPolicy AWS API Documentation
|
@@ -8834,7 +8876,7 @@ module Aws::CloudFront
|
|
8834
8876
|
params: params,
|
8835
8877
|
config: config)
|
8836
8878
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
8837
|
-
context[:gem_version] = '1.
|
8879
|
+
context[:gem_version] = '1.73.0'
|
8838
8880
|
Seahorse::Client::Request.new(handlers, context)
|
8839
8881
|
end
|
8840
8882
|
|