@aws-sdk/client-cloudfront 3.454.0 → 3.457.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.
Files changed (60) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/CloudFront.js +10 -0
  3. package/dist-cjs/commands/CreateKeyValueStoreCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteKeyValueStoreCommand.js +51 -0
  5. package/dist-cjs/commands/DescribeKeyValueStoreCommand.js +51 -0
  6. package/dist-cjs/commands/ListKeyValueStoresCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateKeyValueStoreCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +63 -18
  10. package/dist-cjs/models/models_1.js +29 -1
  11. package/dist-cjs/pagination/ListKeyValueStoresPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +1 -0
  13. package/dist-cjs/protocols/Aws_restXml.js +514 -5
  14. package/dist-es/CloudFront.js +10 -0
  15. package/dist-es/commands/CreateKeyValueStoreCommand.js +47 -0
  16. package/dist-es/commands/DeleteKeyValueStoreCommand.js +47 -0
  17. package/dist-es/commands/DescribeKeyValueStoreCommand.js +47 -0
  18. package/dist-es/commands/ListKeyValueStoresCommand.js +47 -0
  19. package/dist-es/commands/UpdateKeyValueStoreCommand.js +47 -0
  20. package/dist-es/commands/index.js +5 -0
  21. package/dist-es/models/models_0.js +55 -14
  22. package/dist-es/models/models_1.js +27 -0
  23. package/dist-es/pagination/ListKeyValueStoresPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +1 -0
  25. package/dist-es/protocols/Aws_restXml.js +501 -2
  26. package/dist-types/CloudFront.d.ts +35 -0
  27. package/dist-types/CloudFrontClient.d.ts +7 -2
  28. package/dist-types/commands/CreateFunctionCommand.d.ts +68 -0
  29. package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +133 -0
  30. package/dist-types/commands/CreateResponseHeadersPolicyCommand.d.ts +1 -2
  31. package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +100 -0
  32. package/dist-types/commands/DescribeFunctionCommand.d.ts +8 -0
  33. package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +114 -0
  34. package/dist-types/commands/ListFunctionsCommand.d.ts +8 -0
  35. package/dist-types/commands/ListKeyValueStoresCommand.d.ts +127 -0
  36. package/dist-types/commands/PublishFunctionCommand.d.ts +8 -0
  37. package/dist-types/commands/TestFunctionCommand.d.ts +8 -0
  38. package/dist-types/commands/UpdateFunctionCommand.d.ts +68 -0
  39. package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +125 -0
  40. package/dist-types/commands/index.d.ts +5 -0
  41. package/dist-types/models/models_0.d.ts +198 -380
  42. package/dist-types/models/models_1.d.ts +518 -3
  43. package/dist-types/pagination/ListKeyValueStoresPaginator.d.ts +7 -0
  44. package/dist-types/pagination/index.d.ts +1 -0
  45. package/dist-types/protocols/Aws_restXml.d.ts +45 -0
  46. package/dist-types/ts3.4/CloudFront.d.ts +85 -0
  47. package/dist-types/ts3.4/CloudFrontClient.d.ts +30 -0
  48. package/dist-types/ts3.4/commands/CreateKeyValueStoreCommand.d.ts +39 -0
  49. package/dist-types/ts3.4/commands/CreateResponseHeadersPolicyCommand.d.ts +4 -2
  50. package/dist-types/ts3.4/commands/DeleteKeyValueStoreCommand.d.ts +34 -0
  51. package/dist-types/ts3.4/commands/DescribeKeyValueStoreCommand.d.ts +42 -0
  52. package/dist-types/ts3.4/commands/ListKeyValueStoresCommand.d.ts +39 -0
  53. package/dist-types/ts3.4/commands/UpdateKeyValueStoreCommand.d.ts +39 -0
  54. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  55. package/dist-types/ts3.4/models/models_0.d.ts +67 -67
  56. package/dist-types/ts3.4/models/models_1.d.ts +113 -2
  57. package/dist-types/ts3.4/pagination/ListKeyValueStoresPaginator.d.ts +11 -0
  58. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  59. package/dist-types/ts3.4/protocols/Aws_restXml.d.ts +60 -0
  60. package/package.json +1 -1
