@aws-sdk/client-transfer 3.53.0 → 3.54.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 CHANGED
@@ -3,6 +3,17 @@
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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients as of 2022/03/10 ([#3411](https://github.com/aws/aws-sdk-js-v3/issues/3411)) ([8fa517a](https://github.com/aws/aws-sdk-js-v3/commit/8fa517a2c56d2f98a2e4a9c4ea6fd99b6ce61a71))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
18
 
8
19
 
package/dist-cjs/index.js CHANGED
@@ -7,5 +7,6 @@ tslib_1.__exportStar(require("./TransferClient"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
8
  tslib_1.__exportStar(require("./models"), exports);
9
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ tslib_1.__exportStar(require("./waiters"), exports);
10
11
  var TransferServiceException_1 = require("./models/TransferServiceException");
11
12
  Object.defineProperty(exports, "TransferServiceException", { enumerable: true, get: function () { return TransferServiceException_1.TransferServiceException; } });
@@ -392,7 +392,14 @@ var LoggingConfiguration;
392
392
  })(LoggingConfiguration = exports.LoggingConfiguration || (exports.LoggingConfiguration = {}));
393
393
  var ExecutionErrorType;
394
394
  (function (ExecutionErrorType) {
395
+ ExecutionErrorType["ALREADY_EXISTS"] = "ALREADY_EXISTS";
396
+ ExecutionErrorType["BAD_REQUEST"] = "BAD_REQUEST";
397
+ ExecutionErrorType["CUSTOM_STEP_FAILED"] = "CUSTOM_STEP_FAILED";
398
+ ExecutionErrorType["INTERNAL_SERVER_ERROR"] = "INTERNAL_SERVER_ERROR";
399
+ ExecutionErrorType["NOT_FOUND"] = "NOT_FOUND";
395
400
  ExecutionErrorType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
401
+ ExecutionErrorType["THROTTLED"] = "THROTTLED";
402
+ ExecutionErrorType["TIMEOUT"] = "TIMEOUT";
396
403
  })(ExecutionErrorType = exports.ExecutionErrorType || (exports.ExecutionErrorType = {}));
397
404
  var ExecutionError;
398
405
  (function (ExecutionError) {
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./waitForServerOffline"), exports);
5
+ tslib_1.__exportStar(require("./waitForServerOnline"), exports);
@@ -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
@@ -3,4 +3,5 @@ export * from "./TransferClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export * from "./waiters";
6
7
  export { TransferServiceException } from "./models/TransferServiceException";
@@ -307,7 +307,14 @@ export var LoggingConfiguration;
307
307
  })(LoggingConfiguration || (LoggingConfiguration = {}));
308
308
  export var ExecutionErrorType;
309
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";
310
315
  ExecutionErrorType["PERMISSION_DENIED"] = "PERMISSION_DENIED";
316
+ ExecutionErrorType["THROTTLED"] = "THROTTLED";
317
+ ExecutionErrorType["TIMEOUT"] = "TIMEOUT";
311
318
  })(ExecutionErrorType || (ExecutionErrorType = {}));
312
319
  export var ExecutionError;
