@aws-sdk/client-cloudfront 3.687.0 → 3.689.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 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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
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: 120 };
28
+ const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
29
29
  const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
30
30
  return checkExceptions(result);
31
31
  };
@@ -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 rename the <code>ETag</code> field to <code>IfMatch</code>,
49
- * leaving the value unchanged. (Set the value of <code>IfMatch</code> to
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
@@ -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><primary ETag>, <staging ETag></code>
4444
+ * <code>&lt;primary ETag&gt;, &lt;staging ETag&gt;</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.687.0",
4
+ "version": "3.689.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",