@aws-sdk/client-medialive 3.180.0 → 3.183.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 +20 -0
- package/dist-cjs/protocols/Aws_restJson1.js +65 -59
- 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 +21 -28
- package/dist-es/commands/TransferInputDeviceCommand.js +21 -28
- 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 +673 -298
- package/dist-es/models/models_2.js +48 -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 +7418 -8421
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -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/package.json +34 -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 { 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() === "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 }];
|
|
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
|
+
}
|
|
41
15
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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)];
|
|
16
|
+
catch (e) { }
|
|
17
|
+
try {
|
|
18
|
+
const returnComparator = () => {
|
|
19
|
+
return result.State;
|
|
20
|
+
};
|
|
21
|
+
if (returnComparator() === "STOPPING") {
|
|
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 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
|
+
};
|
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.183.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,43 +19,43 @@
|
|
|
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.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
53
|
-
"@aws-sdk/util-waiter": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.183.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.183.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.183.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.183.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.183.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.183.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
|
+
"@aws-sdk/types": "3.183.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.183.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.183.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.183.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.183.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.183.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.183.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.183.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.183.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.183.0",
|
|
51
|
+
"@aws-sdk/util-utf8-browser": "3.183.0",
|
|
52
|
+
"@aws-sdk/util-utf8-node": "3.183.0",
|
|
53
|
+
"@aws-sdk/util-waiter": "3.183.0",
|
|
54
54
|
"tslib": "^2.3.1",
|
|
55
55
|
"uuid": "^8.3.2"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
58
|
+
"@aws-sdk/service-client-documentation-generator": "3.183.0",
|
|
59
59
|
"@tsconfig/recommended": "1.0.1",
|
|
60
60
|
"@types/node": "^12.7.5",
|
|
61
61
|
"@types/uuid": "^8.3.0",
|