@aws-sdk/client-s3outposts 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.
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEndpoints = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListEndpointsCommand_1 = require("../commands/ListEndpointsCommand");
5
6
  const S3OutpostsClient_1 = require("../S3OutpostsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEndpointsCommand_1.ListEndpointsCommand(input), ...args);
8
- };
9
- async function* paginateListEndpoints(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 S3OutpostsClient_1.S3OutpostsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
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.paginateListEndpoints = paginateListEndpoints;
7
+ exports.paginateListEndpoints = (0, core_1.createPaginator)(S3OutpostsClient_1.S3OutpostsClient, ListEndpointsCommand_1.ListEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListOutpostsWithS3 = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListOutpostsWithS3Command_1 = require("../commands/ListOutpostsWithS3Command");
5
6
  const S3OutpostsClient_1 = require("../S3OutpostsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListOutpostsWithS3Command_1.ListOutpostsWithS3Command(input), ...args);
8
- };
9
- async function* paginateListOutpostsWithS3(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 S3OutpostsClient_1.S3OutpostsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
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.paginateListOutpostsWithS3 = paginateListOutpostsWithS3;
7
+ exports.paginateListOutpostsWithS3 = (0, core_1.createPaginator)(S3OutpostsClient_1.S3OutpostsClient, ListOutpostsWithS3Command_1.ListOutpostsWithS3Command, "NextToken", "NextToken", "MaxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSharedEndpoints = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListSharedEndpointsCommand_1 = require("../commands/ListSharedEndpointsCommand");
5
6
  const S3OutpostsClient_1 = require("../S3OutpostsClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSharedEndpointsCommand_1.ListSharedEndpointsCommand(input), ...args);
8
- };
9
- async function* paginateListSharedEndpoints(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 S3OutpostsClient_1.S3OutpostsClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
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.paginateListSharedEndpoints = paginateListSharedEndpoints;
7
+ exports.paginateListSharedEndpoints = (0, core_1.createPaginator)(S3OutpostsClient_1.S3OutpostsClient, ListSharedEndpointsCommand_1.ListSharedEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_ListSharedEndpointsCommand = exports.de_ListOutpostsWithS3Command = exports.de_ListEndpointsCommand = exports.de_DeleteEndpointCommand = exports.de_CreateEndpointCommand = exports.se_ListSharedEndpointsCommand = exports.se_ListOutpostsWithS3Command = exports.se_ListEndpointsCommand = exports.se_DeleteEndpointCommand = exports.se_CreateEndpointCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const S3OutpostsServiceException_1 = require("../models/S3OutpostsServiceException");
8
8
  const se_CreateEndpointCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {
11
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/CreateEndpoint";
13
+ b.bp("/S3Outposts/CreateEndpoint");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  AccessType: [],
@@ -19,100 +19,61 @@ const se_CreateEndpointCommand = async (input, context) => {
19
19
  SecurityGroupId: [],
20
20
  SubnetId: [],
21
21
  }));
22
- return new protocol_http_1.HttpRequest({
23
- protocol,
24
- hostname,
25
- port,
26
- method: "POST",
27
- headers,
28
- path: resolvedPath,
29
- body,
30
- });
22
+ b.m("POST").h(headers).b(body);
23
+ return b.build();
31
24
  };
32
25
  exports.se_CreateEndpointCommand = se_CreateEndpointCommand;
33
26
  const se_DeleteEndpointCommand = async (input, context) => {
34
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
+ const b = (0, core_1.requestBuilder)(input, context);
35
28
  const headers = {};
36
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/DeleteEndpoint";
29
+ b.bp("/S3Outposts/DeleteEndpoint");
37
30
  const query = (0, smithy_client_1.map)({
38
- endpointId: [, (0, smithy_client_1.expectNonNull)(input.EndpointId, `EndpointId`)],
39
- outpostId: [, (0, smithy_client_1.expectNonNull)(input.OutpostId, `OutpostId`)],
31
+ [_eI]: [, (0, smithy_client_1.expectNonNull)(input[_EI], `EndpointId`)],
32
+ [_oI]: [, (0, smithy_client_1.expectNonNull)(input[_OI], `OutpostId`)],
40
33
  });
41
34
  let body;
42
- return new protocol_http_1.HttpRequest({
43
- protocol,
44
- hostname,
45
- port,
46
- method: "DELETE",
47
- headers,
48
- path: resolvedPath,
49
- query,
50
- body,
51
- });
35
+ b.m("DELETE").h(headers).q(query).b(body);
36
+ return b.build();
52
37
  };
53
38
  exports.se_DeleteEndpointCommand = se_DeleteEndpointCommand;
54
39
  const se_ListEndpointsCommand = async (input, context) => {
55
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
40
+ const b = (0, core_1.requestBuilder)(input, context);
56
41
  const headers = {};
57
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListEndpoints";
42
+ b.bp("/S3Outposts/ListEndpoints");
58
43
  const query = (0, smithy_client_1.map)({
59
- nextToken: [, input.NextToken],
60
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
44
+ [_nT]: [, input[_NT]],
45
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
61
46
  });
62
47
  let body;
63
- return new protocol_http_1.HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "GET",
68
- headers,
69
- path: resolvedPath,
70
- query,
71
- body,
72
- });
48
+ b.m("GET").h(headers).q(query).b(body);
49
+ return b.build();
73
50
  };
74
51
  exports.se_ListEndpointsCommand = se_ListEndpointsCommand;
75
52
  const se_ListOutpostsWithS3Command = async (input, context) => {
76
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
53
+ const b = (0, core_1.requestBuilder)(input, context);
77
54
  const headers = {};
78
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListOutpostsWithS3";
55
+ b.bp("/S3Outposts/ListOutpostsWithS3");
79
56
  const query = (0, smithy_client_1.map)({
80
- nextToken: [, input.NextToken],
81
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
57
+ [_nT]: [, input[_NT]],
58
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
82
59
  });
83
60
  let body;
84
- return new protocol_http_1.HttpRequest({
85
- protocol,
86
- hostname,
87
- port,
88
- method: "GET",
89
- headers,
90
- path: resolvedPath,
91
- query,
92
- body,
93
- });
61
+ b.m("GET").h(headers).q(query).b(body);
62
+ return b.build();
94
63
  };
95
64
  exports.se_ListOutpostsWithS3Command = se_ListOutpostsWithS3Command;
96
65
  const se_ListSharedEndpointsCommand = async (input, context) => {
97
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = (0, core_1.requestBuilder)(input, context);
98
67
  const headers = {};
99
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListSharedEndpoints";
68
+ b.bp("/S3Outposts/ListSharedEndpoints");
100
69
  const query = (0, smithy_client_1.map)({
101
- nextToken: [, input.NextToken],
102
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
103
- outpostId: [, (0, smithy_client_1.expectNonNull)(input.OutpostId, `OutpostId`)],
70
+ [_nT]: [, input[_NT]],
71
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
72
+ [_oI]: [, (0, smithy_client_1.expectNonNull)(input[_OI], `OutpostId`)],
104
73
  });
105
74
  let body;
106
- return new protocol_http_1.HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "GET",
111
- headers,
112
- path: resolvedPath,
113
- query,
114
- body,
115
- });
75
+ b.m("GET").h(headers).q(query).b(body);
76
+ return b.build();
116
77
  };
