@aws-sdk/client-route-53 3.476.0 → 3.478.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/dist-cjs/models/models_0.js +3 -0
  2. package/dist-cjs/pagination/ListCidrBlocksPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListCidrCollectionsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListCidrLocationsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListHealthChecksPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListHostedZonesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListQueryLoggingConfigsPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restXml.js +1839 -2334
  9. package/dist-es/models/models_0.js +3 -0
  10. package/dist-es/pagination/ListCidrBlocksPaginator.js +2 -23
  11. package/dist-es/pagination/ListCidrCollectionsPaginator.js +2 -23
  12. package/dist-es/pagination/ListCidrLocationsPaginator.js +2 -23
  13. package/dist-es/pagination/ListHealthChecksPaginator.js +2 -23
  14. package/dist-es/pagination/ListHostedZonesPaginator.js +2 -23
  15. package/dist-es/pagination/ListQueryLoggingConfigsPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restXml.js +1840 -2335
  17. package/dist-types/commands/AssociateVPCWithHostedZoneCommand.d.ts +1 -1
  18. package/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +1 -1
  19. package/dist-types/commands/CreateHealthCheckCommand.d.ts +2 -2
  20. package/dist-types/commands/CreateHostedZoneCommand.d.ts +2 -2
  21. package/dist-types/commands/CreateVPCAssociationAuthorizationCommand.d.ts +2 -2
  22. package/dist-types/commands/DeleteVPCAssociationAuthorizationCommand.d.ts +1 -1
  23. package/dist-types/commands/DisassociateVPCFromHostedZoneCommand.d.ts +1 -1
  24. package/dist-types/commands/GetHealthCheckCommand.d.ts +1 -1
  25. package/dist-types/commands/GetHostedZoneCommand.d.ts +1 -1
  26. package/dist-types/commands/ListHealthChecksCommand.d.ts +1 -1
  27. package/dist-types/commands/ListHostedZonesByVPCCommand.d.ts +1 -1
  28. package/dist-types/commands/ListResourceRecordSetsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListVPCAssociationAuthorizationsCommand.d.ts +1 -1
  30. package/dist-types/commands/UpdateHealthCheckCommand.d.ts +2 -2
  31. package/dist-types/models/models_0.d.ts +3 -4
  32. package/dist-types/pagination/ListCidrBlocksPaginator.d.ts +1 -1
  33. package/dist-types/pagination/ListCidrCollectionsPaginator.d.ts +1 -1
  34. package/dist-types/pagination/ListCidrLocationsPaginator.d.ts +1 -1
  35. package/dist-types/pagination/ListHealthChecksPaginator.d.ts +1 -1
  36. package/dist-types/pagination/ListHostedZonesPaginator.d.ts +1 -1
  37. package/dist-types/pagination/ListQueryLoggingConfigsPaginator.d.ts +1 -1
  38. package/dist-types/ts3.4/models/models_0.d.ts +3 -0
  39. package/dist-types/ts3.4/pagination/ListCidrBlocksPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListCidrCollectionsPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListCidrLocationsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListHealthChecksPaginator.d.ts +3 -3
  43. package/dist-types/ts3.4/pagination/ListHostedZonesPaginator.d.ts +3 -3
  44. package/dist-types/ts3.4/pagination/ListQueryLoggingConfigsPaginator.d.ts +3 -3
  45. package/package.json +7 -6
