aws-sdk-cloudfront 1.48.0 → 1.53.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 +358 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-cloudfront.rb +3 -3
- data/lib/aws-sdk-cloudfront/client.rb +721 -26
- data/lib/aws-sdk-cloudfront/client_api.rb +389 -1
- data/lib/aws-sdk-cloudfront/errors.rb +177 -1
- data/lib/aws-sdk-cloudfront/resource.rb +1 -1
- data/lib/aws-sdk-cloudfront/types.rb +1304 -198
- data/lib/aws-sdk-cloudfront/waiters.rb +1 -1
- metadata +9 -7
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.53.0
|
data/lib/aws-sdk-cloudfront.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -29,7 +29,7 @@ require_relative 'aws-sdk-cloudfront/customizations'
|
|
29
29
|
# structure.
|
30
30
|
#
|
31
31
|
# cloud_front = Aws::CloudFront::Client.new
|
32
|
-
# resp = cloud_front.
|
32
|
+
# resp = cloud_front.associate_alias(params)
|
33
33
|
#
|
34
34
|
# See {Client} for more information.
|
35
35
|
#
|
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
|
|
49
49
|
# @!group service
|
50
50
|
module Aws::CloudFront
|
51
51
|
|
52
|
-
GEM_VERSION = '1.
|
52
|
+
GEM_VERSION = '1.53.0'
|
53
53
|
|
54
54
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -327,6 +327,50 @@ module Aws::CloudFront
|
|
327
327
|
|
328
328
|
# @!group API Operations
|
329
329
|
|
330
|
+
# Associates an alias (also known as a CNAME or an alternate domain
|
331
|
+
# name) with a CloudFront distribution.
|
332
|
+
#
|
333
|
+
# With this operation you can move an alias that’s already in use on a
|
334
|
+
# CloudFront distribution to a different distribution in one step. This
|
335
|
+
# prevents the downtime that could occur if you first remove the alias
|
336
|
+
# from one distribution and then separately add the alias to another
|
337
|
+
# distribution.
|
338
|
+
#
|
339
|
+
# To use this operation to associate an alias with a distribution, you
|
340
|
+
# provide the alias and the ID of the target distribution for the alias.
|
341
|
+
# For more information, including how to set up the target distribution,
|
342
|
+
# prerequisites that you must complete, and other restrictions, see
|
343
|
+
# [Moving an alternate domain name to a different distribution][1] in
|
344
|
+
# the *Amazon CloudFront Developer Guide*.
|
345
|
+
#
|
346
|
+
#
|
347
|
+
#
|
348
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move
|
349
|
+
#
|
350
|
+
# @option params [required, String] :target_distribution_id
|
351
|
+
# The ID of the distribution that you’re associating the alias with.
|
352
|
+
#
|
353
|
+
# @option params [required, String] :alias
|
354
|
+
# The alias (also known as a CNAME) to add to the target distribution.
|
355
|
+
#
|
356
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
357
|
+
#
|
358
|
+
# @example Request syntax with placeholder values
|
359
|
+
#
|
360
|
+
# resp = client.associate_alias({
|
361
|
+
# target_distribution_id: "string", # required
|
362
|
+
# alias: "string", # required
|
363
|
+
# })
|
364
|
+
#
|
365
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/AssociateAlias2020_05_31 AWS API Documentation
|
366
|
+
#
|
367
|
+
# @overload associate_alias(params = {})
|
368
|
+
# @param [Hash] params ({})
|
369
|
+
def associate_alias(params = {}, options = {})
|
370
|
+
req = build_request(:associate_alias, params)
|
371
|
+
req.send_request(options)
|
372
|
+
end
|
373
|
+
|
330
374
|
# Creates a cache policy.
|
331
375
|
#
|
332
376
|
# After you create a cache policy, you can attach it to one or more
|
@@ -616,6 +660,15 @@ module Aws::CloudFront
|
|
616
660
|
# },
|
617
661
|
# ],
|
618
662
|
# },
|
663
|
+
# function_associations: {
|
664
|
+
# quantity: 1, # required
|
665
|
+
# items: [
|
666
|
+
# {
|
667
|
+
# function_arn: "FunctionARN", # required
|
668
|
+
# event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
|
669
|
+
# },
|
670
|
+
# ],
|
671
|
+
# },
|
619
672
|
# field_level_encryption_id: "string",
|
620
673
|
# realtime_log_config_arn: "string",
|
621
674
|
# cache_policy_id: "string",
|
@@ -679,6 +732,15 @@ module Aws::CloudFront
|
|
679
732
|
# },
|
680
733
|
# ],
|
681
734
|
# },
|
735
|
+
# function_associations: {
|
736
|
+
# quantity: 1, # required
|
737
|
+
# items: [
|
738
|
+
# {
|
739
|
+
# function_arn: "FunctionARN", # required
|
740
|
+
# event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
|
741
|
+
# },
|
742
|
+
# ],
|
743
|
+
# },
|
682
744
|
# field_level_encryption_id: "string",
|
683
745
|
# realtime_log_config_arn: "string",
|
684
746
|
# cache_policy_id: "string",
|
@@ -732,7 +794,7 @@ module Aws::CloudFront
|
|
732
794
|
# iam_certificate_id: "string",
|
733
795
|
# acm_certificate_arn: "string",
|
734
796
|
# ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
|
735
|
-
# minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019
|
797
|
+
# minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
|
736
798
|
# certificate: "string",
|
737
799
|
# certificate_source: "cloudfront", # accepts cloudfront, iam, acm
|
738
800
|
# },
|
@@ -830,6 +892,10 @@ module Aws::CloudFront
|
|
830
892
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
831
893
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
832
894
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
895
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.quantity #=> Integer
|
896
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items #=> Array
|
897
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].function_arn #=> String
|
898
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
833
899
|
# resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
|
834
900
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
835
901
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
@@ -874,6 +940,10 @@ module Aws::CloudFront
|
|
874
940
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
875
941
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
876
942
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
943
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.quantity #=> Integer
|
944
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items #=> Array
|
945
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
946
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
877
947
|
# resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
|
878
948
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
879
949
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -909,7 +979,7 @@ module Aws::CloudFront
|
|
909
979
|
# resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
|
910
980
|
# resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
|
911
981
|
# resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
912
|
-
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
982
|
+
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
913
983
|
# resp.distribution.distribution_config.viewer_certificate.certificate #=> String
|
914
984
|
# resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
915
985
|
# resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -1050,6 +1120,15 @@ module Aws::CloudFront
|
|
1050
1120
|
# },
|
1051
1121
|
# ],
|
1052
1122
|
# },
|
1123
|
+
# function_associations: {
|
1124
|
+
# quantity: 1, # required
|
1125
|
+
# items: [
|
1126
|
+
# {
|
1127
|
+
# function_arn: "FunctionARN", # required
|
1128
|
+
# event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
|
1129
|
+
# },
|
1130
|
+
# ],
|
1131
|
+
# },
|
1053
1132
|
# field_level_encryption_id: "string",
|
1054
1133
|
# realtime_log_config_arn: "string",
|
1055
1134
|
# cache_policy_id: "string",
|
@@ -1113,6 +1192,15 @@ module Aws::CloudFront
|
|
1113
1192
|
# },
|
1114
1193
|
# ],
|
1115
1194
|
# },
|
1195
|
+
# function_associations: {
|
1196
|
+
# quantity: 1, # required
|
1197
|
+
# items: [
|
1198
|
+
# {
|
1199
|
+
# function_arn: "FunctionARN", # required
|
1200
|
+
# event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
|
1201
|
+
# },
|
1202
|
+
# ],
|
1203
|
+
# },
|
1116
1204
|
# field_level_encryption_id: "string",
|
1117
1205
|
# realtime_log_config_arn: "string",
|
1118
1206
|
# cache_policy_id: "string",
|
@@ -1166,7 +1254,7 @@ module Aws::CloudFront
|
|
1166
1254
|
# iam_certificate_id: "string",
|
1167
1255
|
# acm_certificate_arn: "string",
|
1168
1256
|
# ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
|
1169
|
-
# minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019
|
1257
|
+
# minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
|
1170
1258
|
# certificate: "string",
|
1171
1259
|
# certificate_source: "cloudfront", # accepts cloudfront, iam, acm
|
1172
1260
|
# },
|
@@ -1273,6 +1361,10 @@ module Aws::CloudFront
|
|
1273
1361
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
1274
1362
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
1275
1363
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
1364
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.quantity #=> Integer
|
1365
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items #=> Array
|
1366
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].function_arn #=> String
|
1367
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
1276
1368
|
# resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
|
1277
1369
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
1278
1370
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
@@ -1317,6 +1409,10 @@ module Aws::CloudFront
|
|
1317
1409
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
1318
1410
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
1319
1411
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
1412
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.quantity #=> Integer
|
1413
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items #=> Array
|
1414
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
1415
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
1320
1416
|
# resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
|
1321
1417
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
1322
1418
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -1352,7 +1448,7 @@ module Aws::CloudFront
|
|
1352
1448
|
# resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
|
1353
1449
|
# resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
|
1354
1450
|
# resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
1355
|
-
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
1451
|
+
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
1356
1452
|
# resp.distribution.distribution_config.viewer_certificate.certificate #=> String
|
1357
1453
|
# resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
1358
1454
|
# resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -1511,6 +1607,76 @@ module Aws::CloudFront
|
|
1511
1607
|
req.send_request(options)
|
1512
1608
|
end
|
1513
1609
|
|
1610
|
+
# Creates a CloudFront function.
|
1611
|
+
#
|
1612
|
+
# To create a function, you provide the function code and some
|
1613
|
+
# configuration information about the function. The response contains an
|
1614
|
+
# Amazon Resource Name (ARN) that uniquely identifies the function.
|
1615
|
+
#
|
1616
|
+
# When you create a function, it’s in the `DEVELOPMENT` stage. In this
|
1617
|
+
# stage, you can test the function with `TestFunction`, and update it
|
1618
|
+
# with `UpdateFunction`.
|
1619
|
+
#
|
1620
|
+
# When you’re ready to use your function with a CloudFront distribution,
|
1621
|
+
# use `PublishFunction` to copy the function from the `DEVELOPMENT`
|
1622
|
+
# stage to `LIVE`. When it’s live, you can attach the function to a
|
1623
|
+
# distribution’s cache behavior, using the function’s ARN.
|
1624
|
+
#
|
1625
|
+
# @option params [required, String] :name
|
1626
|
+
# A name to identify the function.
|
1627
|
+
#
|
1628
|
+
# @option params [required, Types::FunctionConfig] :function_config
|
1629
|
+
# Configuration information about the function, including an optional
|
1630
|
+
# comment and the function’s runtime.
|
1631
|
+
#
|
1632
|
+
# @option params [required, String, StringIO, File] :function_code
|
1633
|
+
# The function code. For more information about writing a CloudFront
|
1634
|
+
# function, see [Writing function code for CloudFront Functions][1] in
|
1635
|
+
# the *Amazon CloudFront Developer Guide*.
|
1636
|
+
#
|
1637
|
+
#
|
1638
|
+
#
|
1639
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html
|
1640
|
+
#
|
1641
|
+
# @return [Types::CreateFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1642
|
+
#
|
1643
|
+
# * {Types::CreateFunctionResult#function_summary #function_summary} => Types::FunctionSummary
|
1644
|
+
# * {Types::CreateFunctionResult#location #location} => String
|
1645
|
+
# * {Types::CreateFunctionResult#etag #etag} => String
|
1646
|
+
#
|
1647
|
+
# @example Request syntax with placeholder values
|
1648
|
+
#
|
1649
|
+
# resp = client.create_function({
|
1650
|
+
# name: "FunctionName", # required
|
1651
|
+
# function_config: { # required
|
1652
|
+
# comment: "string", # required
|
1653
|
+
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0
|
1654
|
+
# },
|
1655
|
+
# function_code: "data", # required
|
1656
|
+
# })
|
1657
|
+
#
|
1658
|
+
# @example Response structure
|
1659
|
+
#
|
1660
|
+
# resp.function_summary.name #=> String
|
1661
|
+
# resp.function_summary.status #=> String
|
1662
|
+
# resp.function_summary.function_config.comment #=> String
|
1663
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
1664
|
+
# resp.function_summary.function_metadata.function_arn #=> String
|
1665
|
+
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
1666
|
+
# resp.function_summary.function_metadata.created_time #=> Time
|
1667
|
+
# resp.function_summary.function_metadata.last_modified_time #=> Time
|
1668
|
+
# resp.location #=> String
|
1669
|
+
# resp.etag #=> String
|
1670
|
+
#
|
1671
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateFunction2020_05_31 AWS API Documentation
|
1672
|
+
#
|
1673
|
+
# @overload create_function(params = {})
|
1674
|
+
# @param [Hash] params ({})
|
1675
|
+
def create_function(params = {}, options = {})
|
1676
|
+
req = build_request(:create_function, params)
|
1677
|
+
req.send_request(options)
|
1678
|
+
end
|
1679
|
+
|
1514
1680
|
# Create a new invalidation.
|
1515
1681
|
#
|
1516
1682
|
# @option params [required, String] :distribution_id
|
@@ -2218,6 +2384,41 @@ module Aws::CloudFront
|
|
2218
2384
|
req.send_request(options)
|
2219
2385
|
end
|
2220
2386
|
|
2387
|
+
# Deletes a CloudFront function.
|
2388
|
+
#
|
2389
|
+
# You cannot delete a function if it’s associated with a cache behavior.
|
2390
|
+
# First, update your distributions to remove the function association
|
2391
|
+
# from all cache behaviors, then delete the function.
|
2392
|
+
#
|
2393
|
+
# To delete a function, you must provide the function’s name and version
|
2394
|
+
# (`ETag` value). To get these values, you can use `ListFunctions` and
|
2395
|
+
# `DescribeFunction`.
|
2396
|
+
#
|
2397
|
+
# @option params [required, String] :name
|
2398
|
+
# The name of the function that you are deleting.
|
2399
|
+
#
|
2400
|
+
# @option params [required, String] :if_match
|
2401
|
+
# The current version (`ETag` value) of the function that you are
|
2402
|
+
# deleting, which you can get using `DescribeFunction`.
|
2403
|
+
#
|
2404
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2405
|
+
#
|
2406
|
+
# @example Request syntax with placeholder values
|
2407
|
+
#
|
2408
|
+
# resp = client.delete_function({
|
2409
|
+
# name: "string", # required
|
2410
|
+
# if_match: "string", # required
|
2411
|
+
# })
|
2412
|
+
#
|
2413
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteFunction2020_05_31 AWS API Documentation
|
2414
|
+
#
|
2415
|
+
# @overload delete_function(params = {})
|
2416
|
+
# @param [Hash] params ({})
|
2417
|
+
def delete_function(params = {}, options = {})
|
2418
|
+
req = build_request(:delete_function, params)
|
2419
|
+
req.send_request(options)
|
2420
|
+
end
|
2421
|
+
|
2221
2422
|
# Deletes a key group.
|
2222
2423
|
#
|
2223
2424
|
# You cannot delete a key group that is referenced in a cache behavior.
|
@@ -2452,6 +2653,53 @@ module Aws::CloudFront
|
|
2452
2653
|
req.send_request(options)
|
2453
2654
|
end
|
2454
2655
|
|
2656
|
+
# Gets configuration information and metadata about a CloudFront
|
2657
|
+
# function, but not the function’s code. To get a function’s code, use
|
2658
|
+
# `GetFunction`.
|
2659
|
+
#
|
2660
|
+
# To get configuration information and metadata about a function, you
|
2661
|
+
# must provide the function’s name and stage. To get these values, you
|
2662
|
+
# can use `ListFunctions`.
|
2663
|
+
#
|
2664
|
+
# @option params [required, String] :name
|
2665
|
+
# The name of the function that you are getting information about.
|
2666
|
+
#
|
2667
|
+
# @option params [String] :stage
|
2668
|
+
# The function’s stage, either `DEVELOPMENT` or `LIVE`.
|
2669
|
+
#
|
2670
|
+
# @return [Types::DescribeFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2671
|
+
#
|
2672
|
+
# * {Types::DescribeFunctionResult#function_summary #function_summary} => Types::FunctionSummary
|
2673
|
+
# * {Types::DescribeFunctionResult#etag #etag} => String
|
2674
|
+
#
|
2675
|
+
# @example Request syntax with placeholder values
|
2676
|
+
#
|
2677
|
+
# resp = client.describe_function({
|
2678
|
+
# name: "string", # required
|
2679
|
+
# stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
|
2680
|
+
# })
|
2681
|
+
#
|
2682
|
+
# @example Response structure
|
2683
|
+
#
|
2684
|
+
# resp.function_summary.name #=> String
|
2685
|
+
# resp.function_summary.status #=> String
|
2686
|
+
# resp.function_summary.function_config.comment #=> String
|
2687
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
2688
|
+
# resp.function_summary.function_metadata.function_arn #=> String
|
2689
|
+
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
2690
|
+
# resp.function_summary.function_metadata.created_time #=> Time
|
2691
|
+
# resp.function_summary.function_metadata.last_modified_time #=> Time
|
2692
|
+
# resp.etag #=> String
|
2693
|
+
#
|
2694
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeFunction2020_05_31 AWS API Documentation
|
2695
|
+
#
|
2696
|
+
# @overload describe_function(params = {})
|
2697
|
+
# @param [Hash] params ({})
|
2698
|
+
def describe_function(params = {}, options = {})
|
2699
|
+
req = build_request(:describe_function, params)
|
2700
|
+
req.send_request(options)
|
2701
|
+
end
|
2702
|
+
|
2455
2703
|
# Gets a cache policy, including the following metadata:
|
2456
2704
|
#
|
2457
2705
|
# * The policy’s identifier.
|
@@ -2737,6 +2985,10 @@ module Aws::CloudFront
|
|
2737
2985
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
2738
2986
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2739
2987
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
2988
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.quantity #=> Integer
|
2989
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items #=> Array
|
2990
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].function_arn #=> String
|
2991
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2740
2992
|
# resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
|
2741
2993
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
2742
2994
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
@@ -2781,6 +3033,10 @@ module Aws::CloudFront
|
|
2781
3033
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
2782
3034
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2783
3035
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
3036
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.quantity #=> Integer
|
3037
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items #=> Array
|
3038
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
3039
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2784
3040
|
# resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
|
2785
3041
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
2786
3042
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -2816,7 +3072,7 @@ module Aws::CloudFront
|
|
2816
3072
|
# resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
|
2817
3073
|
# resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
|
2818
3074
|
# resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
2819
|
-
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
3075
|
+
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
2820
3076
|
# resp.distribution.distribution_config.viewer_certificate.certificate #=> String
|
2821
3077
|
# resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
2822
3078
|
# resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -2923,6 +3179,10 @@ module Aws::CloudFront
|
|
2923
3179
|
# resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
2924
3180
|
# resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2925
3181
|
# resp.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
3182
|
+
# resp.distribution_config.default_cache_behavior.function_associations.quantity #=> Integer
|
3183
|
+
# resp.distribution_config.default_cache_behavior.function_associations.items #=> Array
|
3184
|
+
# resp.distribution_config.default_cache_behavior.function_associations.items[0].function_arn #=> String
|
3185
|
+
# resp.distribution_config.default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2926
3186
|
# resp.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
|
2927
3187
|
# resp.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
2928
3188
|
# resp.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
@@ -2967,6 +3227,10 @@ module Aws::CloudFront
|
|
2967
3227
|
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
2968
3228
|
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2969
3229
|
# resp.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
3230
|
+
# resp.distribution_config.cache_behaviors.items[0].function_associations.quantity #=> Integer
|
3231
|
+
# resp.distribution_config.cache_behaviors.items[0].function_associations.items #=> Array
|
3232
|
+
# resp.distribution_config.cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
3233
|
+
# resp.distribution_config.cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
2970
3234
|
# resp.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
|
2971
3235
|
# resp.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
2972
3236
|
# resp.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -3002,7 +3266,7 @@ module Aws::CloudFront
|
|
3002
3266
|
# resp.distribution_config.viewer_certificate.iam_certificate_id #=> String
|
3003
3267
|
# resp.distribution_config.viewer_certificate.acm_certificate_arn #=> String
|
3004
3268
|
# resp.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
3005
|
-
# resp.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
3269
|
+
# resp.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
3006
3270
|
# resp.distribution_config.viewer_certificate.certificate #=> String
|
3007
3271
|
# resp.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
3008
3272
|
# resp.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -3192,6 +3456,46 @@ module Aws::CloudFront
|
|
3192
3456
|
req.send_request(options)
|
3193
3457
|
end
|
3194
3458
|
|
3459
|
+
# Gets the code of a CloudFront function. To get configuration
|
3460
|
+
# information and metadata about a function, use `DescribeFunction`.
|
3461
|
+
#
|
3462
|
+
# To get a function’s code, you must provide the function’s name and
|
3463
|
+
# stage. To get these values, you can use `ListFunctions`.
|
3464
|
+
#
|
3465
|
+
# @option params [required, String] :name
|
3466
|
+
# The name of the function whose code you are getting.
|
3467
|
+
#
|
3468
|
+
# @option params [String] :stage
|
3469
|
+
# The function’s stage, either `DEVELOPMENT` or `LIVE`.
|
3470
|
+
#
|
3471
|
+
# @return [Types::GetFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3472
|
+
#
|
3473
|
+
# * {Types::GetFunctionResult#function_code #function_code} => String
|
3474
|
+
# * {Types::GetFunctionResult#etag #etag} => String
|
3475
|
+
# * {Types::GetFunctionResult#content_type #content_type} => String
|
3476
|
+
#
|
3477
|
+
# @example Request syntax with placeholder values
|
3478
|
+
#
|
3479
|
+
# resp = client.get_function({
|
3480
|
+
# name: "string", # required
|
3481
|
+
# stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
|
3482
|
+
# })
|
3483
|
+
#
|
3484
|
+
# @example Response structure
|
3485
|
+
#
|
3486
|
+
# resp.function_code #=> String
|
3487
|
+
# resp.etag #=> String
|
3488
|
+
# resp.content_type #=> String
|
3489
|
+
#
|
3490
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/GetFunction2020_05_31 AWS API Documentation
|
3491
|
+
#
|
3492
|
+
# @overload get_function(params = {})
|
3493
|
+
# @param [Hash] params ({})
|
3494
|
+
def get_function(params = {}, options = {})
|
3495
|
+
req = build_request(:get_function, params)
|
3496
|
+
req.send_request(options)
|
3497
|
+
end
|
3498
|
+
|
3195
3499
|
# Get the information about an invalidation.
|
3196
3500
|
#
|
3197
3501
|
# @option params [required, String] :distribution_id
|
@@ -3691,8 +3995,8 @@ module Aws::CloudFront
|
|
3691
3995
|
# Gets a list of cache policies.
|
3692
3996
|
#
|
3693
3997
|
# You can optionally apply a filter to return only the managed policies
|
3694
|
-
# created by
|
3695
|
-
# account.
|
3998
|
+
# created by Amazon Web Services, or only the custom policies created in
|
3999
|
+
# your account.
|
3696
4000
|
#
|
3697
4001
|
# You can optionally specify the maximum number of items to receive in
|
3698
4002
|
# the response. If the total number of items in the list exceeds the
|
@@ -3705,10 +4009,10 @@ module Aws::CloudFront
|
|
3705
4009
|
# A filter to return only the specified kinds of cache policies. Valid
|
3706
4010
|
# values are:
|
3707
4011
|
#
|
3708
|
-
# * `managed` – Returns only the managed policies created by
|
4012
|
+
# * `managed` – Returns only the managed policies created by Amazon Web
|
4013
|
+
# Services.
|
3709
4014
|
#
|
3710
|
-
# * `custom` – Returns only the custom policies created in your
|
3711
|
-
# account.
|
4015
|
+
# * `custom` – Returns only the custom policies created in your account.
|
3712
4016
|
#
|
3713
4017
|
# @option params [String] :marker
|
3714
4018
|
# Use this field when paginating results to indicate where to begin in
|
@@ -3818,6 +4122,91 @@ module Aws::CloudFront
|
|
3818
4122
|
req.send_request(options)
|
3819
4123
|
end
|
3820
4124
|
|
4125
|
+
# Gets a list of aliases (also called CNAMEs or alternate domain names)
|
4126
|
+
# that conflict or overlap with the provided alias, and the associated
|
4127
|
+
# CloudFront distributions and Amazon Web Services accounts for each
|
4128
|
+
# conflicting alias. In the returned list, the distribution and account
|
4129
|
+
# IDs are partially hidden, which allows you to identify the
|
4130
|
+
# distributions and accounts that you own, but helps to protect the
|
4131
|
+
# information of ones that you don’t own.
|
4132
|
+
#
|
4133
|
+
# Use this operation to find aliases that are in use in CloudFront that
|
4134
|
+
# conflict or overlap with the provided alias. For example, if you
|
4135
|
+
# provide `www.example.com` as input, the returned list can include
|
4136
|
+
# `www.example.com` and the overlapping wildcard alternate domain name
|
4137
|
+
# (`*.example.com`), if they exist. If you provide `*.example.com` as
|
4138
|
+
# input, the returned list can include `*.example.com` and any alternate
|
4139
|
+
# domain names covered by that wildcard (for example, `www.example.com`,
|
4140
|
+
# `test.example.com`, `dev.example.com`, and so on), if they exist.
|
4141
|
+
#
|
4142
|
+
# To list conflicting aliases, you provide the alias to search and the
|
4143
|
+
# ID of a distribution in your account that has an attached SSL/TLS
|
4144
|
+
# certificate that includes the provided alias. For more information,
|
4145
|
+
# including how to set up the distribution and certificate, see [Moving
|
4146
|
+
# an alternate domain name to a different distribution][1] in the
|
4147
|
+
# *Amazon CloudFront Developer Guide*.
|
4148
|
+
#
|
4149
|
+
# You can optionally specify the maximum number of items to receive in
|
4150
|
+
# the response. If the total number of items in the list exceeds the
|
4151
|
+
# maximum that you specify, or the default maximum, the response is
|
4152
|
+
# paginated. To get the next page of items, send a subsequent request
|
4153
|
+
# that specifies the `NextMarker` value from the current response as the
|
4154
|
+
# `Marker` value in the subsequent request.
|
4155
|
+
#
|
4156
|
+
#
|
4157
|
+
#
|
4158
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-move
|
4159
|
+
#
|
4160
|
+
# @option params [required, String] :distribution_id
|
4161
|
+
# The ID of a distribution in your account that has an attached SSL/TLS
|
4162
|
+
# certificate that includes the provided alias.
|
4163
|
+
#
|
4164
|
+
# @option params [required, String] :alias
|
4165
|
+
# The alias (also called a CNAME) to search for conflicting aliases.
|
4166
|
+
#
|
4167
|
+
# @option params [String] :marker
|
4168
|
+
# Use this field when paginating results to indicate where to begin in
|
4169
|
+
# the list of conflicting aliases. The response includes conflicting
|
4170
|
+
# aliases in the list that occur after the marker. To get the next page
|
4171
|
+
# of the list, set this field’s value to the value of `NextMarker` from
|
4172
|
+
# the current page’s response.
|
4173
|
+
#
|
4174
|
+
# @option params [Integer] :max_items
|
4175
|
+
# The maximum number of conflicting aliases that you want in the
|
4176
|
+
# response.
|
4177
|
+
#
|
4178
|
+
# @return [Types::ListConflictingAliasesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4179
|
+
#
|
4180
|
+
# * {Types::ListConflictingAliasesResult#conflicting_aliases_list #conflicting_aliases_list} => Types::ConflictingAliasesList
|
4181
|
+
#
|
4182
|
+
# @example Request syntax with placeholder values
|
4183
|
+
#
|
4184
|
+
# resp = client.list_conflicting_aliases({
|
4185
|
+
# distribution_id: "distributionIdString", # required
|
4186
|
+
# alias: "aliasString", # required
|
4187
|
+
# marker: "string",
|
4188
|
+
# max_items: 1,
|
4189
|
+
# })
|
4190
|
+
#
|
4191
|
+
# @example Response structure
|
4192
|
+
#
|
4193
|
+
# resp.conflicting_aliases_list.next_marker #=> String
|
4194
|
+
# resp.conflicting_aliases_list.max_items #=> Integer
|
4195
|
+
# resp.conflicting_aliases_list.quantity #=> Integer
|
4196
|
+
# resp.conflicting_aliases_list.items #=> Array
|
4197
|
+
# resp.conflicting_aliases_list.items[0].alias #=> String
|
4198
|
+
# resp.conflicting_aliases_list.items[0].distribution_id #=> String
|
4199
|
+
# resp.conflicting_aliases_list.items[0].account_id #=> String
|
4200
|
+
#
|
4201
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListConflictingAliases2020_05_31 AWS API Documentation
|
4202
|
+
#
|
4203
|
+
# @overload list_conflicting_aliases(params = {})
|
4204
|
+
# @param [Hash] params ({})
|
4205
|
+
def list_conflicting_aliases(params = {}, options = {})
|
4206
|
+
req = build_request(:list_conflicting_aliases, params)
|
4207
|
+
req.send_request(options)
|
4208
|
+
end
|
4209
|
+
|
3821
4210
|
# List CloudFront distributions.
|
3822
4211
|
#
|
3823
4212
|
# @option params [String] :marker
|
@@ -3913,6 +4302,10 @@ module Aws::CloudFront
|
|
3913
4302
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
3914
4303
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
3915
4304
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
4305
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.quantity #=> Integer
|
4306
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items #=> Array
|
4307
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items[0].function_arn #=> String
|
4308
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
3916
4309
|
# resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
|
3917
4310
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
3918
4311
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
@@ -3957,6 +4350,10 @@ module Aws::CloudFront
|
|
3957
4350
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
3958
4351
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
3959
4352
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
4353
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.quantity #=> Integer
|
4354
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items #=> Array
|
4355
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
4356
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
3960
4357
|
# resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
|
3961
4358
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
3962
4359
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -3988,7 +4385,7 @@ module Aws::CloudFront
|
|
3988
4385
|
# resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String
|
3989
4386
|
# resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String
|
3990
4387
|
# resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
3991
|
-
# resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
4388
|
+
# resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
3992
4389
|
# resp.distribution_list.items[0].viewer_certificate.certificate #=> String
|
3993
4390
|
# resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
3994
4391
|
# resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -4292,6 +4689,10 @@ module Aws::CloudFront
|
|
4292
4689
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
4293
4690
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4294
4691
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
4692
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.quantity #=> Integer
|
4693
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items #=> Array
|
4694
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items[0].function_arn #=> String
|
4695
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4295
4696
|
# resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
|
4296
4697
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4297
4698
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
@@ -4336,6 +4737,10 @@ module Aws::CloudFront
|
|
4336
4737
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
4337
4738
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4338
4739
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
4740
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.quantity #=> Integer
|
4741
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items #=> Array
|
4742
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
4743
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4339
4744
|
# resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
|
4340
4745
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4341
4746
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -4367,7 +4772,7 @@ module Aws::CloudFront
|
|
4367
4772
|
# resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String
|
4368
4773
|
# resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String
|
4369
4774
|
# resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
4370
|
-
# resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
4775
|
+
# resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
4371
4776
|
# resp.distribution_list.items[0].viewer_certificate.certificate #=> String
|
4372
4777
|
# resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
4373
4778
|
# resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -4390,8 +4795,8 @@ module Aws::CloudFront
|
|
4390
4795
|
req.send_request(options)
|
4391
4796
|
end
|
4392
4797
|
|
4393
|
-
# List the distributions that are associated with a specified
|
4394
|
-
#
|
4798
|
+
# List the distributions that are associated with a specified WAF web
|
4799
|
+
# ACL.
|
4395
4800
|
#
|
4396
4801
|
# @option params [String] :marker
|
4397
4802
|
# Use `Marker` and `MaxItems` to control pagination of results. If you
|
@@ -4406,7 +4811,7 @@ module Aws::CloudFront
|
|
4406
4811
|
# in the response body. The maximum and default values are both 100.
|
4407
4812
|
#
|
4408
4813
|
# @option params [required, String] :web_acl_id
|
4409
|
-
# The ID of the
|
4814
|
+
# The ID of the WAF web ACL that you want to list the associated
|
4410
4815
|
# distributions. If you specify "null" for the ID, the request returns
|
4411
4816
|
# a list of the distributions that aren't associated with a web ACL.
|
4412
4817
|
#
|
@@ -4492,6 +4897,10 @@ module Aws::CloudFront
|
|
4492
4897
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
4493
4898
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4494
4899
|
# resp.distribution_list.items[0].default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
4900
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.quantity #=> Integer
|
4901
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items #=> Array
|
4902
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items[0].function_arn #=> String
|
4903
|
+
# resp.distribution_list.items[0].default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4495
4904
|
# resp.distribution_list.items[0].default_cache_behavior.field_level_encryption_id #=> String
|
4496
4905
|
# resp.distribution_list.items[0].default_cache_behavior.realtime_log_config_arn #=> String
|
4497
4906
|
# resp.distribution_list.items[0].default_cache_behavior.cache_policy_id #=> String
|
@@ -4536,6 +4945,10 @@ module Aws::CloudFront
|
|
4536
4945
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
4537
4946
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4538
4947
|
# resp.distribution_list.items[0].cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
4948
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.quantity #=> Integer
|
4949
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items #=> Array
|
4950
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
4951
|
+
# resp.distribution_list.items[0].cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
4539
4952
|
# resp.distribution_list.items[0].cache_behaviors.items[0].field_level_encryption_id #=> String
|
4540
4953
|
# resp.distribution_list.items[0].cache_behaviors.items[0].realtime_log_config_arn #=> String
|
4541
4954
|
# resp.distribution_list.items[0].cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -4567,7 +4980,7 @@ module Aws::CloudFront
|
|
4567
4980
|
# resp.distribution_list.items[0].viewer_certificate.iam_certificate_id #=> String
|
4568
4981
|
# resp.distribution_list.items[0].viewer_certificate.acm_certificate_arn #=> String
|
4569
4982
|
# resp.distribution_list.items[0].viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
4570
|
-
# resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
4983
|
+
# resp.distribution_list.items[0].viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
4571
4984
|
# resp.distribution_list.items[0].viewer_certificate.certificate #=> String
|
4572
4985
|
# resp.distribution_list.items[0].viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
4573
4986
|
# resp.distribution_list.items[0].restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -4698,6 +5111,68 @@ module Aws::CloudFront
|
|
4698
5111
|
req.send_request(options)
|
4699
5112
|
end
|
4700
5113
|
|
5114
|
+
# Gets a list of all CloudFront functions in your account.
|
5115
|
+
#
|
5116
|
+
# You can optionally apply a filter to return only the functions that
|
5117
|
+
# are in the specified stage, either `DEVELOPMENT` or `LIVE`.
|
5118
|
+
#
|
5119
|
+
# You can optionally specify the maximum number of items to receive in
|
5120
|
+
# the response. If the total number of items in the list exceeds the
|
5121
|
+
# maximum that you specify, or the default maximum, the response is
|
5122
|
+
# paginated. To get the next page of items, send a subsequent request
|
5123
|
+
# that specifies the `NextMarker` value from the current response as the
|
5124
|
+
# `Marker` value in the subsequent request.
|
5125
|
+
#
|
5126
|
+
# @option params [String] :marker
|
5127
|
+
# Use this field when paginating results to indicate where to begin in
|
5128
|
+
# your list of functions. The response includes functions in the list
|
5129
|
+
# that occur after the marker. To get the next page of the list, set
|
5130
|
+
# this field’s value to the value of `NextMarker` from the current
|
5131
|
+
# page’s response.
|
5132
|
+
#
|
5133
|
+
# @option params [Integer] :max_items
|
5134
|
+
# The maximum number of functions that you want in the response.
|
5135
|
+
#
|
5136
|
+
# @option params [String] :stage
|
5137
|
+
# An optional filter to return only the functions that are in the
|
5138
|
+
# specified stage, either `DEVELOPMENT` or `LIVE`.
|
5139
|
+
#
|
5140
|
+
# @return [Types::ListFunctionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5141
|
+
#
|
5142
|
+
# * {Types::ListFunctionsResult#function_list #function_list} => Types::FunctionList
|
5143
|
+
#
|
5144
|
+
# @example Request syntax with placeholder values
|
5145
|
+
#
|
5146
|
+
# resp = client.list_functions({
|
5147
|
+
# marker: "string",
|
5148
|
+
# max_items: 1,
|
5149
|
+
# stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
|
5150
|
+
# })
|
5151
|
+
#
|
5152
|
+
# @example Response structure
|
5153
|
+
#
|
5154
|
+
# resp.function_list.next_marker #=> String
|
5155
|
+
# resp.function_list.max_items #=> Integer
|
5156
|
+
# resp.function_list.quantity #=> Integer
|
5157
|
+
# resp.function_list.items #=> Array
|
5158
|
+
# resp.function_list.items[0].name #=> String
|
5159
|
+
# resp.function_list.items[0].status #=> String
|
5160
|
+
# resp.function_list.items[0].function_config.comment #=> String
|
5161
|
+
# resp.function_list.items[0].function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
5162
|
+
# resp.function_list.items[0].function_metadata.function_arn #=> String
|
5163
|
+
# resp.function_list.items[0].function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
5164
|
+
# resp.function_list.items[0].function_metadata.created_time #=> Time
|
5165
|
+
# resp.function_list.items[0].function_metadata.last_modified_time #=> Time
|
5166
|
+
#
|
5167
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListFunctions2020_05_31 AWS API Documentation
|
5168
|
+
#
|
5169
|
+
# @overload list_functions(params = {})
|
5170
|
+
# @param [Hash] params ({})
|
5171
|
+
def list_functions(params = {}, options = {})
|
5172
|
+
req = build_request(:list_functions, params)
|
5173
|
+
req.send_request(options)
|
5174
|
+
end
|
5175
|
+
|
4701
5176
|
# Lists invalidation batches.
|
4702
5177
|
#
|
4703
5178
|
# @option params [required, String] :distribution_id
|
@@ -4807,8 +5282,8 @@ module Aws::CloudFront
|
|
4807
5282
|
# Gets a list of origin request policies.
|
4808
5283
|
#
|
4809
5284
|
# You can optionally apply a filter to return only the managed policies
|
4810
|
-
# created by
|
4811
|
-
# account.
|
5285
|
+
# created by Amazon Web Services, or only the custom policies created in
|
5286
|
+
# your account.
|
4812
5287
|
#
|
4813
5288
|
# You can optionally specify the maximum number of items to receive in
|
4814
5289
|
# the response. If the total number of items in the list exceeds the
|
@@ -4821,10 +5296,10 @@ module Aws::CloudFront
|
|
4821
5296
|
# A filter to return only the specified kinds of origin request
|
4822
5297
|
# policies. Valid values are:
|
4823
5298
|
#
|
4824
|
-
# * `managed` – Returns only the managed policies created by
|
5299
|
+
# * `managed` – Returns only the managed policies created by Amazon Web
|
5300
|
+
# Services.
|
4825
5301
|
#
|
4826
|
-
# * `custom` – Returns only the custom policies created in your
|
4827
|
-
# account.
|
5302
|
+
# * `custom` – Returns only the custom policies created in your account.
|
4828
5303
|
#
|
4829
5304
|
# @option params [String] :marker
|
4830
5305
|
# Use this field when paginating results to indicate where to begin in
|
@@ -5070,6 +5545,57 @@ module Aws::CloudFront
|
|
5070
5545
|
req.send_request(options)
|
5071
5546
|
end
|
5072
5547
|
|
5548
|
+
# Publishes a CloudFront function by copying the function code from the
|
5549
|
+
# `DEVELOPMENT` stage to `LIVE`. This automatically updates all cache
|
5550
|
+
# behaviors that are using this function to use the newly published copy
|
5551
|
+
# in the `LIVE` stage.
|
5552
|
+
#
|
5553
|
+
# When a function is published to the `LIVE` stage, you can attach the
|
5554
|
+
# function to a distribution’s cache behavior, using the function’s
|
5555
|
+
# Amazon Resource Name (ARN).
|
5556
|
+
#
|
5557
|
+
# To publish a function, you must provide the function’s name and
|
5558
|
+
# version (`ETag` value). To get these values, you can use
|
5559
|
+
# `ListFunctions` and `DescribeFunction`.
|
5560
|
+
#
|
5561
|
+
# @option params [required, String] :name
|
5562
|
+
# The name of the function that you are publishing.
|
5563
|
+
#
|
5564
|
+
# @option params [required, String] :if_match
|
5565
|
+
# The current version (`ETag` value) of the function that you are
|
5566
|
+
# publishing, which you can get using `DescribeFunction`.
|
5567
|
+
#
|
5568
|
+
# @return [Types::PublishFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5569
|
+
#
|
5570
|
+
# * {Types::PublishFunctionResult#function_summary #function_summary} => Types::FunctionSummary
|
5571
|
+
#
|
5572
|
+
# @example Request syntax with placeholder values
|
5573
|
+
#
|
5574
|
+
# resp = client.publish_function({
|
5575
|
+
# name: "string", # required
|
5576
|
+
# if_match: "string", # required
|
5577
|
+
# })
|
5578
|
+
#
|
5579
|
+
# @example Response structure
|
5580
|
+
#
|
5581
|
+
# resp.function_summary.name #=> String
|
5582
|
+
# resp.function_summary.status #=> String
|
5583
|
+
# resp.function_summary.function_config.comment #=> String
|
5584
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
5585
|
+
# resp.function_summary.function_metadata.function_arn #=> String
|
5586
|
+
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
5587
|
+
# resp.function_summary.function_metadata.created_time #=> Time
|
5588
|
+
# resp.function_summary.function_metadata.last_modified_time #=> Time
|
5589
|
+
#
|
5590
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/PublishFunction2020_05_31 AWS API Documentation
|
5591
|
+
#
|
5592
|
+
# @overload publish_function(params = {})
|
5593
|
+
# @param [Hash] params ({})
|
5594
|
+
def publish_function(params = {}, options = {})
|
5595
|
+
req = build_request(:publish_function, params)
|
5596
|
+
req.send_request(options)
|
5597
|
+
end
|
5598
|
+
|
5073
5599
|
# Add tags to a CloudFront resource.
|
5074
5600
|
#
|
5075
5601
|
# @option params [required, String] :resource
|
@@ -5103,6 +5629,83 @@ module Aws::CloudFront
|
|
5103
5629
|
req.send_request(options)
|
5104
5630
|
end
|
5105
5631
|
|
5632
|
+
# Tests a CloudFront function.
|
5633
|
+
#
|
5634
|
+
# To test a function, you provide an *event object* that represents an
|
5635
|
+
# HTTP request or response that your CloudFront distribution could
|
5636
|
+
# receive in production. CloudFront runs the function, passing it the
|
5637
|
+
# event object that you provided, and returns the function’s result (the
|
5638
|
+
# modified event object) in the response. The response also contains
|
5639
|
+
# function logs and error messages, if any exist. For more information
|
5640
|
+
# about testing functions, see [Testing functions][1] in the *Amazon
|
5641
|
+
# CloudFront Developer Guide*.
|
5642
|
+
#
|
5643
|
+
# To test a function, you provide the function’s name and version
|
5644
|
+
# (`ETag` value) along with the event object. To get the function’s name
|
5645
|
+
# and version, you can use `ListFunctions` and `DescribeFunction`.
|
5646
|
+
#
|
5647
|
+
#
|
5648
|
+
#
|
5649
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function
|
5650
|
+
#
|
5651
|
+
# @option params [required, String] :name
|
5652
|
+
# The name of the function that you are testing.
|
5653
|
+
#
|
5654
|
+
# @option params [required, String] :if_match
|
5655
|
+
# The current version (`ETag` value) of the function that you are
|
5656
|
+
# testing, which you can get using `DescribeFunction`.
|
5657
|
+
#
|
5658
|
+
# @option params [String] :stage
|
5659
|
+
# The stage of the function that you are testing, either `DEVELOPMENT`
|
5660
|
+
# or `LIVE`.
|
5661
|
+
#
|
5662
|
+
# @option params [required, String, StringIO, File] :event_object
|
5663
|
+
# The event object to test the function with. For more information about
|
5664
|
+
# the structure of the event object, see [Testing functions][1] in the
|
5665
|
+
# *Amazon CloudFront Developer Guide*.
|
5666
|
+
#
|
5667
|
+
#
|
5668
|
+
#
|
5669
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/managing-functions.html#test-function
|
5670
|
+
#
|
5671
|
+
# @return [Types::TestFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5672
|
+
#
|
5673
|
+
# * {Types::TestFunctionResult#test_result #test_result} => Types::TestResult
|
5674
|
+
#
|
5675
|
+
# @example Request syntax with placeholder values
|
5676
|
+
#
|
5677
|
+
# resp = client.test_function({
|
5678
|
+
# name: "string", # required
|
5679
|
+
# if_match: "string", # required
|
5680
|
+
# stage: "DEVELOPMENT", # accepts DEVELOPMENT, LIVE
|
5681
|
+
# event_object: "data", # required
|
5682
|
+
# })
|
5683
|
+
#
|
5684
|
+
# @example Response structure
|
5685
|
+
#
|
5686
|
+
# resp.test_result.function_summary.name #=> String
|
5687
|
+
# resp.test_result.function_summary.status #=> String
|
5688
|
+
# resp.test_result.function_summary.function_config.comment #=> String
|
5689
|
+
# resp.test_result.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
5690
|
+
# resp.test_result.function_summary.function_metadata.function_arn #=> String
|
5691
|
+
# resp.test_result.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
5692
|
+
# resp.test_result.function_summary.function_metadata.created_time #=> Time
|
5693
|
+
# resp.test_result.function_summary.function_metadata.last_modified_time #=> Time
|
5694
|
+
# resp.test_result.compute_utilization #=> String
|
5695
|
+
# resp.test_result.function_execution_logs #=> Array
|
5696
|
+
# resp.test_result.function_execution_logs[0] #=> String
|
5697
|
+
# resp.test_result.function_error_message #=> String
|
5698
|
+
# resp.test_result.function_output #=> String
|
5699
|
+
#
|
5700
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/TestFunction2020_05_31 AWS API Documentation
|
5701
|
+
#
|
5702
|
+
# @overload test_function(params = {})
|
5703
|
+
# @param [Hash] params ({})
|
5704
|
+
def test_function(params = {}, options = {})
|
5705
|
+
req = build_request(:test_function, params)
|
5706
|
+
req.send_request(options)
|
5707
|
+
end
|
5708
|
+
|
5106
5709
|
# Remove tags from a CloudFront resource.
|
5107
5710
|
#
|
5108
5711
|
# @option params [required, String] :resource
|
@@ -5479,6 +6082,15 @@ module Aws::CloudFront
|
|
5479
6082
|
# },
|
5480
6083
|
# ],
|
5481
6084
|
# },
|
6085
|
+
# function_associations: {
|
6086
|
+
# quantity: 1, # required
|
6087
|
+
# items: [
|
6088
|
+
# {
|
6089
|
+
# function_arn: "FunctionARN", # required
|
6090
|
+
# event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
|
6091
|
+
# },
|
6092
|
+
# ],
|
6093
|
+
# },
|
5482
6094
|
# field_level_encryption_id: "string",
|
5483
6095
|
# realtime_log_config_arn: "string",
|
5484
6096
|
# cache_policy_id: "string",
|
@@ -5542,6 +6154,15 @@ module Aws::CloudFront
|
|
5542
6154
|
# },
|
5543
6155
|
# ],
|
5544
6156
|
# },
|
6157
|
+
# function_associations: {
|
6158
|
+
# quantity: 1, # required
|
6159
|
+
# items: [
|
6160
|
+
# {
|
6161
|
+
# function_arn: "FunctionARN", # required
|
6162
|
+
# event_type: "viewer-request", # required, accepts viewer-request, viewer-response, origin-request, origin-response
|
6163
|
+
# },
|
6164
|
+
# ],
|
6165
|
+
# },
|
5545
6166
|
# field_level_encryption_id: "string",
|
5546
6167
|
# realtime_log_config_arn: "string",
|
5547
6168
|
# cache_policy_id: "string",
|
@@ -5595,7 +6216,7 @@ module Aws::CloudFront
|
|
5595
6216
|
# iam_certificate_id: "string",
|
5596
6217
|
# acm_certificate_arn: "string",
|
5597
6218
|
# ssl_support_method: "sni-only", # accepts sni-only, vip, static-ip
|
5598
|
-
# minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019
|
6219
|
+
# minimum_protocol_version: "SSLv3", # accepts SSLv3, TLSv1, TLSv1_2016, TLSv1.1_2016, TLSv1.2_2018, TLSv1.2_2019, TLSv1.2_2021
|
5599
6220
|
# certificate: "string",
|
5600
6221
|
# certificate_source: "cloudfront", # accepts cloudfront, iam, acm
|
5601
6222
|
# },
|
@@ -5695,6 +6316,10 @@ module Aws::CloudFront
|
|
5695
6316
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].lambda_function_arn #=> String
|
5696
6317
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
5697
6318
|
# resp.distribution.distribution_config.default_cache_behavior.lambda_function_associations.items[0].include_body #=> Boolean
|
6319
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.quantity #=> Integer
|
6320
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items #=> Array
|
6321
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].function_arn #=> String
|
6322
|
+
# resp.distribution.distribution_config.default_cache_behavior.function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
5698
6323
|
# resp.distribution.distribution_config.default_cache_behavior.field_level_encryption_id #=> String
|
5699
6324
|
# resp.distribution.distribution_config.default_cache_behavior.realtime_log_config_arn #=> String
|
5700
6325
|
# resp.distribution.distribution_config.default_cache_behavior.cache_policy_id #=> String
|
@@ -5739,6 +6364,10 @@ module Aws::CloudFront
|
|
5739
6364
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].lambda_function_arn #=> String
|
5740
6365
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
5741
6366
|
# resp.distribution.distribution_config.cache_behaviors.items[0].lambda_function_associations.items[0].include_body #=> Boolean
|
6367
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.quantity #=> Integer
|
6368
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items #=> Array
|
6369
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].function_arn #=> String
|
6370
|
+
# resp.distribution.distribution_config.cache_behaviors.items[0].function_associations.items[0].event_type #=> String, one of "viewer-request", "viewer-response", "origin-request", "origin-response"
|
5742
6371
|
# resp.distribution.distribution_config.cache_behaviors.items[0].field_level_encryption_id #=> String
|
5743
6372
|
# resp.distribution.distribution_config.cache_behaviors.items[0].realtime_log_config_arn #=> String
|
5744
6373
|
# resp.distribution.distribution_config.cache_behaviors.items[0].cache_policy_id #=> String
|
@@ -5774,7 +6403,7 @@ module Aws::CloudFront
|
|
5774
6403
|
# resp.distribution.distribution_config.viewer_certificate.iam_certificate_id #=> String
|
5775
6404
|
# resp.distribution.distribution_config.viewer_certificate.acm_certificate_arn #=> String
|
5776
6405
|
# resp.distribution.distribution_config.viewer_certificate.ssl_support_method #=> String, one of "sni-only", "vip", "static-ip"
|
5777
|
-
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019"
|
6406
|
+
# resp.distribution.distribution_config.viewer_certificate.minimum_protocol_version #=> String, one of "SSLv3", "TLSv1", "TLSv1_2016", "TLSv1.1_2016", "TLSv1.2_2018", "TLSv1.2_2019", "TLSv1.2_2021"
|
5778
6407
|
# resp.distribution.distribution_config.viewer_certificate.certificate #=> String
|
5779
6408
|
# resp.distribution.distribution_config.viewer_certificate.certificate_source #=> String, one of "cloudfront", "iam", "acm"
|
5780
6409
|
# resp.distribution.distribution_config.restrictions.geo_restriction.restriction_type #=> String, one of "blacklist", "whitelist", "none"
|
@@ -5946,6 +6575,72 @@ module Aws::CloudFront
|
|
5946
6575
|
req.send_request(options)
|
5947
6576
|
end
|
5948
6577
|
|
6578
|
+
# Updates a CloudFront function.
|
6579
|
+
#
|
6580
|
+
# You can update a function’s code or the comment that describes the
|
6581
|
+
# function. You cannot update a function’s name.
|
6582
|
+
#
|
6583
|
+
# To update a function, you provide the function’s name and version
|
6584
|
+
# (`ETag` value) along with the updated function code. To get the name
|
6585
|
+
# and version, you can use `ListFunctions` and `DescribeFunction`.
|
6586
|
+
#
|
6587
|
+
# @option params [required, String] :name
|
6588
|
+
# The name of the function that you are updating.
|
6589
|
+
#
|
6590
|
+
# @option params [required, String] :if_match
|
6591
|
+
# The current version (`ETag` value) of the function that you are
|
6592
|
+
# updating, which you can get using `DescribeFunction`.
|
6593
|
+
#
|
6594
|
+
# @option params [required, Types::FunctionConfig] :function_config
|
6595
|
+
# Configuration information about the function.
|
6596
|
+
#
|
6597
|
+
# @option params [required, String, StringIO, File] :function_code
|
6598
|
+
# The function code. For more information about writing a CloudFront
|
6599
|
+
# function, see [Writing function code for CloudFront Functions][1] in
|
6600
|
+
# the *Amazon CloudFront Developer Guide*.
|
6601
|
+
#
|
6602
|
+
#
|
6603
|
+
#
|
6604
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html
|
6605
|
+
#
|
6606
|
+
# @return [Types::UpdateFunctionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6607
|
+
#
|
6608
|
+
# * {Types::UpdateFunctionResult#function_summary #function_summary} => Types::FunctionSummary
|
6609
|
+
# * {Types::UpdateFunctionResult#etag #etag} => String
|
6610
|
+
#
|
6611
|
+
# @example Request syntax with placeholder values
|
6612
|
+
#
|
6613
|
+
# resp = client.update_function({
|
6614
|
+
# name: "string", # required
|
6615
|
+
# if_match: "string", # required
|
6616
|
+
# function_config: { # required
|
6617
|
+
# comment: "string", # required
|
6618
|
+
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0
|
6619
|
+
# },
|
6620
|
+
# function_code: "data", # required
|
6621
|
+
# })
|
6622
|
+
#
|
6623
|
+
# @example Response structure
|
6624
|
+
#
|
6625
|
+
# resp.function_summary.name #=> String
|
6626
|
+
# resp.function_summary.status #=> String
|
6627
|
+
# resp.function_summary.function_config.comment #=> String
|
6628
|
+
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0"
|
6629
|
+
# resp.function_summary.function_metadata.function_arn #=> String
|
6630
|
+
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
6631
|
+
# resp.function_summary.function_metadata.created_time #=> Time
|
6632
|
+
# resp.function_summary.function_metadata.last_modified_time #=> Time
|
6633
|
+
# resp.etag #=> String
|
6634
|
+
#
|
6635
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateFunction2020_05_31 AWS API Documentation
|
6636
|
+
#
|
6637
|
+
# @overload update_function(params = {})
|
6638
|
+
# @param [Hash] params ({})
|
6639
|
+
def update_function(params = {}, options = {})
|
6640
|
+
req = build_request(:update_function, params)
|
6641
|
+
req.send_request(options)
|
6642
|
+
end
|
6643
|
+
|
5949
6644
|
# Updates a key group.
|
5950
6645
|
#
|
5951
6646
|
# When you update a key group, all the fields are updated with the
|
@@ -6345,7 +7040,7 @@ module Aws::CloudFront
|
|
6345
7040
|
params: params,
|
6346
7041
|
config: config)
|
6347
7042
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
6348
|
-
context[:gem_version] = '1.
|
7043
|
+
context[:gem_version] = '1.53.0'
|
6349
7044
|
Seahorse::Client::Request.new(handlers, context)
|
6350
7045
|
end
|
6351
7046
|
|