117
78
  exports.se_ListSharedEndpointsCommand = se_ListSharedEndpointsCommand;
118
79
  const de_CreateEndpointCommand = async (output, context) => {
@@ -478,6 +439,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
478
439
  value !== "" &&
479
440
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
480
441
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
442
+ const _EI = "EndpointId";
443
+ const _MR = "MaxResults";
444
+ const _NT = "NextToken";
445
+ const _OI = "OutpostId";
446
+ const _eI = "endpointId";
447
+ const _mR = "maxResults";
448
+ const _nT = "nextToken";
449
+ const _oI = "outpostId";
481
450
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
482
451
  if (encoded.length) {
483
452
  return JSON.parse(encoded);
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListEndpointsCommand, } from "../commands/ListEndpointsCommand";
2
3
  import { S3OutpostsClient } from "../S3OutpostsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEndpointsCommand(input), ...args);
5
- };
6
- export async function* paginateListEndpoints(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof S3OutpostsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListEndpoints = createPaginator(S3OutpostsClient, ListEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListOutpostsWithS3Command, } from "../commands/ListOutpostsWithS3Command";
2
3
  import { S3OutpostsClient } from "../S3OutpostsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListOutpostsWithS3Command(input), ...args);
5
- };
6
- export async function* paginateListOutpostsWithS3(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof S3OutpostsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListOutpostsWithS3 = createPaginator(S3OutpostsClient, ListOutpostsWithS3Command, "NextToken", "NextToken", "MaxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { ListSharedEndpointsCommand, } from "../commands/ListSharedEndpointsCommand";
2
3
  import { S3OutpostsClient } from "../S3OutpostsClient";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSharedEndpointsCommand(input), ...args);
5
- };
6
- export async function* paginateListSharedEndpoints(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.NextToken = token;
12
- input["MaxResults"] = config.pageSize;
13
- if (config.client instanceof S3OutpostsClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.NextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSharedEndpoints = createPaginator(S3OutpostsClient, ListSharedEndpointsCommand, "NextToken", "NextToken", "MaxResults");
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { AccessDeniedException, ConflictException, InternalServerException, OutpostOfflineException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
4
4
  import { S3OutpostsServiceException as __BaseException } from "../models/S3OutpostsServiceException";
5
5
  export const se_CreateEndpointCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/CreateEndpoint";
10
+ b.bp("/S3Outposts/CreateEndpoint");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  AccessType: [],
@@ -16,96 +16,57 @@ export const se_CreateEndpointCommand = async (input, context) => {
16
16
  SecurityGroupId: [],
17
17
  SubnetId: [],
18
18
  }));
19
- return new __HttpRequest({
20
- protocol,
21
- hostname,
22
- port,
23
- method: "POST",
24
- headers,
25
- path: resolvedPath,
26
- body,
27
- });
19
+ b.m("POST").h(headers).b(body);
20
+ return b.build();
28
21
  };