@@ -0,0 +1,114 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
5
+ import { DescribeKeyValueStoreRequest, DescribeKeyValueStoreResult } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DescribeKeyValueStoreCommand}.
14
+ */
15
+ export interface DescribeKeyValueStoreCommandInput extends DescribeKeyValueStoreRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DescribeKeyValueStoreCommand}.
21
+ */
22
+ export interface DescribeKeyValueStoreCommandOutput extends DescribeKeyValueStoreResult, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Specifies the Key Value Store and its configuration.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CloudFrontClient, DescribeKeyValueStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
31
+ * // const { CloudFrontClient, DescribeKeyValueStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
32
+ * const client = new CloudFrontClient(config);
33
+ * const input = { // DescribeKeyValueStoreRequest
34
+ * Name: "STRING_VALUE", // required
35
+ * };
36
+ * const command = new DescribeKeyValueStoreCommand(input);
37
+ * const response = await client.send(command);
38
+ * // { // DescribeKeyValueStoreResult
39
+ * // KeyValueStore: { // KeyValueStore
40
+ * // Name: "STRING_VALUE", // required
41
+ * // Id: "STRING_VALUE", // required
42
+ * // Comment: "STRING_VALUE", // required
43
+ * // ARN: "STRING_VALUE", // required
44
+ * // Status: "STRING_VALUE",
45
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
46
+ * // },
47
+ * // ETag: "STRING_VALUE",
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param DescribeKeyValueStoreCommandInput - {@link DescribeKeyValueStoreCommandInput}
53
+ * @returns {@link DescribeKeyValueStoreCommandOutput}
54
+ * @see {@link DescribeKeyValueStoreCommandInput} for command's `input` shape.
55
+ * @see {@link DescribeKeyValueStoreCommandOutput} for command's `response` shape.
56
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
57
+ *
58
+ * @throws {@link AccessDenied} (client fault)
59
+ * <p>Access denied.</p>
60
+ *
61
+ * @throws {@link EntityNotFound} (client fault)
62
+ * <p>The Key Value Store entity was not found.</p>
63
+ *
64
+ * @throws {@link InvalidArgument} (client fault)
65
+ * <p>An argument is invalid.</p>
66
+ *
67
+ * @throws {@link CloudFrontServiceException}
68
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
69
+ *
70
+ * @example To describe a KeyValueStore
71
+ * ```javascript
72
+ * // Use the following command to describe a KeyValueStore.
73
+ * const input = {
74
+ * "Name": "my-keyvaluestore-name"
75
+ * };
76
+ * const command = new DescribeKeyValueStoreCommand(input);
77
+ * const response = await client.send(command);
78
+ * /* response ==
79
+ * {
80
+ * "ETag": "ETVPDKIKX0DER",
81
+ * "KeyValueStore": {
82
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
83
+ * "Comment": "my-key-valuestore-comment",
84
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
85
+ * "LastModifiedTime": "2023-11-07T18:20:33.056Z",
86
+ * "Name": "my-keyvaluestore-name",
87
+ * "Status": "READY"
88
+ * }
89
+ * }
90
+ * *\/
91
+ * // example id: to-describe-a-key-value-store-1699751788152
92
+ * ```
93
+ *
94
+ */
95
+ export declare class DescribeKeyValueStoreCommand extends $Command<DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
96
+ readonly input: DescribeKeyValueStoreCommandInput;
97
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
98
+ /**
99
+ * @public
100
+ */
101
+ constructor(input: DescribeKeyValueStoreCommandInput);
102
+ /**
103
+ * @internal
104
+ */
105
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeKeyValueStoreCommandInput, DescribeKeyValueStoreCommandOutput>;
106
+ /**
107
+ * @internal
108
+ */
109
+ private serialize;
110
+ /**
111
+ * @internal
112
+ */
113
+ private deserialize;
114
+ }
@@ -56,6 +56,14 @@ export interface ListFunctionsCommandOutput extends ListFunctionsResult, __Metad
56
56
  * // FunctionConfig: { // FunctionConfig
57
57
  * // Comment: "STRING_VALUE", // required
58
58
  * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
59
+ * // KeyValueStoreAssociations: { // KeyValueStoreAssociations
60
+ * // Quantity: Number("int"), // required
61
+ * // Items: [ // KeyValueStoreAssociationList
62
+ * // { // KeyValueStoreAssociation
63
+ * // KeyValueStoreARN: "STRING_VALUE", // required
64
+ * // },
65
+ * // ],
66
+ * // },
59
67
  * // },
60
68
  * // FunctionMetadata: { // FunctionMetadata
