@aws-sdk/client-s3outposts 3.53.0 → 3.55.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/CHANGELOG.md +27 -0
- package/dist-cjs/S3Outposts.js +15 -0
- package/dist-cjs/S3OutpostsClient.js +13 -13
- package/dist-cjs/commands/CreateEndpointCommand.js +3 -3
- package/dist-cjs/commands/DeleteEndpointCommand.js +3 -3
- package/dist-cjs/commands/ListEndpointsCommand.js +3 -3
- package/dist-cjs/commands/ListSharedEndpointsCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/pagination/ListSharedEndpointsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +101 -29
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/S3Outposts.js +18 -3
- package/dist-es/commands/ListSharedEndpointsCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/ListEndpointsPaginator.js +4 -4
- package/dist-es/pagination/ListSharedEndpointsPaginator.js +74 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +98 -3
- package/dist-types/S3Outposts.d.ts +27 -21
- package/dist-types/S3OutpostsClient.d.ts +5 -4
- package/dist-types/commands/CreateEndpointCommand.d.ts +2 -6
- package/dist-types/commands/DeleteEndpointCommand.d.ts +2 -6
- package/dist-types/commands/ListEndpointsCommand.d.ts +3 -9
- package/dist-types/commands/ListSharedEndpointsCommand.d.ts +48 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +64 -18
- package/dist-types/pagination/ListSharedEndpointsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/S3Outposts.d.ts +5 -0
- package/dist-types/ts3.4/S3OutpostsClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/ListSharedEndpointsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +22 -0
- package/dist-types/ts3.4/pagination/ListSharedEndpointsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 03/21/2022 ([#3455](https://github.com/aws/aws-sdk-js-v3/issues/3455)) ([7cd40a5](https://github.com/aws/aws-sdk-js-v3/commit/7cd40a5aeaddf03b8d27e814b3a2b441c1217dfb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-s3outposts
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-s3outposts
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
|
|
7
34
|
|
|
8
35
|
|
package/dist-cjs/S3Outposts.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.S3Outposts = void 0;
|
|
|
4
4
|
const CreateEndpointCommand_1 = require("./commands/CreateEndpointCommand");
|
|
5
5
|
const DeleteEndpointCommand_1 = require("./commands/DeleteEndpointCommand");
|
|
6
6
|
const ListEndpointsCommand_1 = require("./commands/ListEndpointsCommand");
|
|
7
|
+
const ListSharedEndpointsCommand_1 = require("./commands/ListSharedEndpointsCommand");
|
|
7
8
|
const S3OutpostsClient_1 = require("./S3OutpostsClient");
|
|
8
9
|
class S3Outposts extends S3OutpostsClient_1.S3OutpostsClient {
|
|
9
10
|
createEndpoint(args, optionsOrCb, cb) {
|
|
@@ -48,5 +49,19 @@ class S3Outposts extends S3OutpostsClient_1.S3OutpostsClient {
|
|
|
48
49
|
return this.send(command, optionsOrCb);
|
|
49
50
|
}
|
|
50
51
|
}
|
|
52
|
+
listSharedEndpoints(args, optionsOrCb, cb) {
|
|
53
|
+
const command = new ListSharedEndpointsCommand_1.ListSharedEndpointsCommand(args);
|
|
54
|
+
if (typeof optionsOrCb === "function") {
|
|
55
|
+
this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
else if (typeof cb === "function") {
|
|
58
|
+
if (typeof optionsOrCb !== "object")
|
|
59
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return this.send(command, optionsOrCb);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
51
66
|
}
|
|
52
67
|
exports.S3Outposts = S3Outposts;
|
|
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
12
12
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
class S3OutpostsClient extends smithy_client_1.Client {
|
|
14
14
|
constructor(configuration) {
|
|
15
|
-
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
16
|
-
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
17
|
-
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
18
|
-
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
19
|
-
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
20
|
-
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
21
|
-
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
15
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
16
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
17
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
18
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
19
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
20
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
21
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
22
22
|
super(_config_6);
|
|
23
23
|
this.config = _config_6;
|
|
24
|
-
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
25
|
-
this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
|
|
26
|
-
this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
|
|
27
|
-
this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
|
|
28
|
-
this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
|
|
29
|
-
this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
25
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
30
30
|
}
|
|
31
31
|
destroy() {
|
|
32
32
|
super.destroy();
|
|
@@ -11,7 +11,7 @@ class CreateEndpointCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "S3OutpostsClient";
|
|
@@ -27,10 +27,10 @@ class CreateEndpointCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1CreateEndpointCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateEndpointCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1CreateEndpointCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateEndpointCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.CreateEndpointCommand = CreateEndpointCommand;
|
|
@@ -11,7 +11,7 @@ class DeleteEndpointCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "S3OutpostsClient";
|
|
@@ -27,10 +27,10 @@ class DeleteEndpointCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1DeleteEndpointCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteEndpointCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1DeleteEndpointCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteEndpointCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.DeleteEndpointCommand = DeleteEndpointCommand;
|
|
@@ -11,7 +11,7 @@ class ListEndpointsCommand extends smithy_client_1.Command {
|
|
|
11
11
|
this.input = input;
|
|
12
12
|
}
|
|
13
13
|
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
15
|
const stack = clientStack.concat(this.middlewareStack);
|
|
16
16
|
const { logger } = configuration;
|
|
17
17
|
const clientName = "S3OutpostsClient";
|
|
@@ -27,10 +27,10 @@ class ListEndpointsCommand extends smithy_client_1.Command {
|
|
|
27
27
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
28
|
}
|
|
29
29
|
serialize(input, context) {
|
|
30
|
-
return Aws_restJson1_1.serializeAws_restJson1ListEndpointsCommand(input, context);
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListEndpointsCommand)(input, context);
|
|
31
31
|
}
|
|
32
32
|
deserialize(output, context) {
|
|
33
|
-
return Aws_restJson1_1.deserializeAws_restJson1ListEndpointsCommand(output, context);
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListEndpointsCommand)(output, context);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
exports.ListEndpointsCommand = ListEndpointsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSharedEndpointsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListSharedEndpointsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "S3OutpostsClient";
|
|
18
|
+
const commandName = "ListSharedEndpointsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListSharedEndpointsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListSharedEndpointsResult.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListSharedEndpointsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListSharedEndpointsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListSharedEndpointsCommand = ListSharedEndpointsCommand;
|
|
@@ -4,3 +4,4 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
tslib_1.__exportStar(require("./CreateEndpointCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DeleteEndpointCommand"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./ListEndpointsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListSharedEndpointsCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -149,7 +149,7 @@ const partitionHash = {
|
|
|
149
149
|
],
|
|
150
150
|
},
|
|
151
151
|
};
|
|
152
|
-
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
152
|
+
const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
|
|
153
153
|
...options,
|
|
154
154
|
signingService: "s3-outposts",
|
|
155
155
|
regionHash,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListEndpointsResult = exports.ListEndpointsRequest = exports.Endpoint = exports.EndpointStatus = exports.NetworkInterface = exports.DeleteEndpointRequest = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CreateEndpointResult = exports.CreateEndpointRequest = exports.EndpointAccessType = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
3
|
+
exports.ListSharedEndpointsResult = exports.ListSharedEndpointsRequest = exports.ListEndpointsResult = exports.ListEndpointsRequest = exports.Endpoint = exports.EndpointStatus = exports.NetworkInterface = exports.DeleteEndpointRequest = exports.ValidationException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CreateEndpointResult = exports.CreateEndpointRequest = exports.EndpointAccessType = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
4
|
const S3OutpostsServiceException_1 = require("./S3OutpostsServiceException");
|
|
5
5
|
class AccessDeniedException extends S3OutpostsServiceException_1.S3OutpostsServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -125,3 +125,15 @@ var ListEndpointsResult;
|
|
|
125
125
|
...obj,
|
|
126
126
|
});
|
|
127
127
|
})(ListEndpointsResult = exports.ListEndpointsResult || (exports.ListEndpointsResult = {}));
|
|
128
|
+
var ListSharedEndpointsRequest;
|
|
129
|
+
(function (ListSharedEndpointsRequest) {
|
|
130
|
+
ListSharedEndpointsRequest.filterSensitiveLog = (obj) => ({
|
|
131
|
+
...obj,
|
|
132
|
+
});
|
|
133
|
+
})(ListSharedEndpointsRequest = exports.ListSharedEndpointsRequest || (exports.ListSharedEndpointsRequest = {}));
|
|
134
|
+
var ListSharedEndpointsResult;
|
|
135
|
+
(function (ListSharedEndpointsResult) {
|
|
136
|
+
ListSharedEndpointsResult.filterSensitiveLog = (obj) => ({
|
|
137
|
+
...obj,
|
|
138
|
+
});
|
|
139
|
+
})(ListSharedEndpointsResult = exports.ListSharedEndpointsResult || (exports.ListSharedEndpointsResult = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListSharedEndpoints = void 0;
|
|
4
|
+
const ListSharedEndpointsCommand_1 = require("../commands/ListSharedEndpointsCommand");
|
|
5
|
+
const S3Outposts_1 = require("../S3Outposts");
|
|
6
|
+
const S3OutpostsClient_1 = require("../S3OutpostsClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListSharedEndpointsCommand_1.ListSharedEndpointsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listSharedEndpoints(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListSharedEndpoints(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.NextToken = token;
|
|
19
|
+
input["MaxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof S3Outposts_1.S3Outposts) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof S3OutpostsClient_1.S3OutpostsClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected S3Outposts | S3OutpostsClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
token = page.NextToken;
|
|
31
|
+
hasNext = !!token;
|
|
32
|
+
}
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
exports.paginateListSharedEndpoints = paginateListSharedEndpoints;
|
|
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./ListEndpointsPaginator"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./ListSharedEndpointsPaginator"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1ListEndpointsCommand = exports.deserializeAws_restJson1DeleteEndpointCommand = exports.deserializeAws_restJson1CreateEndpointCommand = exports.serializeAws_restJson1ListEndpointsCommand = exports.serializeAws_restJson1DeleteEndpointCommand = exports.serializeAws_restJson1CreateEndpointCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListSharedEndpointsCommand = exports.deserializeAws_restJson1ListEndpointsCommand = exports.deserializeAws_restJson1DeleteEndpointCommand = exports.deserializeAws_restJson1CreateEndpointCommand = exports.serializeAws_restJson1ListSharedEndpointsCommand = exports.serializeAws_restJson1ListEndpointsCommand = exports.serializeAws_restJson1DeleteEndpointCommand = exports.serializeAws_restJson1CreateEndpointCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
@@ -74,6 +74,28 @@ const serializeAws_restJson1ListEndpointsCommand = async (input, context) => {
|
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
exports.serializeAws_restJson1ListEndpointsCommand = serializeAws_restJson1ListEndpointsCommand;
|
|
77
|
+
const serializeAws_restJson1ListSharedEndpointsCommand = async (input, context) => {
|
|
78
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
79
|
+
const headers = {};
|
|
80
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/S3Outposts/ListSharedEndpoints";
|
|
81
|
+
const query = {
|
|
82
|
+
...(input.NextToken !== undefined && { nextToken: input.NextToken }),
|
|
83
|
+
...(input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() }),
|
|
84
|
+
...(input.OutpostId !== undefined && { outpostId: input.OutpostId }),
|
|
85
|
+
};
|
|
86
|
+
let body;
|
|
87
|
+
return new protocol_http_1.HttpRequest({
|
|
88
|
+
protocol,
|
|
89
|
+
hostname,
|
|
90
|
+
port,
|
|
91
|
+
method: "GET",
|
|
92
|
+
headers,
|
|
93
|
+
path: resolvedPath,
|
|
94
|
+
query,
|
|
95
|
+
body,
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
exports.serializeAws_restJson1ListSharedEndpointsCommand = serializeAws_restJson1ListSharedEndpointsCommand;
|
|
77
99
|
const deserializeAws_restJson1CreateEndpointCommand = async (output, context) => {
|
|
78
100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
79
101
|
return deserializeAws_restJson1CreateEndpointCommandError(output, context);
|
|
@@ -82,9 +104,9 @@ const deserializeAws_restJson1CreateEndpointCommand = async (output, context) =>
|
|
|
82
104
|
$metadata: deserializeMetadata(output),
|
|
83
105
|
EndpointArn: undefined,
|
|
84
106
|
};
|
|
85
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
107
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
86
108
|
if (data.EndpointArn !== undefined && data.EndpointArn !== null) {
|
|
87
|
-
contents.EndpointArn = smithy_client_1.expectString(data.EndpointArn);
|
|
109
|
+
contents.EndpointArn = (0, smithy_client_1.expectString)(data.EndpointArn);
|
|
88
110
|
}
|
|
89
111
|
return Promise.resolve(contents);
|
|
90
112
|
};
|
|
@@ -120,7 +142,7 @@ const deserializeAws_restJson1CreateEndpointCommandError = async (output, contex
|
|
|
120
142
|
$fault: "client",
|
|
121
143
|
$metadata: deserializeMetadata(output),
|
|
122
144
|
});
|
|
123
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
145
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
124
146
|
}
|
|
125
147
|
};
|
|
126
148
|
const deserializeAws_restJson1DeleteEndpointCommand = async (output, context) => {
|
|
@@ -162,7 +184,7 @@ const deserializeAws_restJson1DeleteEndpointCommandError = async (output, contex
|
|
|
162
184
|
$fault: "client",
|
|
163
185
|
$metadata: deserializeMetadata(output),
|
|
164
186
|
});
|
|
165
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
187
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
166
188
|
}
|
|
167
189
|
};
|
|
168
190
|
const deserializeAws_restJson1ListEndpointsCommand = async (output, context) => {
|
|
@@ -174,12 +196,12 @@ const deserializeAws_restJson1ListEndpointsCommand = async (output, context) =>
|
|
|
174
196
|
Endpoints: undefined,
|
|
175
197
|
NextToken: undefined,
|
|
176
198
|
};
|
|
177
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
199
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
178
200
|
if (data.Endpoints !== undefined && data.Endpoints !== null) {
|
|
179
201
|
contents.Endpoints = deserializeAws_restJson1Endpoints(data.Endpoints, context);
|
|
180
202
|
}
|
|
181
203
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
182
|
-
contents.NextToken = smithy_client_1.expectString(data.NextToken);
|
|
204
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
183
205
|
}
|
|
184
206
|
return Promise.resolve(contents);
|
|
185
207
|
};
|
|
@@ -212,86 +234,136 @@ const deserializeAws_restJson1ListEndpointsCommandError = async (output, context
|
|
|
212
234
|
$fault: "client",
|
|
213
235
|
$metadata: deserializeMetadata(output),
|
|
214
236
|
});
|
|
215
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
237
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
const deserializeAws_restJson1ListSharedEndpointsCommand = async (output, context) => {
|
|
241
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
|
+
return deserializeAws_restJson1ListSharedEndpointsCommandError(output, context);
|
|
243
|
+
}
|
|
244
|
+
const contents = {
|
|
245
|
+
$metadata: deserializeMetadata(output),
|
|
246
|
+
Endpoints: undefined,
|
|
247
|
+
NextToken: undefined,
|
|
248
|
+
};
|
|
249
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
250
|
+
if (data.Endpoints !== undefined && data.Endpoints !== null) {
|
|
251
|
+
contents.Endpoints = deserializeAws_restJson1Endpoints(data.Endpoints, context);
|
|
252
|
+
}
|
|
253
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
254
|
+
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
255
|
+
}
|
|
256
|
+
return Promise.resolve(contents);
|
|
257
|
+
};
|
|
258
|
+
exports.deserializeAws_restJson1ListSharedEndpointsCommand = deserializeAws_restJson1ListSharedEndpointsCommand;
|
|
259
|
+
const deserializeAws_restJson1ListSharedEndpointsCommandError = async (output, context) => {
|
|
260
|
+
const parsedOutput = {
|
|
261
|
+
...output,
|
|
262
|
+
body: await parseBody(output.body, context),
|
|
263
|
+
};
|
|
264
|
+
let response;
|
|
265
|
+
let errorCode = "UnknownError";
|
|
266
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
267
|
+
switch (errorCode) {
|
|
268
|
+
case "AccessDeniedException":
|
|
269
|
+
case "com.amazonaws.s3outposts#AccessDeniedException":
|
|
270
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
271
|
+
case "InternalServerException":
|
|
272
|
+
case "com.amazonaws.s3outposts#InternalServerException":
|
|
273
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
274
|
+
case "ResourceNotFoundException":
|
|
275
|
+
case "com.amazonaws.s3outposts#ResourceNotFoundException":
|
|
276
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
277
|
+
case "ValidationException":
|
|
278
|
+
case "com.amazonaws.s3outposts#ValidationException":
|
|
279
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
280
|
+
default:
|
|
281
|
+
const parsedBody = parsedOutput.body;
|
|
282
|
+
response = new S3OutpostsServiceException_1.S3OutpostsServiceException({
|
|
283
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
284
|
+
$fault: "client",
|
|
285
|
+
$metadata: deserializeMetadata(output),
|
|
286
|
+
});
|
|
287
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
216
288
|
}
|
|
217
289
|
};
|
|
218
290
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
219
291
|
const contents = {};
|
|
220
292
|
const data = parsedOutput.body;
|
|
221
293
|
if (data.Message !== undefined && data.Message !== null) {
|
|
222
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
294
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
223
295
|
}
|
|
224
296
|
const exception = new models_0_1.AccessDeniedException({
|
|
225
297
|
$metadata: deserializeMetadata(parsedOutput),
|
|
226
298
|
...contents,
|
|
227
299
|
});
|
|
228
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
300
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
229
301
|
};
|
|
230
302
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
231
303
|
const contents = {};
|
|
232
304
|
const data = parsedOutput.body;
|
|
233
305
|
if (data.Message !== undefined && data.Message !== null) {
|
|
234
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
306
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
235
307
|
}
|
|
236
308
|
const exception = new models_0_1.ConflictException({
|
|
237
309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
238
310
|
...contents,
|
|
239
311
|
});
|
|
240
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
312
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
241
313
|
};
|
|
242
314
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
243
315
|
const contents = {};
|
|
244
316
|
const data = parsedOutput.body;
|
|
245
317
|
if (data.Message !== undefined && data.Message !== null) {
|
|
246
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
318
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
247
319
|
}
|
|
248
320
|
const exception = new models_0_1.InternalServerException({
|
|
249
321
|
$metadata: deserializeMetadata(parsedOutput),
|
|
250
322
|
...contents,
|
|
251
323
|
});
|
|
252
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
324
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
253
325
|
};
|
|
254
326
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
255
327
|
const contents = {};
|
|
256
328
|
const data = parsedOutput.body;
|
|
257
329
|
if (data.Message !== undefined && data.Message !== null) {
|
|
258
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
330
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
259
331
|
}
|
|
260
332
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
261
333
|
$metadata: deserializeMetadata(parsedOutput),
|
|
262
334
|
...contents,
|
|
263
335
|
});
|
|
264
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
336
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
265
337
|
};
|
|
266
338
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
267
339
|
const contents = {};
|
|
268
340
|
const data = parsedOutput.body;
|
|
269
341
|
if (data.Message !== undefined && data.Message !== null) {
|
|
270
|
-
contents.Message = smithy_client_1.expectString(data.Message);
|
|
342
|
+
contents.Message = (0, smithy_client_1.expectString)(data.Message);
|
|
271
343
|
}
|
|
272
344
|
const exception = new models_0_1.ValidationException({
|
|
273
345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
274
346
|
...contents,
|
|
275
347
|
});
|
|
276
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
348
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
277
349
|
};
|
|
278
350
|
const deserializeAws_restJson1Endpoint = (output, context) => {
|
|
279
351
|
return {
|
|
280
|
-
AccessType: smithy_client_1.expectString(output.AccessType),
|
|
281
|
-
CidrBlock: smithy_client_1.expectString(output.CidrBlock),
|
|
352
|
+
AccessType: (0, smithy_client_1.expectString)(output.AccessType),
|
|
353
|
+
CidrBlock: (0, smithy_client_1.expectString)(output.CidrBlock),
|
|
282
354
|
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
283
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.CreationTime)))
|
|
355
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
284
356
|
: undefined,
|
|
285
|
-
CustomerOwnedIpv4Pool: smithy_client_1.expectString(output.CustomerOwnedIpv4Pool),
|
|
286
|
-
EndpointArn: smithy_client_1.expectString(output.EndpointArn),
|
|
357
|
+
CustomerOwnedIpv4Pool: (0, smithy_client_1.expectString)(output.CustomerOwnedIpv4Pool),
|
|
358
|
+
EndpointArn: (0, smithy_client_1.expectString)(output.EndpointArn),
|
|
287
359
|
NetworkInterfaces: output.NetworkInterfaces !== undefined && output.NetworkInterfaces !== null
|
|
288
360
|
? deserializeAws_restJson1NetworkInterfaces(output.NetworkInterfaces, context)
|
|
289
361
|
: undefined,
|
|
290
|
-
OutpostsId: smithy_client_1.expectString(output.OutpostsId),
|
|
291
|
-
SecurityGroupId: smithy_client_1.expectString(output.SecurityGroupId),
|
|
292
|
-
Status: smithy_client_1.expectString(output.Status),
|
|
293
|
-
SubnetId: smithy_client_1.expectString(output.SubnetId),
|
|
294
|
-
VpcId: smithy_client_1.expectString(output.VpcId),
|
|
362
|
+
OutpostsId: (0, smithy_client_1.expectString)(output.OutpostsId),
|
|
363
|
+
SecurityGroupId: (0, smithy_client_1.expectString)(output.SecurityGroupId),
|
|
364
|
+
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
365
|
+
SubnetId: (0, smithy_client_1.expectString)(output.SubnetId),
|
|
366
|
+
VpcId: (0, smithy_client_1.expectString)(output.VpcId),
|
|
295
367
|
};
|
|
296
368
|
};
|
|
297
369
|
const deserializeAws_restJson1Endpoints = (output, context) => {
|
|
@@ -307,7 +379,7 @@ const deserializeAws_restJson1Endpoints = (output, context) => {
|
|
|
307
379
|
};
|
|
308
380
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
309
381
|
return {
|
|
310
|
-
NetworkInterfaceId: smithy_client_1.expectString(output.NetworkInterfaceId),
|
|
382
|
+
NetworkInterfaceId: (0, smithy_client_1.expectString)(output.NetworkInterfaceId),
|
|
311
383
|
};
|
|
312
384
|
};
|
|
313
385
|
const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|