313
320
  (function (ExecutionError) {
@@ -0,0 +1,2 @@
1
+ export * from "./waitForServerOffline";
2
+ export * from "./waitForServerOnline";
@@ -0,0 +1,60 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
3
+ import { DescribeServerCommand } from "../commands/DescribeServerCommand";
4
+ var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
5
+ var reason, result_1, returnComparator, returnComparator, exception_1;
6
+ return __generator(this, function (_a) {
7
+ switch (_a.label) {
8
+ case 0:
9
+ _a.trys.push([0, 2, , 3]);
10
+ return [4, client.send(new DescribeServerCommand(input))];
11
+ case 1:
12
+ result_1 = _a.sent();
13
+ reason = result_1;
14
+ try {
15
+ returnComparator = function () {
16
+ return result_1.Server.State;
17
+ };
18
+ if (returnComparator() === "OFFLINE") {
19
+ return [2, { state: WaiterState.SUCCESS, reason: reason }];
20
+ }
21
+ }
22
+ catch (e) { }
23
+ try {
24
+ returnComparator = function () {
25
+ return result_1.Server.State;
26
+ };
27
+ if (returnComparator() === "STOP_FAILED") {
28
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
29
+ }
30
+ }
31
+ catch (e) { }
32
+ return [3, 3];
33
+ case 2:
34
+ exception_1 = _a.sent();
35
+ reason = exception_1;
36
+ return [3, 3];
37
+ case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
38
+ }
39
+ });
40
+ }); };
41
+ export var waitForServerOffline = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
42
+ var serviceDefaults;
43
+ return __generator(this, function (_a) {
44
+ serviceDefaults = { minDelay: 30, maxDelay: 120 };
45
+ return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
46
+ });
47
+ }); };
48
+ export var waitUntilServerOffline = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
49
+ var serviceDefaults, result;
50
+ return __generator(this, function (_a) {
51
+ switch (_a.label) {
52
+ case 0:
53
+ serviceDefaults = { minDelay: 30, maxDelay: 120 };
54
+ return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
55
+ case 1:
56
+ result = _a.sent();
57
+ return [2, checkExceptions(result)];
58
+ }
59
+ });
60
+ }); };
@@ -0,0 +1,60 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
3
+ import { DescribeServerCommand } from "../commands/DescribeServerCommand";
4
+ var checkState = function (client, input) { return __awaiter(void 0, void 0, void 0, function () {
5
+ var reason, result_1, returnComparator, returnComparator, exception_1;
6
+ return __generator(this, function (_a) {
7
+ switch (_a.label) {
8
+ case 0:
9
+ _a.trys.push([0, 2, , 3]);
10
+ return [4, client.send(new DescribeServerCommand(input))];
11
+ case 1:
12
+ result_1 = _a.sent();
13
+ reason = result_1;
14
+ try {
15
+ returnComparator = function () {
16
+ return result_1.Server.State;
17
+ };
18
+ if (returnComparator() === "ONLINE") {
19
+ return [2, { state: WaiterState.SUCCESS, reason: reason }];
20
+ }
21
+ }
22
+ catch (e) { }
23
+ try {
24
+ returnComparator = function () {
25
+ return result_1.Server.State;
26
+ };
27
+ if (returnComparator() === "START_FAILED") {
28
+ return [2, { state: WaiterState.FAILURE, reason: reason }];
29
+ }
30
+ }
31
+ catch (e) { }
32
+ return [3, 3];
33
+ case 2:
34
+ exception_1 = _a.sent();
35
+ reason = exception_1;
36
+ return [3, 3];
37
+ case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
38
+ }
39
+ });
40
+ }); };
41
+ export var waitForServerOnline = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
42
+ var serviceDefaults;
43
+ return __generator(this, function (_a) {
44
+ serviceDefaults = { minDelay: 30, maxDelay: 120 };
45
+ return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
46
+ });
47
+ }); };
48
+ export var waitUntilServerOnline = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
49
+ var serviceDefaults, result;
50
+ return __generator(this, function (_a) {
51
+ switch (_a.label) {
52
+ case 0:
53
+ serviceDefaults = { minDelay: 30, maxDelay: 120 };
54
+ return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
55
+ case 1:
56
+ result = _a.sent();
57
+ return [2, checkExceptions(result)];
58
+ }
59
+ });
60
+ }); };
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateAccessCommandInput, CreateAccessCommandOutput } from "./commands/CreateAccessCommand";
10
10
  import { CreateServerCommandInput, CreateServerCommandOutput } from "./commands/CreateServerCommand";
11
11
  import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
@@ -60,7 +60,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
60
60
  * A function that can calculate the length of a request body.
61
61
  * @internal
62
62
  */