61
69
  * // FunctionARN: "STRING_VALUE", // required
@@ -0,0 +1,127 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
5
+ import { ListKeyValueStoresRequest, ListKeyValueStoresResult } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListKeyValueStoresCommand}.
14
+ */
15
+ export interface ListKeyValueStoresCommandInput extends ListKeyValueStoresRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListKeyValueStoresCommand}.
21
+ */
22
+ export interface ListKeyValueStoresCommandOutput extends ListKeyValueStoresResult, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Specifies the Key Value Stores to list.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CloudFrontClient, ListKeyValueStoresCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
31
+ * // const { CloudFrontClient, ListKeyValueStoresCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
32
+ * const client = new CloudFrontClient(config);
33
+ * const input = { // ListKeyValueStoresRequest
34
+ * Marker: "STRING_VALUE",
35
+ * MaxItems: Number("int"),
36
+ * Status: "STRING_VALUE",
37
+ * };
38
+ * const command = new ListKeyValueStoresCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // ListKeyValueStoresResult
41
+ * // KeyValueStoreList: { // KeyValueStoreList
42
+ * // NextMarker: "STRING_VALUE",
43
+ * // MaxItems: Number("int"), // required
44
+ * // Quantity: Number("int"), // required
45
+ * // Items: [ // KeyValueStoreSummaryList
46
+ * // { // KeyValueStore
47
+ * // Name: "STRING_VALUE", // required
48
+ * // Id: "STRING_VALUE", // required
49
+ * // Comment: "STRING_VALUE", // required
50
+ * // ARN: "STRING_VALUE", // required
51
+ * // Status: "STRING_VALUE",
52
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
53
+ * // },
54
+ * // ],
55
+ * // },
56
+ * // };
57
+ *
58
+ * ```
59
+ *
60
+ * @param ListKeyValueStoresCommandInput - {@link ListKeyValueStoresCommandInput}
61
+ * @returns {@link ListKeyValueStoresCommandOutput}
62
+ * @see {@link ListKeyValueStoresCommandInput} for command's `input` shape.
63
+ * @see {@link ListKeyValueStoresCommandOutput} for command's `response` shape.
64
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
65
+ *
66
+ * @throws {@link AccessDenied} (client fault)
67
+ * <p>Access denied.</p>
68
+ *
69
+ * @throws {@link InvalidArgument} (client fault)
70
+ * <p>An argument is invalid.</p>
71
+ *
72
+ * @throws {@link CloudFrontServiceException}
73
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
74
+ *
75
+ * @example To get a list of KeyValueStores
76
+ * ```javascript
77
+ * // The following command retrieves a list of KeyValueStores with READY status.
78
+ * const input = {
79
+ * "Marker": "",
80
+ * "MaxItems": "100",
81
+ * "Status": "READY"
82
+ * };
83
+ * const command = new ListKeyValueStoresCommand(input);
84
+ * const response = await client.send(command);
85
+ * /* response ==
86
+ * {
87
+ * "KeyValueStoreList": {
88
+ * "Items": [
89
+ * {
90
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
91
+ * "Comment": "",
92
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
93
+ * "LastModifiedTime": "2023-11-07T18:45:21.069Z",
94
+ * "Name": "my-keyvaluestore-name",
95
+ * "Status": "READY"
96
+ * }
97
+ * ],
98
+ * "MaxItems": 100,
99
+ * "NextMarker": "",
100
+ * "Quantity": 1
101
+ * }
102
+ * }
103
+ * *\/
104
+ * // example id: to-get-a-list-of-key-value-store-1699751799198
105
+ * ```
106
+ *
107
+ */
108
+ export declare class ListKeyValueStoresCommand extends $Command<ListKeyValueStoresCommandInput, ListKeyValueStoresCommandOutput, CloudFrontClientResolvedConfig> {
109
+ readonly input: ListKeyValueStoresCommandInput;
110
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
111
+ /**
112
+ * @public
113
+ */
114
+ constructor(input: ListKeyValueStoresCommandInput);
115
+ /**
116
+ * @internal
117
+ */
118
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListKeyValueStoresCommandInput, ListKeyValueStoresCommandOutput>;
119
+ /**
120
+ * @internal
121
+ */
122
+ private serialize;
123
+ /**
124
+ * @internal
125
+ */
126
+ private deserialize;
127
+ }
@@ -52,6 +52,14 @@ export interface PublishFunctionCommandOutput extends PublishFunctionResult, __M
52
52
  * // FunctionConfig: { // FunctionConfig
