@aws-sdk/client-transfer 3.42.0 → 3.47.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 +47 -0
- package/dist-cjs/endpoints.js +1 -28
- package/dist-cjs/models/models_0.js +15 -63
- package/dist-cjs/protocols/Aws_json1_1.js +7 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -28
- package/dist-es/models/models_0.js +10 -40
- package/dist-es/protocols/Aws_json1_1.js +8 -3
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/TransferClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +90 -97
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/TransferClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +18 -45
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
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.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
28
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
46
|
+
|
|
47
|
+
**Note:** Version bump only for package @aws-sdk/client-transfer
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
54
|
|
|
8
55
|
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
|
5
5
|
const regionHash = {
|
|
6
6
|
"ca-central-1": {
|
|
7
7
|
variants: [
|
|
8
|
-
{
|
|
9
|
-
hostname: "transfer.ca-central-1.amazonaws.com",
|
|
10
|
-
tags: [],
|
|
11
|
-
},
|
|
12
8
|
{
|
|
13
9
|
hostname: "transfer-fips.ca-central-1.amazonaws.com",
|
|
14
10
|
tags: ["fips"],
|
|
@@ -17,10 +13,6 @@ const regionHash = {
|
|
|
17
13
|
},
|
|
18
14
|
"us-east-1": {
|
|
19
15
|
variants: [
|
|
20
|
-
{
|
|
21
|
-
hostname: "transfer.us-east-1.amazonaws.com",
|
|
22
|
-
tags: [],
|
|
23
|
-
},
|
|
24
16
|
{
|
|
25
17
|
hostname: "transfer-fips.us-east-1.amazonaws.com",
|
|
26
18
|
tags: ["fips"],
|
|
@@ -29,10 +21,6 @@ const regionHash = {
|
|
|
29
21
|
},
|
|
30
22
|
"us-east-2": {
|
|
31
23
|
variants: [
|
|
32
|
-
{
|
|
33
|
-
hostname: "transfer.us-east-2.amazonaws.com",
|
|
34
|
-
tags: [],
|
|
35
|
-
},
|
|
36
24
|
{
|
|
37
25
|
hostname: "transfer-fips.us-east-2.amazonaws.com",
|
|
38
26
|
tags: ["fips"],
|
|
@@ -41,10 +29,6 @@ const regionHash = {
|
|
|
41
29
|
},
|
|
42
30
|
"us-gov-east-1": {
|
|
43
31
|
variants: [
|
|
44
|
-
{
|
|
45
|
-
hostname: "transfer.us-gov-east-1.amazonaws.com",
|
|
46
|
-
tags: [],
|
|
47
|
-
},
|
|
48
32
|
{
|
|
49
33
|
hostname: "transfer-fips.us-gov-east-1.amazonaws.com",
|
|
50
34
|
tags: ["fips"],
|
|
@@ -53,10 +37,6 @@ const regionHash = {
|
|
|
53
37
|
},
|
|
54
38
|
"us-gov-west-1": {
|
|
55
39
|
variants: [
|
|
56
|
-
{
|
|
57
|
-
hostname: "transfer.us-gov-west-1.amazonaws.com",
|
|
58
|
-
tags: [],
|
|
59
|
-
},
|
|
60
40
|
{
|
|
61
41
|
hostname: "transfer-fips.us-gov-west-1.amazonaws.com",
|
|
62
42
|
tags: ["fips"],
|
|
@@ -65,10 +45,6 @@ const regionHash = {
|
|
|
65
45
|
},
|
|
66
46
|
"us-west-1": {
|
|
67
47
|
variants: [
|
|
68
|
-
{
|
|
69
|
-
hostname: "transfer.us-west-1.amazonaws.com",
|
|
70
|
-
tags: [],
|
|
71
|
-
},
|
|
72
48
|
{
|
|
73
49
|
hostname: "transfer-fips.us-west-1.amazonaws.com",
|
|
74
50
|
tags: ["fips"],
|
|
@@ -77,10 +53,6 @@ const regionHash = {
|
|
|
77
53
|
},
|
|
78
54
|
"us-west-2": {
|
|
79
55
|
variants: [
|
|
80
|
-
{
|
|
81
|
-
hostname: "transfer.us-west-2.amazonaws.com",
|
|
82
|
-
tags: [],
|
|
83
|
-
},
|
|
84
56
|
{
|
|
85
57
|
hostname: "transfer-fips.us-west-2.amazonaws.com",
|
|
86
58
|
tags: ["fips"],
|
|
@@ -99,6 +71,7 @@ const partitionHash = {
|
|
|
99
71
|
"ap-south-1",
|
|
100
72
|
"ap-southeast-1",
|
|
101
73
|
"ap-southeast-2",
|
|
74
|
+
"ap-southeast-3",
|
|
102
75
|
"ca-central-1",
|
|
103
76
|
"eu-central-1",
|
|
104
77
|
"eu-north-1",
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FileLocation = exports.S3FileLocation = exports.DescribeAccessResponse = exports.DescribedAccess = exports.DescribeAccessRequest = exports.DeleteWorkflowRequest = exports.DeleteUserRequest = exports.DeleteSshPublicKeyRequest = exports.DeleteServerRequest = exports.DeleteAccessRequest = exports.CustomStepStatus = exports.CreateWorkflowResponse = exports.CreateWorkflowRequest = exports.WorkflowStep = exports.WorkflowStepType = exports.TagStepDetails = exports.S3Tag = exports.DeleteStepDetails = exports.CustomStepDetails = exports.CreateUserResponse = exports.CreateUserRequest = exports.
|
|
4
|
-
exports.SendWorkflowStepStateResponse = exports.SendWorkflowStepStateRequest = exports.ListWorkflowsResponse = exports.ListWorkflowsRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListServersResponse = exports.ListServersRequest = exports.ListSecurityPoliciesResponse = exports.ListSecurityPoliciesRequest = exports.ListExecutionsResponse = exports.ListExecutionsRequest = exports.ListedWorkflow = exports.ListedUser = exports.ListedServer = exports.ListedExecution = exports.ListAccessesResponse = exports.ListedAccess = exports.ListAccessesRequest = exports.
|
|
5
|
-
exports.UpdateUserResponse = exports.UpdateUserRequest = exports.UpdateServerResponse = exports.UpdateServerRequest =
|
|
3
|
+
exports.UserDetails = exports.ExecutionResults = exports.ExecutionStepResult = exports.ExecutionError = exports.ExecutionErrorType = exports.LoggingConfiguration = exports.FileLocation = exports.S3FileLocation = exports.DescribeAccessResponse = exports.DescribedAccess = exports.DescribeAccessRequest = exports.DeleteWorkflowRequest = exports.DeleteUserRequest = exports.DeleteSshPublicKeyRequest = exports.DeleteServerRequest = exports.DeleteAccessRequest = exports.CustomStepStatus = exports.CreateWorkflowResponse = exports.CreateWorkflowRequest = exports.WorkflowStep = exports.WorkflowStepType = exports.TagStepDetails = exports.S3Tag = exports.DeleteStepDetails = exports.CustomStepDetails = exports.CreateUserResponse = exports.CreateUserRequest = exports.CreateServerResponse = exports.CreateServerRequest = exports.WorkflowDetails = exports.WorkflowDetail = exports.Tag = exports.Protocol = exports.ProtocolDetails = exports.TlsSessionResumptionMode = exports.IdentityProviderType = exports.IdentityProviderDetails = exports.EndpointType = exports.EndpointDetails = exports.Domain = exports.CreateAccessResponse = exports.CreateAccessRequest = exports.PosixProfile = exports.HomeDirectoryType = exports.HomeDirectoryMapEntry = exports.CopyStepDetails = exports.OverwriteExisting = exports.InputFileLocation = exports.S3InputFileLocation = exports.EfsFileLocation = void 0;
|
|
4
|
+
exports.UpdateAccessResponse = exports.UpdateAccessRequest = exports.UntagResourceRequest = exports.TestIdentityProviderResponse = exports.TestIdentityProviderRequest = exports.TagResourceRequest = exports.StopServerRequest = exports.StartServerRequest = exports.SendWorkflowStepStateResponse = exports.SendWorkflowStepStateRequest = exports.ListWorkflowsResponse = exports.ListWorkflowsRequest = exports.ListUsersResponse = exports.ListUsersRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListServersResponse = exports.ListServersRequest = exports.ListSecurityPoliciesResponse = exports.ListSecurityPoliciesRequest = exports.ListExecutionsResponse = exports.ListExecutionsRequest = exports.ListedWorkflow = exports.ListedUser = exports.ListedServer = exports.ListedExecution = exports.ListAccessesResponse = exports.ListedAccess = exports.ListAccessesRequest = exports.ImportSshPublicKeyResponse = exports.ImportSshPublicKeyRequest = exports.DescribeWorkflowResponse = exports.DescribeWorkflowRequest = exports.DescribeUserResponse = exports.DescribeUserRequest = exports.DescribeServerResponse = exports.DescribeServerRequest = exports.DescribeSecurityPolicyResponse = exports.DescribeSecurityPolicyRequest = exports.DescribeExecutionResponse = exports.DescribeExecutionRequest = exports.DescribedWorkflow = exports.DescribedUser = exports.SshPublicKey = exports.DescribedServer = exports.State = exports.DescribedSecurityPolicy = exports.DescribedExecution = exports.ExecutionStatus = exports.ServiceMetadata = void 0;
|
|
5
|
+
exports.UpdateUserResponse = exports.UpdateUserRequest = exports.UpdateServerResponse = exports.UpdateServerRequest = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
var AccessDeniedException;
|
|
8
|
-
(function (AccessDeniedException) {
|
|
9
|
-
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
10
|
-
...obj,
|
|
11
|
-
});
|
|
12
|
-
})(AccessDeniedException = exports.AccessDeniedException || (exports.AccessDeniedException = {}));
|
|
13
|
-
var ConflictException;
|
|
14
|
-
(function (ConflictException) {
|
|
15
|
-
ConflictException.filterSensitiveLog = (obj) => ({
|
|
16
|
-
...obj,
|
|
17
|
-
});
|
|
18
|
-
})(ConflictException = exports.ConflictException || (exports.ConflictException = {}));
|
|
19
7
|
var EfsFileLocation;
|
|
20
8
|
(function (EfsFileLocation) {
|
|
21
9
|
EfsFileLocation.filterSensitiveLog = (obj) => ({
|
|
@@ -74,36 +62,6 @@ var CreateAccessResponse;
|
|
|
74
62
|
...obj,
|
|
75
63
|
});
|
|
76
64
|
})(CreateAccessResponse = exports.CreateAccessResponse || (exports.CreateAccessResponse = {}));
|
|
77
|
-
var InternalServiceError;
|
|
78
|
-
(function (InternalServiceError) {
|
|
79
|
-
InternalServiceError.filterSensitiveLog = (obj) => ({
|
|
80
|
-
...obj,
|
|
81
|
-
});
|
|
82
|
-
})(InternalServiceError = exports.InternalServiceError || (exports.InternalServiceError = {}));
|
|
83
|
-
var InvalidRequestException;
|
|
84
|
-
(function (InvalidRequestException) {
|
|
85
|
-
InvalidRequestException.filterSensitiveLog = (obj) => ({
|
|
86
|
-
...obj,
|
|
87
|
-
});
|
|
88
|
-
})(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
|
|
89
|
-
var ResourceExistsException;
|
|
90
|
-
(function (ResourceExistsException) {
|
|
91
|
-
ResourceExistsException.filterSensitiveLog = (obj) => ({
|
|
92
|
-
...obj,
|
|
93
|
-
});
|
|
94
|
-
})(ResourceExistsException = exports.ResourceExistsException || (exports.ResourceExistsException = {}));
|
|
95
|
-
var ResourceNotFoundException;
|
|
96
|
-
(function (ResourceNotFoundException) {
|
|
97
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
98
|
-
...obj,
|
|
99
|
-
});
|
|
100
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
101
|
-
var ServiceUnavailableException;
|
|
102
|
-
(function (ServiceUnavailableException) {
|
|
103
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
104
|
-
...obj,
|
|
105
|
-
});
|
|
106
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
107
65
|
var Domain;
|
|
108
66
|
(function (Domain) {
|
|
109
67
|
Domain["EFS"] = "EFS";
|
|
@@ -134,6 +92,18 @@ var IdentityProviderType;
|
|
|
134
92
|
IdentityProviderType["AWS_LAMBDA"] = "AWS_LAMBDA";
|
|
135
93
|
IdentityProviderType["SERVICE_MANAGED"] = "SERVICE_MANAGED";
|
|
136
94
|
})(IdentityProviderType = exports.IdentityProviderType || (exports.IdentityProviderType = {}));
|
|
95
|
+
var TlsSessionResumptionMode;
|
|
96
|
+
(function (TlsSessionResumptionMode) {
|
|
97
|
+
TlsSessionResumptionMode["DISABLED"] = "DISABLED";
|
|
98
|
+
TlsSessionResumptionMode["ENABLED"] = "ENABLED";
|
|
99
|
+
TlsSessionResumptionMode["ENFORCED"] = "ENFORCED";
|
|
100
|
+
})(TlsSessionResumptionMode = exports.TlsSessionResumptionMode || (exports.TlsSessionResumptionMode = {}));
|
|
101
|
+
var ProtocolDetails;
|
|
102
|
+
(function (ProtocolDetails) {
|
|
103
|
+
ProtocolDetails.filterSensitiveLog = (obj) => ({
|
|
104
|
+
...obj,
|
|
105
|
+
});
|
|
106
|
+
})(ProtocolDetails = exports.ProtocolDetails || (exports.ProtocolDetails = {}));
|
|
137
107
|
var Protocol;
|
|
138
108
|
(function (Protocol) {
|
|
139
109
|
Protocol["FTP"] = "FTP";
|
|
@@ -171,12 +141,6 @@ var CreateServerResponse;
|
|
|
171
141
|
...obj,
|
|
172
142
|
});
|
|
173
143
|
})(CreateServerResponse = exports.CreateServerResponse || (exports.CreateServerResponse = {}));
|
|
174
|
-
var ThrottlingException;
|
|
175
|
-
(function (ThrottlingException) {
|
|
176
|
-
ThrottlingException.filterSensitiveLog = (obj) => ({
|
|
177
|
-
...obj,
|
|
178
|
-
});
|
|
179
|
-
})(ThrottlingException = exports.ThrottlingException || (exports.ThrottlingException = {}));
|
|
180
144
|
var CreateUserRequest;
|
|
181
145
|
(function (CreateUserRequest) {
|
|
182
146
|
CreateUserRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -362,12 +326,6 @@ var DescribedSecurityPolicy;
|
|
|
362
326
|
...obj,
|
|
363
327
|
});
|
|
364
328
|
})(DescribedSecurityPolicy = exports.DescribedSecurityPolicy || (exports.DescribedSecurityPolicy = {}));
|
|
365
|
-
var ProtocolDetails;
|
|
366
|
-
(function (ProtocolDetails) {
|
|
367
|
-
ProtocolDetails.filterSensitiveLog = (obj) => ({
|
|
368
|
-
...obj,
|
|
369
|
-
});
|
|
370
|
-
})(ProtocolDetails = exports.ProtocolDetails || (exports.ProtocolDetails = {}));
|
|
371
329
|
var State;
|
|
372
330
|
(function (State) {
|
|
373
331
|
State["OFFLINE"] = "OFFLINE";
|
|
@@ -473,12 +431,6 @@ var ImportSshPublicKeyResponse;
|
|
|
473
431
|
...obj,
|
|
474
432
|
});
|
|
475
433
|
})(ImportSshPublicKeyResponse = exports.ImportSshPublicKeyResponse || (exports.ImportSshPublicKeyResponse = {}));
|
|
476
|
-
var InvalidNextTokenException;
|
|
477
|
-
(function (InvalidNextTokenException) {
|
|
478
|
-
InvalidNextTokenException.filterSensitiveLog = (obj) => ({
|
|
479
|
-
...obj,
|
|
480
|
-
});
|
|
481
|
-
})(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
|
|
482
434
|
var ListAccessesRequest;
|
|
483
435
|
(function (ListAccessesRequest) {
|
|
484
436
|
ListAccessesRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -2923,6 +2923,10 @@ const serializeAws_json1_1CreateServerRequest = (input, context) => {
|
|
|
2923
2923
|
...(input.IdentityProviderType !== undefined &&
|
|
2924
2924
|
input.IdentityProviderType !== null && { IdentityProviderType: input.IdentityProviderType }),
|
|
2925
2925
|
...(input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole }),
|
|
2926
|
+
...(input.ProtocolDetails !== undefined &&
|
|
2927
|
+
input.ProtocolDetails !== null && {
|
|
2928
|
+
ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
|
|
2929
|
+
}),
|
|
2926
2930
|
...(input.Protocols !== undefined &&
|
|
2927
2931
|
input.Protocols !== null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) }),
|
|
2928
2932
|
...(input.SecurityPolicyName !== undefined &&
|
|
@@ -3179,6 +3183,8 @@ const serializeAws_json1_1PosixProfile = (input, context) => {
|
|
|
3179
3183
|
const serializeAws_json1_1ProtocolDetails = (input, context) => {
|
|
3180
3184
|
return {
|
|
3181
3185
|
...(input.PassiveIp !== undefined && input.PassiveIp !== null && { PassiveIp: input.PassiveIp }),
|
|
3186
|
+
...(input.TlsSessionResumptionMode !== undefined &&
|
|
3187
|
+
input.TlsSessionResumptionMode !== null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }),
|
|
3182
3188
|
};
|
|
3183
3189
|
};
|
|
3184
3190
|
const serializeAws_json1_1Protocols = (input, context) => {
|
|
@@ -3957,6 +3963,7 @@ const deserializeAws_json1_1PosixProfile = (output, context) => {
|
|
|
3957
3963
|
const deserializeAws_json1_1ProtocolDetails = (output, context) => {
|
|
3958
3964
|
return {
|
|
3959
3965
|
PassiveIp: smithy_client_1.expectString(output.PassiveIp),
|
|
3966
|
+
TlsSessionResumptionMode: smithy_client_1.expectString(output.TlsSessionResumptionMode),
|
|
3960
3967
|
};
|
|
3961
3968
|
};
|
|
3962
3969
|
const deserializeAws_json1_1Protocols = (output, context) => {
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
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);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
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 }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
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
|
+
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),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
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 }),
|
|
32
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),
|
|
33
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),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
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({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
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),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
|
|
|
3
3
|
var regionHash = {
|
|
4
4
|
"ca-central-1": {
|
|
5
5
|
variants: [
|
|
6
|
-
{
|
|
7
|
-
hostname: "transfer.ca-central-1.amazonaws.com",
|
|
8
|
-
tags: [],
|
|
9
|
-
},
|
|
10
6
|
{
|
|
11
7
|
hostname: "transfer-fips.ca-central-1.amazonaws.com",
|
|
12
8
|
tags: ["fips"],
|
|
@@ -15,10 +11,6 @@ var regionHash = {
|
|
|
15
11
|
},
|
|
16
12
|
"us-east-1": {
|
|
17
13
|
variants: [
|
|
18
|
-
{
|
|
19
|
-
hostname: "transfer.us-east-1.amazonaws.com",
|
|
20
|
-
tags: [],
|
|
21
|
-
},
|
|
22
14
|
{
|
|
23
15
|
hostname: "transfer-fips.us-east-1.amazonaws.com",
|
|
24
16
|
tags: ["fips"],
|
|
@@ -27,10 +19,6 @@ var regionHash = {
|
|
|
27
19
|
},
|
|
28
20
|
"us-east-2": {
|
|
29
21
|
variants: [
|
|
30
|
-
{
|
|
31
|
-
hostname: "transfer.us-east-2.amazonaws.com",
|
|
32
|
-
tags: [],
|
|
33
|
-
},
|
|
34
22
|
{
|
|
35
23
|
hostname: "transfer-fips.us-east-2.amazonaws.com",
|
|
36
24
|
tags: ["fips"],
|
|
@@ -39,10 +27,6 @@ var regionHash = {
|
|
|
39
27
|
},
|
|
40
28
|
"us-gov-east-1": {
|
|
41
29
|
variants: [
|
|
42
|
-
{
|
|
43
|
-
hostname: "transfer.us-gov-east-1.amazonaws.com",
|
|
44
|
-
tags: [],
|
|
45
|
-
},
|
|
46
30
|
{
|
|
47
31
|
hostname: "transfer-fips.us-gov-east-1.amazonaws.com",
|
|
48
32
|
tags: ["fips"],
|
|
@@ -51,10 +35,6 @@ var regionHash = {
|
|
|
51
35
|
},
|
|
52
36
|
"us-gov-west-1": {
|
|
53
37
|
variants: [
|
|
54
|
-
{
|
|
55
|
-
hostname: "transfer.us-gov-west-1.amazonaws.com",
|
|
56
|
-
tags: [],
|
|
57
|
-
},
|
|
58
38
|
{
|
|
59
39
|
hostname: "transfer-fips.us-gov-west-1.amazonaws.com",
|
|
60
40
|
tags: ["fips"],
|
|
@@ -63,10 +43,6 @@ var regionHash = {
|
|
|
63
43
|
},
|
|
64
44
|
"us-west-1": {
|
|
65
45
|
variants: [
|
|
66
|
-
{
|
|
67
|
-
hostname: "transfer.us-west-1.amazonaws.com",
|
|
68
|
-
tags: [],
|
|
69
|
-
},
|
|
70
46
|
{
|
|
71
47
|
hostname: "transfer-fips.us-west-1.amazonaws.com",
|
|
72
48
|
tags: ["fips"],
|
|
@@ -75,10 +51,6 @@ var regionHash = {
|
|
|
75
51
|
},
|
|
76
52
|
"us-west-2": {
|
|
77
53
|
variants: [
|
|
78
|
-
{
|
|
79
|
-
hostname: "transfer.us-west-2.amazonaws.com",
|
|
80
|
-
tags: [],
|
|
81
|
-
},
|
|
82
54
|
{
|
|
83
55
|
hostname: "transfer-fips.us-west-2.amazonaws.com",
|
|
84
56
|
tags: ["fips"],
|
|
@@ -97,6 +69,7 @@ var partitionHash = {
|
|
|
97
69
|
"ap-south-1",
|
|
98
70
|
"ap-southeast-1",
|
|
99
71
|
"ap-southeast-2",
|
|
72
|
+
"ap-southeast-3",
|
|
100
73
|
"ca-central-1",
|
|
101
74
|
"eu-central-1",
|
|
102
75
|
"eu-north-1",
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
-
export var AccessDeniedException;
|
|
4
|
-
(function (AccessDeniedException) {
|
|
5
|
-
AccessDeniedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
6
|
-
})(AccessDeniedException || (AccessDeniedException = {}));
|
|
7
|
-
export var ConflictException;
|
|
8
|
-
(function (ConflictException) {
|
|
9
|
-
ConflictException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
10
|
-
})(ConflictException || (ConflictException = {}));
|
|
11
3
|
export var EfsFileLocation;
|
|
12
4
|
(function (EfsFileLocation) {
|
|
13
5
|
EfsFileLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -50,26 +42,6 @@ export var CreateAccessResponse;
|
|
|
50
42
|
(function (CreateAccessResponse) {
|
|
51
43
|
CreateAccessResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
52
44
|
})(CreateAccessResponse || (CreateAccessResponse = {}));
|
|
53
|
-
export var InternalServiceError;
|
|
54
|
-
(function (InternalServiceError) {
|
|
55
|
-
InternalServiceError.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
56
|
-
})(InternalServiceError || (InternalServiceError = {}));
|
|
57
|
-
export var InvalidRequestException;
|
|
58
|
-
(function (InvalidRequestException) {
|
|
59
|
-
InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
60
|
-
})(InvalidRequestException || (InvalidRequestException = {}));
|
|
61
|
-
export var ResourceExistsException;
|
|
62
|
-
(function (ResourceExistsException) {
|
|
63
|
-
ResourceExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
64
|
-
})(ResourceExistsException || (ResourceExistsException = {}));
|
|
65
|
-
export var ResourceNotFoundException;
|
|
66
|
-
(function (ResourceNotFoundException) {
|
|
67
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
68
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
69
|
-
export var ServiceUnavailableException;
|
|
70
|
-
(function (ServiceUnavailableException) {
|
|
71
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
72
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
73
45
|
export var Domain;
|
|
74
46
|
(function (Domain) {
|
|
75
47
|
Domain["EFS"] = "EFS";
|
|
@@ -96,6 +68,16 @@ export var IdentityProviderType;
|
|
|
96
68
|
IdentityProviderType["AWS_LAMBDA"] = "AWS_LAMBDA";
|
|
97
69
|
IdentityProviderType["SERVICE_MANAGED"] = "SERVICE_MANAGED";
|
|
98
70
|
})(IdentityProviderType || (IdentityProviderType = {}));
|
|
71
|
+
export var TlsSessionResumptionMode;
|
|
72
|
+
(function (TlsSessionResumptionMode) {
|
|
73
|
+
TlsSessionResumptionMode["DISABLED"] = "DISABLED";
|
|
74
|
+
TlsSessionResumptionMode["ENABLED"] = "ENABLED";
|
|
75
|
+
TlsSessionResumptionMode["ENFORCED"] = "ENFORCED";
|
|
76
|
+
})(TlsSessionResumptionMode || (TlsSessionResumptionMode = {}));
|
|
77
|
+
export var ProtocolDetails;
|
|
78
|
+
(function (ProtocolDetails) {
|
|
79
|
+
ProtocolDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
80
|
+
})(ProtocolDetails || (ProtocolDetails = {}));
|
|
99
81
|
export var Protocol;
|
|
100
82
|
(function (Protocol) {
|
|
101
83
|
Protocol["FTP"] = "FTP";
|
|
@@ -122,10 +104,6 @@ export var CreateServerResponse;
|
|
|
122
104
|
(function (CreateServerResponse) {
|
|
123
105
|
CreateServerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
124
106
|
})(CreateServerResponse || (CreateServerResponse = {}));
|
|
125
|
-
export var ThrottlingException;
|
|
126
|
-
(function (ThrottlingException) {
|
|
127
|
-
ThrottlingException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
128
|
-
})(ThrottlingException || (ThrottlingException = {}));
|
|
129
107
|
export var CreateUserRequest;
|
|
130
108
|
(function (CreateUserRequest) {
|
|
131
109
|
CreateUserRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -257,10 +235,6 @@ export var DescribedSecurityPolicy;
|
|
|
257
235
|
(function (DescribedSecurityPolicy) {
|
|
258
236
|
DescribedSecurityPolicy.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
259
237
|
})(DescribedSecurityPolicy || (DescribedSecurityPolicy = {}));
|
|
260
|
-
export var ProtocolDetails;
|
|
261
|
-
(function (ProtocolDetails) {
|
|
262
|
-
ProtocolDetails.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
263
|
-
})(ProtocolDetails || (ProtocolDetails = {}));
|
|
264
238
|
export var State;
|
|
265
239
|
(function (State) {
|
|
266
240
|
State["OFFLINE"] = "OFFLINE";
|
|
@@ -334,10 +308,6 @@ export var ImportSshPublicKeyResponse;
|
|
|
334
308
|
(function (ImportSshPublicKeyResponse) {
|
|
335
309
|
ImportSshPublicKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
336
310
|
})(ImportSshPublicKeyResponse || (ImportSshPublicKeyResponse = {}));
|
|
337
|
-
export var InvalidNextTokenException;
|
|
338
|
-
(function (InvalidNextTokenException) {
|
|
339
|
-
InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
340
|
-
})(InvalidNextTokenException || (InvalidNextTokenException = {}));
|
|
341
311
|
export var ListAccessesRequest;
|
|
342
312
|
(function (ListAccessesRequest) {
|
|
343
313
|
ListAccessesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -3220,14 +3220,17 @@ var serializeAws_json1_1CreateAccessRequest = function (input, context) {
|
|
|
3220
3220
|
input.PosixProfile !== null && { PosixProfile: serializeAws_json1_1PosixProfile(input.PosixProfile, context) })), (input.Role !== undefined && input.Role !== null && { Role: input.Role })), (input.ServerId !== undefined && input.ServerId !== null && { ServerId: input.ServerId }));
|
|
3221
3221
|
};
|
|
3222
3222
|
var serializeAws_json1_1CreateServerRequest = function (input, context) {
|
|
3223
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.EndpointDetails !== undefined &&
|
|
3223
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Certificate !== undefined && input.Certificate !== null && { Certificate: input.Certificate })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.EndpointDetails !== undefined &&
|
|
3224
3224
|
input.EndpointDetails !== null && {
|
|
3225
3225
|
EndpointDetails: serializeAws_json1_1EndpointDetails(input.EndpointDetails, context),
|
|
3226
3226
|
})), (input.EndpointType !== undefined && input.EndpointType !== null && { EndpointType: input.EndpointType })), (input.HostKey !== undefined && input.HostKey !== null && { HostKey: input.HostKey })), (input.IdentityProviderDetails !== undefined &&
|
|
3227
3227
|
input.IdentityProviderDetails !== null && {
|
|
3228
3228
|
IdentityProviderDetails: serializeAws_json1_1IdentityProviderDetails(input.IdentityProviderDetails, context),
|
|
3229
3229
|
})), (input.IdentityProviderType !== undefined &&
|
|
3230
|
-
input.IdentityProviderType !== null && { IdentityProviderType: input.IdentityProviderType })), (input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole })), (input.
|
|
3230
|
+
input.IdentityProviderType !== null && { IdentityProviderType: input.IdentityProviderType })), (input.LoggingRole !== undefined && input.LoggingRole !== null && { LoggingRole: input.LoggingRole })), (input.ProtocolDetails !== undefined &&
|
|
3231
|
+
input.ProtocolDetails !== null && {
|
|
3232
|
+
ProtocolDetails: serializeAws_json1_1ProtocolDetails(input.ProtocolDetails, context),
|
|
3233
|
+
})), (input.Protocols !== undefined &&
|
|
3231
3234
|
input.Protocols !== null && { Protocols: serializeAws_json1_1Protocols(input.Protocols, context) })), (input.SecurityPolicyName !== undefined &&
|
|
3232
3235
|
input.SecurityPolicyName !== null && { SecurityPolicyName: input.SecurityPolicyName })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1Tags(input.Tags, context) })), (input.WorkflowDetails !== undefined &&
|
|
3233
3236
|
input.WorkflowDetails !== null && {
|
|
@@ -3373,7 +3376,8 @@ var serializeAws_json1_1PosixProfile = function (input, context) {
|
|
|
3373
3376
|
})), (input.Uid !== undefined && input.Uid !== null && { Uid: input.Uid }));
|
|
3374
3377
|
};
|
|
3375
3378
|
var serializeAws_json1_1ProtocolDetails = function (input, context) {
|
|
3376
|
-
return __assign({}, (input.PassiveIp !== undefined && input.PassiveIp !== null && { PassiveIp: input.PassiveIp }))
|
|
3379
|
+
return __assign(__assign({}, (input.PassiveIp !== undefined && input.PassiveIp !== null && { PassiveIp: input.PassiveIp })), (input.TlsSessionResumptionMode !== undefined &&
|
|
3380
|
+
input.TlsSessionResumptionMode !== null && { TlsSessionResumptionMode: input.TlsSessionResumptionMode }));
|
|
3377
3381
|
};
|
|
3378
3382
|
var serializeAws_json1_1Protocols = function (input, context) {
|
|
3379
3383
|
return input
|
|
@@ -4077,6 +4081,7 @@ var deserializeAws_json1_1PosixProfile = function (output, context) {
|
|
|
4077
4081
|
var deserializeAws_json1_1ProtocolDetails = function (output, context) {
|
|
4078
4082
|
return {
|
|
4079
4083
|
PassiveIp: __expectString(output.PassiveIp),
|
|
4084
|
+
TlsSessionResumptionMode: __expectString(output.TlsSessionResumptionMode),
|
|
4080
4085
|
};
|
|
4081
4086
|
};
|
|
4082
4087
|
var deserializeAws_json1_1Protocols = function (output, context) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|