29
22
  export const se_DeleteEndpointCommand = async (input, context) => {
30
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
+ const b = rb(input, context);
31
24
  const headers = {};
32
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/DeleteEndpoint";
25
+ b.bp("/S3Outposts/DeleteEndpoint");
33
26
  const query = map({
34
- endpointId: [, __expectNonNull(input.EndpointId, `EndpointId`)],
35
- outpostId: [, __expectNonNull(input.OutpostId, `OutpostId`)],
27
+ [_eI]: [, __expectNonNull(input[_EI], `EndpointId`)],
28
+ [_oI]: [, __expectNonNull(input[_OI], `OutpostId`)],
36
29
  });
37
30
  let body;
38
- return new __HttpRequest({
39
- protocol,
40
- hostname,
41
- port,
42
- method: "DELETE",
43
- headers,
44
- path: resolvedPath,
45
- query,
46
- body,
47
- });
31
+ b.m("DELETE").h(headers).q(query).b(body);
32
+ return b.build();
48
33
  };
49
34
  export const se_ListEndpointsCommand = async (input, context) => {
50
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
35
+ const b = rb(input, context);
51
36
  const headers = {};
52
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListEndpoints";
37
+ b.bp("/S3Outposts/ListEndpoints");
53
38
  const query = map({
54
- nextToken: [, input.NextToken],
55
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
39
+ [_nT]: [, input[_NT]],
40
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
56
41
  });
57
42
  let body;
58
- return new __HttpRequest({
59
- protocol,
60
- hostname,
61
- port,
62
- method: "GET",
63
- headers,
64
- path: resolvedPath,
65
- query,
66
- body,
67
- });
43
+ b.m("GET").h(headers).q(query).b(body);
44
+ return b.build();
68
45
  };
69
46
  export const se_ListOutpostsWithS3Command = async (input, context) => {
70
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
47
+ const b = rb(input, context);
71
48
  const headers = {};
72
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListOutpostsWithS3";
49
+ b.bp("/S3Outposts/ListOutpostsWithS3");
73
50
  const query = map({
74
- nextToken: [, input.NextToken],
75
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
51
+ [_nT]: [, input[_NT]],
52
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
76
53
  });
77
54
  let body;
78
- return new __HttpRequest({
79
- protocol,
80
- hostname,
81
- port,
82
- method: "GET",
83
- headers,
84
- path: resolvedPath,
85
- query,
86
- body,
87
- });
55
+ b.m("GET").h(headers).q(query).b(body);
56
+ return b.build();
88
57
  };
89
58
  export const se_ListSharedEndpointsCommand = async (input, context) => {
90
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
59
+ const b = rb(input, context);
91
60
  const headers = {};
92
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListSharedEndpoints";
61
+ b.bp("/S3Outposts/ListSharedEndpoints");
93
62
  const query = map({
94
- nextToken: [, input.NextToken],
95
- maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
96
- outpostId: [, __expectNonNull(input.OutpostId, `OutpostId`)],
63
+ [_nT]: [, input[_NT]],
64
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
65
+ [_oI]: [, __expectNonNull(input[_OI], `OutpostId`)],
97
66
  });
98
67
  let body;
99
- return new __HttpRequest({
100
- protocol,
101
- hostname,
102
- port,
103
- method: "GET",
104
- headers,
105
- path: resolvedPath,
106
- query,
107
- body,
108
- });
68
+ b.m("GET").h(headers).q(query).b(body);
69
+ return b.build();
109
70
  };