53
53
  * // Comment: "STRING_VALUE", // required
54
54
  * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
55
+ * // KeyValueStoreAssociations: { // KeyValueStoreAssociations
56
+ * // Quantity: Number("int"), // required
57
+ * // Items: [ // KeyValueStoreAssociationList
58
+ * // { // KeyValueStoreAssociation
59
+ * // KeyValueStoreARN: "STRING_VALUE", // required
60
+ * // },
61
+ * // ],
62
+ * // },
55
63
  * // },
56
64
  * // FunctionMetadata: { // FunctionMetadata
57
65
  * // FunctionARN: "STRING_VALUE", // required
@@ -55,6 +55,14 @@ export interface TestFunctionCommandOutput extends TestFunctionResult, __Metadat
55
55
  * // FunctionConfig: { // FunctionConfig
56
56
  * // Comment: "STRING_VALUE", // required
57
57
  * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
58
+ * // KeyValueStoreAssociations: { // KeyValueStoreAssociations
59
+ * // Quantity: Number("int"), // required
60
+ * // Items: [ // KeyValueStoreAssociationList
61
+ * // { // KeyValueStoreAssociation
62
+ * // KeyValueStoreARN: "STRING_VALUE", // required
63
+ * // },
64
+ * // ],
65
+ * // },
58
66
  * // },
59
67
  * // FunctionMetadata: { // FunctionMetadata
60
68
  * // FunctionARN: "STRING_VALUE", // required
@@ -41,6 +41,14 @@ export interface UpdateFunctionCommandOutput extends UpdateFunctionResult, __Met
41
41
  * FunctionConfig: { // FunctionConfig
42
42
  * Comment: "STRING_VALUE", // required
43
43
  * Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
44
+ * KeyValueStoreAssociations: { // KeyValueStoreAssociations
45
+ * Quantity: Number("int"), // required
46
+ * Items: [ // KeyValueStoreAssociationList
47
+ * { // KeyValueStoreAssociation
48
+ * KeyValueStoreARN: "STRING_VALUE", // required
49
+ * },
50
+ * ],
51
+ * },
44
52
  * },
45
53
  * FunctionCode: "BLOB_VALUE", // required
46
54
  * };
@@ -53,6 +61,14 @@ export interface UpdateFunctionCommandOutput extends UpdateFunctionResult, __Met
53
61
  * // FunctionConfig: { // FunctionConfig
54
62
  * // Comment: "STRING_VALUE", // required
55
63
  * // Runtime: "cloudfront-js-1.0" || "cloudfront-js-2.0", // required
64
+ * // KeyValueStoreAssociations: { // KeyValueStoreAssociations
65
+ * // Quantity: Number("int"), // required
66
+ * // Items: [ // KeyValueStoreAssociationList
67
+ * // { // KeyValueStoreAssociation
68
+ * // KeyValueStoreARN: "STRING_VALUE", // required
69
+ * // },
70
+ * // ],
71
+ * // },
56
72
  * // },
57
73
  * // FunctionMetadata: { // FunctionMetadata
58
74
  * // FunctionARN: "STRING_VALUE", // required
@@ -95,6 +111,58 @@ export interface UpdateFunctionCommandOutput extends UpdateFunctionResult, __Met
95
111
  * @throws {@link CloudFrontServiceException}
96
112
  * <p>Base exception class for all service exceptions from CloudFront service.</p>
97
113
  *