63
- bodyLengthChecker?: (body: any) => number | undefined;
63
+ bodyLengthChecker?: __BodyLengthCalculator;
64
64
  /**
65
65
  * A function that converts a stream into an array of bytes.
66
66
  * @internal
@@ -3,4 +3,5 @@ export * from "./TransferClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export * from "./waiters";
6
7
  export { TransferServiceException } from "./models/TransferServiceException";
@@ -760,7 +760,22 @@ export interface CreateServerRequest {
760
760
  * your CloudWatch logs.</p>
761
761
  */
762
762
  LoggingRole?: string;
763
+ /**
764
+ * <p>Specify a string to display when users connect to a server. This string is displayed after the user authenticates.</p>
765
+ * <note>
766
+ * <p>The SFTP protocol does not support post-authentication display banners.</p>
767
+ * </note>
768
+ */
763
769
  PostAuthenticationLoginBanner?: string;
770
+ /**
771
+ * <p>Specify a string to display when users connect to a server. This string is displayed before the user authenticates.
772
+ * For example, the following banner displays details about using the system.</p>
773
+ * <p>
774
+ * <code>This system is for the use of authorized users only. Individuals using this computer system without authority,
775
+ * or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by
776
+ * system personnel.</code>
777
+ * </p>
778
+ */
764
779
  PreAuthenticationLoginBanner?: string;
765
780
  /**
766
781
  * <p>Specifies the file transfer protocol or protocols over which your file transfer protocol
@@ -1535,15 +1550,63 @@ export declare namespace LoggingConfiguration {
1535
1550
  const filterSensitiveLog: (obj: LoggingConfiguration) => any;
1536
1551
  }
1537
1552
  export declare enum ExecutionErrorType {
1538
- PERMISSION_DENIED = "PERMISSION_DENIED"
1553
+ ALREADY_EXISTS = "ALREADY_EXISTS",
1554
+ BAD_REQUEST = "BAD_REQUEST",
1555
+ CUSTOM_STEP_FAILED = "CUSTOM_STEP_FAILED",
1556
+ INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
1557
+ NOT_FOUND = "NOT_FOUND",
1558
+ PERMISSION_DENIED = "PERMISSION_DENIED",
1559
+ THROTTLED = "THROTTLED",
1560
+ TIMEOUT = "TIMEOUT"
1539
1561
  }
1540
1562
  /**
1541
1563
  * <p>Specifies the error message and type, for an error that occurs during the execution of the workflow.</p>
1542
1564
  */
