@aws-sdk/client-cloudfront 3.974.0 → 3.978.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
@@ -9723,6 +9723,160 @@ class VerifyDnsConfigurationCommand extends smithyClient.Command
9723
9723
  .build() {
9724
9724
  }
9725
9725
 
9726
+ const paginateListCloudFrontOriginAccessIdentities = core.createPaginator(CloudFrontClient, ListCloudFrontOriginAccessIdentitiesCommand, "Marker", "CloudFrontOriginAccessIdentityList.NextMarker", "MaxItems");
9727
+
9728
+ const paginateListConnectionFunctions = core.createPaginator(CloudFrontClient, ListConnectionFunctionsCommand, "Marker", "NextMarker", "MaxItems");
9729
+
9730
+ const paginateListConnectionGroups = core.createPaginator(CloudFrontClient, ListConnectionGroupsCommand, "Marker", "NextMarker", "MaxItems");
9731
+
9732
+ const paginateListDistributionsByConnectionFunction = core.createPaginator(CloudFrontClient, ListDistributionsByConnectionFunctionCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9733
+
9734
+ const paginateListDistributionsByConnectionMode = core.createPaginator(CloudFrontClient, ListDistributionsByConnectionModeCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9735
+
9736
+ const paginateListDistributionsByTrustStore = core.createPaginator(CloudFrontClient, ListDistributionsByTrustStoreCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9737
+
9738
+ const paginateListDistributions = core.createPaginator(CloudFrontClient, ListDistributionsCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9739
+
9740
+ const paginateListDistributionTenantsByCustomization = core.createPaginator(CloudFrontClient, ListDistributionTenantsByCustomizationCommand, "Marker", "NextMarker", "MaxItems");
9741
+
9742
+ const paginateListDistributionTenants = core.createPaginator(CloudFrontClient, ListDistributionTenantsCommand, "Marker", "NextMarker", "MaxItems");
9743
+
9744
+ const paginateListDomainConflicts = core.createPaginator(CloudFrontClient, ListDomainConflictsCommand, "Marker", "NextMarker", "MaxItems");
9745
+
9746
+ const paginateListInvalidationsForDistributionTenant = core.createPaginator(CloudFrontClient, ListInvalidationsForDistributionTenantCommand, "Marker", "InvalidationList.NextMarker", "MaxItems");
9747
+
9748
+ const paginateListInvalidations = core.createPaginator(CloudFrontClient, ListInvalidationsCommand, "Marker", "InvalidationList.NextMarker", "MaxItems");
9749
+
9750
+ const paginateListKeyValueStores = core.createPaginator(CloudFrontClient, ListKeyValueStoresCommand, "Marker", "KeyValueStoreList.NextMarker", "MaxItems");
9751
+
9752
+ const paginateListOriginAccessControls = core.createPaginator(CloudFrontClient, ListOriginAccessControlsCommand, "Marker", "OriginAccessControlList.NextMarker", "MaxItems");
9753
+
9754
+ const paginateListPublicKeys = core.createPaginator(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");
9755
+
9756
+ const paginateListStreamingDistributions = core.createPaginator(CloudFrontClient, ListStreamingDistributionsCommand, "Marker", "StreamingDistributionList.NextMarker", "MaxItems");
9757
+
9758
+ const paginateListTrustStores = core.createPaginator(CloudFrontClient, ListTrustStoresCommand, "Marker", "NextMarker", "MaxItems");
9759
+
9760
+ const checkState$3 = async (client, input) => {
9761
+ let reason;
9762
+ try {
9763
+ let result = await client.send(new GetDistributionCommand(input));
9764
+ reason = result;
9765
+ try {
9766
+ const returnComparator = () => {
9767
+ return result.Distribution.Status;
9768
+ };
9769
+ if (returnComparator() === "Deployed") {
9770
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
9771
+ }
9772
+ }
9773
+ catch (e) { }
9774
+ }
9775
+ catch (exception) {
9776
+ reason = exception;
9777
+ }
9778
+ return { state: utilWaiter.WaiterState.RETRY, reason };
9779
+ };
9780
+ const waitForDistributionDeployed = async (params, input) => {
9781
+ const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
9782
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
9783
+ };
9784
+ const waitUntilDistributionDeployed = async (params, input) => {
9785
+ const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
9786
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
9787
+ return utilWaiter.checkExceptions(result);
9788
+ };
9789
+
9790
+ const checkState$2 = async (client, input) => {
9791
+ let reason;
9792
+ try {
9793
+ let result = await client.send(new GetInvalidationCommand(input));
9794
+ reason = result;
9795
+ try {
9796
+ const returnComparator = () => {
9797
+ return result.Invalidation.Status;
9798
+ };
9799
+ if (returnComparator() === "Completed") {
9800
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
9801
+ }
9802
+ }
9803
+ catch (e) { }
9804
+ }
9805
+ catch (exception) {
9806
+ reason = exception;
9807
+ }
9808
+ return { state: utilWaiter.WaiterState.RETRY, reason };
9809
+ };
9810
+ const waitForInvalidationCompleted = async (params, input) => {
9811
+ const serviceDefaults = { minDelay: 20, maxDelay: 600 };
9812
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
9813
+ };
9814
+ const waitUntilInvalidationCompleted = async (params, input) => {
9815
+ const serviceDefaults = { minDelay: 20, maxDelay: 600 };
9816
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
9817
+ return utilWaiter.checkExceptions(result);
9818
+ };
9819
+
9820
+ const checkState$1 = async (client, input) => {
9821
+ let reason;
9822
+ try {
9823
+ let result = await client.send(new GetInvalidationForDistributionTenantCommand(input));
9824
+ reason = result;
9825
+ try {
9826
+ const returnComparator = () => {
9827
+ return result.Invalidation.Status;
9828
+ };
9829
+ if (returnComparator() === "Completed") {
9830
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
9831
+ }
9832
+ }
9833
+ catch (e) { }
9834
+ }
9835
+ catch (exception) {
9836
+ reason = exception;
9837
+ }
9838
+ return { state: utilWaiter.WaiterState.RETRY, reason };
9839
+ };
9840
+ const waitForInvalidationForDistributionTenantCompleted = async (params, input) => {
9841
+ const serviceDefaults = { minDelay: 20, maxDelay: 600 };
9842
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
9843
+ };
9844
+ const waitUntilInvalidationForDistributionTenantCompleted = async (params, input) => {
9845
+ const serviceDefaults = { minDelay: 20, maxDelay: 600 };
9846
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
9847
+ return utilWaiter.checkExceptions(result);
9848
+ };
9849
+
9850
+ const checkState = async (client, input) => {
9851
+ let reason;
9852
+ try {
9853
+ let result = await client.send(new GetStreamingDistributionCommand(input));
9854
+ reason = result;
9855
+ try {
9856
+ const returnComparator = () => {
9857
+ return result.StreamingDistribution.Status;
9858
+ };
9859
+ if (returnComparator() === "Deployed") {
9860
+ return { state: utilWaiter.WaiterState.SUCCESS, reason };
9861
+ }
9862
+ }
9863
+ catch (e) { }
9864
+ }
9865
+ catch (exception) {
9866
+ reason = exception;
9867
+ }
9868
+ return { state: utilWaiter.WaiterState.RETRY, reason };
9869
+ };
9870
+ const waitForStreamingDistributionDeployed = async (params, input) => {
9871
+ const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
9872
+ return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
9873
+ };
9874
+ const waitUntilStreamingDistributionDeployed = async (params, input) => {
9875
+ const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
9876
+ const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
9877
+ return utilWaiter.checkExceptions(result);
9878
+ };
9879
+
9726
9880
  const commands = {
9727
9881
  AssociateAliasCommand,
9728
9882
  AssociateDistributionTenantWebACLCommand,
@@ -9892,163 +10046,34 @@ const commands = {
9892
10046
  UpdateVpcOriginCommand,
9893
10047
  VerifyDnsConfigurationCommand,
9894
10048
  };
9895
- class CloudFront extends CloudFrontClient {
9896
- }
9897
- smithyClient.createAggregatedClient(commands, CloudFront);
9898
-
9899
- const paginateListCloudFrontOriginAccessIdentities = core.createPaginator(CloudFrontClient, ListCloudFrontOriginAccessIdentitiesCommand, "Marker", "CloudFrontOriginAccessIdentityList.NextMarker", "MaxItems");
9900
-
9901
- const paginateListConnectionFunctions = core.createPaginator(CloudFrontClient, ListConnectionFunctionsCommand, "Marker", "NextMarker", "MaxItems");
9902
-
9903
- const paginateListConnectionGroups = core.createPaginator(CloudFrontClient, ListConnectionGroupsCommand, "Marker", "NextMarker", "MaxItems");
9904
-
9905
- const paginateListDistributions = core.createPaginator(CloudFrontClient, ListDistributionsCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9906
-
9907
- const paginateListDistributionsByConnectionFunction = core.createPaginator(CloudFrontClient, ListDistributionsByConnectionFunctionCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9908
-
9909
- const paginateListDistributionsByConnectionMode = core.createPaginator(CloudFrontClient, ListDistributionsByConnectionModeCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9910
-
9911
- const paginateListDistributionsByTrustStore = core.createPaginator(CloudFrontClient, ListDistributionsByTrustStoreCommand, "Marker", "DistributionList.NextMarker", "MaxItems");
9912
-
9913
- const paginateListDistributionTenants = core.createPaginator(CloudFrontClient, ListDistributionTenantsCommand, "Marker", "NextMarker", "MaxItems");
9914
-
9915
- const paginateListDistributionTenantsByCustomization = core.createPaginator(CloudFrontClient, ListDistributionTenantsByCustomizationCommand, "Marker", "NextMarker", "MaxItems");
9916
-
9917
- const paginateListDomainConflicts = core.createPaginator(CloudFrontClient, ListDomainConflictsCommand, "Marker", "NextMarker", "MaxItems");
9918
-
9919
- const paginateListInvalidations = core.createPaginator(CloudFrontClient, ListInvalidationsCommand, "Marker", "InvalidationList.NextMarker", "MaxItems");
9920
-
9921
- const paginateListInvalidationsForDistributionTenant = core.createPaginator(CloudFrontClient, ListInvalidationsForDistributionTenantCommand, "Marker", "InvalidationList.NextMarker", "MaxItems");
9922
-
9923
- const paginateListKeyValueStores = core.createPaginator(CloudFrontClient, ListKeyValueStoresCommand, "Marker", "KeyValueStoreList.NextMarker", "MaxItems");
9924
-
9925
- const paginateListOriginAccessControls = core.createPaginator(CloudFrontClient, ListOriginAccessControlsCommand, "Marker", "OriginAccessControlList.NextMarker", "MaxItems");
9926
-
9927
- const paginateListPublicKeys = core.createPaginator(CloudFrontClient, ListPublicKeysCommand, "Marker", "PublicKeyList.NextMarker", "MaxItems");
9928
-
9929
- const paginateListStreamingDistributions = core.createPaginator(CloudFrontClient, ListStreamingDistributionsCommand, "Marker", "StreamingDistributionList.NextMarker", "MaxItems");
9930
-
9931
- const paginateListTrustStores = core.createPaginator(CloudFrontClient, ListTrustStoresCommand, "Marker", "NextMarker", "MaxItems");
9932
-
9933
- const checkState$3 = async (client, input) => {
9934
- let reason;
9935
- try {
9936
- let result = await client.send(new GetDistributionCommand(input));
9937
- reason = result;
9938
- try {
9939
- const returnComparator = () => {
9940
- return result.Distribution.Status;
9941
- };
9942
- if (returnComparator() === "Deployed") {
9943
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
9944
- }
9945
- }
9946
- catch (e) { }
9947
- }
9948
- catch (exception) {
9949
- reason = exception;
9950
- }
9951
- return { state: utilWaiter.WaiterState.RETRY, reason };
9952
- };
9953
- const waitForDistributionDeployed = async (params, input) => {
9954
- const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
9955
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
10049
+ const paginators = {
10050
+ paginateListCloudFrontOriginAccessIdentities,
10051
+ paginateListConnectionFunctions,
10052
+ paginateListConnectionGroups,
10053
+ paginateListDistributions,
10054
+ paginateListDistributionsByConnectionFunction,
10055
+ paginateListDistributionsByConnectionMode,
10056
+ paginateListDistributionsByTrustStore,
10057
+ paginateListDistributionTenants,
10058
+ paginateListDistributionTenantsByCustomization,
10059
+ paginateListDomainConflicts,
10060
+ paginateListInvalidations,
10061
+ paginateListInvalidationsForDistributionTenant,
10062
+ paginateListKeyValueStores,
10063
+ paginateListOriginAccessControls,
10064
+ paginateListPublicKeys,
10065
+ paginateListStreamingDistributions,
10066
+ paginateListTrustStores,
9956
10067
  };
9957
- const waitUntilDistributionDeployed = async (params, input) => {
9958
- const serviceDefaults = { minDelay: 60, maxDelay: 2100 };
9959
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
9960
- return utilWaiter.checkExceptions(result);
9961
- };
9962
-
9963
- const checkState$2 = async (client, input) => {
9964
- let reason;
9965
- try {
9966
- let result = await client.send(new GetInvalidationCommand(input));
9967
- reason = result;
9968
- try {
9969
- const returnComparator = () => {
9970
- return result.Invalidation.Status;
9971
- };
9972
- if (returnComparator() === "Completed") {
9973
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
9974
- }
9975
- }
9976
- catch (e) { }
9977
- }
9978
- catch (exception) {
9979
- reason = exception;
9980
- }
9981
- return { state: utilWaiter.WaiterState.RETRY, reason };
9982
- };
9983
- const waitForInvalidationCompleted = async (params, input) => {
9984
- const serviceDefaults = { minDelay: 20, maxDelay: 600 };
9985
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
9986
- };
9987
- const waitUntilInvalidationCompleted = async (params, input) => {
9988
- const serviceDefaults = { minDelay: 20, maxDelay: 600 };
9989
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
9990
- return utilWaiter.checkExceptions(result);
9991
- };
9992
-
9993
- const checkState$1 = async (client, input) => {
9994
- let reason;
9995
- try {
9996
- let result = await client.send(new GetInvalidationForDistributionTenantCommand(input));
9997
- reason = result;
9998
- try {
9999
- const returnComparator = () => {
10000
- return result.Invalidation.Status;
10001
- };
10002
- if (returnComparator() === "Completed") {
10003
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
10004
- }
10005
- }
10006
- catch (e) { }
10007
- }
10008
- catch (exception) {
10009
- reason = exception;
10010
- }
10011
- return { state: utilWaiter.WaiterState.RETRY, reason };
10012
- };
10013
- const waitForInvalidationForDistributionTenantCompleted = async (params, input) => {
10014
- const serviceDefaults = { minDelay: 20, maxDelay: 600 };
10015
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
10016
- };
10017
- const waitUntilInvalidationForDistributionTenantCompleted = async (params, input) => {
10018
- const serviceDefaults = { minDelay: 20, maxDelay: 600 };
10019
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
10020
- return utilWaiter.checkExceptions(result);
10021
- };
10022
-
10023
- const checkState = async (client, input) => {
10024
- let reason;
10025
- try {
10026
- let result = await client.send(new GetStreamingDistributionCommand(input));
10027
- reason = result;
10028
- try {
10029
- const returnComparator = () => {
10030
- return result.StreamingDistribution.Status;
10031
- };
10032
- if (returnComparator() === "Deployed") {
10033
- return { state: utilWaiter.WaiterState.SUCCESS, reason };
10034
- }
10035
- }
10036
- catch (e) { }
10037
- }
10038
- catch (exception) {
10039
- reason = exception;
10040
- }
10041
- return { state: utilWaiter.WaiterState.RETRY, reason };
10042
- };
10043
- const waitForStreamingDistributionDeployed = async (params, input) => {
10044
- const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
10045
- return utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
10046
- };
10047
- const waitUntilStreamingDistributionDeployed = async (params, input) => {
10048
- const serviceDefaults = { minDelay: 60, maxDelay: 1500 };
10049
- const result = await utilWaiter.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
10050
- return utilWaiter.checkExceptions(result);
10068
+ const waiters = {
10069
+ waitUntilDistributionDeployed,
10070
+ waitUntilInvalidationCompleted,
10071
+ waitUntilInvalidationForDistributionTenantCompleted,
10072
+ waitUntilStreamingDistributionDeployed,
10051
10073
  };
10074
+ class CloudFront extends CloudFrontClient {
10075
+ }
10076
+ smithyClient.createAggregatedClient(commands, CloudFront, { paginators, waiters });
10052
10077
 
10053
10078
  const ResponseHeadersPolicyAccessControlAllowMethodsValues = {
10054
10079
  ALL: "ALL",
@@ -167,6 +167,27 @@ import { UpdateStreamingDistributionCommand, } from "./commands/UpdateStreamingD
167
167
  import { UpdateTrustStoreCommand, } from "./commands/UpdateTrustStoreCommand";
168
168
  import { UpdateVpcOriginCommand, } from "./commands/UpdateVpcOriginCommand";
169
169
  import { VerifyDnsConfigurationCommand, } from "./commands/VerifyDnsConfigurationCommand";
170
+ import { paginateListCloudFrontOriginAccessIdentities, } from "./pagination/ListCloudFrontOriginAccessIdentitiesPaginator";
171
+ import { paginateListConnectionFunctions } from "./pagination/ListConnectionFunctionsPaginator";
172
+ import { paginateListConnectionGroups } from "./pagination/ListConnectionGroupsPaginator";
173
+ import { paginateListDistributionsByConnectionFunction, } from "./pagination/ListDistributionsByConnectionFunctionPaginator";
174
+ import { paginateListDistributionsByConnectionMode } from "./pagination/ListDistributionsByConnectionModePaginator";
175
+ import { paginateListDistributionsByTrustStore } from "./pagination/ListDistributionsByTrustStorePaginator";
176
+ import { paginateListDistributions } from "./pagination/ListDistributionsPaginator";
177
+ import { paginateListDistributionTenantsByCustomization, } from "./pagination/ListDistributionTenantsByCustomizationPaginator";
178
+ import { paginateListDistributionTenants } from "./pagination/ListDistributionTenantsPaginator";
179
+ import { paginateListDomainConflicts } from "./pagination/ListDomainConflictsPaginator";
180
+ import { paginateListInvalidationsForDistributionTenant, } from "./pagination/ListInvalidationsForDistributionTenantPaginator";
181
+ import { paginateListInvalidations } from "./pagination/ListInvalidationsPaginator";
182
+ import { paginateListKeyValueStores } from "./pagination/ListKeyValueStoresPaginator";
183
+ import { paginateListOriginAccessControls } from "./pagination/ListOriginAccessControlsPaginator";
184
+ import { paginateListPublicKeys } from "./pagination/ListPublicKeysPaginator";
185
+ import { paginateListStreamingDistributions } from "./pagination/ListStreamingDistributionsPaginator";
186
+ import { paginateListTrustStores } from "./pagination/ListTrustStoresPaginator";
187
+ import { waitUntilDistributionDeployed } from "./waiters/waitForDistributionDeployed";
188
+ import { waitUntilInvalidationCompleted } from "./waiters/waitForInvalidationCompleted";
189
+ import { waitUntilInvalidationForDistributionTenantCompleted, } from "./waiters/waitForInvalidationForDistributionTenantCompleted";
190
+ import { waitUntilStreamingDistributionDeployed } from "./waiters/waitForStreamingDistributionDeployed";
170
191
  const commands = {
171
192
  AssociateAliasCommand,
172
193
  AssociateDistributionTenantWebACLCommand,
@@ -336,6 +357,31 @@ const commands = {
336
357
  UpdateVpcOriginCommand,
337
358
  VerifyDnsConfigurationCommand,
338
359
  };
360
+ const paginators = {
361
+ paginateListCloudFrontOriginAccessIdentities,
362
+ paginateListConnectionFunctions,
363
+ paginateListConnectionGroups,
364
+ paginateListDistributions,
365
+ paginateListDistributionsByConnectionFunction,
366
+ paginateListDistributionsByConnectionMode,
367
+ paginateListDistributionsByTrustStore,
368
+ paginateListDistributionTenants,
369
+ paginateListDistributionTenantsByCustomization,
370
+ paginateListDomainConflicts,
371
+ paginateListInvalidations,
372
+ paginateListInvalidationsForDistributionTenant,
373
+ paginateListKeyValueStores,
374
+ paginateListOriginAccessControls,
375
+ paginateListPublicKeys,
376
+ paginateListStreamingDistributions,
377
+ paginateListTrustStores,
378
+ };
379
+ const waiters = {
380
+ waitUntilDistributionDeployed,
381
+ waitUntilInvalidationCompleted,
382
+ waitUntilInvalidationForDistributionTenantCompleted,
383
+ waitUntilStreamingDistributionDeployed,
384
+ };
339
385
  export class CloudFront extends CloudFrontClient {
340
386
  }
341
- createAggregatedClient(commands, CloudFront);
387
+ createAggregatedClient(commands, CloudFront, { paginators, waiters });
@@ -1,4 +1,5 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator, WaiterConfiguration } from "@smithy/types";
2
+ import type { WaiterResult } from "@smithy/util-waiter";
2
3
  import { CloudFrontClient } from "./CloudFrontClient";
3
4
  import { AssociateAliasCommandInput, AssociateAliasCommandOutput } from "./commands/AssociateAliasCommand";
4
5
  import { AssociateDistributionTenantWebACLCommandInput, AssociateDistributionTenantWebACLCommandOutput } from "./commands/AssociateDistributionTenantWebACLCommand";
@@ -1196,6 +1197,149 @@ export interface CloudFront {
1196
1197
  verifyDnsConfiguration(args: VerifyDnsConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<VerifyDnsConfigurationCommandOutput>;
1197
1198
  verifyDnsConfiguration(args: VerifyDnsConfigurationCommandInput, cb: (err: any, data?: VerifyDnsConfigurationCommandOutput) => void): void;
1198
1199
  verifyDnsConfiguration(args: VerifyDnsConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyDnsConfigurationCommandOutput) => void): void;
1200
+ /**
1201
+ * @see {@link ListCloudFrontOriginAccessIdentitiesCommand}
1202
+ * @param args - command input.
1203
+ * @param paginationConfig - optional pagination config.
1204
+ * @returns AsyncIterable of {@link ListCloudFrontOriginAccessIdentitiesCommandOutput}.
1205
+ */
1206
+ paginateListCloudFrontOriginAccessIdentities(args?: ListCloudFrontOriginAccessIdentitiesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListCloudFrontOriginAccessIdentitiesCommandOutput>;
1207
+ /**
1208
+ * @see {@link ListConnectionFunctionsCommand}
1209
+ * @param args - command input.
1210
+ * @param paginationConfig - optional pagination config.
1211
+ * @returns AsyncIterable of {@link ListConnectionFunctionsCommandOutput}.
1212
+ */
1213
+ paginateListConnectionFunctions(args?: ListConnectionFunctionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListConnectionFunctionsCommandOutput>;
1214
+ /**
1215
+ * @see {@link ListConnectionGroupsCommand}
1216
+ * @param args - command input.
1217
+ * @param paginationConfig - optional pagination config.
1218
+ * @returns AsyncIterable of {@link ListConnectionGroupsCommandOutput}.
1219
+ */
1220
+ paginateListConnectionGroups(args?: ListConnectionGroupsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListConnectionGroupsCommandOutput>;
1221
+ /**
1222
+ * @see {@link ListDistributionsCommand}
1223
+ * @param args - command input.
1224
+ * @param paginationConfig - optional pagination config.
1225
+ * @returns AsyncIterable of {@link ListDistributionsCommandOutput}.
1226
+ */
1227
+ paginateListDistributions(args?: ListDistributionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDistributionsCommandOutput>;
1228
+ /**
1229
+ * @see {@link ListDistributionsByConnectionFunctionCommand}
1230
+ * @param args - command input.
1231
+ * @param paginationConfig - optional pagination config.
1232
+ * @returns AsyncIterable of {@link ListDistributionsByConnectionFunctionCommandOutput}.
1233
+ */
1234
+ paginateListDistributionsByConnectionFunction(args: ListDistributionsByConnectionFunctionCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDistributionsByConnectionFunctionCommandOutput>;
1235
+ /**
1236
+ * @see {@link ListDistributionsByConnectionModeCommand}
1237
+ * @param args - command input.
1238
+ * @param paginationConfig - optional pagination config.
1239
+ * @returns AsyncIterable of {@link ListDistributionsByConnectionModeCommandOutput}.
1240
+ */
1241
+ paginateListDistributionsByConnectionMode(args: ListDistributionsByConnectionModeCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDistributionsByConnectionModeCommandOutput>;
1242
+ /**
1243
+ * @see {@link ListDistributionsByTrustStoreCommand}
1244
+ * @param args - command input.
1245
+ * @param paginationConfig - optional pagination config.
1246
+ * @returns AsyncIterable of {@link ListDistributionsByTrustStoreCommandOutput}.
1247
+ */
1248
+ paginateListDistributionsByTrustStore(args: ListDistributionsByTrustStoreCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDistributionsByTrustStoreCommandOutput>;
1249
+ /**
1250
+ * @see {@link ListDistributionTenantsCommand}
1251
+ * @param args - command input.
1252
+ * @param paginationConfig - optional pagination config.
1253
+ * @returns AsyncIterable of {@link ListDistributionTenantsCommandOutput}.
1254
+ */
1255
+ paginateListDistributionTenants(args?: ListDistributionTenantsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDistributionTenantsCommandOutput>;
1256
+ /**
1257
+ * @see {@link ListDistributionTenantsByCustomizationCommand}
1258
+ * @param args - command input.
1259
+ * @param paginationConfig - optional pagination config.
1260
+ * @returns AsyncIterable of {@link ListDistributionTenantsByCustomizationCommandOutput}.
1261
+ */
1262
+ paginateListDistributionTenantsByCustomization(args?: ListDistributionTenantsByCustomizationCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDistributionTenantsByCustomizationCommandOutput>;
1263
+ /**
1264
+ * @see {@link ListDomainConflictsCommand}
1265
+ * @param args - command input.
1266
+ * @param paginationConfig - optional pagination config.
1267
+ * @returns AsyncIterable of {@link ListDomainConflictsCommandOutput}.
1268
+ */
1269
+ paginateListDomainConflicts(args: ListDomainConflictsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListDomainConflictsCommandOutput>;
1270
+ /**
1271
+ * @see {@link ListInvalidationsCommand}
1272
+ * @param args - command input.
1273
+ * @param paginationConfig - optional pagination config.
1274
+ * @returns AsyncIterable of {@link ListInvalidationsCommandOutput}.
1275
+ */
1276
+ paginateListInvalidations(args: ListInvalidationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInvalidationsCommandOutput>;
1277
+ /**
1278
+ * @see {@link ListInvalidationsForDistributionTenantCommand}
1279
+ * @param args - command input.
1280
+ * @param paginationConfig - optional pagination config.
1281
+ * @returns AsyncIterable of {@link ListInvalidationsForDistributionTenantCommandOutput}.
1282
+ */
1283
+ paginateListInvalidationsForDistributionTenant(args: ListInvalidationsForDistributionTenantCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInvalidationsForDistributionTenantCommandOutput>;
1284
+ /**
1285
+ * @see {@link ListKeyValueStoresCommand}
1286
+ * @param args - command input.
1287
+ * @param paginationConfig - optional pagination config.
1288
+ * @returns AsyncIterable of {@link ListKeyValueStoresCommandOutput}.
1289
+ */
1290
+ paginateListKeyValueStores(args?: ListKeyValueStoresCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListKeyValueStoresCommandOutput>;
1291
+ /**
1292
+ * @see {@link ListOriginAccessControlsCommand}
1293
+ * @param args - command input.
1294
+ * @param paginationConfig - optional pagination config.
1295
+ * @returns AsyncIterable of {@link ListOriginAccessControlsCommandOutput}.
1296
+ */
1297
+ paginateListOriginAccessControls(args?: ListOriginAccessControlsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListOriginAccessControlsCommandOutput>;
1298
+ /**
1299
+ * @see {@link ListPublicKeysCommand}
1300
+ * @param args - command input.
1301
+ * @param paginationConfig - optional pagination config.
1302
+ * @returns AsyncIterable of {@link ListPublicKeysCommandOutput}.
1303
+ */
1304
+ paginateListPublicKeys(args?: ListPublicKeysCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListPublicKeysCommandOutput>;
1305
+ /**
1306
+ * @see {@link ListStreamingDistributionsCommand}
1307
+ * @param args - command input.
1308
+ * @param paginationConfig - optional pagination config.
1309
+ * @returns AsyncIterable of {@link ListStreamingDistributionsCommandOutput}.
1310
+ */
1311
+ paginateListStreamingDistributions(args?: ListStreamingDistributionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListStreamingDistributionsCommandOutput>;
1312
+ /**
1313
+ * @see {@link ListTrustStoresCommand}
1314
+ * @param args - command input.
1315
+ * @param paginationConfig - optional pagination config.
1316
+ * @returns AsyncIterable of {@link ListTrustStoresCommandOutput}.
1317
+ */
1318
+ paginateListTrustStores(args?: ListTrustStoresCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTrustStoresCommandOutput>;
1319
+ /**
1320
+ * @see {@link GetDistributionCommand}
1321
+ * @param args - command input.
1322
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1323
+ */
1324
+ waitUntilDistributionDeployed(args: GetDistributionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudFront>, "client">): Promise<WaiterResult>;
1325
+ /**
1326
+ * @see {@link GetInvalidationCommand}
1327
+ * @param args - command input.
1328
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1329
+ */
1330
+ waitUntilInvalidationCompleted(args: GetInvalidationCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudFront>, "client">): Promise<WaiterResult>;
1331
+ /**
1332
+ * @see {@link GetInvalidationForDistributionTenantCommand}
1333
+ * @param args - command input.
1334
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1335
+ */
1336
+ waitUntilInvalidationForDistributionTenantCompleted(args: GetInvalidationForDistributionTenantCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudFront>, "client">): Promise<WaiterResult>;
1337
+ /**
1338
+ * @see {@link GetStreamingDistributionCommand}
1339
+ * @param args - command input.
1340
+ * @param waiterConfig - `maxWaitTime` in seconds or waiter config object.
1341
+ */
1342
+ waitUntilStreamingDistributionDeployed(args: GetStreamingDistributionCommandInput, waiterConfig: number | Omit<WaiterConfiguration<CloudFront>, "client">): Promise<WaiterResult>;
1199
1343
  }
1200
1344
  /**
1201
1345
  * <fullname>Amazon CloudFront</fullname> <p>This is the <i>Amazon CloudFront API Reference</i>. This guide is for developers who need detailed information about CloudFront API actions, data types, and errors. For detailed information about CloudFront features, see the <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html">Amazon CloudFront Developer Guide</a>.</p>
@@ -1,4 +1,10 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ WaiterConfiguration,
6
+ } from "@smithy/types";
7
+ import { WaiterResult } from "@smithy/util-waiter";
2
8
  import { CloudFrontClient } from "./CloudFrontClient";
3
9
  import {
4
10
  AssociateAliasCommandInput,
@@ -3022,6 +3028,161 @@ export interface CloudFront {
3022
3028
  options: __HttpHandlerOptions,
3023
3029
  cb: (err: any, data?: VerifyDnsConfigurationCommandOutput) => void
3024
3030
  ): void;
3031
+ paginateListCloudFrontOriginAccessIdentities(
3032
+ args?: ListCloudFrontOriginAccessIdentitiesCommandInput,
3033
+ paginationConfig?: Pick<
3034
+ PaginationConfiguration,
3035
+ Exclude<keyof PaginationConfiguration, "client">
3036
+ >
3037
+ ): Paginator<ListCloudFrontOriginAccessIdentitiesCommandOutput>;
3038
+ paginateListConnectionFunctions(
3039
+ args?: ListConnectionFunctionsCommandInput,
3040
+ paginationConfig?: Pick<
3041
+ PaginationConfiguration,
3042
+ Exclude<keyof PaginationConfiguration, "client">
3043
+ >
3044
+ ): Paginator<ListConnectionFunctionsCommandOutput>;
3045
+ paginateListConnectionGroups(
3046
+ args?: ListConnectionGroupsCommandInput,
3047
+ paginationConfig?: Pick<
3048
+ PaginationConfiguration,
3049
+ Exclude<keyof PaginationConfiguration, "client">
3050
+ >
3051
+ ): Paginator<ListConnectionGroupsCommandOutput>;
3052
+ paginateListDistributions(
3053
+ args?: ListDistributionsCommandInput,
3054
+ paginationConfig?: Pick<
3055
+ PaginationConfiguration,
3056
+ Exclude<keyof PaginationConfiguration, "client">
3057
+ >
3058
+ ): Paginator<ListDistributionsCommandOutput>;
3059
+ paginateListDistributionsByConnectionFunction(
3060
+ args: ListDistributionsByConnectionFunctionCommandInput,
3061
+ paginationConfig?: Pick<
3062
+ PaginationConfiguration,
3063
+ Exclude<keyof PaginationConfiguration, "client">
3064
+ >
3065
+ ): Paginator<ListDistributionsByConnectionFunctionCommandOutput>;
3066
+ paginateListDistributionsByConnectionMode(
3067
+ args: ListDistributionsByConnectionModeCommandInput,
3068
+ paginationConfig?: Pick<
3069
+ PaginationConfiguration,
3070
+ Exclude<keyof PaginationConfiguration, "client">
3071
+ >
3072
+ ): Paginator<ListDistributionsByConnectionModeCommandOutput>;
3073
+ paginateListDistributionsByTrustStore(
3074
+ args: ListDistributionsByTrustStoreCommandInput,
3075
+ paginationConfig?: Pick<
3076
+ PaginationConfiguration,
3077
+ Exclude<keyof PaginationConfiguration, "client">
3078
+ >
3079
+ ): Paginator<ListDistributionsByTrustStoreCommandOutput>;
3080
+ paginateListDistributionTenants(
3081
+ args?: ListDistributionTenantsCommandInput,
3082
+ paginationConfig?: Pick<
3083
+ PaginationConfiguration,
3084
+ Exclude<keyof PaginationConfiguration, "client">
3085
+ >
3086
+ ): Paginator<ListDistributionTenantsCommandOutput>;
3087
+ paginateListDistributionTenantsByCustomization(
3088
+ args?: ListDistributionTenantsByCustomizationCommandInput,
3089
+ paginationConfig?: Pick<
3090
+ PaginationConfiguration,
3091
+ Exclude<keyof PaginationConfiguration, "client">
3092
+ >
3093
+ ): Paginator<ListDistributionTenantsByCustomizationCommandOutput>;
3094
+ paginateListDomainConflicts(
3095
+ args: ListDomainConflictsCommandInput,
3096
+ paginationConfig?: Pick<
3097
+ PaginationConfiguration,
3098
+ Exclude<keyof PaginationConfiguration, "client">
3099
+ >
3100
+ ): Paginator<ListDomainConflictsCommandOutput>;
3101
+ paginateListInvalidations(
3102
+ args: ListInvalidationsCommandInput,
3103
+ paginationConfig?: Pick<
3104
+ PaginationConfiguration,
3105
+ Exclude<keyof PaginationConfiguration, "client">
3106
+ >
3107
+ ): Paginator<ListInvalidationsCommandOutput>;
3108
+ paginateListInvalidationsForDistributionTenant(
3109
+ args: ListInvalidationsForDistributionTenantCommandInput,
3110
+ paginationConfig?: Pick<
3111
+ PaginationConfiguration,
3112
+ Exclude<keyof PaginationConfiguration, "client">
3113
+ >
3114
+ ): Paginator<ListInvalidationsForDistributionTenantCommandOutput>;
3115
+ paginateListKeyValueStores(
3116
+ args?: ListKeyValueStoresCommandInput,
3117
+ paginationConfig?: Pick<
3118
+ PaginationConfiguration,
3119
+ Exclude<keyof PaginationConfiguration, "client">
3120
+ >
3121
+ ): Paginator<ListKeyValueStoresCommandOutput>;
3122
+ paginateListOriginAccessControls(
3123
+ args?: ListOriginAccessControlsCommandInput,
3124
+ paginationConfig?: Pick<
3125
+ PaginationConfiguration,
3126
+ Exclude<keyof PaginationConfiguration, "client">
3127
+ >
3128
+ ): Paginator<ListOriginAccessControlsCommandOutput>;
3129
+ paginateListPublicKeys(
3130
+ args?: ListPublicKeysCommandInput,
3131
+ paginationConfig?: Pick<
3132
+ PaginationConfiguration,
3133
+ Exclude<keyof PaginationConfiguration, "client">
3134
+ >
3135
+ ): Paginator<ListPublicKeysCommandOutput>;
3136
+ paginateListStreamingDistributions(
3137
+ args?: ListStreamingDistributionsCommandInput,
3138
+ paginationConfig?: Pick<
3139
+ PaginationConfiguration,
3140
+ Exclude<keyof PaginationConfiguration, "client">
3141
+ >
3142
+ ): Paginator<ListStreamingDistributionsCommandOutput>;
3143
+ paginateListTrustStores(
3144
+ args?: ListTrustStoresCommandInput,
3145
+ paginationConfig?: Pick<
3146
+ PaginationConfiguration,
3147
+ Exclude<keyof PaginationConfiguration, "client">
3148
+ >
3149
+ ): Paginator<ListTrustStoresCommandOutput>;
3150
+ waitUntilDistributionDeployed(
3151
+ args: GetDistributionCommandInput,
3152
+ waiterConfig:
3153
+ | number
3154
+ | Pick<
3155
+ WaiterConfiguration<CloudFront>,
3156
+ Exclude<keyof WaiterConfiguration<CloudFront>, "client">
3157
+ >
3158
+ ): Promise<WaiterResult>;
3159
+ waitUntilInvalidationCompleted(
3160
+ args: GetInvalidationCommandInput,
3161
+ waiterConfig:
3162
+ | number
3163
+ | Pick<
3164
+ WaiterConfiguration<CloudFront>,
3165
+ Exclude<keyof WaiterConfiguration<CloudFront>, "client">
3166
+ >
3167
+ ): Promise<WaiterResult>;
3168
+ waitUntilInvalidationForDistributionTenantCompleted(
3169
+ args: GetInvalidationForDistributionTenantCommandInput,
3170
+ waiterConfig:
3171
+ | number
3172
+ | Pick<
3173
+ WaiterConfiguration<CloudFront>,
3174
+ Exclude<keyof WaiterConfiguration<CloudFront>, "client">
3175
+ >
3176
+ ): Promise<WaiterResult>;
3177
+ waitUntilStreamingDistributionDeployed(
3178
+ args: GetStreamingDistributionCommandInput,
3179
+ waiterConfig:
3180
+ | number
3181
+ | Pick<
3182
+ WaiterConfiguration<CloudFront>,
3183
+ Exclude<keyof WaiterConfiguration<CloudFront>, "client">
3184
+ >
3185
+ ): Promise<WaiterResult>;
3025
3186
  }
3026
3187
  export declare class CloudFront
3027
3188
  extends CloudFrontClient
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.974.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudfront",
@@ -23,38 +23,38 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.0",
27
- "@aws-sdk/credential-provider-node": "^3.972.1",
28
- "@aws-sdk/middleware-host-header": "^3.972.1",
29
- "@aws-sdk/middleware-logger": "^3.972.1",
30
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
31
- "@aws-sdk/middleware-user-agent": "^3.972.1",
32
- "@aws-sdk/region-config-resolver": "^3.972.1",
33
- "@aws-sdk/types": "^3.973.0",
26
+ "@aws-sdk/core": "^3.973.4",
27
+ "@aws-sdk/credential-provider-node": "^3.972.2",
28
+ "@aws-sdk/middleware-host-header": "^3.972.2",
29
+ "@aws-sdk/middleware-logger": "^3.972.2",
30
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
32
+ "@aws-sdk/region-config-resolver": "^3.972.2",
33
+ "@aws-sdk/types": "^3.973.1",
34
34
  "@aws-sdk/util-endpoints": "3.972.0",
35
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
36
- "@aws-sdk/util-user-agent-node": "^3.972.1",
35
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.21.0",
38
+ "@smithy/core": "^3.22.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.10",
44
- "@smithy/middleware-retry": "^4.4.26",
43
+ "@smithy/middleware-endpoint": "^4.4.12",
44
+ "@smithy/middleware-retry": "^4.4.29",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
48
  "@smithy/node-http-handler": "^4.4.8",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.10.11",
50
+ "@smithy/smithy-client": "^4.11.1",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.25",
57
- "@smithy/util-defaults-mode-node": "^4.2.28",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
57
+ "@smithy/util-defaults-mode-node": "^4.2.31",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",