114
+ * @example To update a function
115
+ * ```javascript
116
+ * // Use the following command to update a function.
117
+ * const input = {
118
+ * "FunctionCode": "function-code-changed.js",
119
+ * "FunctionConfig": {
120
+ * "Comment": "my-changed-comment",
121
+ * "KeyValueStoreAssociations": {
122
+ * "Items": [
123
+ * {
124
+ * "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
125
+ * }
126
+ * ],
127
+ * "Quantity": 1
128
+ * },
129
+ * "Runtime": "cloudfront-js-2.0"
130
+ * },
131
+ * "IfMatch": "ETVPDKIKX0DER",
132
+ * "Name": "my-function-name"
133
+ * };
134
+ * const command = new UpdateFunctionCommand(input);
135
+ * const response = await client.send(command);
136
+ * /* response ==
137
+ * {
138
+ * "ETag": "E3UN6WX5RRO2AG",
139
+ * "FunctionSummary": {
140
+ * "FunctionConfig": {
141
+ * "Comment": "my-changed-comment",
142
+ * "KeyValueStoreAssociations": {
143
+ * "Items": [
144
+ * {
145
+ * "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
146
+ * }
147
+ * ],
148
+ * "Quantity": 1
149
+ * },
150
+ * "Runtime": "cloudfront-js-2.0"
151
+ * },
152
+ * "FunctionMetadata": {
153
+ * "CreatedTime": "2023-11-07T19:53:50.334Z",
154
+ * "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
155
+ * "LastModifiedTime": "2023-11-07T20:01:37.174Z",
156
+ * "Stage": "DEVELOPMENT"
157
+ * },
158
+ * "Name": "my-function-name",
159
+ * "Status": "UNPUBLISHED"
160
+ * }
161
+ * }
162
+ * *\/
163
+ * // example id: to-update-a-function-1699751865053
164
+ * ```
165
+ *
98
166
  */
99
167
  export declare class UpdateFunctionCommand extends $Command<UpdateFunctionCommandInput, UpdateFunctionCommandOutput, CloudFrontClientResolvedConfig> {
100
168
  readonly input: UpdateFunctionCommandInput;
@@ -0,0 +1,125 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient";
5
+ import { UpdateKeyValueStoreRequest, UpdateKeyValueStoreResult } from "../models/models_1";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateKeyValueStoreCommand}.
14
+ */
15
+ export interface UpdateKeyValueStoreCommandInput extends UpdateKeyValueStoreRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateKeyValueStoreCommand}.
21
+ */
22
+ export interface UpdateKeyValueStoreCommandOutput extends UpdateKeyValueStoreResult, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Specifies the Key Value Store to update.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { CloudFrontClient, UpdateKeyValueStoreCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import
31
+ * // const { CloudFrontClient, UpdateKeyValueStoreCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import
32
+ * const client = new CloudFrontClient(config);
33
+ * const input = { // UpdateKeyValueStoreRequest
34
+ * Name: "STRING_VALUE", // required
35
+ * Comment: "STRING_VALUE", // required
36
+ * IfMatch: "STRING_VALUE", // required
37
+ * };
38
+ * const command = new UpdateKeyValueStoreCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // UpdateKeyValueStoreResult
41
+ * // KeyValueStore: { // KeyValueStore
42
+ * // Name: "STRING_VALUE", // required
43
+ * // Id: "STRING_VALUE", // required
44
+ * // Comment: "STRING_VALUE", // required
45
+ * // ARN: "STRING_VALUE", // required
46
+ * // Status: "STRING_VALUE",
47
+ * // LastModifiedTime: new Date("TIMESTAMP"), // required
48
+ * // },
49
+ * // ETag: "STRING_VALUE",
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param UpdateKeyValueStoreCommandInput - {@link UpdateKeyValueStoreCommandInput}
55
+ * @returns {@link UpdateKeyValueStoreCommandOutput}
56
+ * @see {@link UpdateKeyValueStoreCommandInput} for command's `input` shape.
57
+ * @see {@link UpdateKeyValueStoreCommandOutput} for command's `response` shape.
58
+ * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDenied} (client fault)
61
+ * <p>Access denied.</p>
62
+ *
63
+ * @throws {@link EntityNotFound} (client fault)
64
+ * <p>The Key Value Store entity was not found.</p>
65
+ *
66
+ * @throws {@link InvalidArgument} (client fault)
67
+ * <p>An argument is invalid.</p>
68
+ *
69
+ * @throws {@link InvalidIfMatchVersion} (client fault)
70
+ * <p>The <code>If-Match</code> version is missing or not valid.</p>
71
+ *
72
+ * @throws {@link PreconditionFailed} (client fault)
73
+ * <p>The precondition in one or more of the request fields evaluated to
74
+ * <code>false</code>.</p>
75
+ *
76
+ * @throws {@link CloudFrontServiceException}
77
+ * <p>Base exception class for all service exceptions from CloudFront service.</p>
78
+ *
79
+ * @example To update a KeyValueStore
80
+ * ```javascript
81
+ * // Use the following command to update a KeyValueStore.
82
+ * const input = {
83
+ * "Comment": "my-changed-comment",
84
+ * "IfMatch": "ETVPDKIKX0DER",
85
+ * "Name": "my-keyvaluestore-name"
86
+ * };
87
+ * const command = new UpdateKeyValueStoreCommand(input);
88
+ * const response = await client.send(command);
89
+ * /* response ==
90
+ * {
91
+ * "ETag": "E3UN6WX5RRO2AG",
92
+ * "KeyValueStore": {
93
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
94
+ * "Comment": "my-changed-comment",
95
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
96
+ * "LastModifiedTime": "2023-11-07T18:45:21.069Z",
97
+ * "Name": "my-keyvaluestore-name",
98
+ * "Status": "READY"
99
+ * }
100
+ * }
101
+ * *\/
102
+ * // example id: to-update-a-key-value-store-1699751822090
103
+ * ```
104
+ *
105
+ */
106
+ export declare class UpdateKeyValueStoreCommand extends $Command<UpdateKeyValueStoreCommandInput, UpdateKeyValueStoreCommandOutput, CloudFrontClientResolvedConfig> {
107
+ readonly input: UpdateKeyValueStoreCommandInput;
108
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
109
+ /**
110
+ * @public
111
+ */
112
+ constructor(input: UpdateKeyValueStoreCommandInput);
113
+ /**
114
+ * @internal
115
+ */
116
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CloudFrontClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateKeyValueStoreCommandInput, UpdateKeyValueStoreCommandOutput>;
117
+ /**
118
+ * @internal
119
+ */
120
+ private serialize;
121
+ /**
122
+ * @internal
123
+ */
124
+ private deserialize;
125
+ }
@@ -10,6 +10,7 @@ export * from "./CreateFieldLevelEncryptionProfileCommand";
10
10
  export * from "./CreateFunctionCommand";
