@aws-sdk/client-transfer 3.52.0 → 3.54.1
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 +31 -0
- package/dist-cjs/index.js +4 -0
- package/dist-cjs/models/TransferServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +141 -3
- package/dist-cjs/protocols/Aws_json1_1.js +360 -1302
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForServerOffline.js +45 -0
- package/dist-cjs/waiters/waitForServerOnline.js +45 -0
- package/dist-es/index.js +2 -0
- package/dist-es/models/TransferServiceException.js +12 -0
- package/dist-es/models/models_0.js +130 -1
- package/dist-es/protocols/Aws_json1_1.js +771 -1418
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForServerOffline.js +60 -0
- package/dist-es/waiters/waitForServerOnline.js +60 -0
- package/dist-types/TransferClient.d.ts +2 -2
- package/dist-types/index.d.ts +2 -0
- package/dist-types/models/TransferServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +227 -77
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/TransferClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +2 -0
- package/dist-types/ts3.4/models/TransferServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +69 -29
- 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 +1 -1
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForServerOffline.d.ts +7 -0
- package/dist-types/ts3.4/waiters/waitForServerOnline.d.ts +7 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForServerOffline.d.ts +14 -0
- package/dist-types/waiters/waitForServerOnline.d.ts +14 -0
- package/package.json +28 -27
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilServerOffline = exports.waitForServerOffline = void 0;
|
|
4
|
+
const util_waiter_1 = require("@aws-sdk/util-waiter");
|
|
5
|
+
const DescribeServerCommand_1 = require("../commands/DescribeServerCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new DescribeServerCommand_1.DescribeServerCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.Server.State;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "OFFLINE") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.Server.State;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "STOP_FAILED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
}
|
|
30
|
+
catch (exception) {
|
|
31
|
+
reason = exception;
|
|
32
|
+
}
|
|
33
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
const waitForServerOffline = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
37
|
+
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
exports.waitForServerOffline = waitForServerOffline;
|
|
40
|
+
const waitUntilServerOffline = async (params, input) => {
|
|
41
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
42
|
+
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
43
|
+
return util_waiter_1.checkExceptions(result);
|
|
44
|
+
};
|
|
45
|
+
exports.waitUntilServerOffline = waitUntilServerOffline;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.waitUntilServerOnline = exports.waitForServerOnline = void 0;
|
|
4
|
+
const util_waiter_1 = require("@aws-sdk/util-waiter");
|
|
5
|
+
const DescribeServerCommand_1 = require("../commands/DescribeServerCommand");
|
|
6
|
+
const checkState = async (client, input) => {
|
|
7
|
+
let reason;
|
|
8
|
+
try {
|
|
9
|
+
const result = await client.send(new DescribeServerCommand_1.DescribeServerCommand(input));
|
|
10
|
+
reason = result;
|
|
11
|
+
try {
|
|
12
|
+
const returnComparator = () => {
|
|
13
|
+
return result.Server.State;
|
|
14
|
+
};
|
|
15
|
+
if (returnComparator() === "ONLINE") {
|
|
16
|
+
return { state: util_waiter_1.WaiterState.SUCCESS, reason };
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
catch (e) { }
|
|
20
|
+
try {
|
|
21
|
+
const returnComparator = () => {
|
|
22
|
+
return result.Server.State;
|
|
23
|
+
};
|
|
24
|
+
if (returnComparator() === "START_FAILED") {
|
|
25
|
+
return { state: util_waiter_1.WaiterState.FAILURE, reason };
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
catch (e) { }
|
|
29
|
+
}
|
|
30
|
+
catch (exception) {
|
|
31
|
+
reason = exception;
|
|
32
|
+
}
|
|
33
|
+
return { state: util_waiter_1.WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
const waitForServerOnline = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
37
|
+
return util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
exports.waitForServerOnline = waitForServerOnline;
|
|
40
|
+
const waitUntilServerOnline = async (params, input) => {
|
|
41
|
+
const serviceDefaults = { minDelay: 30, maxDelay: 120 };
|
|
42
|
+
const result = await util_waiter_1.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
43
|
+
return util_waiter_1.checkExceptions(result);
|
|
44
|
+
};
|
|
45
|
+
exports.waitUntilServerOnline = waitUntilServerOnline;
|
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var TransferServiceException = (function (_super) {
|
|
4
|
+
__extends(TransferServiceException, _super);
|
|
5
|
+
function TransferServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, TransferServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return TransferServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { TransferServiceException };
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { TransferServiceException as __BaseException } from "./TransferServiceException";
|
|
4
|
+
var AccessDeniedException = (function (_super) {
|
|
5
|
+
__extends(AccessDeniedException, _super);
|
|
6
|
+
function AccessDeniedException(opts) {
|
|
7
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
8
|
+
_this.name = "AccessDeniedException";
|
|
9
|
+
_this.$fault = "client";
|
|
10
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
11
|
+
_this.Message = opts.Message;
|
|
12
|
+
return _this;
|
|
13
|
+
}
|
|
14
|
+
return AccessDeniedException;
|
|
15
|
+
}(__BaseException));
|
|
16
|
+
export { AccessDeniedException };
|
|
17
|
+
var ConflictException = (function (_super) {
|
|
18
|
+
__extends(ConflictException, _super);
|
|
19
|
+
function ConflictException(opts) {
|
|
20
|
+
var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
|
|
21
|
+
_this.name = "ConflictException";
|
|
22
|
+
_this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(_this, ConflictException.prototype);
|
|
24
|
+
_this.Message = opts.Message;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
return ConflictException;
|
|
28
|
+
}(__BaseException));
|
|
29
|
+
export { ConflictException };
|
|
3
30
|
export var EfsFileLocation;
|
|
4
31
|
(function (EfsFileLocation) {
|
|
5
32
|
EfsFileLocation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -42,6 +69,75 @@ export var CreateAccessResponse;
|
|
|
42
69
|
(function (CreateAccessResponse) {
|
|
43
70
|
CreateAccessResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
44
71
|
})(CreateAccessResponse || (CreateAccessResponse = {}));
|
|
72
|
+
var InternalServiceError = (function (_super) {
|
|
73
|
+
__extends(InternalServiceError, _super);
|
|
74
|
+
function InternalServiceError(opts) {
|
|
75
|
+
var _this = _super.call(this, __assign({ name: "InternalServiceError", $fault: "server" }, opts)) || this;
|
|
76
|
+
_this.name = "InternalServiceError";
|
|
77
|
+
_this.$fault = "server";
|
|
78
|
+
Object.setPrototypeOf(_this, InternalServiceError.prototype);
|
|
79
|
+
_this.Message = opts.Message;
|
|
80
|
+
return _this;
|
|
81
|
+
}
|
|
82
|
+
return InternalServiceError;
|
|
83
|
+
}(__BaseException));
|
|
84
|
+
export { InternalServiceError };
|
|
85
|
+
var InvalidRequestException = (function (_super) {
|
|
86
|
+
__extends(InvalidRequestException, _super);
|
|
87
|
+
function InvalidRequestException(opts) {
|
|
88
|
+
var _this = _super.call(this, __assign({ name: "InvalidRequestException", $fault: "client" }, opts)) || this;
|
|
89
|
+
_this.name = "InvalidRequestException";
|
|
90
|
+
_this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(_this, InvalidRequestException.prototype);
|
|
92
|
+
_this.Message = opts.Message;
|
|
93
|
+
return _this;
|
|
94
|
+
}
|
|
95
|
+
return InvalidRequestException;
|
|
96
|
+
}(__BaseException));
|
|
97
|
+
export { InvalidRequestException };
|
|
98
|
+
var ResourceExistsException = (function (_super) {
|
|
99
|
+
__extends(ResourceExistsException, _super);
|
|
100
|
+
function ResourceExistsException(opts) {
|
|
101
|
+
var _this = _super.call(this, __assign({ name: "ResourceExistsException", $fault: "client" }, opts)) || this;
|
|
102
|
+
_this.name = "ResourceExistsException";
|
|
103
|
+
_this.$fault = "client";
|
|
104
|
+
Object.setPrototypeOf(_this, ResourceExistsException.prototype);
|
|
105
|
+
_this.Message = opts.Message;
|
|
106
|
+
_this.Resource = opts.Resource;
|
|
107
|
+
_this.ResourceType = opts.ResourceType;
|
|
108
|
+
return _this;
|
|
109
|
+
}
|
|
110
|
+
return ResourceExistsException;
|
|
111
|
+
}(__BaseException));
|
|
112
|
+
export { ResourceExistsException };
|
|
113
|
+
var ResourceNotFoundException = (function (_super) {
|
|
114
|
+
__extends(ResourceNotFoundException, _super);
|
|
115
|
+
function ResourceNotFoundException(opts) {
|
|
116
|
+
var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
|
|
117
|
+
_this.name = "ResourceNotFoundException";
|
|
118
|
+
_this.$fault = "client";
|
|
119
|
+
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
120
|
+
_this.Message = opts.Message;
|
|
121
|
+
_this.Resource = opts.Resource;
|
|
122
|
+
_this.ResourceType = opts.ResourceType;
|
|
123
|
+
return _this;
|
|
124
|
+
}
|
|
125
|
+
return ResourceNotFoundException;
|
|
126
|
+
}(__BaseException));
|
|
127
|
+
export { ResourceNotFoundException };
|
|
128
|
+
var ServiceUnavailableException = (function (_super) {
|
|
129
|
+
__extends(ServiceUnavailableException, _super);
|
|
130
|
+
function ServiceUnavailableException(opts) {
|
|
131
|
+
var _this = _super.call(this, __assign({ name: "ServiceUnavailableException", $fault: "server" }, opts)) || this;
|
|
132
|
+
_this.name = "ServiceUnavailableException";
|
|
133
|
+
_this.$fault = "server";
|
|
134
|
+
Object.setPrototypeOf(_this, ServiceUnavailableException.prototype);
|
|
135
|
+
_this.Message = opts.Message;
|
|
136
|
+
return _this;
|
|
137
|
+
}
|
|
138
|
+
return ServiceUnavailableException;
|
|
139
|
+
}(__BaseException));
|
|
140
|
+
export { ServiceUnavailableException };
|
|
45
141
|
export var Domain;
|
|
46
142
|
(function (Domain) {
|
|
47
143
|
Domain["EFS"] = "EFS";
|
|
@@ -104,6 +200,19 @@ export var CreateServerResponse;
|
|
|
104
200
|
(function (CreateServerResponse) {
|
|
105
201
|
CreateServerResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
106
202
|
})(CreateServerResponse || (CreateServerResponse = {}));
|
|
203
|
+
var ThrottlingException = (function (_super) {
|
|
204
|
+
__extends(ThrottlingException, _super);
|
|
205
|
+
function ThrottlingException(opts) {
|
|
206
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
|
|
207
|
+
_this.name = "ThrottlingException";
|
|
208
|
+
_this.$fault = "client";
|
|
209
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
210
|
+
_this.RetryAfterSeconds = opts.RetryAfterSeconds;
|
|
211
|
+
return _this;
|
|
212
|
+
}
|
|
213
|
+
return ThrottlingException;
|
|
214
|
+
}(__BaseException));
|
|
215
|
+
export { ThrottlingException };
|
|
107
216
|
export var CreateUserRequest;
|
|
108
217
|
(function (CreateUserRequest) {
|
|
109
218
|
CreateUserRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -198,7 +307,14 @@ export var LoggingConfiguration;
|
|
|
198
307
|
})(LoggingConfiguration || (LoggingConfiguration = {}));
|
|
199
308
|
export var ExecutionErrorType;
|
|
200
309
|
(function (ExecutionErrorType) {
|
|
310
|
+
ExecutionErrorType["ALREADY_EXISTS"] = "ALREADY_EXISTS";
|
|
311
|
+
ExecutionErrorType["BAD_REQUEST"] = "BAD_REQUEST";
|
|
312
|
+
ExecutionErrorType["CUSTOM_STEP_FAILED"] = "CUSTOM_STEP_FAILED";
|
|
313
|
+
ExecutionErrorType["INTERNAL_SERVER_ERROR"] = "INTERNAL_SERVER_ERROR";
|
|
314
|
+
ExecutionErrorType["NOT_FOUND"] = "NOT_FOUND";
|
|
201
315
|
ExecutionErrorType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
|
|
316
|
+
ExecutionErrorType["THROTTLED"] = "THROTTLED";
|
|
317
|
+
ExecutionErrorType["TIMEOUT"] = "TIMEOUT";
|
|
202
318
|
})(ExecutionErrorType || (ExecutionErrorType = {}));
|
|
203
319
|
export var ExecutionError;
|
|
204
320
|
(function (ExecutionError) {
|
|
@@ -308,6 +424,19 @@ export var ImportSshPublicKeyResponse;
|
|
|
308
424
|
(function (ImportSshPublicKeyResponse) {
|
|
309
425
|
ImportSshPublicKeyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
310
426
|
})(ImportSshPublicKeyResponse || (ImportSshPublicKeyResponse = {}));
|
|
427
|
+
var InvalidNextTokenException = (function (_super) {
|
|
428
|
+
__extends(InvalidNextTokenException, _super);
|
|
429
|
+
function InvalidNextTokenException(opts) {
|
|
430
|
+
var _this = _super.call(this, __assign({ name: "InvalidNextTokenException", $fault: "client" }, opts)) || this;
|
|
431
|
+
_this.name = "InvalidNextTokenException";
|
|
432
|
+
_this.$fault = "client";
|
|
433
|
+
Object.setPrototypeOf(_this, InvalidNextTokenException.prototype);
|
|
434
|
+
_this.Message = opts.Message;
|
|
435
|
+
return _this;
|
|
436
|
+
}
|
|
437
|
+
return InvalidNextTokenException;
|
|
438
|
+
}(__BaseException));
|
|
439
|
+
export { InvalidNextTokenException };
|
|
311
440
|
export var ListAccessesRequest;
|
|
312
441
|
(function (ListAccessesRequest) {
|
|
313
442
|
ListAccessesRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|