@aws-sdk/client-cloudfront 3.689.0 → 3.690.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.
@@ -173,6 +173,58 @@ declare const CreateFunctionCommand_base: {
173
173
  * // example id: to-create-a-function-1699737558249
174
174
  * ```
175
175
  *
176
+ * @example To create a function
177
+ * ```javascript
178
+ * // Use the following command to create a function.
179
+ * const input = {
180
+ * "FunctionCode": "function-code.js",
181
+ * "FunctionConfig": {
182
+ * "Comment": "my-function-comment",
183
+ * "KeyValueStoreAssociations": {
184
+ * "Items": [
185
+ * {
186
+ * "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
187
+ * }
188
+ * ],
189
+ * "Quantity": 1
190
+ * },
191
+ * "Runtime": "cloudfront-js-2.0"
192
+ * },
193
+ * "Name": "my-function-name"
194
+ * };
195
+ * const command = new CreateFunctionCommand(input);
196
+ * const response = await client.send(command);
197
+ * /* response ==
198
+ * {
199
+ * "ETag": "ETVPDKIKX0DER",
200
+ * "FunctionSummary": {
201
+ * "FunctionConfig": {
202
+ * "Comment": "my-function-comment",
203
+ * "KeyValueStoreAssociations": {
204
+ * "Items": [
205
+ * {
206
+ * "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
207
+ * }
208
+ * ],
209
+ * "Quantity": 1
210
+ * },
211
+ * "Runtime": "cloudfront-js-2.0"
212
+ * },
213
+ * "FunctionMetadata": {
214
+ * "CreatedTime": "2023-11-07T19:53:50.334Z",
215
+ * "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
216
+ * "LastModifiedTime": "2023-11-07T19:53:50.334Z",
217
+ * "Stage": "DEVELOPMENT"
218
+ * },
219
+ * "Name": "my-function-name",
220
+ * "Status": "UNPUBLISHED"
221
+ * },
222
+ * "Location": "https://cloudfront.amazonaws.com/2020-05-31/function/arn:aws:cloudfront::123456789012:function/my-function-name"
223
+ * }
224
+ * *\/
225
+ * // example id: example-1
226
+ * ```
227
+ *
176
228
  */
177
229
  export declare class CreateFunctionCommand extends CreateFunctionCommand_base {
178
230
  /** @internal type navigation helper, not in runtime. */
@@ -118,6 +118,36 @@ declare const CreateKeyValueStoreCommand_base: {
118
118
  * // example id: to-create-a-key-value-store-1699751722467
119
119
  * ```
120
120
  *
121
+ * @example To create a KeyValueStore
122
+ * ```javascript
123
+ * // Use the following command to create a KeyValueStore.
124
+ * const input = {
125
+ * "Comment": "my-key-valuestore-comment",
126
+ * "ImportSource": {
127
+ * "SourceARN": "arn:aws:s3:::my-bucket/validJSON.json",
128
+ * "SourceType": "S3"
129
+ * },
130
+ * "Name": "my-keyvaluestore-name"
131
+ * };
132
+ * const command = new CreateKeyValueStoreCommand(input);
133
+ * const response = await client.send(command);
134
+ * /* response ==
135
+ * {
136
+ * "ETag": "ETVPDKIKX0DER",
137
+ * "KeyValueStore": {
138
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
139
+ * "Comment": "my-key-valuestore-comment",
140
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
141
+ * "LastModifiedTime": "2023-11-07T18:15:52.042Z",
142
+ * "Name": "my-keyvaluestore-name",
143
+ * "Status": "PROVISIONING"
144
+ * },
145
+ * "Location": "https://cloudfront.amazonaws.com/2020-05-31/key-value-store/arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
146
+ * }
147
+ * *\/
148
+ * // example id: example-1
149
+ * ```
150
+ *
121
151
  */
122
152
  export declare class CreateKeyValueStoreCommand extends CreateKeyValueStoreCommand_base {
123
153
  /** @internal type navigation helper, not in runtime. */
@@ -85,6 +85,18 @@ declare const DeleteKeyValueStoreCommand_base: {
85
85
  * // example id: to-delete-a-key-value-store-1699751759648
86
86
  * ```
87
87
  *
88
+ * @example To delete a KeyValueStore
89
+ * ```javascript
90
+ * // Use the following command to delete a KeyValueStore.
91
+ * const input = {
92
+ * "IfMatch": "ETVPDKIKX0DER",
93
+ * "Name": "my-keyvaluestore-name"
94
+ * };
95
+ * const command = new DeleteKeyValueStoreCommand(input);
96
+ * await client.send(command);
97
+ * // example id: example-1
98
+ * ```
99
+ *
88
100
  */
89
101
  export declare class DeleteKeyValueStoreCommand extends DeleteKeyValueStoreCommand_base {
90
102
  /** @internal type navigation helper, not in runtime. */
@@ -99,6 +99,30 @@ declare const DescribeKeyValueStoreCommand_base: {
99
99
  * // example id: to-describe-a-key-value-store-1699751788152
100
100
  * ```
101
101
  *
102
+ * @example To describe a KeyValueStore
103
+ * ```javascript
104
+ * // Use the following command to describe a KeyValueStore.
105
+ * const input = {
106
+ * "Name": "my-keyvaluestore-name"
107
+ * };
108
+ * const command = new DescribeKeyValueStoreCommand(input);
109
+ * const response = await client.send(command);
110
+ * /* response ==
111
+ * {
112
+ * "ETag": "ETVPDKIKX0DER",
113
+ * "KeyValueStore": {
114
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
115
+ * "Comment": "my-key-valuestore-comment",
116
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
117
+ * "LastModifiedTime": "2023-11-07T18:20:33.056Z",
118
+ * "Name": "my-keyvaluestore-name",
119
+ * "Status": "READY"
120
+ * }
121
+ * }
122
+ * *\/
123
+ * // example id: example-1
124
+ * ```
125
+ *
102
126
  */
103
127
  export declare class DescribeKeyValueStoreCommand extends DescribeKeyValueStoreCommand_base {
104
128
  /** @internal type navigation helper, not in runtime. */
@@ -112,6 +112,36 @@ declare const ListKeyValueStoresCommand_base: {
112
112
  * // example id: to-get-a-list-of-key-value-store-1699751799198
113
113
  * ```
114
114
  *
115
+ * @example To get a list of KeyValueStores
116
+ * ```javascript
117
+ * // The following command retrieves a list of KeyValueStores with READY status.
118
+ * const input = {
119
+ * "Status": "READY"
120
+ * };
121
+ * const command = new ListKeyValueStoresCommand(input);
122
+ * const response = await client.send(command);
123
+ * /* response ==
124
+ * {
125
+ * "KeyValueStoreList": {
126
+ * "Items": [
127
+ * {
128
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
129
+ * "Comment": "",
130
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
131
+ * "LastModifiedTime": "2023-11-07T18:45:21.069Z",
132
+ * "Name": "my-keyvaluestore-name",
133
+ * "Status": "READY"
134
+ * }
135
+ * ],
136
+ * "MaxItems": 100,
137
+ * "NextMarker": "",
138
+ * "Quantity": 1
139
+ * }
140
+ * }
141
+ * *\/
142
+ * // example id: example-1
143
+ * ```
144
+ *
115
145
  */
116
146
  export declare class ListKeyValueStoresCommand extends ListKeyValueStoresCommand_base {
117
147
  /** @internal type navigation helper, not in runtime. */
@@ -168,6 +168,58 @@ declare const UpdateFunctionCommand_base: {
168
168
  * // example id: to-update-a-function-1699751865053
169
169
  * ```
170
170
  *
171
+ * @example To update a function
172
+ * ```javascript
173
+ * // Use the following command to update a function.
174
+ * const input = {
175
+ * "FunctionCode": "function-code-changed.js",
176
+ * "FunctionConfig": {
177
+ * "Comment": "my-changed-comment",
178
+ * "KeyValueStoreAssociations": {
179
+ * "Items": [
180
+ * {
181
+ * "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
182
+ * }
183
+ * ],
184
+ * "Quantity": 1
185
+ * },
186
+ * "Runtime": "cloudfront-js-2.0"
187
+ * },
188
+ * "IfMatch": "ETVPDKIKX0DER",
189
+ * "Name": "my-function-name"
190
+ * };
191
+ * const command = new UpdateFunctionCommand(input);
192
+ * const response = await client.send(command);
193
+ * /* response ==
194
+ * {
195
+ * "ETag": "E3UN6WX5RRO2AG",
196
+ * "FunctionSummary": {
197
+ * "FunctionConfig": {
198
+ * "Comment": "my-changed-comment",
199
+ * "KeyValueStoreAssociations": {
200
+ * "Items": [
201
+ * {
202
+ * "KeyValueStoreARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889"
203
+ * }
204
+ * ],
205
+ * "Quantity": 1
206
+ * },
207
+ * "Runtime": "cloudfront-js-2.0"
208
+ * },
209
+ * "FunctionMetadata": {
210
+ * "CreatedTime": "2023-11-07T19:53:50.334Z",
211
+ * "FunctionARN": "arn:aws:cloudfront::123456789012:function/my-function-name",
212
+ * "LastModifiedTime": "2023-11-07T20:01:37.174Z",
213
+ * "Stage": "DEVELOPMENT"
214
+ * },
215
+ * "Name": "my-function-name",
216
+ * "Status": "UNPUBLISHED"
217
+ * }
218
+ * }
219
+ * *\/
220
+ * // example id: example-1
221
+ * ```
222
+ *
171
223
  */
172
224
  export declare class UpdateFunctionCommand extends UpdateFunctionCommand_base {
173
225
  /** @internal type navigation helper, not in runtime. */
@@ -110,6 +110,32 @@ declare const UpdateKeyValueStoreCommand_base: {
110
110
  * // example id: to-update-a-key-value-store-1699751822090
111
111
  * ```
112
112
  *
113
+ * @example To update a KeyValueStore
114
+ * ```javascript
115
+ * // Use the following command to update a KeyValueStore.
116
+ * const input = {
117
+ * "Comment": "my-changed-comment",
118
+ * "IfMatch": "ETVPDKIKX0DER",
119
+ * "Name": "my-keyvaluestore-name"
120
+ * };
121
+ * const command = new UpdateKeyValueStoreCommand(input);
122
+ * const response = await client.send(command);
123
+ * /* response ==
124
+ * {
125
+ * "ETag": "E3UN6WX5RRO2AG",
126
+ * "KeyValueStore": {
127
+ * "ARN": "arn:aws:cloudfront::123456789012:key-value-store/54947df8-0e9e-4471-a2f9-9af509fb5889",
128
+ * "Comment": "my-changed-comment",
129
+ * "Id": "54947df8-0e9e-4471-a2f9-9af509fb5889",
130
+ * "LastModifiedTime": "2023-11-07T18:45:21.069Z",
131
+ * "Name": "my-keyvaluestore-name",
132
+ * "Status": "READY"
133
+ * }
134
+ * }
135
+ * *\/
136
+ * // example id: example-1
137
+ * ```
138
+ *
113
139
  */
114
140
  export declare class UpdateKeyValueStoreCommand extends UpdateKeyValueStoreCommand_base {
115
141
  /** @internal type navigation helper, not in runtime. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudfront",
3
3
  "description": "AWS SDK for JavaScript Cloudfront Client for Node.js, Browser and React Native",
4
- "version": "3.689.0",
4
+ "version": "3.690.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudfront",