@aws-sdk/client-medialive 3.183.0 → 3.185.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 +11 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/MediaLive.js +245 -238
- package/dist-es/MediaLiveClient.js +28 -22
- package/dist-es/commands/AcceptInputDeviceTransferCommand.js +28 -21
- package/dist-es/commands/BatchDeleteCommand.js +28 -21
- package/dist-es/commands/BatchStartCommand.js +28 -21
- package/dist-es/commands/BatchStopCommand.js +28 -21
- package/dist-es/commands/BatchUpdateScheduleCommand.js +28 -21
- package/dist-es/commands/CancelInputDeviceTransferCommand.js +28 -21
- package/dist-es/commands/ClaimDeviceCommand.js +28 -21
- package/dist-es/commands/CreateChannelCommand.js +28 -21
- package/dist-es/commands/CreateInputCommand.js +28 -21
- package/dist-es/commands/CreateInputSecurityGroupCommand.js +28 -21
- package/dist-es/commands/CreateMultiplexCommand.js +28 -21
- package/dist-es/commands/CreateMultiplexProgramCommand.js +28 -21
- package/dist-es/commands/CreatePartnerInputCommand.js +28 -21
- package/dist-es/commands/CreateTagsCommand.js +29 -22
- package/dist-es/commands/DeleteChannelCommand.js +28 -21
- package/dist-es/commands/DeleteInputCommand.js +28 -21
- package/dist-es/commands/DeleteInputSecurityGroupCommand.js +28 -21
- package/dist-es/commands/DeleteMultiplexCommand.js +28 -21
- package/dist-es/commands/DeleteMultiplexProgramCommand.js +28 -21
- package/dist-es/commands/DeleteReservationCommand.js +28 -21
- package/dist-es/commands/DeleteScheduleCommand.js +28 -21
- package/dist-es/commands/DeleteTagsCommand.js +29 -22
- package/dist-es/commands/DescribeChannelCommand.js +28 -21
- package/dist-es/commands/DescribeInputCommand.js +28 -21
- package/dist-es/commands/DescribeInputDeviceCommand.js +28 -21
- package/dist-es/commands/DescribeInputDeviceThumbnailCommand.js +28 -21
- package/dist-es/commands/DescribeInputSecurityGroupCommand.js +28 -21
- package/dist-es/commands/DescribeMultiplexCommand.js +28 -21
- package/dist-es/commands/DescribeMultiplexProgramCommand.js +28 -21
- package/dist-es/commands/DescribeOfferingCommand.js +28 -21
- package/dist-es/commands/DescribeReservationCommand.js +28 -21
- package/dist-es/commands/DescribeScheduleCommand.js +28 -21
- package/dist-es/commands/ListChannelsCommand.js +28 -21
- package/dist-es/commands/ListInputDeviceTransfersCommand.js +28 -21
- package/dist-es/commands/ListInputDevicesCommand.js +28 -21
- package/dist-es/commands/ListInputSecurityGroupsCommand.js +28 -21
- package/dist-es/commands/ListInputsCommand.js +28 -21
- package/dist-es/commands/ListMultiplexProgramsCommand.js +28 -21
- package/dist-es/commands/ListMultiplexesCommand.js +28 -21
- package/dist-es/commands/ListOfferingsCommand.js +28 -21
- package/dist-es/commands/ListReservationsCommand.js +28 -21
- package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
- package/dist-es/commands/PurchaseOfferingCommand.js +28 -21
- package/dist-es/commands/RebootInputDeviceCommand.js +28 -21
- package/dist-es/commands/RejectInputDeviceTransferCommand.js +28 -21
- package/dist-es/commands/StartChannelCommand.js +28 -21
- package/dist-es/commands/StartInputDeviceMaintenanceWindowCommand.js +28 -21
- package/dist-es/commands/StartMultiplexCommand.js +28 -21
- package/dist-es/commands/StopChannelCommand.js +28 -21
- package/dist-es/commands/StopMultiplexCommand.js +28 -21
- package/dist-es/commands/TransferInputDeviceCommand.js +28 -21
- package/dist-es/commands/UpdateChannelClassCommand.js +28 -21
- package/dist-es/commands/UpdateChannelCommand.js +28 -21
- package/dist-es/commands/UpdateInputCommand.js +28 -21
- package/dist-es/commands/UpdateInputDeviceCommand.js +28 -21
- package/dist-es/commands/UpdateInputSecurityGroupCommand.js +28 -21
- package/dist-es/commands/UpdateMultiplexCommand.js +28 -21
- package/dist-es/commands/UpdateMultiplexProgramCommand.js +28 -21
- package/dist-es/commands/UpdateReservationCommand.js +28 -21
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/MediaLiveServiceException.js +10 -5
- package/dist-es/models/models_0.js +144 -429
- package/dist-es/models/models_1.js +298 -673
- package/dist-es/models/models_2.js +17 -48
- package/dist-es/pagination/DescribeSchedulePaginator.js +68 -25
- package/dist-es/pagination/ListChannelsPaginator.js +68 -25
- package/dist-es/pagination/ListInputDeviceTransfersPaginator.js +68 -25
- package/dist-es/pagination/ListInputDevicesPaginator.js +68 -25
- package/dist-es/pagination/ListInputSecurityGroupsPaginator.js +68 -25
- package/dist-es/pagination/ListInputsPaginator.js +68 -25
- package/dist-es/pagination/ListMultiplexProgramsPaginator.js +68 -25
- package/dist-es/pagination/ListMultiplexesPaginator.js +68 -25
- package/dist-es/pagination/ListOfferingsPaginator.js +68 -25
- package/dist-es/pagination/ListReservationsPaginator.js +68 -25
- package/dist-es/protocols/Aws_restJson1.js +8440 -7424
- package/dist-es/runtimeConfig.browser.js +12 -26
- package/dist-es/runtimeConfig.js +12 -30
- package/dist-es/runtimeConfig.native.js +5 -8
- package/dist-es/runtimeConfig.shared.js +11 -8
- package/dist-es/waiters/waitForChannelCreated.js +68 -48
- package/dist-es/waiters/waitForChannelDeleted.js +59 -39
- package/dist-es/waiters/waitForChannelRunning.js +59 -39
- package/dist-es/waiters/waitForChannelStopped.js +59 -39
- package/dist-es/waiters/waitForInputAttached.js +59 -39
- package/dist-es/waiters/waitForInputDeleted.js +59 -39
- package/dist-es/waiters/waitForInputDetached.js +68 -48
- package/dist-es/waiters/waitForMultiplexCreated.js +68 -48
- package/dist-es/waiters/waitForMultiplexDeleted.js +59 -39
- package/dist-es/waiters/waitForMultiplexRunning.js +59 -39
- package/dist-es/waiters/waitForMultiplexStopped.js +59 -39
- package/package.json +5 -5
|
@@ -1,43 +1,63 @@
|
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
1
2
|
import { checkExceptions, createWaiter, WaiterState } from "@aws-sdk/util-waiter";
|
|
2
3
|
import { DescribeMultiplexCommand } from "../commands/DescribeMultiplexCommand";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 DescribeMultiplexCommand(input))];
|
|
11
|
+
case 1:
|
|
12
|
+
result_1 = _a.sent();
|
|
13
|
+
reason = result_1;
|
|
14
|
+
try {
|
|
15
|
+
returnComparator = function () {
|
|
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() === "STOPPING") {
|
|
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 }];
|
|
15
41
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
42
|
+
});
|
|
43
|
+
}); };
|
|
44
|
+
export var waitForMultiplexStopped = function (params, input) { return __awaiter(void 0, void 0, void 0, function () {
|
|
45
|
+
var serviceDefaults;
|
|
46
|
+
return __generator(this, function (_a) {
|
|
47
|
+
serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
48
|
+
return [2, createWaiter(__assign(__assign({}, serviceDefaults), params), input, checkState)];
|
|
49
|
+
});
|
|
50
|
+
}); };
|
|
51
|
+
export var waitUntilMultiplexStopped = 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)];
|
|
24
61
|
}
|
|
25
|
-
|
|
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 waitForMultiplexStopped = async (params, input) => {
|
|
36
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
37
|
-
return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
38
|
-
};
|
|
39
|
-
export const waitUntilMultiplexStopped = async (params, input) => {
|
|
40
|
-
const serviceDefaults = { minDelay: 5, maxDelay: 120 };
|
|
41
|
-
const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
|
|
42
|
-
return checkExceptions(result);
|
|
43
|
-
};
|
|
62
|
+
});
|
|
63
|
+
}); };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-medialive",
|
|
3
3
|
"description": "AWS SDK for JavaScript Medialive Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.185.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",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.185.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.185.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.183.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
30
|
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
31
|
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.185.0",
|
|
33
33
|
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
34
|
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
35
|
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
36
|
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.185.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
40
|
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
41
|
"@aws-sdk/types": "3.183.0",
|