@aws-sdk/client-medialive 3.186.0 → 3.188.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 +12 -0
- package/dist-cjs/commands/StopMultiplexCommand.js +2 -1
- package/dist-cjs/commands/TransferInputDeviceCommand.js +3 -3
- package/dist-cjs/models/models_1.js +19 -18
- package/dist-cjs/models/models_2.js +13 -1
- package/dist-cjs/protocols/Aws_restJson1.js +43 -0
- package/dist-cjs/runtimeConfig.browser.js +9 -7
- package/dist-cjs/runtimeConfig.js +9 -7
- package/dist-es/MediaLive.js +238 -245
- package/dist-es/MediaLiveClient.js +22 -28
- package/dist-es/commands/AcceptInputDeviceTransferCommand.js +21 -28
- package/dist-es/commands/BatchDeleteCommand.js +21 -28
- package/dist-es/commands/BatchStartCommand.js +21 -28
- package/dist-es/commands/BatchStopCommand.js +21 -28
- package/dist-es/commands/BatchUpdateScheduleCommand.js +21 -28
- package/dist-es/commands/CancelInputDeviceTransferCommand.js +21 -28
- package/dist-es/commands/ClaimDeviceCommand.js +21 -28
- package/dist-es/commands/CreateChannelCommand.js +21 -28
- package/dist-es/commands/CreateInputCommand.js +21 -28
- package/dist-es/commands/CreateInputSecurityGroupCommand.js +21 -28
- package/dist-es/commands/CreateMultiplexCommand.js +21 -28
- package/dist-es/commands/CreateMultiplexProgramCommand.js +21 -28
- package/dist-es/commands/CreatePartnerInputCommand.js +21 -28
- package/dist-es/commands/CreateTagsCommand.js +22 -29
- package/dist-es/commands/DeleteChannelCommand.js +21 -28
- package/dist-es/commands/DeleteInputCommand.js +21 -28
- package/dist-es/commands/DeleteInputSecurityGroupCommand.js +21 -28
- package/dist-es/commands/DeleteMultiplexCommand.js +21 -28
- package/dist-es/commands/DeleteMultiplexProgramCommand.js +21 -28
- package/dist-es/commands/DeleteReservationCommand.js +21 -28
- package/dist-es/commands/DeleteScheduleCommand.js +21 -28
- package/dist-es/commands/DeleteTagsCommand.js +22 -29
- package/dist-es/commands/DescribeChannelCommand.js +21 -28
- package/dist-es/commands/DescribeInputCommand.js +21 -28
- package/dist-es/commands/DescribeInputDeviceCommand.js +21 -28
- package/dist-es/commands/DescribeInputDeviceThumbnailCommand.js +21 -28
- package/dist-es/commands/DescribeInputSecurityGroupCommand.js +21 -28
- package/dist-es/commands/DescribeMultiplexCommand.js +21 -28
- package/dist-es/commands/DescribeMultiplexProgramCommand.js +21 -28
- package/dist-es/commands/DescribeOfferingCommand.js +21 -28
- package/dist-es/commands/DescribeReservationCommand.js +21 -28
- package/dist-es/commands/DescribeScheduleCommand.js +21 -28
- package/dist-es/commands/ListChannelsCommand.js +21 -28
- package/dist-es/commands/ListInputDeviceTransfersCommand.js +21 -28
- package/dist-es/commands/ListInputDevicesCommand.js +21 -28
- package/dist-es/commands/ListInputSecurityGroupsCommand.js +21 -28
- package/dist-es/commands/ListInputsCommand.js +21 -28
- package/dist-es/commands/ListMultiplexProgramsCommand.js +21 -28
- package/dist-es/commands/ListMultiplexesCommand.js +21 -28
- package/dist-es/commands/ListOfferingsCommand.js +21 -28
- package/dist-es/commands/ListReservationsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/PurchaseOfferingCommand.js +21 -28
- package/dist-es/commands/RebootInputDeviceCommand.js +21 -28
- package/dist-es/commands/RejectInputDeviceTransferCommand.js +21 -28
- package/dist-es/commands/StartChannelCommand.js +21 -28
- package/dist-es/commands/StartInputDeviceMaintenanceWindowCommand.js +21 -28
- package/dist-es/commands/StartMultiplexCommand.js +21 -28
- package/dist-es/commands/StopChannelCommand.js +21 -28
- package/dist-es/commands/StopMultiplexCommand.js +23 -29
- package/dist-es/commands/TransferInputDeviceCommand.js +22 -29
- package/dist-es/commands/UpdateChannelClassCommand.js +21 -28
- package/dist-es/commands/UpdateChannelCommand.js +21 -28
- package/dist-es/commands/UpdateInputCommand.js +21 -28
- package/dist-es/commands/UpdateInputDeviceCommand.js +21 -28
- package/dist-es/commands/UpdateInputSecurityGroupCommand.js +21 -28
- package/dist-es/commands/UpdateMultiplexCommand.js +21 -28
- package/dist-es/commands/UpdateMultiplexProgramCommand.js +21 -28
- package/dist-es/commands/UpdateReservationCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaLiveServiceException.js +5 -10
- package/dist-es/models/models_0.js +429 -144
- package/dist-es/models/models_1.js +675 -298
- package/dist-es/models/models_2.js +57 -17
- package/dist-es/pagination/DescribeSchedulePaginator.js +25 -68
- package/dist-es/pagination/ListChannelsPaginator.js +25 -68
- package/dist-es/pagination/ListInputDeviceTransfersPaginator.js +25 -68
- package/dist-es/pagination/ListInputDevicesPaginator.js +25 -68
- package/dist-es/pagination/ListInputSecurityGroupsPaginator.js +25 -68
- package/dist-es/pagination/ListInputsPaginator.js +25 -68
- package/dist-es/pagination/ListMultiplexProgramsPaginator.js +25 -68
- package/dist-es/pagination/ListMultiplexesPaginator.js +25 -68
- package/dist-es/pagination/ListOfferingsPaginator.js +25 -68
- package/dist-es/pagination/ListReservationsPaginator.js +25 -68
- package/dist-es/protocols/Aws_restJson1.js +7452 -8425
- package/dist-es/runtimeConfig.browser.js +28 -12
- package/dist-es/runtimeConfig.js +32 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-es/waiters/waitForChannelCreated.js +48 -68
- package/dist-es/waiters/waitForChannelDeleted.js +39 -59
- package/dist-es/waiters/waitForChannelRunning.js +39 -59
- package/dist-es/waiters/waitForChannelStopped.js +39 -59
- package/dist-es/waiters/waitForInputAttached.js +39 -59
- package/dist-es/waiters/waitForInputDeleted.js +39 -59
- package/dist-es/waiters/waitForInputDetached.js +48 -68
- package/dist-es/waiters/waitForMultiplexCreated.js +48 -68
- package/dist-es/waiters/waitForMultiplexDeleted.js +39 -59
- package/dist-es/waiters/waitForMultiplexRunning.js +39 -59
- package/dist-es/waiters/waitForMultiplexStopped.js +39 -59
- package/dist-types/MediaLiveClient.d.ts +6 -1
- package/dist-types/commands/DescribeInputDeviceThumbnailCommand.d.ts +2 -2
- package/dist-types/commands/StopMultiplexCommand.d.ts +2 -1
- package/dist-types/commands/TransferInputDeviceCommand.d.ts +1 -1
- package/dist-types/models/models_1.d.ts +62 -83
- package/dist-types/models/models_2.d.ts +84 -1
- package/dist-types/protocols/Aws_restJson1.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/MediaLiveClient.d.ts +2 -0
- package/dist-types/ts3.4/commands/DescribeInputDeviceThumbnailCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/StopMultiplexCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/TransferInputDeviceCommand.d.ts +1 -1
- package/dist-types/ts3.4/models/models_1.d.ts +22 -28
- package/dist-types/ts3.4/models/models_2.d.ts +30 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +5 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +36 -34
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeInputCommand } from "../commands/DescribeInputCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.State;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "ATTACHED") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.State;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "DETACHED") {
|
|
28
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "InternalServerErrorException") {
|
|
37
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeInputCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "ATTACHED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilInputAttached = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DETACHED") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForInputAttached = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilInputAttached = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeInputCommand } from "../commands/DescribeInputCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.State;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "DELETED") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.State;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "DELETING") {
|
|
28
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "InternalServerErrorException") {
|
|
37
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeInputCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilInputDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DELETING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForInputDeleted = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilInputDeleted = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -1,72 +1,52 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeInputCommand } from "../commands/DescribeInputCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.State;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "DETACHED") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.State;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "CREATING") {
|
|
28
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
try {
|
|
33
|
-
returnComparator = function () {
|
|
34
|
-
return result_1.State;
|
|
35
|
-
};
|
|
36
|
-
if (returnComparator() === "ATTACHED") {
|
|
37
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) { }
|
|
41
|
-
return [3, 3];
|
|
42
|
-
case 2:
|
|
43
|
-
exception_1 = _a.sent();
|
|
44
|
-
reason = exception_1;
|
|
45
|
-
if (exception_1.name && exception_1.name == "InternalServerErrorException") {
|
|
46
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
47
|
-
}
|
|
48
|
-
return [3, 3];
|
|
49
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeInputCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DETACHED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
50
15
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}); };
|
|
60
|
-
export var waitUntilInputDetached = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
|
-
var serviceDefaults, result;
|
|
62
|
-
return __generator(this, function (_a) {
|
|
63
|
-
switch (_a.label) {
|
|
64
|
-
case 0:
|
|
65
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
66
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
67
|
-
case 1:
|
|
68
|
-
result = _a.sent();
|
|
69
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
70
24
|
}
|
|
71
|
-
|
|
72
|
-
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "ATTACHED") {
|
|
31
|
+
return { state: WaiterState.RETRY, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { state: WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
export const waitForInputDetached = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
46
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
export const waitUntilInputDetached = async (params, input) => {
|
|
49
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
50
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
51
|
+
return checkExceptions(result);
|
|
52
|
+
};
|
|
@@ -1,72 +1,52 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeMultiplexCommand } from "../commands/DescribeMultiplexCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.State;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "IDLE") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.State;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "CREATING") {
|
|
28
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
try {
|
|
33
|
-
returnComparator = function () {
|
|
34
|
-
return result_1.State;
|
|
35
|
-
};
|
|
36
|
-
if (returnComparator() === "CREATE_FAILED") {
|
|
37
|
-
return [2, { state: WaiterState.FAILURE, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
catch (e) { }
|
|
41
|
-
return [3, 3];
|
|
42
|
-
case 2:
|
|
43
|
-
exception_1 = _a.sent();
|
|
44
|
-
reason = exception_1;
|
|
45
|
-
if (exception_1.name && exception_1.name == "InternalServerErrorException") {
|
|
46
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
47
|
-
}
|
|
48
|
-
return [3, 3];
|
|
49
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeMultiplexCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "IDLE") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
50
15
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}); };
|
|
60
|
-
export var waitUntilMultiplexCreated = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
61
|
-
var serviceDefaults, result;
|
|
62
|
-
return __generator(this, function (_a) {
|
|
63
|
-
switch (_a.label) {
|
|
64
|
-
case 0:
|
|
65
|
-
serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
66
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
67
|
-
case 1:
|
|
68
|
-
result = _a.sent();
|
|
69
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "CREATING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
70
24
|
}
|
|
71
|
-
|
|
72
|
-
|
|
25
|
+
catch (e) { }
|
|
26
|
+
try {
|
|
27
|
+
const returnComparator = () => {
|
|
28
|
+
return result.State;
|
|
29
|
+
};
|
|
30
|
+
if (returnComparator() === "CREATE_FAILED") {
|
|
31
|
+
return { state: WaiterState.FAILURE, reason };
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e) { }
|
|
35
|
+
}
|
|
36
|
+
catch (exception) {
|
|
37
|
+
reason = exception;
|
|
38
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
39
|
+
return { state: WaiterState.RETRY, reason };
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { state: WaiterState.RETRY, reason };
|
|
43
|
+
};
|
|
44
|
+
export const waitForMultiplexCreated = async (params, input) => {
|
|
45
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
46
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
47
|
+
};
|
|
48
|
+
export const waitUntilMultiplexCreated = async (params, input) => {
|
|
49
|
+
const serviceDefaults = { minDelay: 3, maxDelay: 120 };
|
|
50
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
51
|
+
return checkExceptions(result);
|
|
52
|
+
};
|
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeMultiplexCommand } from "../commands/DescribeMultiplexCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.State;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "DELETED") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.State;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "DELETING") {
|
|
28
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "InternalServerErrorException") {
|
|
37
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeMultiplexCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "DELETED") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilMultiplexDeleted = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "DELETING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForMultiplexDeleted = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilMultiplexDeleted = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|
|
@@ -1,63 +1,43 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
3
2
|
import { DescribeMultiplexCommand } from "../commands/DescribeMultiplexCommand";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
return result_1.State;
|
|
17
|
-
};
|
|
18
|
-
if (returnComparator() === "RUNNING") {
|
|
19
|
-
return [2, { state: WaiterState.SUCCESS, reason: reason }];
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
catch (e) { }
|
|
23
|
-
try {
|
|
24
|
-
returnComparator = function () {
|
|
25
|
-
return result_1.State;
|
|
26
|
-
};
|
|
27
|
-
if (returnComparator() === "STARTING") {
|
|
28
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
catch (e) { }
|
|
32
|
-
return [3, 3];
|
|
33
|
-
case 2:
|
|
34
|
-
exception_1 = _a.sent();
|
|
35
|
-
reason = exception_1;
|
|
36
|
-
if (exception_1.name && exception_1.name == "InternalServerErrorException") {
|
|
37
|
-
return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
38
|
-
}
|
|
39
|
-
return [3, 3];
|
|
40
|
-
case 3: return [2, { state: WaiterState.RETRY, reason: reason }];
|
|
3
|
+
const checkState = async (client, input) => {
|
|
4
|
+
let reason;
|
|
5
|
+
try {
|
|
6
|
+
const result = await client.send(new DescribeMultiplexCommand(input));
|
|
7
|
+
reason = result;
|
|
8
|
+
try {
|
|
9
|
+
const returnComparator = () => {
|
|
10
|
+
return result.State;
|
|
11
|
+
};
|
|
12
|
+
if (returnComparator() === "RUNNING") {
|
|
13
|
+
return { state: WaiterState.SUCCESS, reason };
|
|
14
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}); };
|
|
51
|
-
export var waitUntilMultiplexRunning = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
52
|
-
var serviceDefaults, result;
|
|
53
|
-
return __generator(this, function (_a) {
|
|
54
|
-
switch (_a.label) {
|
|
55
|
-
case 0:
|
|
56
|
-
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
57
|
-
return [4, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
58
|
-
case 1:
|
|
59
|
-
result = _a.sent();
|
|
60
|
-
return [2, checkExceptions(result)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "STARTING") {
|
|
22
|
+
return { state: WaiterState.RETRY, reason };
|
|
23
|
+
}
|
|
61
24
|
}
|
|
62
|
-
|
|
63
|
-
}
|
|
25
|
+
catch (e) { }
|
|
26
|
+
}
|
|
27
|
+
catch (exception) {
|
|
28
|
+
reason = exception;
|
|
29
|
+
if (exception.name && exception.name == "InternalServerErrorException") {
|
|
30
|
+
return { state: WaiterState.RETRY, reason };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return { state: WaiterState.RETRY, reason };
|
|
34
|
+
};
|
|
35
|
+
export const waitForMultiplexRunning = async (params, input) => {
|
|
36
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
+
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
+
};
|
|
39
|
+
export const waitUntilMultiplexRunning = async (params, input) => {
|
|
40
|
+
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
+
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
+
return checkExceptions(result);
|
|
43
|
+
};
|