@aws-sdk/client-ivs 3.37.0 → 3.38.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 +13 -0
- package/README.md +54 -107
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/index.js +4 -35
- package/dist-cjs/models/models_0.js +7 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1 -11
- package/dist-es/commands/index.js +26 -0
- package/dist-es/index.js +4 -35
- package/dist-es/models/models_0.js +7 -6
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -8
- package/dist-types/Ivs.d.ts +65 -124
- package/dist-types/IvsClient.d.ts +54 -111
- package/dist-types/commands/CreateRecordingConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
- package/dist-types/commands/ListRecordingConfigurationsCommand.d.ts +1 -1
- package/dist-types/commands/ListStreamsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutMetadataCommand.d.ts +5 -7
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/index.d.ts +4 -35
- package/dist-types/models/models_0.d.ts +92 -60
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/commands/index.d.ts +26 -0
- package/dist-types/ts3.4/index.d.ts +4 -35
- package/dist-types/ts3.4/models/models_0.d.ts +14 -6
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/package.json +24 -24
- package/dist-cjs/pagination/ListTagsForResourcePaginator.js +0 -35
- package/dist-es/pagination/ListTagsForResourcePaginator.js +0 -74
- package/dist-types/pagination/ListTagsForResourcePaginator.d.ts +0 -4
- package/dist-types/ts3.4/pagination/ListTagsForResourcePaginator.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ivs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ivs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.38.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.38.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.38.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.38.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.38.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.38.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.38.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.38.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.38.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.38.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.38.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.38.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.38.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.38.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.38.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.38.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.38.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.38.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.38.0",
|
|
42
|
+
"@aws-sdk/types": "3.38.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.38.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.37.0",
|
|
45
45
|
"@aws-sdk/util-base64-node": "3.37.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.37.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.37.0",
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.38.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.38.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.37.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.37.0",
|
|
52
52
|
"tslib": "^2.3.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.38.0",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"downlevel-dts": "0.7.0",
|
|
58
58
|
"jest": "^26.1.0",
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListTagsForResource = void 0;
|
|
4
|
-
const ListTagsForResourceCommand_1 = require("../commands/ListTagsForResourceCommand");
|
|
5
|
-
const Ivs_1 = require("../Ivs");
|
|
6
|
-
const IvsClient_1 = require("../IvsClient");
|
|
7
|
-
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
-
return await client.send(new ListTagsForResourceCommand_1.ListTagsForResourceCommand(input), ...args);
|
|
9
|
-
};
|
|
10
|
-
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
-
return await client.listTagsForResource(input, ...args);
|
|
12
|
-
};
|
|
13
|
-
async function* paginateListTagsForResource(config, input, ...additionalArguments) {
|
|
14
|
-
let token = config.startingToken || undefined;
|
|
15
|
-
let hasNext = true;
|
|
16
|
-
let page;
|
|
17
|
-
while (hasNext) {
|
|
18
|
-
input.nextToken = token;
|
|
19
|
-
input["maxResults"] = config.pageSize;
|
|
20
|
-
if (config.client instanceof Ivs_1.Ivs) {
|
|
21
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
-
}
|
|
23
|
-
else if (config.client instanceof IvsClient_1.IvsClient) {
|
|
24
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
28
|
-
}
|
|
29
|
-
yield page;
|
|
30
|
-
token = page.nextToken;
|
|
31
|
-
hasNext = !!token;
|
|
32
|
-
}
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
exports.paginateListTagsForResource = paginateListTagsForResource;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
-
import { ListTagsForResourceCommand, } from "../commands/ListTagsForResourceCommand";
|
|
3
|
-
import { Ivs } from "../Ivs";
|
|
4
|
-
import { IvsClient } from "../IvsClient";
|
|
5
|
-
var makePagedClientRequest = function (client, input) {
|
|
6
|
-
var args = [];
|
|
7
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
-
args[_i - 2] = arguments[_i];
|
|
9
|
-
}
|
|
10
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
-
return __generator(this, function (_a) {
|
|
12
|
-
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListTagsForResourceCommand(input)], __read(args)))];
|
|
14
|
-
case 1: return [2, _a.sent()];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
var makePagedRequest = function (client, input) {
|
|
20
|
-
var args = [];
|
|
21
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
-
args[_i - 2] = arguments[_i];
|
|
23
|
-
}
|
|
24
|
-
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
-
return __generator(this, function (_a) {
|
|
26
|
-
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listTagsForResource.apply(client, __spreadArray([input], __read(args)))];
|
|
28
|
-
case 1: return [2, _a.sent()];
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
export function paginateListTagsForResource(config, input) {
|
|
34
|
-
var additionalArguments = [];
|
|
35
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
-
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
-
}
|
|
38
|
-
return __asyncGenerator(this, arguments, function paginateListTagsForResource_1() {
|
|
39
|
-
var token, hasNext, page;
|
|
40
|
-
return __generator(this, function (_a) {
|
|
41
|
-
switch (_a.label) {
|
|
42
|
-
case 0:
|
|
43
|
-
token = config.startingToken || undefined;
|
|
44
|
-
hasNext = true;
|
|
45
|
-
_a.label = 1;
|
|
46
|
-
case 1:
|
|
47
|
-
if (!hasNext) return [3, 9];
|
|
48
|
-
input.nextToken = token;
|
|
49
|
-
input["maxResults"] = config.pageSize;
|
|
50
|
-
if (!(config.client instanceof Ivs)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
52
|
-
case 2:
|
|
53
|
-
page = _a.sent();
|
|
54
|
-
return [3, 6];
|
|
55
|
-
case 3:
|
|
56
|
-
if (!(config.client instanceof IvsClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
58
|
-
case 4:
|
|
59
|
-
page = _a.sent();
|
|
60
|
-
return [3, 6];
|
|
61
|
-
case 5: throw new Error("Invalid client, expected Ivs | IvsClient");
|
|
62
|
-
case 6: return [4, __await(page)];
|
|
63
|
-
case 7: return [4, _a.sent()];
|
|
64
|
-
case 8:
|
|
65
|
-
_a.sent();
|
|
66
|
-
token = page.nextToken;
|
|
67
|
-
hasNext = !!token;
|
|
68
|
-
return [3, 1];
|
|
69
|
-
case 9: return [4, __await(undefined)];
|
|
70
|
-
case 10: return [2, _a.sent()];
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
3
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
4
|
-
export declare function paginateListTagsForResource(config: IvsPaginationConfiguration, input: ListTagsForResourceCommandInput, ...additionalArguments: any): Paginator<ListTagsForResourceCommandOutput>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Paginator } from "@aws-sdk/types";
|
|
2
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
3
|
-
import { IvsPaginationConfiguration } from "./Interfaces";
|
|
4
|
-
export declare function paginateListTagsForResource(config: IvsPaginationConfiguration, input: ListTagsForResourceCommandInput, ...additionalArguments: any): Paginator<ListTagsForResourceCommandOutput>;
|