1543
1565
  export interface ExecutionError {
1544
1566
  /**
1545
- * <p>Specifies the error type: currently, the only valid value is <code>PERMISSION_DENIED</code>, which occurs
1546
- * if your policy does not contain the correct permissions to complete one or more of the steps in the workflow.</p>
1567
+ * <p>Specifies the error type.</p>
1568
+ * <ul>
1569
+ * <li>
1570
+ * <p>
1571
+ * <code>ALREADY_EXISTS</code>: occurs for a copy step, if the overwrite option is not selected and a file with the same name already exists in the target location.</p>
1572
+ * </li>
1573
+ * <li>
1574
+ * <p>
1575
+ * <code>BAD_REQUEST</code>: a general bad request: for example, a step that attempts to
1576
+ * tag an EFS file returns <code>BAD_REQUEST</code>, as only S3 files can be tagged.</p>
1577
+ * </li>
1578
+ * <li>
1579
+ * <p>
1580
+ * <code>CUSTOM_STEP_FAILED</code>: occurs when the custom step provided a callback that indicates failure.</p>
1581
+ * </li>
1582
+ * <li>
1583
+ * <p>
1584
+ * <code>INTERNAL_SERVER_ERROR</code>: a catch-all error that can occur for a variety of
1585
+ * reasons.</p>
1586
+ * </li>
1587
+ * <li>
1588
+ * <p>
1589
+ * <code>NOT_FOUND</code>: occurs when a requested entity, for example a source file for
1590
+ * a copy step, does not exist.</p>
1591
+ * </li>
1592
+ * <li>
1593
+ * <p>
1594
+ * <code>PERMISSION_DENIED</code>: occurs if your policy does not contain the correct
1595
+ * permissions to complete one or more of the steps in the workflow.</p>
1596
+ * </li>
1597
+ * <li>
1598
+ * <p>
1599
+ * <code>TIMEOUT</code>: occurs when the execution times out.</p>
1600
+ * <note>
1601
+ * <p> You can set the <code>TimeoutSeconds</code> for a custom step, anywhere from 1 second to 1800 seconds (30 minutes). </p>
1602
+ * </note>
1603
+ * </li>
1604
+ * <li>
1605
+ * <p>
1606
+ * <code>THROTTLED</code>: occurs if you exceed the new execution refill rate of one
1607
+ * workflow per second.</p>
1608
+ * </li>
1609
+ * </ul>
1547
1610
  */
1548
1611
  Type: ExecutionErrorType | string | undefined;
1549
1612
  /**
@@ -1836,7 +1899,22 @@ export interface DescribedServer {
1836
1899
  * your CloudWatch logs.</p>
1837
1900
  */
1838
1901
  LoggingRole?: string;
1902
+ /**
1903
+ * <p>Specify a string to display when users connect to a server. This string is displayed after the user authenticates.</p>
1904
+ * <note>
1905
+ * <p>The SFTP protocol does not support post-authentication display banners.</p>
1906
+ * </note>
1907
+ */
1839
1908
  PostAuthenticationLoginBanner?: string;
1909
+ /**
1910
+ * <p>Specify a string to display when users connect to a server. This string is displayed before the user authenticates.
1911
+ * For example, the following banner displays details about using the system.</p>
1912
+ * <p>
1913
+ * <code>This system is for the use of authorized users only. Individuals using this computer system without authority,
1914
+ * or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by
1915
+ * system personnel.</code>
1916
+ * </p>
1917
+ */
1840
1918
  PreAuthenticationLoginBanner?: string;
1841
1919
  /**
1842
1920
  * <p>Specifies the file transfer protocol or protocols over which your file transfer protocol
@@ -3188,7 +3266,22 @@ export interface UpdateServerRequest {
3188
3266
  * your CloudWatch logs.</p>
3189
3267
  */
3190
3268
  LoggingRole?: string;
3269
+ /**
3270
+ * <p>Specify a string to display when users connect to a server. This string is displayed after the user authenticates.</p>
3271
+ * <note>
3272
+ * <p>The SFTP protocol does not support post-authentication display banners.</p>
3273
+ * </note>
3274
+ */
3191
3275
  PostAuthenticationLoginBanner?: string;
3276
+ /**
3277
+ * <p>Specify a string to display when users connect to a server. This string is displayed before the user authenticates.
3278
+ * For example, the following banner displays details about using the system.</p>
3279
+ * <p>
3280
+ * <code>This system is for the use of authorized users only. Individuals using this computer system without authority,
3281
+ * or in excess of their authority, are subject to having all of their activities on this system monitored and recorded by
3282
+ * system personnel.</code>
3283
+ * </p>
3284
+ */
3192
3285
  PreAuthenticationLoginBanner?: string;
3193
3286
  /**
3194
3287
  * <p>Specifies the file transfer protocol or protocols over which your file transfer protocol
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TransferClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TransferClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: TransferClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CreateAccessCommandInput, CreateAccessCommandOutput } from "./commands/CreateAccessCommand";
10
10
  import { CreateServerCommandInput, CreateServerCommandOutput } from "./commands/CreateServerCommand";
11
11
  import { CreateUserCommandInput, CreateUserCommandOutput } from "./commands/CreateUserCommand";
@@ -48,7 +48,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
48
48
 
49
49
  urlParser?: __UrlParser;
50
50
 
51
- bodyLengthChecker?: (body: any) => number | undefined;
51
+ bodyLengthChecker?: __BodyLengthCalculator;
52
52
 
53
53
  streamCollector?: __StreamCollector;
54
54
 
@@ -3,4 +3,5 @@ export * from "./TransferClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export * from "./waiters";
6
7
  export { TransferServiceException } from "./models/TransferServiceException";
@@ -288,7 +288,9 @@ export interface CreateServerRequest {
288
288
  IdentityProviderType?: IdentityProviderType | string;
289
289
 
290
290
  LoggingRole?: string;
291
+
291
292
  PostAuthenticationLoginBanner?: string;
293
+
292
294
  PreAuthenticationLoginBanner?: string;
293
295
 
294
296
  Protocols?: (Protocol | string)[];
@@ -583,7 +585,14 @@ export declare namespace LoggingConfiguration {
583
585
  const filterSensitiveLog: (obj: LoggingConfiguration) => any;
584
586
  }
585
587
  export declare enum ExecutionErrorType {
586
- PERMISSION_DENIED = "PERMISSION_DENIED"
588
+ ALREADY_EXISTS = "ALREADY_EXISTS",
589
+ BAD_REQUEST = "BAD_REQUEST",
590
+ CUSTOM_STEP_FAILED = "CUSTOM_STEP_FAILED",
591
+ INTERNAL_SERVER_ERROR = "INTERNAL_SERVER_ERROR",
592
+ NOT_FOUND = "NOT_FOUND",
593
+ PERMISSION_DENIED = "PERMISSION_DENIED",
594
+ THROTTLED = "THROTTLED",
595
+ TIMEOUT = "TIMEOUT"
587
596
  }
588
597
 
589
598
  export interface ExecutionError {
@@ -720,7 +729,9 @@ export interface DescribedServer {
720
729
  IdentityProviderType?: IdentityProviderType | string;
721
730
 
722
731
  LoggingRole?: string;
732
+
723
733
  PostAuthenticationLoginBanner?: string;
734
+
724
735
  PreAuthenticationLoginBanner?: string;
725
736
 
726
737
  Protocols?: (Protocol | string)[];
@@ -1295,7 +1306,9 @@ export interface UpdateServerRequest {
1295
1306
  IdentityProviderDetails?: IdentityProviderDetails;
1296
1307
 
1297
1308
  LoggingRole?: string;
1309
+
1298
1310
  PostAuthenticationLoginBanner?: string;
1311
+
1299
1312
  PreAuthenticationLoginBanner?: string;
1300
1313
 
1301
1314
  Protocols?: (Protocol | string)[];
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TransferClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TransferClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: TransferClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -0,0 +1,2 @@
1
+ export * from "./waitForServerOffline";
2
+ export * from "./waitForServerOnline";
@@ -0,0 +1,7 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { DescribeServerCommandInput } from "../commands/DescribeServerCommand";
3
+ import { TransferClient } from "../TransferClient";
4
+
5
+ export declare const waitForServerOffline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
6
+
7
+ export declare const waitUntilServerOffline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,7 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { DescribeServerCommandInput } from "../commands/DescribeServerCommand";
3
+ import { TransferClient } from "../TransferClient";
4
+
5
+ export declare const waitForServerOnline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
6
+
7
+ export declare const waitUntilServerOnline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,2 @@
1
+ export * from "./waitForServerOffline";
2
+ export * from "./waitForServerOnline";
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { DescribeServerCommandInput } from "../commands/DescribeServerCommand";
3
+ import { TransferClient } from "../TransferClient";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilServerOffline instead. waitForServerOffline does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForServerOffline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeServerCommand for polling.
13
+ */
14
+ export declare const waitUntilServerOffline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
@@ -0,0 +1,14 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@aws-sdk/util-waiter";
2
+ import { DescribeServerCommandInput } from "../commands/DescribeServerCommand";
3
+ import { TransferClient } from "../TransferClient";
4
+ /**
5
+ *
6
+ * @deprecated Use waitUntilServerOnline instead. waitForServerOnline does not throw error in non-success cases.
7
+ */
8
+ export declare const waitForServerOnline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
9
+ /**
10
+ *
11
+ * @param params - Waiter configuration options.
12
+ * @param input - The input to DescribeServerCommand for polling.
13
+ */
14
+ export declare const waitUntilServerOnline: (params: WaiterConfiguration<TransferClient>, input: DescribeServerCommandInput) => Promise<WaiterResult>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transfer",
3
3
  "description": "AWS SDK for JavaScript Transfer Client for Node.js, Browser and React Native",
4
- "version": "3.53.0",
4
+ "version": "3.54.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,36 +18,37 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.53.0",
22
- "@aws-sdk/config-resolver": "3.53.0",
23
- "@aws-sdk/credential-provider-node": "3.53.0",
24
- "@aws-sdk/fetch-http-handler": "3.53.0",
25
- "@aws-sdk/hash-node": "3.53.0",
26
- "@aws-sdk/invalid-dependency": "3.53.0",
27
- "@aws-sdk/middleware-content-length": "3.53.0",
28
- "@aws-sdk/middleware-host-header": "3.53.0",
29
- "@aws-sdk/middleware-logger": "3.53.0",
30
- "@aws-sdk/middleware-retry": "3.53.0",
31
- "@aws-sdk/middleware-serde": "3.53.0",
32
- "@aws-sdk/middleware-signing": "3.53.0",
33
- "@aws-sdk/middleware-stack": "3.53.0",
34
- "@aws-sdk/middleware-user-agent": "3.53.0",
35
- "@aws-sdk/node-config-provider": "3.53.0",
36
- "@aws-sdk/node-http-handler": "3.53.0",
37
- "@aws-sdk/protocol-http": "3.53.0",
38
- "@aws-sdk/smithy-client": "3.53.0",
39
- "@aws-sdk/types": "3.53.0",
40
- "@aws-sdk/url-parser": "3.53.0",
21
+ "@aws-sdk/client-sts": "3.54.0",
22
+ "@aws-sdk/config-resolver": "3.54.0",
23
+ "@aws-sdk/credential-provider-node": "3.54.0",
24
+ "@aws-sdk/fetch-http-handler": "3.54.0",
25
+ "@aws-sdk/hash-node": "3.54.0",
26
+ "@aws-sdk/invalid-dependency": "3.54.0",
27
+ "@aws-sdk/middleware-content-length": "3.54.0",
28
+ "@aws-sdk/middleware-host-header": "3.54.0",
29
+ "@aws-sdk/middleware-logger": "3.54.0",
30
+ "@aws-sdk/middleware-retry": "3.54.0",
31
+ "@aws-sdk/middleware-serde": "3.54.0",
32
+ "@aws-sdk/middleware-signing": "3.54.0",
33
+ "@aws-sdk/middleware-stack": "3.54.0",
34
+ "@aws-sdk/middleware-user-agent": "3.54.0",
35
+ "@aws-sdk/node-config-provider": "3.54.0",
36
+ "@aws-sdk/node-http-handler": "3.54.0",
37
+ "@aws-sdk/protocol-http": "3.54.0",
38
+ "@aws-sdk/smithy-client": "3.54.0",
39
+ "@aws-sdk/types": "3.54.0",
40
+ "@aws-sdk/url-parser": "3.54.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
- "@aws-sdk/util-user-agent-browser": "3.53.0",
48
- "@aws-sdk/util-user-agent-node": "3.53.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.0",
48
+ "@aws-sdk/util-user-agent-node": "3.54.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
+ "@aws-sdk/util-waiter": "3.54.0",
51
52
  "tslib": "^2.3.0"
52
53
  },
53
54
  "devDependencies": {