110
71
  export const de_CreateEndpointCommand = async (output, context) => {
111
72
  if (output.statusCode !== 200 && output.statusCode >= 300) {
@@ -465,6 +426,14 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
465
426
  value !== "" &&
466
427
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
467
428
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
429
+ const _EI = "EndpointId";
430
+ const _MR = "MaxResults";
431
+ const _NT = "NextToken";
432
+ const _OI = "OutpostId";
433
+ const _eI = "endpointId";
434
+ const _mR = "maxResults";
435
+ const _nT = "nextToken";
436
+ const _oI = "outpostId";
468
437
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
469
438
  if (encoded.length) {
470
439
  return JSON.parse(encoded);
@@ -4,4 +4,4 @@ import { S3OutpostsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListEndpoints(config: S3OutpostsPaginationConfiguration, input: ListEndpointsCommandInput, ...additionalArguments: any): Paginator<ListEndpointsCommandOutput>;
7
+ export declare const paginateListEndpoints: (config: S3OutpostsPaginationConfiguration, input: ListEndpointsCommandInput, ...rest: any[]) => Paginator<ListEndpointsCommandOutput>;
@@ -4,4 +4,4 @@ import { S3OutpostsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListOutpostsWithS3(config: S3OutpostsPaginationConfiguration, input: ListOutpostsWithS3CommandInput, ...additionalArguments: any): Paginator<ListOutpostsWithS3CommandOutput>;
7
+ export declare const paginateListOutpostsWithS3: (config: S3OutpostsPaginationConfiguration, input: ListOutpostsWithS3CommandInput, ...rest: any[]) => Paginator<ListOutpostsWithS3CommandOutput>;
@@ -4,4 +4,4 @@ import { S3OutpostsPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSharedEndpoints(config: S3OutpostsPaginationConfiguration, input: ListSharedEndpointsCommandInput, ...additionalArguments: any): Paginator<ListSharedEndpointsCommandOutput>;
7
+ export declare const paginateListSharedEndpoints: (config: S3OutpostsPaginationConfiguration, input: ListSharedEndpointsCommandInput, ...rest: any[]) => Paginator<ListSharedEndpointsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListEndpointsCommandOutput,
5
5
  } from "../commands/ListEndpointsCommand";
6
6
  import { S3OutpostsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListEndpoints(
7
+ export declare const paginateListEndpoints: (
8
8
  config: S3OutpostsPaginationConfiguration,
9
9
  input: ListEndpointsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListEndpointsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListEndpointsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListOutpostsWithS3CommandOutput,
5
5
  } from "../commands/ListOutpostsWithS3Command";
6
6
  import { S3OutpostsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListOutpostsWithS3(
7
+ export declare const paginateListOutpostsWithS3: (
8
8
  config: S3OutpostsPaginationConfiguration,
9
9
  input: ListOutpostsWithS3CommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListOutpostsWithS3CommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListOutpostsWithS3CommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListSharedEndpointsCommandOutput,
5
5
  } from "../commands/ListSharedEndpointsCommand";
6
6
  import { S3OutpostsPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListSharedEndpoints(
7
+ export declare const paginateListSharedEndpoints: (
8
8
  config: S3OutpostsPaginationConfiguration,
9
9
  input: ListSharedEndpointsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListSharedEndpointsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListSharedEndpointsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3outposts",
3
3
  "description": "AWS SDK for JavaScript S3outposts Client for Node.js, Browser and React Native",
4
- "version": "3.476.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,20 +20,21 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.476.0",
24
- "@aws-sdk/core": "3.476.0",
25
- "@aws-sdk/credential-provider-node": "3.476.0",
23
+ "@aws-sdk/client-sts": "3.478.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.478.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
29
29
  "@aws-sdk/middleware-signing": "3.468.0",
30
- "@aws-sdk/middleware-user-agent": "3.470.0",
30
+ "@aws-sdk/middleware-user-agent": "3.478.0",
31
31
  "@aws-sdk/region-config-resolver": "3.470.0",
32
32
  "@aws-sdk/types": "3.468.0",
33
- "@aws-sdk/util-endpoints": "3.470.0",
33
+ "@aws-sdk/util-endpoints": "3.478.0",
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",