11
11
  export * from "./CreateInvalidationCommand";
12
12
  export * from "./CreateKeyGroupCommand";
13
+ export * from "./CreateKeyValueStoreCommand";
13
14
  export * from "./CreateMonitoringSubscriptionCommand";
14
15
  export * from "./CreateOriginAccessControlCommand";
15
16
  export * from "./CreateOriginRequestPolicyCommand";
@@ -26,6 +27,7 @@ export * from "./DeleteFieldLevelEncryptionConfigCommand";
26
27
  export * from "./DeleteFieldLevelEncryptionProfileCommand";
27
28
  export * from "./DeleteFunctionCommand";
28
29
  export * from "./DeleteKeyGroupCommand";
30
+ export * from "./DeleteKeyValueStoreCommand";
29
31
  export * from "./DeleteMonitoringSubscriptionCommand";
30
32
  export * from "./DeleteOriginAccessControlCommand";
31
33
  export * from "./DeleteOriginRequestPolicyCommand";
@@ -34,6 +36,7 @@ export * from "./DeleteRealtimeLogConfigCommand";
34
36
  export * from "./DeleteResponseHeadersPolicyCommand";
35
37
  export * from "./DeleteStreamingDistributionCommand";
36
38
  export * from "./DescribeFunctionCommand";
39
+ export * from "./DescribeKeyValueStoreCommand";
37
40
  export * from "./GetCachePolicyCommand";
38
41
  export * from "./GetCachePolicyConfigCommand";
39
42
  export * from "./GetCloudFrontOriginAccessIdentityCommand";
@@ -78,6 +81,7 @@ export * from "./ListFieldLevelEncryptionProfilesCommand";
78
81
  export * from "./ListFunctionsCommand";
79
82
  export * from "./ListInvalidationsCommand";
80
83
  export * from "./ListKeyGroupsCommand";
84
+ export * from "./ListKeyValueStoresCommand";
81
85
  export * from "./ListOriginAccessControlsCommand";
82
86
  export * from "./ListOriginRequestPoliciesCommand";
83
87
  export * from "./ListPublicKeysCommand";
@@ -98,6 +102,7 @@ export * from "./UpdateFieldLevelEncryptionConfigCommand";
98
102
  export * from "./UpdateFieldLevelEncryptionProfileCommand";
99
103
  export * from "./UpdateFunctionCommand";
100
104
  export * from "./UpdateKeyGroupCommand";
105
+ export * from "./UpdateKeyValueStoreCommand";
101
106
  export * from "./UpdateOriginAccessControlCommand";
102
107
  export * from "./UpdateOriginRequestPolicyCommand";
103
108
  export * from "./UpdatePublicKeyCommand";