@aws-sdk/client-kinesis-video-webrtc-storage 3.234.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/LICENSE +201 -0
- package/README.md +212 -0
- package/dist-cjs/KinesisVideoWebRTCStorage.js +37 -0
- package/dist-cjs/KinesisVideoWebRTCStorageClient.js +40 -0
- package/dist-cjs/commands/JoinStorageSessionAsViewerCommand.js +46 -0
- package/dist-cjs/commands/JoinStorageSessionCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +303 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/KinesisVideoWebRTCStorageServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +64 -0
- package/dist-cjs/protocols/Aws_restJson1.js +237 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/KinesisVideoWebRTCStorage.js +33 -0
- package/dist-es/KinesisVideoWebRTCStorageClient.js +36 -0
- package/dist-es/commands/JoinStorageSessionAsViewerCommand.js +42 -0
- package/dist-es/commands/JoinStorageSessionCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +300 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/KinesisVideoWebRTCStorageServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +55 -0
- package/dist-es/protocols/Aws_restJson1.js +230 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/KinesisVideoWebRTCStorage.d.ts +60 -0
- package/dist-types/KinesisVideoWebRTCStorageClient.d.ts +144 -0
- package/dist-types/commands/JoinStorageSessionAsViewerCommand.d.ts +54 -0
- package/dist-types/commands/JoinStorageSessionCommand.d.ts +58 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/KinesisVideoWebRTCStorageServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +105 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +8 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/KinesisVideoWebRTCStorage.d.ts +38 -0
- package/dist-types/ts3.4/KinesisVideoWebRTCStorageClient.d.ts +124 -0
- package/dist-types/ts3.4/commands/JoinStorageSessionAsViewerCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/JoinStorageSessionCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/KinesisVideoWebRTCStorageServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +43 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +29 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +102 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
|
+
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
|
+
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
9
|
+
const hash_node_1 = require("@aws-sdk/hash-node");
|
|
10
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
11
|
+
const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
12
|
+
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
13
|
+
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
14
|
+
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
15
|
+
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
16
|
+
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
|
+
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
|
+
const smithy_client_2 = require("@aws-sdk/smithy-client");
|
|
21
|
+
const getRuntimeConfig = (config) => {
|
|
22
|
+
(0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
|
|
23
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
24
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
25
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
26
|
+
return {
|
|
27
|
+
...clientSharedValues,
|
|
28
|
+
...config,
|
|
29
|
+
runtime: "node",
|
|
30
|
+
defaultsMode,
|
|
31
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
|
|
32
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
33
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
+
(0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
|
+
requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: config?.retryMode ??
|
|
39
|
+
(0, node_config_provider_1.loadConfig)({
|
|
40
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
41
|
+
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
42
|
+
}),
|
|
43
|
+
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
44
|
+
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
45
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
46
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
47
|
+
utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
|
|
48
|
+
utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
+
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
|
+
const getRuntimeConfig = (config) => {
|
|
7
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
8
|
+
return {
|
|
9
|
+
...browserDefaults,
|
|
10
|
+
...config,
|
|
11
|
+
runtime: "react-native",
|
|
12
|
+
sha256: config?.sha256 ?? sha256_js_1.Sha256,
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getRuntimeConfig = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
|
+
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
7
|
+
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
8
|
+
const getRuntimeConfig = (config) => ({
|
|
9
|
+
apiVersion: "2018-05-10",
|
|
10
|
+
base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
|
|
11
|
+
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
12
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
13
|
+
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
14
|
+
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
15
|
+
serviceId: config?.serviceId ?? "Kinesis Video WebRTC Storage",
|
|
16
|
+
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
17
|
+
});
|
|
18
|
+
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { JoinStorageSessionAsViewerCommand, } from "./commands/JoinStorageSessionAsViewerCommand";
|
|
2
|
+
import { JoinStorageSessionCommand, } from "./commands/JoinStorageSessionCommand";
|
|
3
|
+
import { KinesisVideoWebRTCStorageClient } from "./KinesisVideoWebRTCStorageClient";
|
|
4
|
+
export class KinesisVideoWebRTCStorage extends KinesisVideoWebRTCStorageClient {
|
|
5
|
+
joinStorageSession(args, optionsOrCb, cb) {
|
|
6
|
+
const command = new JoinStorageSessionCommand(args);
|
|
7
|
+
if (typeof optionsOrCb === "function") {
|
|
8
|
+
this.send(command, optionsOrCb);
|
|
9
|
+
}
|
|
10
|
+
else if (typeof cb === "function") {
|
|
11
|
+
if (typeof optionsOrCb !== "object")
|
|
12
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
13
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return this.send(command, optionsOrCb);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
joinStorageSessionAsViewer(args, optionsOrCb, cb) {
|
|
20
|
+
const command = new JoinStorageSessionAsViewerCommand(args);
|
|
21
|
+
if (typeof optionsOrCb === "function") {
|
|
22
|
+
this.send(command, optionsOrCb);
|
|
23
|
+
}
|
|
24
|
+
else if (typeof cb === "function") {
|
|
25
|
+
if (typeof optionsOrCb !== "object")
|
|
26
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
27
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return this.send(command, optionsOrCb);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { resolveRegionConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
3
|
+
import { resolveEndpointConfig } from "@aws-sdk/middleware-endpoint";
|
|
4
|
+
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
5
|
+
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
|
|
6
|
+
import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
|
|
7
|
+
import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
8
|
+
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
|
+
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
|
+
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
+
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
export class KinesisVideoWebRTCStorageClient extends __Client {
|
|
14
|
+
constructor(configuration) {
|
|
15
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
16
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
17
|
+
const _config_2 = resolveRegionConfig(_config_1);
|
|
18
|
+
const _config_3 = resolveEndpointConfig(_config_2);
|
|
19
|
+
const _config_4 = resolveRetryConfig(_config_3);
|
|
20
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
21
|
+
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
22
|
+
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
23
|
+
super(_config_7);
|
|
24
|
+
this.config = _config_7;
|
|
25
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
29
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
30
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
31
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { JoinStorageSessionAsViewerInputFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1JoinStorageSessionAsViewerCommand, serializeAws_restJson1JoinStorageSessionAsViewerCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class JoinStorageSessionAsViewerCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, JoinStorageSessionAsViewerCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "KinesisVideoWebRTCStorageClient";
|
|
25
|
+
const commandName = "JoinStorageSessionAsViewerCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: JoinStorageSessionAsViewerInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: (output) => output,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1JoinStorageSessionAsViewerCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1JoinStorageSessionAsViewerCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { JoinStorageSessionInputFilterSensitiveLog } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1JoinStorageSessionCommand, serializeAws_restJson1JoinStorageSessionCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class JoinStorageSessionCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, JoinStorageSessionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "KinesisVideoWebRTCStorageClient";
|
|
25
|
+
const commandName = "JoinStorageSessionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: JoinStorageSessionInputFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: (output) => output,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1JoinStorageSessionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1JoinStorageSessionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { resolveEndpoint } from "@aws-sdk/util-endpoints";
|
|
2
|
+
import { ruleSet } from "./ruleset";
|
|
3
|
+
export const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
4
|
+
return resolveEndpoint(ruleSet, {
|
|
5
|
+
endpointParams: endpointParams,
|
|
6
|
+
logger: context.logger,
|
|
7
|
+
});
|
|
8
|
+
};
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
export const ruleSet = {
|
|
2
|
+
version: "1.0",
|
|
3
|
+
parameters: {
|
|
4
|
+
Region: {
|
|
5
|
+
builtIn: "AWS::Region",
|
|
6
|
+
required: true,
|
|
7
|
+
documentation: "The AWS region used to dispatch the request.",
|
|
8
|
+
type: "String",
|
|
9
|
+
},
|
|
10
|
+
UseDualStack: {
|
|
11
|
+
builtIn: "AWS::UseDualStack",
|
|
12
|
+
required: true,
|
|
13
|
+
default: false,
|
|
14
|
+
documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
|
|
15
|
+
type: "Boolean",
|
|
16
|
+
},
|
|
17
|
+
UseFIPS: {
|
|
18
|
+
builtIn: "AWS::UseFIPS",
|
|
19
|
+
required: true,
|
|
20
|
+
default: false,
|
|
21
|
+
documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
|
|
22
|
+
type: "Boolean",
|
|
23
|
+
},
|
|
24
|
+
Endpoint: {
|
|
25
|
+
builtIn: "SDK::Endpoint",
|
|
26
|
+
required: false,
|
|
27
|
+
documentation: "Override the endpoint used to send this request",
|
|
28
|
+
type: "String",
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
rules: [
|
|
32
|
+
{
|
|
33
|
+
conditions: [
|
|
34
|
+
{
|
|
35
|
+
fn: "aws.partition",
|
|
36
|
+
argv: [
|
|
37
|
+
{
|
|
38
|
+
ref: "Region",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
assign: "PartitionResult",
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
type: "tree",
|
|
45
|
+
rules: [
|
|
46
|
+
{
|
|
47
|
+
conditions: [
|
|
48
|
+
{
|
|
49
|
+
fn: "isSet",
|
|
50
|
+
argv: [
|
|
51
|
+
{
|
|
52
|
+
ref: "Endpoint",
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
type: "tree",
|
|
58
|
+
rules: [
|
|
59
|
+
{
|
|
60
|
+
conditions: [
|
|
61
|
+
{
|
|
62
|
+
fn: "booleanEquals",
|
|
63
|
+
argv: [
|
|
64
|
+
{
|
|
65
|
+
ref: "UseFIPS",
|
|
66
|
+
},
|
|
67
|
+
true,
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
error: "Invalid Configuration: FIPS and custom endpoint are not supported",
|
|
72
|
+
type: "error",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
conditions: [],
|
|
76
|
+
type: "tree",
|
|
77
|
+
rules: [
|
|
78
|
+
{
|
|
79
|
+
conditions: [
|
|
80
|
+
{
|
|
81
|
+
fn: "booleanEquals",
|
|
82
|
+
argv: [
|
|
83
|
+
{
|
|
84
|
+
ref: "UseDualStack",
|
|
85
|
+
},
|
|
86
|
+
true,
|
|
87
|
+
],
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
|
|
91
|
+
type: "error",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
conditions: [],
|
|
95
|
+
endpoint: {
|
|
96
|
+
url: {
|
|
97
|
+
ref: "Endpoint",
|
|
98
|
+
},
|
|
99
|
+
properties: {},
|
|
100
|
+
headers: {},
|
|
101
|
+
},
|
|
102
|
+
type: "endpoint",
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
conditions: [
|
|
110
|
+
{
|
|
111
|
+
fn: "booleanEquals",
|
|
112
|
+
argv: [
|
|
113
|
+
{
|
|
114
|
+
ref: "UseFIPS",
|
|
115
|
+
},
|
|
116
|
+
true,
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
fn: "booleanEquals",
|
|
121
|
+
argv: [
|
|
122
|
+
{
|
|
123
|
+
ref: "UseDualStack",
|
|
124
|
+
},
|
|
125
|
+
true,
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
type: "tree",
|
|
130
|
+
rules: [
|
|
131
|
+
{
|
|
132
|
+
conditions: [
|
|
133
|
+
{
|
|
134
|
+
fn: "booleanEquals",
|
|
135
|
+
argv: [
|
|
136
|
+
true,
|
|
137
|
+
{
|
|
138
|
+
fn: "getAttr",
|
|
139
|
+
argv: [
|
|
140
|
+
{
|
|
141
|
+
ref: "PartitionResult",
|
|
142
|
+
},
|
|
143
|
+
"supportsFIPS",
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
fn: "booleanEquals",
|
|
150
|
+
argv: [
|
|
151
|
+
true,
|
|
152
|
+
{
|
|
153
|
+
fn: "getAttr",
|
|
154
|
+
argv: [
|
|
155
|
+
{
|
|
156
|
+
ref: "PartitionResult",
|
|
157
|
+
},
|
|
158
|
+
"supportsDualStack",
|
|
159
|
+
],
|
|
160
|
+
},
|
|
161
|
+
],
|
|
162
|
+
},
|
|
163
|
+
],
|
|
164
|
+
type: "tree",
|
|
165
|
+
rules: [
|
|
166
|
+
{
|
|
167
|
+
conditions: [],
|
|
168
|
+
endpoint: {
|
|
169
|
+
url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
170
|
+
properties: {},
|
|
171
|
+
headers: {},
|
|
172
|
+
},
|
|
173
|
+
type: "endpoint",
|
|
174
|
+
},
|
|
175
|
+
],
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
conditions: [],
|
|
179
|
+
error: "FIPS and DualStack are enabled, but this partition does not support one or both",
|
|
180
|
+
type: "error",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
conditions: [
|
|
186
|
+
{
|
|
187
|
+
fn: "booleanEquals",
|
|
188
|
+
argv: [
|
|
189
|
+
{
|
|
190
|
+
ref: "UseFIPS",
|
|
191
|
+
},
|
|
192
|
+
true,
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
],
|
|
196
|
+
type: "tree",
|
|
197
|
+
rules: [
|
|
198
|
+
{
|
|
199
|
+
conditions: [
|
|
200
|
+
{
|
|
201
|
+
fn: "booleanEquals",
|
|
202
|
+
argv: [
|
|
203
|
+
true,
|
|
204
|
+
{
|
|
205
|
+
fn: "getAttr",
|
|
206
|
+
argv: [
|
|
207
|
+
{
|
|
208
|
+
ref: "PartitionResult",
|
|
209
|
+
},
|
|
210
|
+
"supportsFIPS",
|
|
211
|
+
],
|
|
212
|
+
},
|
|
213
|
+
],
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
type: "tree",
|
|
217
|
+
rules: [
|
|
218
|
+
{
|
|
219
|
+
conditions: [],
|
|
220
|
+
endpoint: {
|
|
221
|
+
url: "https://kinesisvideo-fips.{Region}.{PartitionResult#dnsSuffix}",
|
|
222
|
+
properties: {},
|
|
223
|
+
headers: {},
|
|
224
|
+
},
|
|
225
|
+
type: "endpoint",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
conditions: [],
|
|
231
|
+
error: "FIPS is enabled but this partition does not support FIPS",
|
|
232
|
+
type: "error",
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
conditions: [
|
|
238
|
+
{
|
|
239
|
+
fn: "booleanEquals",
|
|
240
|
+
argv: [
|
|
241
|
+
{
|
|
242
|
+
ref: "UseDualStack",
|
|
243
|
+
},
|
|
244
|
+
true,
|
|
245
|
+
],
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
type: "tree",
|
|
249
|
+
rules: [
|
|
250
|
+
{
|
|
251
|
+
conditions: [
|
|
252
|
+
{
|
|
253
|
+
fn: "booleanEquals",
|
|
254
|
+
argv: [
|
|
255
|
+
true,
|
|
256
|
+
{
|
|
257
|
+
fn: "getAttr",
|
|
258
|
+
argv: [
|
|
259
|
+
{
|
|
260
|
+
ref: "PartitionResult",
|
|
261
|
+
},
|
|
262
|
+
"supportsDualStack",
|
|
263
|
+
],
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
type: "tree",
|
|
269
|
+
rules: [
|
|
270
|
+
{
|
|
271
|
+
conditions: [],
|
|
272
|
+
endpoint: {
|
|
273
|
+
url: "https://kinesisvideo.{Region}.{PartitionResult#dualStackDnsSuffix}",
|
|
274
|
+
properties: {},
|
|
275
|
+
headers: {},
|
|
276
|
+
},
|
|
277
|
+
type: "endpoint",
|
|
278
|
+
},
|
|
279
|
+
],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
conditions: [],
|
|
283
|
+
error: "DualStack is enabled but this partition does not support DualStack",
|
|
284
|
+
type: "error",
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
conditions: [],
|
|
290
|
+
endpoint: {
|
|
291
|
+
url: "https://kinesisvideo.{Region}.{PartitionResult#dnsSuffix}",
|
|
292
|
+
properties: {},
|
|
293
|
+
headers: {},
|
|
294
|
+
},
|
|
295
|
+
type: "endpoint",
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
},
|
|
299
|
+
],
|
|
300
|
+
};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
2
|
+
export class KinesisVideoWebRTCStorageServiceException extends __ServiceException {
|
|
3
|
+
constructor(options) {
|
|
4
|
+
super(options);
|
|
5
|
+
Object.setPrototypeOf(this, KinesisVideoWebRTCStorageServiceException.prototype);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { KinesisVideoWebRTCStorageServiceException as __BaseException } from "./KinesisVideoWebRTCStorageServiceException";
|
|
2
|
+
export class AccessDeniedException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "AccessDeniedException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts,
|
|
8
|
+
});
|
|
9
|
+
this.name = "AccessDeniedException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ClientLimitExceededException extends __BaseException {
|
|
15
|
+
constructor(opts) {
|
|
16
|
+
super({
|
|
17
|
+
name: "ClientLimitExceededException",
|
|
18
|
+
$fault: "client",
|
|
19
|
+
...opts,
|
|
20
|
+
});
|
|
21
|
+
this.name = "ClientLimitExceededException";
|
|
22
|
+
this.$fault = "client";
|
|
23
|
+
Object.setPrototypeOf(this, ClientLimitExceededException.prototype);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
export class InvalidArgumentException extends __BaseException {
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
super({
|
|
29
|
+
name: "InvalidArgumentException",
|
|
30
|
+
$fault: "client",
|
|
31
|
+
...opts,
|
|
32
|
+
});
|
|
33
|
+
this.name = "InvalidArgumentException";
|
|
34
|
+
this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(this, InvalidArgumentException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export class ResourceNotFoundException extends __BaseException {
|
|
39
|
+
constructor(opts) {
|
|
40
|
+
super({
|
|
41
|
+
name: "ResourceNotFoundException",
|
|
42
|
+
$fault: "client",
|
|
43
|
+
...opts,
|
|
44
|
+
});
|
|
45
|
+
this.name = "ResourceNotFoundException";
|
|
46
|
+
this.$fault = "client";
|
|
47
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
export const JoinStorageSessionInputFilterSensitiveLog = (obj) => ({
|
|
51
|
+
...obj,
|
|
52
|
+
});
|
|
53
|
+
export const JoinStorageSessionAsViewerInputFilterSensitiveLog = (obj) => ({
|
|
54
|
+
...obj,
|
|
55
|
+
});
|