@aws-sdk/client-cloudfront 3.687.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.
- package/dist-cjs/index.js +12 -6
- package/dist-es/pagination/ListPublicKeysPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/waiters/waitForDistributionDeployed.js +2 -2
- package/dist-es/waiters/waitForInvalidationCompleted.js +2 -2
- package/dist-es/waiters/waitForStreamingDistributionDeployed.js +2 -2
- package/dist-types/commands/CreateFunctionCommand.d.ts +52 -0
- package/dist-types/commands/CreateKeyValueStoreCommand.d.ts +30 -0
- package/dist-types/commands/DeleteKeyValueStoreCommand.d.ts +12 -0
- package/dist-types/commands/DescribeKeyValueStoreCommand.d.ts +24 -0
- package/dist-types/commands/ListKeyValueStoresCommand.d.ts +30 -0
- package/dist-types/commands/ListOriginAccessControlsCommand.d.ts +6 -1
- package/dist-types/commands/UpdateDistributionCommand.d.ts +3 -5
- package/dist-types/commands/UpdateFunctionCommand.d.ts +52 -0
- package/dist-types/commands/UpdateKeyValueStoreCommand.d.ts +26 -0
- package/dist-types/models/models_1.d.ts +1 -1
- package/dist-types/pagination/ListPublicKeysPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/pagination/ListPublicKeysPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -351,6 +351,7 @@ __export(src_exports, {
|
|
|
351
351
|
paginateListDistributions: () => paginateListDistributions,
|
|
352
352
|
paginateListInvalidations: () => paginateListInvalidations,
|
|
353
353
|
paginateListKeyValueStores: () => paginateListKeyValueStores,
|
|
354
|
+
paginateListPublicKeys: () => paginateListPublicKeys,
|
|
354
355
|
paginateListStreamingDistributions: () => paginateListStreamingDistributions,
|
|
355
356
|
waitForDistributionDeployed: () => waitForDistributionDeployed,
|
|
356
357
|
waitForInvalidationCompleted: () => waitForInvalidationCompleted,
|
|
@@ -14923,6 +14924,10 @@ var paginateListInvalidations = (0, import_core.createPaginator)(CloudFrontClien
|
|
|
14923
14924
|
|
|
14924
14925
|
var paginateListKeyValueStores = (0, import_core.createPaginator)(CloudFrontClient, ListKeyValueStoresCommand, "Marker", "KeyValueStoreList.NextMarker", "MaxItems");
|
|
14925
14926
|
|
|
14927
|
+
// src/pagination/ListPublicKeysPaginator.ts
|
|
14928
|
+
|
|
14929
|
+
var paginateListPublicKeys = (0, import_core.createPaginator)(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");
|
|
14930
|
+
|
|
14926
14931
|
// src/pagination/ListStreamingDistributionsPaginator.ts
|
|
14927
14932
|
|
|
14928
14933
|
var paginateListStreamingDistributions = (0, import_core.createPaginator)(CloudFrontClient, ListStreamingDistributionsCommand, "Marker", "StreamingDistributionList.NextMarker", "MaxItems");
|
|
@@ -14949,11 +14954,11 @@ var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
14949
14954
|
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
14950
14955
|
}, "checkState");
|
|
14951
14956
|
var waitForDistributionDeployed = /* @__PURE__ */ __name(async (params, input) => {
|
|
14952
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
14957
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
|
|
14953
14958
|
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
14954
14959
|
}, "waitForDistributionDeployed");
|
|
14955
14960
|
var waitUntilDistributionDeployed = /* @__PURE__ */ __name(async (params, input) => {
|
|
14956
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
14961
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
|
|
14957
14962
|
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState);
|
|
14958
14963
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
14959
14964
|
}, "waitUntilDistributionDeployed");
|
|
@@ -14980,11 +14985,11 @@ var checkState2 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
14980
14985
|
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
14981
14986
|
}, "checkState");
|
|
14982
14987
|
var waitForInvalidationCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
14983
|
-
const serviceDefaults = { minDelay: 20, maxDelay:
|
|
14988
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
|
|
14984
14989
|
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
14985
14990
|
}, "waitForInvalidationCompleted");
|
|
14986
14991
|
var waitUntilInvalidationCompleted = /* @__PURE__ */ __name(async (params, input) => {
|
|
14987
|
-
const serviceDefaults = { minDelay: 20, maxDelay:
|
|
14992
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
|
|
14988
14993
|
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState2);
|
|
14989
14994
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
14990
14995
|
}, "waitUntilInvalidationCompleted");
|
|
@@ -15011,11 +15016,11 @@ var checkState3 = /* @__PURE__ */ __name(async (client, input) => {
|
|
|
15011
15016
|
return { state: import_util_waiter.WaiterState.RETRY, reason };
|
|
15012
15017
|
}, "checkState");
|
|
15013
15018
|
var waitForStreamingDistributionDeployed = /* @__PURE__ */ __name(async (params, input) => {
|
|
15014
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
15019
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
|
|
15015
15020
|
return (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
15016
15021
|
}, "waitForStreamingDistributionDeployed");
|
|
15017
15022
|
var waitUntilStreamingDistributionDeployed = /* @__PURE__ */ __name(async (params, input) => {
|
|
15018
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
15023
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
|
|
15019
15024
|
const result = await (0, import_util_waiter.createWaiter)({ ...serviceDefaults, ...params }, input, checkState3);
|
|
15020
15025
|
return (0, import_util_waiter.checkExceptions)(result);
|
|
15021
15026
|
}, "waitUntilStreamingDistributionDeployed");
|
|
@@ -15142,6 +15147,7 @@ var waitUntilStreamingDistributionDeployed = /* @__PURE__ */ __name(async (param
|
|
|
15142
15147
|
paginateListDistributions,
|
|
15143
15148
|
paginateListInvalidations,
|
|
15144
15149
|
paginateListKeyValueStores,
|
|
15150
|
+
paginateListPublicKeys,
|
|
15145
15151
|
paginateListStreamingDistributions,
|
|
15146
15152
|
waitForDistributionDeployed,
|
|
15147
15153
|
waitUntilDistributionDeployed,
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { CloudFrontClient } from "../CloudFrontClient";
|
|
3
|
+
import { ListPublicKeysCommand, } from "../commands/ListPublicKeysCommand";
|
|
4
|
+
export const paginateListPublicKeys = createPaginator(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");
|
|
@@ -3,4 +3,5 @@ export * from "./ListCloudFrontOriginAccessIdentitiesPaginator";
|
|
|
3
3
|
export * from "./ListDistributionsPaginator";
|
|
4
4
|
export * from "./ListInvalidationsPaginator";
|
|
5
5
|
export * from "./ListKeyValueStoresPaginator";
|
|
6
|
+
export * from "./ListPublicKeysPaginator";
|
|
6
7
|
export * from "./ListStreamingDistributionsPaginator";
|
|
@@ -21,11 +21,11 @@ const checkState = async (client, input) => {
|
|
|
21
21
|
return { state: WaiterState.RETRY, reason };
|
|
22
22
|
};
|
|
23
23
|
export const waitForDistributionDeployed = async (params, input) => {
|
|
24
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
24
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
|
|
25
25
|
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
26
26
|
};
|
|
27
27
|
export const waitUntilDistributionDeployed = async (params, input) => {
|
|
28
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
28
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
|
|
29
29
|
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
30
30
|
return checkExceptions(result);
|
|
31
31
|
};
|
|
@@ -21,11 +21,11 @@ const checkState = async (client, input) => {
|
|
|
21
21
|
return { state: WaiterState.RETRY, reason };
|
|
22
22
|
};
|
|
23
23
|
export const waitForInvalidationCompleted = async (params, input) => {
|
|
24
|
-
const serviceDefaults = { minDelay: 20, maxDelay:
|
|
24
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
|
|
25
25
|
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
26
26
|
};
|
|
27
27
|
export const waitUntilInvalidationCompleted = async (params, input) => {
|
|
28
|
-
const serviceDefaults = { minDelay: 20, maxDelay:
|
|
28
|
+
const serviceDefaults = { minDelay: 20, maxDelay: 600 };
|
|
29
29
|
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
30
30
|
return checkExceptions(result);
|
|
31
31
|
};
|
|
@@ -21,11 +21,11 @@ const checkState = async (client, input) => {
|
|
|
21
21
|
return { state: WaiterState.RETRY, reason };
|
|
22
22
|
};
|
|
23
23
|
export const waitForStreamingDistributionDeployed = async (params, input) => {
|
|
24
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
24
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
|
|
25
25
|
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
26
26
|
};
|
|
27
27
|
export const waitUntilStreamingDistributionDeployed = async (params, input) => {
|
|
28
|
-
const serviceDefaults = { minDelay: 60, maxDelay:
|
|
28
|
+
const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
|
|
29
29
|
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
30
30
|
return checkExceptions(result);
|
|
31
31
|
};
|
|
@@ -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. */
|
|
@@ -27,12 +27,17 @@ declare const ListOriginAccessControlsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Gets the list of CloudFront origin access controls in this Amazon Web Services account.</p>
|
|
30
|
+
* <p>Gets the list of CloudFront origin access controls (OACs) in this Amazon Web Services account.</p>
|
|
31
31
|
* <p>You can optionally specify the maximum number of items to receive in the response. If
|
|
32
32
|
* the total number of items in the list exceeds the maximum that you specify, or the
|
|
33
33
|
* default maximum, the response is paginated. To get the next page of items, send another
|
|
34
34
|
* request that specifies the <code>NextMarker</code> value from the current response as
|
|
35
35
|
* the <code>Marker</code> value in the next request.</p>
|
|
36
|
+
* <note>
|
|
37
|
+
* <p>If you're not using origin access controls for your Amazon Web Services account, the
|
|
38
|
+
* <code>ListOriginAccessControls</code> operation doesn't return the
|
|
39
|
+
* <code>Items</code> element in the response.</p>
|
|
40
|
+
* </note>
|
|
36
41
|
* @example
|
|
37
42
|
* Use a bare-bones client and the command you need to make an API call.
|
|
38
43
|
* ```javascript
|
|
@@ -45,10 +45,8 @@ declare const UpdateDistributionCommand_base: {
|
|
|
45
45
|
* the following important requirements and restrictions:</p>
|
|
46
46
|
* <ul>
|
|
47
47
|
* <li>
|
|
48
|
-
* <p>You must
|
|
49
|
-
*
|
|
50
|
-
* the value of <code>ETag</code>, then remove the <code>ETag</code>
|
|
51
|
-
* field.)</p>
|
|
48
|
+
* <p>You must copy the <code>ETag</code> field value from the response. (You'll use it for the <code>IfMatch</code> parameter in your request.) Then, remove the <code>ETag</code>
|
|
49
|
+
* field from the distribution configuration.</p>
|
|
52
50
|
* </li>
|
|
53
51
|
* <li>
|
|
54
52
|
* <p>You can't change the value of <code>CallerReference</code>.</p>
|
|
@@ -56,7 +54,7 @@ declare const UpdateDistributionCommand_base: {
|
|
|
56
54
|
* </ul>
|
|
57
55
|
* </li>
|
|
58
56
|
* <li>
|
|
59
|
-
* <p>Submit an <code>UpdateDistribution</code> request, providing the distribution
|
|
57
|
+
* <p>Submit an <code>UpdateDistribution</code> request, providing the updated distribution
|
|
60
58
|
* configuration. The new configuration replaces the existing configuration. The
|
|
61
59
|
* values that you specify in an <code>UpdateDistribution</code> request are not
|
|
62
60
|
* merged into your existing configuration. Make sure to include all fields: the
|
|
@@ -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. */
|
|
@@ -4441,7 +4441,7 @@ export interface UpdateDistributionWithStagingConfigRequest {
|
|
|
4441
4441
|
* <p>The current versions (<code>ETag</code> values) of both primary and staging distributions.
|
|
4442
4442
|
* Provide these in the following format:</p>
|
|
4443
4443
|
* <p>
|
|
4444
|
-
* <code
|
|
4444
|
+
* <code><primary ETag>, <staging ETag></code>
|
|
4445
4445
|
* </p>
|
|
4446
4446
|
* @public
|
|
4447
4447
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import { ListPublicKeysCommandInput, ListPublicKeysCommandOutput } from "../commands/ListPublicKeysCommand";
|
|
3
|
+
import { CloudFrontPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const paginateListPublicKeys: (config: CloudFrontPaginationConfiguration, input: ListPublicKeysCommandInput, ...rest: any[]) => Paginator<ListPublicKeysCommandOutput>;
|
|
@@ -3,4 +3,5 @@ export * from "./ListCloudFrontOriginAccessIdentitiesPaginator";
|
|
|
3
3
|
export * from "./ListDistributionsPaginator";
|
|
4
4
|
export * from "./ListInvalidationsPaginator";
|
|
5
5
|
export * from "./ListKeyValueStoresPaginator";
|
|
6
|
+
export * from "./ListPublicKeysPaginator";
|
|
6
7
|
export * from "./ListStreamingDistributionsPaginator";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListPublicKeysCommandInput,
|
|
4
|
+
ListPublicKeysCommandOutput,
|
|
5
|
+
} from "../commands/ListPublicKeysCommand";
|
|
6
|
+
import { CloudFrontPaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListPublicKeys: (
|
|
8
|
+
config: CloudFrontPaginationConfiguration,
|
|
9
|
+
input: ListPublicKeysCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListPublicKeysCommandOutput>;
|
|
@@ -3,4 +3,5 @@ export * from "./ListCloudFrontOriginAccessIdentitiesPaginator";
|
|
|
3
3
|
export * from "./ListDistributionsPaginator";
|
|
4
4
|
export * from "./ListInvalidationsPaginator";
|
|
5
5
|
export * from "./ListKeyValueStoresPaginator";
|
|
6
|
+
export * from "./ListPublicKeysPaginator";
|
|
6
7
|
export * from "./ListStreamingDistributionsPaginator";
|
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.
|
|
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",
|