@@ -105,6 +105,7 @@ exports.CloudWatchRegion = {
105
105
  ap_southeast_3: "ap-southeast-3",
106
106
  ap_southeast_4: "ap-southeast-4",
107
107
  ca_central_1: "ca-central-1",
108
+ ca_west_1: "ca-west-1",
108
109
  cn_north_1: "cn-north-1",
109
110
  cn_northwest_1: "cn-northwest-1",
110
111
  eu_central_1: "eu-central-1",
@@ -142,6 +143,7 @@ exports.VPCRegion = {
142
143
  ap_southeast_3: "ap-southeast-3",
143
144
  ap_southeast_4: "ap-southeast-4",
144
145
  ca_central_1: "ca-central-1",
146
+ ca_west_1: "ca-west-1",
145
147
  cn_north_1: "cn-north-1",
146
148
  eu_central_1: "eu-central-1",
147
149
  eu_central_2: "eu-central-2",
@@ -324,6 +326,7 @@ exports.ResourceRecordSetRegion = {
324
326
  ap_southeast_3: "ap-southeast-3",
325
327
  ap_southeast_4: "ap-southeast-4",
326
328
  ca_central_1: "ca-central-1",
329
+ ca_west_1: "ca-west-1",
327
330
  cn_north_1: "cn-north-1",
328
331
  cn_northwest_1: "cn-northwest-1",
329
332
  eu_central_1: "eu-central-1",
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCidrBlocks = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCidrBlocksCommand_1 = require("../commands/ListCidrBlocksCommand");
5
6
  const Route53Client_1 = require("../Route53Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCidrBlocksCommand_1.ListCidrBlocksCommand(input), ...args);
8
- };
9
- async function* paginateListCidrBlocks(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof Route53Client_1.Route53Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53 | Route53Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCidrBlocks = paginateListCidrBlocks;
7
+ exports.paginateListCidrBlocks = (0, core_1.createPaginator)(Route53Client_1.Route53Client, ListCidrBlocksCommand_1.ListCidrBlocksCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCidrCollections = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCidrCollectionsCommand_1 = require("../commands/ListCidrCollectionsCommand");
5
6
  const Route53Client_1 = require("../Route53Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCidrCollectionsCommand_1.ListCidrCollectionsCommand(input), ...args);
8
- };
9
- async function* paginateListCidrCollections(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof Route53Client_1.Route53Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53 | Route53Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCidrCollections = paginateListCidrCollections;
7
+ exports.paginateListCidrCollections = (0, core_1.createPaginator)(Route53Client_1.Route53Client, ListCidrCollectionsCommand_1.ListCidrCollectionsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCidrLocations = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListCidrLocationsCommand_1 = require("../commands/ListCidrLocationsCommand");
5
6
  const Route53Client_1 = require("../Route53Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListCidrLocationsCommand_1.ListCidrLocationsCommand(input), ...args);
8
- };
9
- async function* paginateListCidrLocations(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof Route53Client_1.Route53Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53 | Route53Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListCidrLocations = paginateListCidrLocations;
7
+ exports.paginateListCidrLocations = (0, core_1.createPaginator)(Route53Client_1.Route53Client, ListCidrLocationsCommand_1.ListCidrLocationsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListHealthChecks = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListHealthChecksCommand_1 = require("../commands/ListHealthChecksCommand");
5
6
  const Route53Client_1 = require("../Route53Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListHealthChecksCommand_1.ListHealthChecksCommand(input), ...args);
8
- };
9
- async function* paginateListHealthChecks(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof Route53Client_1.Route53Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53 | Route53Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListHealthChecks = paginateListHealthChecks;
7
+ exports.paginateListHealthChecks = (0, core_1.createPaginator)(Route53Client_1.Route53Client, ListHealthChecksCommand_1.ListHealthChecksCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListHostedZones = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListHostedZonesCommand_1 = require("../commands/ListHostedZonesCommand");
5
6
  const Route53Client_1 = require("../Route53Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListHostedZonesCommand_1.ListHostedZonesCommand(input), ...args);
8
- };
9
- async function* paginateListHostedZones(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.Marker = token;
15
- input["MaxItems"] = config.pageSize;
16
- if (config.client instanceof Route53Client_1.Route53Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53 | Route53Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextMarker;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListHostedZones = paginateListHostedZones;
7
+ exports.paginateListHostedZones = (0, core_1.createPaginator)(Route53Client_1.Route53Client, ListHostedZonesCommand_1.ListHostedZonesCommand, "Marker", "NextMarker", "MaxItems");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListQueryLoggingConfigs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListQueryLoggingConfigsCommand_1 = require("../commands/ListQueryLoggingConfigsCommand");
5
6
  const Route53Client_1 = require("../Route53Client");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListQueryLoggingConfigsCommand_1.ListQueryLoggingConfigsCommand(input), ...args);
8
- };
9
- async function* paginateListQueryLoggingConfigs(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.NextToken = token;
15
- input["MaxResults"] = config.pageSize;
16
- if (config.client instanceof Route53Client_1.Route53Client) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected Route53 | Route53Client");
21
- }
22
- yield page;
23
- const prevToken = token;
24
- token = page.NextToken;
25
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
- }
27
- return undefined;
28
- }
29
- exports.paginateListQueryLoggingConfigs = paginateListQueryLoggingConfigs;
7
+ exports.paginateListQueryLoggingConfigs = (0, core_1.createPaginator)(Route53Client_1.Route53Client, ListQueryLoggingConfigsCommand_1.ListQueryLoggingConfigsCommand, "NextToken", "NextToken", "MaxResults");