@aws-sdk/client-mediaconnect 3.43.0 → 3.47.1
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 +47 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +3 -56
- package/dist-cjs/protocols/Aws_restJson1.js +18 -0
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +1 -36
- package/dist-es/protocols/Aws_restJson1.js +19 -8
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/MediaConnectClient.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +56 -65
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/MediaConnectClient.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +23 -36
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +40 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,53 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.47.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.47.0-release-test-1...v3.47.1) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-mediaconnect
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Bug Fixes
|
|
29
|
+
|
|
30
|
+
* **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Features
|
|
34
|
+
|
|
35
|
+
* **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
|
|
36
|
+
* end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Features
|
|
46
|
+
|
|
47
|
+
* **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
6
53
|
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
54
|
|
|
8
55
|
**Note:** Version bump only for package @aws-sdk/client-mediaconnect
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NetworkInterfaceType = exports.Source = exports.SetSourceRequest = exports.Reservation = exports.ReservationState = exports.Output = exports.Transport = exports.Offering = exports.ResourceSpecification = exports.ResourceType = exports.PriceUnits = exports.DurationUnits = exports.MediaStreamSourceConfigurationRequest = exports.MediaStreamSourceConfiguration = exports.MediaStreamOutputConfiguration = exports.EncodingParameters = exports.MediaStream = exports.MediaStreamAttributes = exports.Fmtp = exports.ListedFlow = exports.Status = exports.SourceType = exports.ListedEntitlement = exports.InputConfigurationRequest = exports.InputConfiguration = exports.GrantEntitlementRequest = exports.Entitlement = exports.EntitlementStatus = exports.DestinationConfiguration = exports.Interface = exports.AddOutputRequest = exports.VpcInterfaceAttachment = exports.Protocol = exports.MediaStreamOutputConfigurationRequest = exports.EncodingParametersRequest = exports.EncoderProfile = exports.EncodingName = exports.DestinationConfigurationRequest = exports.InterfaceRequest = exports.Encryption = exports.KeyType = exports.Algorithm = exports.AddMediaStreamRequest = exports.MediaStreamType = exports.MediaStreamAttributesRequest = exports.FmtpRequest = exports.Tcs = exports.ScanMode = exports.Range = exports.Colorimetry = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateFlowSourceResponse = exports.UpdateFlowSourceRequest = exports.UpdateFlowOutputResponse = exports.UpdateFlowOutputRequest = exports.UpdateFlowMediaStreamResponse = exports.UpdateFlowMediaStreamRequest = exports.UpdateFlowEntitlementResponse = exports.UpdateFlowEntitlementRequest = exports.UpdateEncryption = exports.UpdateFlowResponse = exports.UpdateFlowRequest = exports.UpdateFailoverConfig = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopFlowResponse = exports.StopFlowRequest = exports.StartFlowResponse = exports.StartFlowRequest =
|
|
4
|
+
exports.RevokeFlowEntitlementResponse = exports.RevokeFlowEntitlementRequest = exports.RemoveFlowVpcInterfaceResponse = exports.RemoveFlowVpcInterfaceRequest = exports.RemoveFlowSourceResponse = exports.RemoveFlowSourceRequest = exports.RemoveFlowOutputResponse = exports.RemoveFlowOutputRequest = exports.RemoveFlowMediaStreamResponse = exports.RemoveFlowMediaStreamRequest = exports.PurchaseOfferingResponse = exports.PurchaseOfferingRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListReservationsResponse = exports.ListReservationsRequest = exports.ListOfferingsResponse = exports.ListOfferingsRequest = exports.ListFlowsResponse = exports.ListFlowsRequest = exports.ListEntitlementsResponse = exports.ListEntitlementsRequest = exports.GrantFlowEntitlementsResponse = exports.GrantFlowEntitlementsRequest = exports.DescribeReservationResponse = exports.DescribeReservationRequest = exports.DescribeOfferingResponse = exports.DescribeOfferingRequest = exports.DescribeFlowResponse = exports.Messages = exports.DescribeFlowRequest = exports.DeleteFlowResponse = exports.DeleteFlowRequest = exports.CreateFlowResponse = exports.Flow = exports.CreateFlowRequest = exports.FailoverConfig = exports.State = exports.SourcePriority = exports.FailoverMode = exports.AddFlowVpcInterfacesResponse = exports.AddFlowVpcInterfacesRequest = exports.AddFlowSourcesResponse = exports.AddFlowSourcesRequest = exports.AddFlowOutputsResponse = exports.AddFlowOutputsRequest = exports.AddFlowMediaStreamsResponse = exports.AddFlowMediaStreamsRequest = exports.VpcInterfaceRequest = exports.VpcInterface = void 0;
|
|
5
|
+
exports.UpdateFlowSourceResponse = exports.UpdateFlowSourceRequest = exports.UpdateFlowOutputResponse = exports.UpdateFlowOutputRequest = exports.UpdateFlowMediaStreamResponse = exports.UpdateFlowMediaStreamRequest = exports.UpdateFlowEntitlementResponse = exports.UpdateFlowEntitlementRequest = exports.UpdateEncryption = exports.UpdateFlowResponse = exports.UpdateFlowRequest = exports.UpdateFailoverConfig = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopFlowResponse = exports.StopFlowRequest = exports.StartFlowResponse = exports.StartFlowRequest = void 0;
|
|
6
6
|
var Colorimetry;
|
|
7
7
|
(function (Colorimetry) {
|
|
8
8
|
Colorimetry["BT2020"] = "BT2020";
|
|
@@ -118,6 +118,7 @@ var MediaStreamOutputConfigurationRequest;
|
|
|
118
118
|
var Protocol;
|
|
119
119
|
(function (Protocol) {
|
|
120
120
|
Protocol["cdi"] = "cdi";
|
|
121
|
+
Protocol["fujitsu_qos"] = "fujitsu-qos";
|
|
121
122
|
Protocol["rist"] = "rist";
|
|
122
123
|
Protocol["rtp"] = "rtp";
|
|
123
124
|
Protocol["rtp_fec"] = "rtp-fec";
|
|
@@ -338,48 +339,6 @@ var AddFlowMediaStreamsResponse;
|
|
|
338
339
|
...obj,
|
|
339
340
|
});
|
|
340
341
|
})(AddFlowMediaStreamsResponse = exports.AddFlowMediaStreamsResponse || (exports.AddFlowMediaStreamsResponse = {}));
|
|
341
|
-
var BadRequestException;
|
|
342
|
-
(function (BadRequestException) {
|
|
343
|
-
BadRequestException.filterSensitiveLog = (obj) => ({
|
|
344
|
-
...obj,
|
|
345
|
-
});
|
|
346
|
-
})(BadRequestException = exports.BadRequestException || (exports.BadRequestException = {}));
|
|
347
|
-
var ForbiddenException;
|
|
348
|
-
(function (ForbiddenException) {
|
|
349
|
-
ForbiddenException.filterSensitiveLog = (obj) => ({
|
|
350
|
-
...obj,
|
|
351
|
-
});
|
|
352
|
-
})(ForbiddenException = exports.ForbiddenException || (exports.ForbiddenException = {}));
|
|
353
|
-
var InternalServerErrorException;
|
|
354
|
-
(function (InternalServerErrorException) {
|
|
355
|
-
InternalServerErrorException.filterSensitiveLog = (obj) => ({
|
|
356
|
-
...obj,
|
|
357
|
-
});
|
|
358
|
-
})(InternalServerErrorException = exports.InternalServerErrorException || (exports.InternalServerErrorException = {}));
|
|
359
|
-
var NotFoundException;
|
|
360
|
-
(function (NotFoundException) {
|
|
361
|
-
NotFoundException.filterSensitiveLog = (obj) => ({
|
|
362
|
-
...obj,
|
|
363
|
-
});
|
|
364
|
-
})(NotFoundException = exports.NotFoundException || (exports.NotFoundException = {}));
|
|
365
|
-
var ServiceUnavailableException;
|
|
366
|
-
(function (ServiceUnavailableException) {
|
|
367
|
-
ServiceUnavailableException.filterSensitiveLog = (obj) => ({
|
|
368
|
-
...obj,
|
|
369
|
-
});
|
|
370
|
-
})(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
|
|
371
|
-
var TooManyRequestsException;
|
|
372
|
-
(function (TooManyRequestsException) {
|
|
373
|
-
TooManyRequestsException.filterSensitiveLog = (obj) => ({
|
|
374
|
-
...obj,
|
|
375
|
-
});
|
|
376
|
-
})(TooManyRequestsException = exports.TooManyRequestsException || (exports.TooManyRequestsException = {}));
|
|
377
|
-
var AddFlowOutputs420Exception;
|
|
378
|
-
(function (AddFlowOutputs420Exception) {
|
|
379
|
-
AddFlowOutputs420Exception.filterSensitiveLog = (obj) => ({
|
|
380
|
-
...obj,
|
|
381
|
-
});
|
|
382
|
-
})(AddFlowOutputs420Exception = exports.AddFlowOutputs420Exception || (exports.AddFlowOutputs420Exception = {}));
|
|
383
342
|
var AddFlowOutputsRequest;
|
|
384
343
|
(function (AddFlowOutputsRequest) {
|
|
385
344
|
AddFlowOutputsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -416,12 +375,6 @@ var AddFlowVpcInterfacesResponse;
|
|
|
416
375
|
...obj,
|
|
417
376
|
});
|
|
418
377
|
})(AddFlowVpcInterfacesResponse = exports.AddFlowVpcInterfacesResponse || (exports.AddFlowVpcInterfacesResponse = {}));
|
|
419
|
-
var CreateFlow420Exception;
|
|
420
|
-
(function (CreateFlow420Exception) {
|
|
421
|
-
CreateFlow420Exception.filterSensitiveLog = (obj) => ({
|
|
422
|
-
...obj,
|
|
423
|
-
});
|
|
424
|
-
})(CreateFlow420Exception = exports.CreateFlow420Exception || (exports.CreateFlow420Exception = {}));
|
|
425
378
|
var FailoverMode;
|
|
426
379
|
(function (FailoverMode) {
|
|
427
380
|
FailoverMode["FAILOVER"] = "FAILOVER";
|
|
@@ -516,12 +469,6 @@ var DescribeReservationResponse;
|
|
|
516
469
|
...obj,
|
|
517
470
|
});
|
|
518
471
|
})(DescribeReservationResponse = exports.DescribeReservationResponse || (exports.DescribeReservationResponse = {}));
|
|
519
|
-
var GrantFlowEntitlements420Exception;
|
|
520
|
-
(function (GrantFlowEntitlements420Exception) {
|
|
521
|
-
GrantFlowEntitlements420Exception.filterSensitiveLog = (obj) => ({
|
|
522
|
-
...obj,
|
|
523
|
-
});
|
|
524
|
-
})(GrantFlowEntitlements420Exception = exports.GrantFlowEntitlements420Exception || (exports.GrantFlowEntitlements420Exception = {}));
|
|
525
472
|
var GrantFlowEntitlementsRequest;
|
|
526
473
|
(function (GrantFlowEntitlementsRequest) {
|
|
527
474
|
GrantFlowEntitlementsRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -938,6 +938,10 @@ const serializeAws_restJson1UpdateFlowOutputCommand = async (input, context) =>
|
|
|
938
938
|
...(input.Port !== undefined && input.Port !== null && { port: input.Port }),
|
|
939
939
|
...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
|
|
940
940
|
...(input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId }),
|
|
941
|
+
...(input.SenderControlPort !== undefined &&
|
|
942
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
|
|
943
|
+
...(input.SenderIpAddress !== undefined &&
|
|
944
|
+
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress }),
|
|
941
945
|
...(input.SmoothingLatency !== undefined &&
|
|
942
946
|
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency }),
|
|
943
947
|
...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
|
|
@@ -1000,6 +1004,10 @@ const serializeAws_restJson1UpdateFlowSourceCommand = async (input, context) =>
|
|
|
1000
1004
|
}),
|
|
1001
1005
|
...(input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency }),
|
|
1002
1006
|
...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
|
|
1007
|
+
...(input.SenderControlPort !== undefined &&
|
|
1008
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
|
|
1009
|
+
...(input.SenderIpAddress !== undefined &&
|
|
1010
|
+
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress }),
|
|
1003
1011
|
...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
|
|
1004
1012
|
...(input.VpcInterfaceName !== undefined &&
|
|
1005
1013
|
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
@@ -3868,6 +3876,8 @@ const serializeAws_restJson1AddOutputRequest = (input, context) => {
|
|
|
3868
3876
|
...(input.Port !== undefined && input.Port !== null && { port: input.Port }),
|
|
3869
3877
|
...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
|
|
3870
3878
|
...(input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId }),
|
|
3879
|
+
...(input.SenderControlPort !== undefined &&
|
|
3880
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
|
|
3871
3881
|
...(input.SmoothingLatency !== undefined &&
|
|
3872
3882
|
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency }),
|
|
3873
3883
|
...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
|
|
@@ -4015,6 +4025,10 @@ const serializeAws_restJson1SetSourceRequest = (input, context) => {
|
|
|
4015
4025
|
...(input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency }),
|
|
4016
4026
|
...(input.Name !== undefined && input.Name !== null && { name: input.Name }),
|
|
4017
4027
|
...(input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol }),
|
|
4028
|
+
...(input.SenderControlPort !== undefined &&
|
|
4029
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort }),
|
|
4030
|
+
...(input.SenderIpAddress !== undefined &&
|
|
4031
|
+
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress }),
|
|
4018
4032
|
...(input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId }),
|
|
4019
4033
|
...(input.VpcInterfaceName !== undefined &&
|
|
4020
4034
|
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName }),
|
|
@@ -4479,6 +4493,8 @@ const deserializeAws_restJson1Source = (output, context) => {
|
|
|
4479
4493
|
? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
|
|
4480
4494
|
: undefined,
|
|
4481
4495
|
Name: smithy_client_1.expectString(output.name),
|
|
4496
|
+
SenderControlPort: smithy_client_1.expectInt32(output.senderControlPort),
|
|
4497
|
+
SenderIpAddress: smithy_client_1.expectString(output.senderIpAddress),
|
|
4482
4498
|
SourceArn: smithy_client_1.expectString(output.sourceArn),
|
|
4483
4499
|
Transport: output.transport !== undefined && output.transport !== null
|
|
4484
4500
|
? deserializeAws_restJson1Transport(output.transport, context)
|
|
@@ -4503,6 +4519,8 @@ const deserializeAws_restJson1Transport = (output, context) => {
|
|
|
4503
4519
|
MinLatency: smithy_client_1.expectInt32(output.minLatency),
|
|
4504
4520
|
Protocol: smithy_client_1.expectString(output.protocol),
|
|
4505
4521
|
RemoteId: smithy_client_1.expectString(output.remoteId),
|
|
4522
|
+
SenderControlPort: smithy_client_1.expectInt32(output.senderControlPort),
|
|
4523
|
+
SenderIpAddress: smithy_client_1.expectString(output.senderIpAddress),
|
|
4506
4524
|
SmoothingLatency: smithy_client_1.expectInt32(output.smoothingLatency),
|
|
4507
4525
|
StreamId: smithy_client_1.expectString(output.streamId),
|
|
4508
4526
|
};
|
|
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
|
13
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
14
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
15
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
17
|
+
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
16
18
|
const getRuntimeConfig = (config) => {
|
|
17
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
+
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
21
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
18
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
19
23
|
return {
|
|
20
24
|
...clientSharedValues,
|
|
21
25
|
...config,
|
|
22
26
|
runtime: "browser",
|
|
27
|
+
defaultsMode,
|
|
23
28
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
|
|
24
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
25
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
|
|
|
27
32
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
29
34
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
30
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
|
|
31
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() =>
|
|
35
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
32
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
33
38
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
34
39
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -16,14 +16,17 @@ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
|
16
16
|
const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
|
+
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
19
20
|
const getRuntimeConfig = (config) => {
|
|
20
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
|
-
|
|
22
|
+
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
23
|
+
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
24
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
25
|
return {
|
|
24
26
|
...clientSharedValues,
|
|
25
27
|
...config,
|
|
26
28
|
runtime: "node",
|
|
29
|
+
defaultsMode,
|
|
27
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
28
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
29
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
|
|
|
31
34
|
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
35
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
33
36
|
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
34
|
-
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
|
|
35
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(
|
|
37
|
+
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
39
|
+
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
|
+
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
|
+
}),
|
|
36
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
44
|
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
package/dist-es/endpoints.js
CHANGED
|
@@ -98,6 +98,7 @@ export var MediaStreamOutputConfigurationRequest;
|
|
|
98
98
|
export var Protocol;
|
|
99
99
|
(function (Protocol) {
|
|
100
100
|
Protocol["cdi"] = "cdi";
|
|
101
|
+
Protocol["fujitsu_qos"] = "fujitsu-qos";
|
|
101
102
|
Protocol["rist"] = "rist";
|
|
102
103
|
Protocol["rtp"] = "rtp";
|
|
103
104
|
Protocol["rtp_fec"] = "rtp-fec";
|
|
@@ -262,34 +263,6 @@ export var AddFlowMediaStreamsResponse;
|
|
|
262
263
|
(function (AddFlowMediaStreamsResponse) {
|
|
263
264
|
AddFlowMediaStreamsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
264
265
|
})(AddFlowMediaStreamsResponse || (AddFlowMediaStreamsResponse = {}));
|
|
265
|
-
export var BadRequestException;
|
|
266
|
-
(function (BadRequestException) {
|
|
267
|
-
BadRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
268
|
-
})(BadRequestException || (BadRequestException = {}));
|
|
269
|
-
export var ForbiddenException;
|
|
270
|
-
(function (ForbiddenException) {
|
|
271
|
-
ForbiddenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
272
|
-
})(ForbiddenException || (ForbiddenException = {}));
|
|
273
|
-
export var InternalServerErrorException;
|
|
274
|
-
(function (InternalServerErrorException) {
|
|
275
|
-
InternalServerErrorException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
276
|
-
})(InternalServerErrorException || (InternalServerErrorException = {}));
|
|
277
|
-
export var NotFoundException;
|
|
278
|
-
(function (NotFoundException) {
|
|
279
|
-
NotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
280
|
-
})(NotFoundException || (NotFoundException = {}));
|
|
281
|
-
export var ServiceUnavailableException;
|
|
282
|
-
(function (ServiceUnavailableException) {
|
|
283
|
-
ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
284
|
-
})(ServiceUnavailableException || (ServiceUnavailableException = {}));
|
|
285
|
-
export var TooManyRequestsException;
|
|
286
|
-
(function (TooManyRequestsException) {
|
|
287
|
-
TooManyRequestsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
288
|
-
})(TooManyRequestsException || (TooManyRequestsException = {}));
|
|
289
|
-
export var AddFlowOutputs420Exception;
|
|
290
|
-
(function (AddFlowOutputs420Exception) {
|
|
291
|
-
AddFlowOutputs420Exception.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
292
|
-
})(AddFlowOutputs420Exception || (AddFlowOutputs420Exception = {}));
|
|
293
266
|
export var AddFlowOutputsRequest;
|
|
294
267
|
(function (AddFlowOutputsRequest) {
|
|
295
268
|
AddFlowOutputsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -314,10 +287,6 @@ export var AddFlowVpcInterfacesResponse;
|
|
|
314
287
|
(function (AddFlowVpcInterfacesResponse) {
|
|
315
288
|
AddFlowVpcInterfacesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
316
289
|
})(AddFlowVpcInterfacesResponse || (AddFlowVpcInterfacesResponse = {}));
|
|
317
|
-
export var CreateFlow420Exception;
|
|
318
|
-
(function (CreateFlow420Exception) {
|
|
319
|
-
CreateFlow420Exception.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
320
|
-
})(CreateFlow420Exception || (CreateFlow420Exception = {}));
|
|
321
290
|
export var FailoverMode;
|
|
322
291
|
(function (FailoverMode) {
|
|
323
292
|
FailoverMode["FAILOVER"] = "FAILOVER";
|
|
@@ -384,10 +353,6 @@ export var DescribeReservationResponse;
|
|
|
384
353
|
(function (DescribeReservationResponse) {
|
|
385
354
|
DescribeReservationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
386
355
|
})(DescribeReservationResponse || (DescribeReservationResponse = {}));
|
|
387
|
-
export var GrantFlowEntitlements420Exception;
|
|
388
|
-
(function (GrantFlowEntitlements420Exception) {
|
|
389
|
-
GrantFlowEntitlements420Exception.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
390
|
-
})(GrantFlowEntitlements420Exception || (GrantFlowEntitlements420Exception = {}));
|
|
391
356
|
export var GrantFlowEntitlementsRequest;
|
|
392
357
|
(function (GrantFlowEntitlementsRequest) {
|
|
393
358
|
GrantFlowEntitlementsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1009,14 +1009,16 @@ export var serializeAws_restJson1UpdateFlowOutputCommand = function (input, cont
|
|
|
1009
1009
|
else {
|
|
1010
1010
|
throw new Error("No value provided for input HTTP label: OutputArn.");
|
|
1011
1011
|
}
|
|
1012
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList !== undefined &&
|
|
1012
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList !== undefined &&
|
|
1013
1013
|
input.CidrAllowList !== null && {
|
|
1014
1014
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
1015
1015
|
})), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.Destination !== undefined && input.Destination !== null && { destination: input.Destination })), (input.Encryption !== undefined &&
|
|
1016
1016
|
input.Encryption !== null && { encryption: serializeAws_restJson1UpdateEncryption(input.Encryption, context) })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations !== undefined &&
|
|
1017
1017
|
input.MediaStreamOutputConfigurations !== null && {
|
|
1018
1018
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
1019
|
-
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Port !== undefined && input.Port !== null && { port: input.Port })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId })), (input.
|
|
1019
|
+
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Port !== undefined && input.Port !== null && { port: input.Port })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId })), (input.SenderControlPort !== undefined &&
|
|
1020
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
1021
|
+
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.SmoothingLatency !== undefined &&
|
|
1020
1022
|
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment !== undefined &&
|
|
1021
1023
|
input.VpcInterfaceAttachment !== null && {
|
|
1022
1024
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
@@ -1064,12 +1066,14 @@ export var serializeAws_restJson1UpdateFlowSourceCommand = function (input, cont
|
|
|
1064
1066
|
else {
|
|
1065
1067
|
throw new Error("No value provided for input HTTP label: SourceArn.");
|
|
1066
1068
|
}
|
|
1067
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption !== undefined &&
|
|
1069
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption !== undefined &&
|
|
1068
1070
|
input.Decryption !== null && { decryption: serializeAws_restJson1UpdateEncryption(input.Decryption, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.EntitlementArn !== undefined &&
|
|
1069
1071
|
input.EntitlementArn !== null && { entitlementArn: input.EntitlementArn })), (input.IngestPort !== undefined && input.IngestPort !== null && { ingestPort: input.IngestPort })), (input.MaxBitrate !== undefined && input.MaxBitrate !== null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations !== undefined &&
|
|
1070
1072
|
input.MediaStreamSourceConfigurations !== null && {
|
|
1071
1073
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
1072
|
-
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.
|
|
1074
|
+
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.SenderControlPort !== undefined &&
|
|
1075
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
1076
|
+
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceName !== undefined &&
|
|
1073
1077
|
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr })));
|
|
1074
1078
|
return [2, new __HttpRequest({
|
|
1075
1079
|
protocol: protocol,
|
|
@@ -4350,14 +4354,15 @@ var serializeAws_restJson1AddMediaStreamRequest = function (input, context) {
|
|
|
4350
4354
|
input.MediaStreamType !== null && { mediaStreamType: input.MediaStreamType })), (input.VideoFormat !== undefined && input.VideoFormat !== null && { videoFormat: input.VideoFormat }));
|
|
4351
4355
|
};
|
|
4352
4356
|
var serializeAws_restJson1AddOutputRequest = function (input, context) {
|
|
4353
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList !== undefined &&
|
|
4357
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CidrAllowList !== undefined &&
|
|
4354
4358
|
input.CidrAllowList !== null && {
|
|
4355
4359
|
cidrAllowList: serializeAws_restJson1__listOf__string(input.CidrAllowList, context),
|
|
4356
4360
|
})), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.Destination !== undefined && input.Destination !== null && { destination: input.Destination })), (input.Encryption !== undefined &&
|
|
4357
4361
|
input.Encryption !== null && { encryption: serializeAws_restJson1Encryption(input.Encryption, context) })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MediaStreamOutputConfigurations !== undefined &&
|
|
4358
4362
|
input.MediaStreamOutputConfigurations !== null && {
|
|
4359
4363
|
mediaStreamOutputConfigurations: serializeAws_restJson1__listOfMediaStreamOutputConfigurationRequest(input.MediaStreamOutputConfigurations, context),
|
|
4360
|
-
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Port !== undefined && input.Port !== null && { port: input.Port })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId })), (input.
|
|
4364
|
+
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Port !== undefined && input.Port !== null && { port: input.Port })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.RemoteId !== undefined && input.RemoteId !== null && { remoteId: input.RemoteId })), (input.SenderControlPort !== undefined &&
|
|
4365
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SmoothingLatency !== undefined &&
|
|
4361
4366
|
input.SmoothingLatency !== null && { smoothingLatency: input.SmoothingLatency })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceAttachment !== undefined &&
|
|
4362
4367
|
input.VpcInterfaceAttachment !== null && {
|
|
4363
4368
|
vpcInterfaceAttachment: serializeAws_restJson1VpcInterfaceAttachment(input.VpcInterfaceAttachment, context),
|
|
@@ -4430,12 +4435,14 @@ var serializeAws_restJson1MediaStreamSourceConfigurationRequest = function (inpu
|
|
|
4430
4435
|
input.MediaStreamName !== null && { mediaStreamName: input.MediaStreamName }));
|
|
4431
4436
|
};
|
|
4432
4437
|
var serializeAws_restJson1SetSourceRequest = function (input, context) {
|
|
4433
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption !== undefined &&
|
|
4438
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Decryption !== undefined &&
|
|
4434
4439
|
input.Decryption !== null && { decryption: serializeAws_restJson1Encryption(input.Decryption, context) })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.EntitlementArn !== undefined &&
|
|
4435
4440
|
input.EntitlementArn !== null && { entitlementArn: input.EntitlementArn })), (input.IngestPort !== undefined && input.IngestPort !== null && { ingestPort: input.IngestPort })), (input.MaxBitrate !== undefined && input.MaxBitrate !== null && { maxBitrate: input.MaxBitrate })), (input.MaxLatency !== undefined && input.MaxLatency !== null && { maxLatency: input.MaxLatency })), (input.MaxSyncBuffer !== undefined && input.MaxSyncBuffer !== null && { maxSyncBuffer: input.MaxSyncBuffer })), (input.MediaStreamSourceConfigurations !== undefined &&
|
|
4436
4441
|
input.MediaStreamSourceConfigurations !== null && {
|
|
4437
4442
|
mediaStreamSourceConfigurations: serializeAws_restJson1__listOfMediaStreamSourceConfigurationRequest(input.MediaStreamSourceConfigurations, context),
|
|
4438
|
-
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.
|
|
4443
|
+
})), (input.MinLatency !== undefined && input.MinLatency !== null && { minLatency: input.MinLatency })), (input.Name !== undefined && input.Name !== null && { name: input.Name })), (input.Protocol !== undefined && input.Protocol !== null && { protocol: input.Protocol })), (input.SenderControlPort !== undefined &&
|
|
4444
|
+
input.SenderControlPort !== null && { senderControlPort: input.SenderControlPort })), (input.SenderIpAddress !== undefined &&
|
|
4445
|
+
input.SenderIpAddress !== null && { senderIpAddress: input.SenderIpAddress })), (input.StreamId !== undefined && input.StreamId !== null && { streamId: input.StreamId })), (input.VpcInterfaceName !== undefined &&
|
|
4439
4446
|
input.VpcInterfaceName !== null && { vpcInterfaceName: input.VpcInterfaceName })), (input.WhitelistCidr !== undefined && input.WhitelistCidr !== null && { whitelistCidr: input.WhitelistCidr }));
|
|
4440
4447
|
};
|
|
4441
4448
|
var serializeAws_restJson1SourcePriority = function (input, context) {
|
|
@@ -4870,6 +4877,8 @@ var deserializeAws_restJson1Source = function (output, context) {
|
|
|
4870
4877
|
? deserializeAws_restJson1__listOfMediaStreamSourceConfiguration(output.mediaStreamSourceConfigurations, context)
|
|
4871
4878
|
: undefined,
|
|
4872
4879
|
Name: __expectString(output.name),
|
|
4880
|
+
SenderControlPort: __expectInt32(output.senderControlPort),
|
|
4881
|
+
SenderIpAddress: __expectString(output.senderIpAddress),
|
|
4873
4882
|
SourceArn: __expectString(output.sourceArn),
|
|
4874
4883
|
Transport: output.transport !== undefined && output.transport !== null
|
|
4875
4884
|
? deserializeAws_restJson1Transport(output.transport, context)
|
|
@@ -4894,6 +4903,8 @@ var deserializeAws_restJson1Transport = function (output, context) {
|
|
|
4894
4903
|
MinLatency: __expectInt32(output.minLatency),
|
|
4895
4904
|
Protocol: __expectString(output.protocol),
|
|
4896
4905
|
RemoteId: __expectString(output.remoteId),
|
|
4906
|
+
SenderControlPort: __expectInt32(output.senderControlPort),
|
|
4907
|
+
SenderIpAddress: __expectString(output.senderIpAddress),
|
|
4897
4908
|
SmoothingLatency: __expectInt32(output.smoothingLatency),
|
|
4898
4909
|
StreamId: __expectString(output.streamId),
|
|
4899
4910
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
4
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
28
|
};
|
|
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { AddFlowMediaStreamsCommandInput, AddFlowMediaStreamsCommandOutput } from "./commands/AddFlowMediaStreamsCommand";
|
|
10
10
|
import { AddFlowOutputsCommandInput, AddFlowOutputsCommandOutput } from "./commands/AddFlowOutputsCommand";
|
|
@@ -138,6 +138,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
138
138
|
* @internal
|
|
139
139
|
*/
|
|
140
140
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
141
|
+
/**
|
|
142
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
143
|
+
*/
|
|
144
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
141
145
|
}
|
|
142
146
|
declare type MediaConnectClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
143
147
|
/**
|