aws-sdk-cloudfront 1.83.0 → 1.86.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +453 -1
- data/lib/aws-sdk-cloudfront/client_api.rb +192 -0
- data/lib/aws-sdk-cloudfront/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-cloudfront/endpoints.rb +70 -0
- data/lib/aws-sdk-cloudfront/errors.rb +80 -0
- data/lib/aws-sdk-cloudfront/plugins/endpoints.rb +13 -2
- data/lib/aws-sdk-cloudfront/types.rb +368 -8
- data/lib/aws-sdk-cloudfront.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75ccd4aa0a836867e5ec3849788f8b7b122b35061f47149ccbebed3f90ed1e24
|
4
|
+
data.tar.gz: 5d16afc37126b88d94b61d063f41fae63661c572ee715e06916e0f0a3db46eb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be1656eb85939962ac8e7d43f3b2d93764234dad694ef19809d79be9e40e9609778a932c3d769eec109e3203250e2ff4c58c488056744b21348075f501982900
|
7
|
+
data.tar.gz: 0e4355d16d68260694c58818dc99b2488d08541288b1447e154450339d06b26118153b59d294940d0cc56dcfb1947e4d83fbaa45f6e10582c3042a9137ba0982
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,21 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.86.0 (2023-11-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.85.0 (2023-11-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.84.0 (2023-11-21)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release adds support for CloudFront KeyValueStore, a globally managed key value datastore associated with CloudFront Functions.
|
18
|
+
|
4
19
|
1.83.0 (2023-09-27)
|
5
20
|
------------------
|
6
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.86.0
|
@@ -2057,6 +2057,56 @@ module Aws::CloudFront
|
|
2057
2057
|
# * {Types::CreateFunctionResult#location #location} => String
|
2058
2058
|
# * {Types::CreateFunctionResult#etag #etag} => String
|
2059
2059
|
#
|
2060
|
+
#
|
2061
|
+
# @example Example: To create a function
|
2062
|
+
#
|
2063
|
+
# # Use the following command to create a function.
|
2064
|
+
#
|
2065
|
+
# resp = client.create_function({
|
2066
|
+
# function_code: "function-code.js",
|
2067
|
+
# function_config: {
|
2068
|
+
# comment: "my-function-comment",
|
2069
|
+
# key_value_store_associations: {
|
2070
|
+
# items: [
|
2071
|
+
# {
|
2072
|
+
# key_value_store_arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
2073
|
+
# },
|
2074
|
+
# ],
|
2075
|
+
# quantity: 1,
|
2076
|
+
# },
|
2077
|
+
# runtime: "cloudfront-js-2.0",
|
2078
|
+
# },
|
2079
|
+
# name: "my-function-name",
|
2080
|
+
# })
|
2081
|
+
#
|
2082
|
+
# resp.to_h outputs the following:
|
2083
|
+
# {
|
2084
|
+
# etag: "ETVPDKIKX0DER",
|
2085
|
+
# function_summary: {
|
2086
|
+
# function_config: {
|
2087
|
+
# comment: "my-function-comment",
|
2088
|
+
# key_value_store_associations: {
|
2089
|
+
# items: [
|
2090
|
+
# {
|
2091
|
+
# key_value_store_arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
2092
|
+
# },
|
2093
|
+
# ],
|
2094
|
+
# quantity: 1,
|
2095
|
+
# },
|
2096
|
+
# runtime: "cloudfront-js-2.0",
|
2097
|
+
# },
|
2098
|
+
# function_metadata: {
|
2099
|
+
# created_time: Time.parse("2023-11-07T19:53:50.334Z"),
|
2100
|
+
# function_arn: "arn:aws:cloudfront::123456789012:function/my-function-name",
|
2101
|
+
# last_modified_time: Time.parse("2023-11-07T19:53:50.334Z"),
|
2102
|
+
# stage: "DEVELOPMENT",
|
2103
|
+
# },
|
2104
|
+
# name: "my-function-name",
|
2105
|
+
# status: "UNPUBLISHED",
|
2106
|
+
# },
|
2107
|
+
# location: "https://cloudfront.amazonaws.com/2020-05-31/function/arn:aws:cloudfront::123456789012:function/my-function-name",
|
2108
|
+
# }
|
2109
|
+
#
|
2060
2110
|
# @example Request syntax with placeholder values
|
2061
2111
|
#
|
2062
2112
|
# resp = client.create_function({
|
@@ -2064,6 +2114,14 @@ module Aws::CloudFront
|
|
2064
2114
|
# function_config: { # required
|
2065
2115
|
# comment: "string", # required
|
2066
2116
|
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0, cloudfront-js-2.0
|
2117
|
+
# key_value_store_associations: {
|
2118
|
+
# quantity: 1, # required
|
2119
|
+
# items: [
|
2120
|
+
# {
|
2121
|
+
# key_value_store_arn: "KeyValueStoreARN", # required
|
2122
|
+
# },
|
2123
|
+
# ],
|
2124
|
+
# },
|
2067
2125
|
# },
|
2068
2126
|
# function_code: "data", # required
|
2069
2127
|
# })
|
@@ -2074,6 +2132,9 @@ module Aws::CloudFront
|
|
2074
2132
|
# resp.function_summary.status #=> String
|
2075
2133
|
# resp.function_summary.function_config.comment #=> String
|
2076
2134
|
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
2135
|
+
# resp.function_summary.function_config.key_value_store_associations.quantity #=> Integer
|
2136
|
+
# resp.function_summary.function_config.key_value_store_associations.items #=> Array
|
2137
|
+
# resp.function_summary.function_config.key_value_store_associations.items[0].key_value_store_arn #=> String
|
2077
2138
|
# resp.function_summary.function_metadata.function_arn #=> String
|
2078
2139
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
2079
2140
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -2193,6 +2254,87 @@ module Aws::CloudFront
|
|
2193
2254
|
req.send_request(options)
|
2194
2255
|
end
|
2195
2256
|
|
2257
|
+
# Specifies the Key Value Store resource to add to your account. In your
|
2258
|
+
# account, the Key Value Store names must be unique. You can also import
|
2259
|
+
# Key Value Store data in JSON format from an S3 bucket by providing a
|
2260
|
+
# valid `ImportSource` that you own.
|
2261
|
+
#
|
2262
|
+
# @option params [required, String] :name
|
2263
|
+
# The name of the Key Value Store. The maximum length of the name is 32
|
2264
|
+
# characters.
|
2265
|
+
#
|
2266
|
+
# @option params [String] :comment
|
2267
|
+
# The comment of the Key Value Store.
|
2268
|
+
#
|
2269
|
+
# @option params [Types::ImportSource] :import_source
|
2270
|
+
# The S3 bucket that provides the source for the import. The source must
|
2271
|
+
# be in a valid JSON format.
|
2272
|
+
#
|
2273
|
+
# @return [Types::CreateKeyValueStoreResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2274
|
+
#
|
2275
|
+
# * {Types::CreateKeyValueStoreResult#key_value_store #key_value_store} => Types::KeyValueStore
|
2276
|
+
# * {Types::CreateKeyValueStoreResult#etag #etag} => String
|
2277
|
+
# * {Types::CreateKeyValueStoreResult#location #location} => String
|
2278
|
+
#
|
2279
|
+
#
|
2280
|
+
# @example Example: To create a KeyValueStore
|
2281
|
+
#
|
2282
|
+
# # Use the following command to create a KeyValueStore.
|
2283
|
+
#
|
2284
|
+
# resp = client.create_key_value_store({
|
2285
|
+
# comment: "my-key-valuestore-comment",
|
2286
|
+
# import_source: {
|
2287
|
+
# source_arn: "arn:aws:s3:::my-bucket/validJSON.json",
|
2288
|
+
# source_type: "S3",
|
2289
|
+
# },
|
2290
|
+
# name: "my-keyvaluestore-name",
|
2291
|
+
# })
|
2292
|
+
#
|
2293
|
+
# resp.to_h outputs the following:
|
2294
|
+
# {
|
2295
|
+
# etag: "ETVPDKIKX0DER",
|
2296
|
+
# key_value_store: {
|
2297
|
+
# arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
2298
|
+
# comment: "my-key-valuestore-comment",
|
2299
|
+
# id: "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
2300
|
+
# last_modified_time: Time.parse("2023-11-07T18:15:52.042Z"),
|
2301
|
+
# name: "my-keyvaluestore-name",
|
2302
|
+
# status: "PROVISIONING",
|
2303
|
+
# },
|
2304
|
+
# location: "https://cloudfront.amazonaws.com/2020-05-31/key-value-store/arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
2305
|
+
# }
|
2306
|
+
#
|
2307
|
+
# @example Request syntax with placeholder values
|
2308
|
+
#
|
2309
|
+
# resp = client.create_key_value_store({
|
2310
|
+
# name: "KeyValueStoreName", # required
|
2311
|
+
# comment: "KeyValueStoreComment",
|
2312
|
+
# import_source: {
|
2313
|
+
# source_type: "S3", # required, accepts S3
|
2314
|
+
# source_arn: "string", # required
|
2315
|
+
# },
|
2316
|
+
# })
|
2317
|
+
#
|
2318
|
+
# @example Response structure
|
2319
|
+
#
|
2320
|
+
# resp.key_value_store.name #=> String
|
2321
|
+
# resp.key_value_store.id #=> String
|
2322
|
+
# resp.key_value_store.comment #=> String
|
2323
|
+
# resp.key_value_store.arn #=> String
|
2324
|
+
# resp.key_value_store.status #=> String
|
2325
|
+
# resp.key_value_store.last_modified_time #=> Time
|
2326
|
+
# resp.etag #=> String
|
2327
|
+
# resp.location #=> String
|
2328
|
+
#
|
2329
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/CreateKeyValueStore AWS API Documentation
|
2330
|
+
#
|
2331
|
+
# @overload create_key_value_store(params = {})
|
2332
|
+
# @param [Hash] params ({})
|
2333
|
+
def create_key_value_store(params = {}, options = {})
|
2334
|
+
req = build_request(:create_key_value_store, params)
|
2335
|
+
req.send_request(options)
|
2336
|
+
end
|
2337
|
+
|
2196
2338
|
# Enables additional CloudWatch metrics for the specified CloudFront
|
2197
2339
|
# distribution. The additional metrics incur an additional cost.
|
2198
2340
|
#
|
@@ -3130,6 +3272,42 @@ module Aws::CloudFront
|
|
3130
3272
|
req.send_request(options)
|
3131
3273
|
end
|
3132
3274
|
|
3275
|
+
# Specifies the Key Value Store to delete.
|
3276
|
+
#
|
3277
|
+
# @option params [required, String] :name
|
3278
|
+
# The name of the Key Value Store.
|
3279
|
+
#
|
3280
|
+
# @option params [required, String] :if_match
|
3281
|
+
# The Key Value Store to delete, if a match occurs.
|
3282
|
+
#
|
3283
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3284
|
+
#
|
3285
|
+
#
|
3286
|
+
# @example Example: To delete a KeyValueStore
|
3287
|
+
#
|
3288
|
+
# # Use the following command to delete a KeyValueStore.
|
3289
|
+
#
|
3290
|
+
# resp = client.delete_key_value_store({
|
3291
|
+
# if_match: "ETVPDKIKX0DER",
|
3292
|
+
# name: "my-keyvaluestore-name",
|
3293
|
+
# })
|
3294
|
+
#
|
3295
|
+
# @example Request syntax with placeholder values
|
3296
|
+
#
|
3297
|
+
# resp = client.delete_key_value_store({
|
3298
|
+
# name: "KeyValueStoreName", # required
|
3299
|
+
# if_match: "string", # required
|
3300
|
+
# })
|
3301
|
+
#
|
3302
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DeleteKeyValueStore AWS API Documentation
|
3303
|
+
#
|
3304
|
+
# @overload delete_key_value_store(params = {})
|
3305
|
+
# @param [Hash] params ({})
|
3306
|
+
def delete_key_value_store(params = {}, options = {})
|
3307
|
+
req = build_request(:delete_key_value_store, params)
|
3308
|
+
req.send_request(options)
|
3309
|
+
end
|
3310
|
+
|
3133
3311
|
# Disables additional CloudWatch metrics for the specified CloudFront
|
3134
3312
|
# distribution.
|
3135
3313
|
#
|
@@ -3432,6 +3610,9 @@ module Aws::CloudFront
|
|
3432
3610
|
# resp.function_summary.status #=> String
|
3433
3611
|
# resp.function_summary.function_config.comment #=> String
|
3434
3612
|
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
3613
|
+
# resp.function_summary.function_config.key_value_store_associations.quantity #=> Integer
|
3614
|
+
# resp.function_summary.function_config.key_value_store_associations.items #=> Array
|
3615
|
+
# resp.function_summary.function_config.key_value_store_associations.items[0].key_value_store_arn #=> String
|
3435
3616
|
# resp.function_summary.function_metadata.function_arn #=> String
|
3436
3617
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
3437
3618
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -3447,6 +3628,63 @@ module Aws::CloudFront
|
|
3447
3628
|
req.send_request(options)
|
3448
3629
|
end
|
3449
3630
|
|
3631
|
+
# Specifies the Key Value Store and its configuration.
|
3632
|
+
#
|
3633
|
+
# @option params [required, String] :name
|
3634
|
+
# The name of the Key Value Store.
|
3635
|
+
#
|
3636
|
+
# @return [Types::DescribeKeyValueStoreResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3637
|
+
#
|
3638
|
+
# * {Types::DescribeKeyValueStoreResult#key_value_store #key_value_store} => Types::KeyValueStore
|
3639
|
+
# * {Types::DescribeKeyValueStoreResult#etag #etag} => String
|
3640
|
+
#
|
3641
|
+
#
|
3642
|
+
# @example Example: To describe a KeyValueStore
|
3643
|
+
#
|
3644
|
+
# # Use the following command to describe a KeyValueStore.
|
3645
|
+
#
|
3646
|
+
# resp = client.describe_key_value_store({
|
3647
|
+
# name: "my-keyvaluestore-name",
|
3648
|
+
# })
|
3649
|
+
#
|
3650
|
+
# resp.to_h outputs the following:
|
3651
|
+
# {
|
3652
|
+
# etag: "ETVPDKIKX0DER",
|
3653
|
+
# key_value_store: {
|
3654
|
+
# arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
3655
|
+
# comment: "my-key-valuestore-comment",
|
3656
|
+
# id: "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
3657
|
+
# last_modified_time: Time.parse("2023-11-07T18:20:33.056Z"),
|
3658
|
+
# name: "my-keyvaluestore-name",
|
3659
|
+
# status: "READY",
|
3660
|
+
# },
|
3661
|
+
# }
|
3662
|
+
#
|
3663
|
+
# @example Request syntax with placeholder values
|
3664
|
+
#
|
3665
|
+
# resp = client.describe_key_value_store({
|
3666
|
+
# name: "KeyValueStoreName", # required
|
3667
|
+
# })
|
3668
|
+
#
|
3669
|
+
# @example Response structure
|
3670
|
+
#
|
3671
|
+
# resp.key_value_store.name #=> String
|
3672
|
+
# resp.key_value_store.id #=> String
|
3673
|
+
# resp.key_value_store.comment #=> String
|
3674
|
+
# resp.key_value_store.arn #=> String
|
3675
|
+
# resp.key_value_store.status #=> String
|
3676
|
+
# resp.key_value_store.last_modified_time #=> Time
|
3677
|
+
# resp.etag #=> String
|
3678
|
+
#
|
3679
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/DescribeKeyValueStore AWS API Documentation
|
3680
|
+
#
|
3681
|
+
# @overload describe_key_value_store(params = {})
|
3682
|
+
# @param [Hash] params ({})
|
3683
|
+
def describe_key_value_store(params = {}, options = {})
|
3684
|
+
req = build_request(:describe_key_value_store, params)
|
3685
|
+
req.send_request(options)
|
3686
|
+
end
|
3687
|
+
|
3450
3688
|
# Gets a cache policy, including the following metadata:
|
3451
3689
|
#
|
3452
3690
|
# * The policy's identifier.
|
@@ -6371,6 +6609,9 @@ module Aws::CloudFront
|
|
6371
6609
|
# resp.function_list.items[0].status #=> String
|
6372
6610
|
# resp.function_list.items[0].function_config.comment #=> String
|
6373
6611
|
# resp.function_list.items[0].function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
6612
|
+
# resp.function_list.items[0].function_config.key_value_store_associations.quantity #=> Integer
|
6613
|
+
# resp.function_list.items[0].function_config.key_value_store_associations.items #=> Array
|
6614
|
+
# resp.function_list.items[0].function_config.key_value_store_associations.items[0].key_value_store_arn #=> String
|
6374
6615
|
# resp.function_list.items[0].function_metadata.function_arn #=> String
|
6375
6616
|
# resp.function_list.items[0].function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
6376
6617
|
# resp.function_list.items[0].function_metadata.created_time #=> Time
|
@@ -6491,6 +6732,83 @@ module Aws::CloudFront
|
|
6491
6732
|
req.send_request(options)
|
6492
6733
|
end
|
6493
6734
|
|
6735
|
+
# Specifies the Key Value Stores to list.
|
6736
|
+
#
|
6737
|
+
# @option params [String] :marker
|
6738
|
+
# The marker associated with the Key Value Stores list.
|
6739
|
+
#
|
6740
|
+
# @option params [Integer] :max_items
|
6741
|
+
# The maximum number of items in the Key Value Stores list.
|
6742
|
+
#
|
6743
|
+
# @option params [String] :status
|
6744
|
+
# The status of the request for the Key Value Stores list.
|
6745
|
+
#
|
6746
|
+
# @return [Types::ListKeyValueStoresResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6747
|
+
#
|
6748
|
+
# * {Types::ListKeyValueStoresResult#key_value_store_list #key_value_store_list} => Types::KeyValueStoreList
|
6749
|
+
#
|
6750
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
6751
|
+
#
|
6752
|
+
#
|
6753
|
+
# @example Example: To get a list of KeyValueStores
|
6754
|
+
#
|
6755
|
+
# # The following command retrieves a list of KeyValueStores with READY status.
|
6756
|
+
#
|
6757
|
+
# resp = client.list_key_value_stores({
|
6758
|
+
# marker: "",
|
6759
|
+
# max_items: 100,
|
6760
|
+
# status: "READY",
|
6761
|
+
# })
|
6762
|
+
#
|
6763
|
+
# resp.to_h outputs the following:
|
6764
|
+
# {
|
6765
|
+
# key_value_store_list: {
|
6766
|
+
# items: [
|
6767
|
+
# {
|
6768
|
+
# arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
6769
|
+
# comment: "",
|
6770
|
+
# id: "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
6771
|
+
# last_modified_time: Time.parse("2023-11-07T18:45:21.069Z"),
|
6772
|
+
# name: "my-keyvaluestore-name",
|
6773
|
+
# status: "READY",
|
6774
|
+
# },
|
6775
|
+
# ],
|
6776
|
+
# max_items: 100,
|
6777
|
+
# next_marker: "",
|
6778
|
+
# quantity: 1,
|
6779
|
+
# },
|
6780
|
+
# }
|
6781
|
+
#
|
6782
|
+
# @example Request syntax with placeholder values
|
6783
|
+
#
|
6784
|
+
# resp = client.list_key_value_stores({
|
6785
|
+
# marker: "string",
|
6786
|
+
# max_items: 1,
|
6787
|
+
# status: "string",
|
6788
|
+
# })
|
6789
|
+
#
|
6790
|
+
# @example Response structure
|
6791
|
+
#
|
6792
|
+
# resp.key_value_store_list.next_marker #=> String
|
6793
|
+
# resp.key_value_store_list.max_items #=> Integer
|
6794
|
+
# resp.key_value_store_list.quantity #=> Integer
|
6795
|
+
# resp.key_value_store_list.items #=> Array
|
6796
|
+
# resp.key_value_store_list.items[0].name #=> String
|
6797
|
+
# resp.key_value_store_list.items[0].id #=> String
|
6798
|
+
# resp.key_value_store_list.items[0].comment #=> String
|
6799
|
+
# resp.key_value_store_list.items[0].arn #=> String
|
6800
|
+
# resp.key_value_store_list.items[0].status #=> String
|
6801
|
+
# resp.key_value_store_list.items[0].last_modified_time #=> Time
|
6802
|
+
#
|
6803
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/ListKeyValueStores AWS API Documentation
|
6804
|
+
#
|
6805
|
+
# @overload list_key_value_stores(params = {})
|
6806
|
+
# @param [Hash] params ({})
|
6807
|
+
def list_key_value_stores(params = {}, options = {})
|
6808
|
+
req = build_request(:list_key_value_stores, params)
|
6809
|
+
req.send_request(options)
|
6810
|
+
end
|
6811
|
+
|
6494
6812
|
# Gets the list of CloudFront origin access controls in this Amazon Web
|
6495
6813
|
# Services account.
|
6496
6814
|
#
|
@@ -6958,6 +7276,9 @@ module Aws::CloudFront
|
|
6958
7276
|
# resp.function_summary.status #=> String
|
6959
7277
|
# resp.function_summary.function_config.comment #=> String
|
6960
7278
|
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
7279
|
+
# resp.function_summary.function_config.key_value_store_associations.quantity #=> Integer
|
7280
|
+
# resp.function_summary.function_config.key_value_store_associations.items #=> Array
|
7281
|
+
# resp.function_summary.function_config.key_value_store_associations.items[0].key_value_store_arn #=> String
|
6961
7282
|
# resp.function_summary.function_metadata.function_arn #=> String
|
6962
7283
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
6963
7284
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -7063,6 +7384,9 @@ module Aws::CloudFront
|
|
7063
7384
|
# resp.test_result.function_summary.status #=> String
|
7064
7385
|
# resp.test_result.function_summary.function_config.comment #=> String
|
7065
7386
|
# resp.test_result.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
7387
|
+
# resp.test_result.function_summary.function_config.key_value_store_associations.quantity #=> Integer
|
7388
|
+
# resp.test_result.function_summary.function_config.key_value_store_associations.items #=> Array
|
7389
|
+
# resp.test_result.function_summary.function_config.key_value_store_associations.items[0].key_value_store_arn #=> String
|
7066
7390
|
# resp.test_result.function_summary.function_metadata.function_arn #=> String
|
7067
7391
|
# resp.test_result.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
7068
7392
|
# resp.test_result.function_summary.function_metadata.created_time #=> Time
|
@@ -8284,6 +8608,56 @@ module Aws::CloudFront
|
|
8284
8608
|
# * {Types::UpdateFunctionResult#function_summary #function_summary} => Types::FunctionSummary
|
8285
8609
|
# * {Types::UpdateFunctionResult#etag #etag} => String
|
8286
8610
|
#
|
8611
|
+
#
|
8612
|
+
# @example Example: To update a function
|
8613
|
+
#
|
8614
|
+
# # Use the following command to update a function.
|
8615
|
+
#
|
8616
|
+
# resp = client.update_function({
|
8617
|
+
# function_code: "function-code-changed.js",
|
8618
|
+
# function_config: {
|
8619
|
+
# comment: "my-changed-comment",
|
8620
|
+
# key_value_store_associations: {
|
8621
|
+
# items: [
|
8622
|
+
# {
|
8623
|
+
# key_value_store_arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
8624
|
+
# },
|
8625
|
+
# ],
|
8626
|
+
# quantity: 1,
|
8627
|
+
# },
|
8628
|
+
# runtime: "cloudfront-js-2.0",
|
8629
|
+
# },
|
8630
|
+
# if_match: "ETVPDKIKX0DER",
|
8631
|
+
# name: "my-function-name",
|
8632
|
+
# })
|
8633
|
+
#
|
8634
|
+
# resp.to_h outputs the following:
|
8635
|
+
# {
|
8636
|
+
# etag: "E3UN6WX5RRO2AG",
|
8637
|
+
# function_summary: {
|
8638
|
+
# function_config: {
|
8639
|
+
# comment: "my-changed-comment",
|
8640
|
+
# key_value_store_associations: {
|
8641
|
+
# items: [
|
8642
|
+
# {
|
8643
|
+
# key_value_store_arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
8644
|
+
# },
|
8645
|
+
# ],
|
8646
|
+
# quantity: 1,
|
8647
|
+
# },
|
8648
|
+
# runtime: "cloudfront-js-2.0",
|
8649
|
+
# },
|
8650
|
+
# function_metadata: {
|
8651
|
+
# created_time: Time.parse("2023-11-07T19:53:50.334Z"),
|
8652
|
+
# function_arn: "arn:aws:cloudfront::123456789012:function/my-function-name",
|
8653
|
+
# last_modified_time: Time.parse("2023-11-07T20:01:37.174Z"),
|
8654
|
+
# stage: "DEVELOPMENT",
|
8655
|
+
# },
|
8656
|
+
# name: "my-function-name",
|
8657
|
+
# status: "UNPUBLISHED",
|
8658
|
+
# },
|
8659
|
+
# }
|
8660
|
+
#
|
8287
8661
|
# @example Request syntax with placeholder values
|
8288
8662
|
#
|
8289
8663
|
# resp = client.update_function({
|
@@ -8292,6 +8666,14 @@ module Aws::CloudFront
|
|
8292
8666
|
# function_config: { # required
|
8293
8667
|
# comment: "string", # required
|
8294
8668
|
# runtime: "cloudfront-js-1.0", # required, accepts cloudfront-js-1.0, cloudfront-js-2.0
|
8669
|
+
# key_value_store_associations: {
|
8670
|
+
# quantity: 1, # required
|
8671
|
+
# items: [
|
8672
|
+
# {
|
8673
|
+
# key_value_store_arn: "KeyValueStoreARN", # required
|
8674
|
+
# },
|
8675
|
+
# ],
|
8676
|
+
# },
|
8295
8677
|
# },
|
8296
8678
|
# function_code: "data", # required
|
8297
8679
|
# })
|
@@ -8302,6 +8684,9 @@ module Aws::CloudFront
|
|
8302
8684
|
# resp.function_summary.status #=> String
|
8303
8685
|
# resp.function_summary.function_config.comment #=> String
|
8304
8686
|
# resp.function_summary.function_config.runtime #=> String, one of "cloudfront-js-1.0", "cloudfront-js-2.0"
|
8687
|
+
# resp.function_summary.function_config.key_value_store_associations.quantity #=> Integer
|
8688
|
+
# resp.function_summary.function_config.key_value_store_associations.items #=> Array
|
8689
|
+
# resp.function_summary.function_config.key_value_store_associations.items[0].key_value_store_arn #=> String
|
8305
8690
|
# resp.function_summary.function_metadata.function_arn #=> String
|
8306
8691
|
# resp.function_summary.function_metadata.stage #=> String, one of "DEVELOPMENT", "LIVE"
|
8307
8692
|
# resp.function_summary.function_metadata.created_time #=> Time
|
@@ -8378,6 +8763,73 @@ module Aws::CloudFront
|
|
8378
8763
|
req.send_request(options)
|
8379
8764
|
end
|
8380
8765
|
|
8766
|
+
# Specifies the Key Value Store to update.
|
8767
|
+
#
|
8768
|
+
# @option params [required, String] :name
|
8769
|
+
# The name of the Key Value Store to update.
|
8770
|
+
#
|
8771
|
+
# @option params [required, String] :comment
|
8772
|
+
# The comment of the Key Value Store to update.
|
8773
|
+
#
|
8774
|
+
# @option params [required, String] :if_match
|
8775
|
+
# The Key Value Store to update, if a match occurs.
|
8776
|
+
#
|
8777
|
+
# @return [Types::UpdateKeyValueStoreResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8778
|
+
#
|
8779
|
+
# * {Types::UpdateKeyValueStoreResult#key_value_store #key_value_store} => Types::KeyValueStore
|
8780
|
+
# * {Types::UpdateKeyValueStoreResult#etag #etag} => String
|
8781
|
+
#
|
8782
|
+
#
|
8783
|
+
# @example Example: To update a KeyValueStore
|
8784
|
+
#
|
8785
|
+
# # Use the following command to update a KeyValueStore.
|
8786
|
+
#
|
8787
|
+
# resp = client.update_key_value_store({
|
8788
|
+
# comment: "my-changed-comment",
|
8789
|
+
# if_match: "ETVPDKIKX0DER",
|
8790
|
+
# name: "my-keyvaluestore-name",
|
8791
|
+
# })
|
8792
|
+
#
|
8793
|
+
# resp.to_h outputs the following:
|
8794
|
+
# {
|
8795
|
+
# etag: "E3UN6WX5RRO2AG",
|
8796
|
+
# key_value_store: {
|
8797
|
+
# arn: "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
|
8798
|
+
# comment: "my-changed-comment",
|
8799
|
+
# id: "54947df8-0e9e-4471-a2f9-9af509fb5889",
|
8800
|
+
# last_modified_time: Time.parse("2023-11-07T18:45:21.069Z"),
|
8801
|
+
# name: "my-keyvaluestore-name",
|
8802
|
+
# status: "READY",
|
8803
|
+
# },
|
8804
|
+
# }
|
8805
|
+
#
|
8806
|
+
# @example Request syntax with placeholder values
|
8807
|
+
#
|
8808
|
+
# resp = client.update_key_value_store({
|
8809
|
+
# name: "KeyValueStoreName", # required
|
8810
|
+
# comment: "KeyValueStoreComment", # required
|
8811
|
+
# if_match: "string", # required
|
8812
|
+
# })
|
8813
|
+
#
|
8814
|
+
# @example Response structure
|
8815
|
+
#
|
8816
|
+
# resp.key_value_store.name #=> String
|
8817
|
+
# resp.key_value_store.id #=> String
|
8818
|
+
# resp.key_value_store.comment #=> String
|
8819
|
+
# resp.key_value_store.arn #=> String
|
8820
|
+
# resp.key_value_store.status #=> String
|
8821
|
+
# resp.key_value_store.last_modified_time #=> Time
|
8822
|
+
# resp.etag #=> String
|
8823
|
+
#
|
8824
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/cloudfront-2020-05-31/UpdateKeyValueStore AWS API Documentation
|
8825
|
+
#
|
8826
|
+
# @overload update_key_value_store(params = {})
|
8827
|
+
# @param [Hash] params ({})
|
8828
|
+
def update_key_value_store(params = {}, options = {})
|
8829
|
+
req = build_request(:update_key_value_store, params)
|
8830
|
+
req.send_request(options)
|
8831
|
+
end
|
8832
|
+
|
8381
8833
|
# Updates a CloudFront origin access control.
|
8382
8834
|
#
|
8383
8835
|
# @option params [required, Types::OriginAccessControlConfig] :origin_access_control_config
|
@@ -8940,7 +9392,7 @@ module Aws::CloudFront
|
|
8940
9392
|
params: params,
|
8941
9393
|
config: config)
|
8942
9394
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
8943
|
-
context[:gem_version] = '1.
|
9395
|
+
context[:gem_version] = '1.86.0'
|
8944
9396
|
Seahorse::Client::Request.new(handlers, context)
|
8945
9397
|
end
|
8946
9398
|
|