@aws-sdk/client-mediapackage 3.388.0 → 3.395.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/dist-cjs/MediaPackageClient.js +4 -2
- package/dist-cjs/clientConfiguration.js +2 -0
- package/dist-cjs/commands/ConfigureLogsCommand.js +2 -1
- package/dist-cjs/commands/CreateChannelCommand.js +2 -1
- package/dist-cjs/commands/DescribeChannelCommand.js +2 -1
- package/dist-cjs/commands/ListChannelsCommand.js +2 -1
- package/dist-cjs/commands/RotateChannelCredentialsCommand.js +2 -1
- package/dist-cjs/commands/RotateIngestEndpointCredentialsCommand.js +2 -1
- package/dist-cjs/commands/UpdateChannelCommand.js +2 -1
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +54 -1
- package/dist-cjs/runtimeConfig.shared.js +1 -0
- package/dist-cjs/runtimeExtensions.js +16 -0
- package/dist-es/MediaPackageClient.js +4 -2
- package/dist-es/clientConfiguration.js +1 -0
- package/dist-es/commands/ConfigureLogsCommand.js +2 -1
- package/dist-es/commands/CreateChannelCommand.js +2 -1
- package/dist-es/commands/DescribeChannelCommand.js +2 -1
- package/dist-es/commands/ListChannelsCommand.js +2 -1
- package/dist-es/commands/RotateChannelCredentialsCommand.js +2 -1
- package/dist-es/commands/RotateIngestEndpointCredentialsCommand.js +2 -1
- package/dist-es/commands/UpdateChannelCommand.js +2 -1
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +43 -0
- package/dist-es/runtimeConfig.shared.js +1 -0
- package/dist-es/runtimeExtensions.js +12 -0
- package/dist-types/MediaPackageClient.d.ts +6 -1
- package/dist-types/clientConfiguration.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +40 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/MediaPackageClient.d.ts +3 -0
- package/dist-types/ts3.4/clientConfiguration.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +26 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/package.json +28 -28
|
@@ -14,6 +14,7 @@ const smithy_client_1 = require("@smithy/smithy-client");
|
|
|
14
14
|
Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } });
|
|
15
15
|
const EndpointParameters_1 = require("./endpoint/EndpointParameters");
|
|
16
16
|
const runtimeConfig_1 = require("./runtimeConfig");
|
|
17
|
+
const runtimeExtensions_1 = require("./runtimeExtensions");
|
|
17
18
|
class MediaPackageClient extends smithy_client_1.Client {
|
|
18
19
|
constructor(...[configuration]) {
|
|
19
20
|
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
|
|
@@ -24,8 +25,9 @@ class MediaPackageClient extends smithy_client_1.Client {
|
|
|
24
25
|
const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4);
|
|
25
26
|
const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5);
|
|
26
27
|
const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6);
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []);
|
|
29
|
+
super(_config_8);
|
|
30
|
+
this.config = _config_8;
|
|
29
31
|
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
30
32
|
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
31
33
|
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class ConfigureLogsCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class ConfigureLogsCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.ConfigureLogsResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class CreateChannelCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class CreateChannelCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.CreateChannelResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class DescribeChannelCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class DescribeChannelCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.DescribeChannelResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class ListChannelsCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class ListChannelsCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.ListChannelsResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class RotateChannelCredentialsCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class RotateChannelCredentialsCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.RotateChannelCredentialsResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class RotateIngestEndpointCredentialsCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class RotateIngestEndpointCredentialsCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.RotateIngestEndpointCredentialsResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -5,6 +5,7 @@ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
|
5
5
|
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
8
9
|
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
10
|
class UpdateChannelCommand extends smithy_client_1.Command {
|
|
10
11
|
static getEndpointParameterInstructions() {
|
|
@@ -31,7 +32,7 @@ class UpdateChannelCommand extends smithy_client_1.Command {
|
|
|
31
32
|
clientName,
|
|
32
33
|
commandName,
|
|
33
34
|
inputFilterSensitiveLog: (_) => _,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
35
|
+
outputFilterSensitiveLog: models_0_1.UpdateChannelResponseFilterSensitiveLog,
|
|
35
36
|
};
|
|
36
37
|
const { requestHandler } = configuration;
|
|
37
38
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
4
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
5
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnprocessableEntityException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.Origination = exports.EncryptionMethod = exports.UtcTiming = exports.SegmentTemplateFormat = exports.Profile = exports.ManifestLayout = exports.StreamOrder = exports.PresetSpeke20Video = exports.PresetSpeke20Audio = exports.CmafEncryptionMethod = exports.PlaylistType = exports.AdsOnDeliveryRestrictions = exports.AdMarkers = exports.Status = exports.__PeriodTriggersElement = exports.__AdTriggersElement = void 0;
|
|
3
|
+
exports.UpdateChannelResponseFilterSensitiveLog = exports.RotateIngestEndpointCredentialsResponseFilterSensitiveLog = exports.RotateChannelCredentialsResponseFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.DescribeChannelResponseFilterSensitiveLog = exports.CreateChannelResponseFilterSensitiveLog = exports.ConfigureLogsResponseFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.HlsIngestFilterSensitiveLog = exports.IngestEndpointFilterSensitiveLog = exports.UnprocessableEntityException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.Origination = exports.EncryptionMethod = exports.UtcTiming = exports.SegmentTemplateFormat = exports.Profile = exports.ManifestLayout = exports.StreamOrder = exports.PresetSpeke20Video = exports.PresetSpeke20Audio = exports.CmafEncryptionMethod = exports.PlaylistType = exports.AdsOnDeliveryRestrictions = exports.AdMarkers = exports.Status = exports.__PeriodTriggersElement = exports.__AdTriggersElement = void 0;
|
|
4
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
4
5
|
const MediaPackageServiceException_1 = require("./MediaPackageServiceException");
|
|
5
6
|
exports.__AdTriggersElement = {
|
|
6
7
|
BREAK: "BREAK",
|
|
@@ -178,3 +179,55 @@ class UnprocessableEntityException extends MediaPackageServiceException_1.MediaP
|
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
exports.UnprocessableEntityException = UnprocessableEntityException;
|
|
182
|
+
const IngestEndpointFilterSensitiveLog = (obj) => ({
|
|
183
|
+
...obj,
|
|
184
|
+
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
185
|
+
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
186
|
+
});
|
|
187
|
+
exports.IngestEndpointFilterSensitiveLog = IngestEndpointFilterSensitiveLog;
|
|
188
|
+
const HlsIngestFilterSensitiveLog = (obj) => ({
|
|
189
|
+
...obj,
|
|
190
|
+
...(obj.IngestEndpoints && {
|
|
191
|
+
IngestEndpoints: obj.IngestEndpoints.map((item) => (0, exports.IngestEndpointFilterSensitiveLog)(item)),
|
|
192
|
+
}),
|
|
193
|
+
});
|
|
194
|
+
exports.HlsIngestFilterSensitiveLog = HlsIngestFilterSensitiveLog;
|
|
195
|
+
const ChannelFilterSensitiveLog = (obj) => ({
|
|
196
|
+
...obj,
|
|
197
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
198
|
+
});
|
|
199
|
+
exports.ChannelFilterSensitiveLog = ChannelFilterSensitiveLog;
|
|
200
|
+
const ConfigureLogsResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
+
...obj,
|
|
202
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
203
|
+
});
|
|
204
|
+
exports.ConfigureLogsResponseFilterSensitiveLog = ConfigureLogsResponseFilterSensitiveLog;
|
|
205
|
+
const CreateChannelResponseFilterSensitiveLog = (obj) => ({
|
|
206
|
+
...obj,
|
|
207
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
208
|
+
});
|
|
209
|
+
exports.CreateChannelResponseFilterSensitiveLog = CreateChannelResponseFilterSensitiveLog;
|
|
210
|
+
const DescribeChannelResponseFilterSensitiveLog = (obj) => ({
|
|
211
|
+
...obj,
|
|
212
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
213
|
+
});
|
|
214
|
+
exports.DescribeChannelResponseFilterSensitiveLog = DescribeChannelResponseFilterSensitiveLog;
|
|
215
|
+
const ListChannelsResponseFilterSensitiveLog = (obj) => ({
|
|
216
|
+
...obj,
|
|
217
|
+
});
|
|
218
|
+
exports.ListChannelsResponseFilterSensitiveLog = ListChannelsResponseFilterSensitiveLog;
|
|
219
|
+
const RotateChannelCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
220
|
+
...obj,
|
|
221
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
222
|
+
});
|
|
223
|
+
exports.RotateChannelCredentialsResponseFilterSensitiveLog = RotateChannelCredentialsResponseFilterSensitiveLog;
|
|
224
|
+
const RotateIngestEndpointCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
225
|
+
...obj,
|
|
226
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
227
|
+
});
|
|
228
|
+
exports.RotateIngestEndpointCredentialsResponseFilterSensitiveLog = RotateIngestEndpointCredentialsResponseFilterSensitiveLog;
|
|
229
|
+
const UpdateChannelResponseFilterSensitiveLog = (obj) => ({
|
|
230
|
+
...obj,
|
|
231
|
+
...(obj.HlsIngest && { HlsIngest: (0, exports.HlsIngestFilterSensitiveLog)(obj.HlsIngest) }),
|
|
232
|
+
});
|
|
233
|
+
exports.UpdateChannelResponseFilterSensitiveLog = UpdateChannelResponseFilterSensitiveLog;
|
|
@@ -12,6 +12,7 @@ const getRuntimeConfig = (config) => ({
|
|
|
12
12
|
base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
|
|
13
13
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
14
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
15
|
+
extensions: config?.extensions ?? [],
|
|
15
16
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
16
17
|
serviceId: config?.serviceId ?? "MediaPackage",
|
|
17
18
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const types_1 = require("@smithy/types");
|
|
5
|
+
const asPartial = (t) => t;
|
|
6
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
|
+
const clientConfiguration = {
|
|
8
|
+
...asPartial((0, types_1.getDefaultClientConfiguration)(runtimeConfig)),
|
|
9
|
+
};
|
|
10
|
+
extensions.forEach((extension) => extension.configureClient(clientConfiguration));
|
|
11
|
+
return {
|
|
12
|
+
...runtimeConfig,
|
|
13
|
+
...(0, types_1.resolveDefaultRuntimeConfig)(clientConfiguration),
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -10,6 +10,7 @@ import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
|
10
10
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
11
11
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
12
12
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
13
|
+
import { resolveRuntimeExtensions } from "./runtimeExtensions";
|
|
13
14
|
export { __Client };
|
|
14
15
|
export class MediaPackageClient extends __Client {
|
|
15
16
|
constructor(...[configuration]) {
|
|
@@ -21,8 +22,9 @@ export class MediaPackageClient extends __Client {
|
|
|
21
22
|
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
22
23
|
const _config_6 = resolveAwsAuthConfig(_config_5);
|
|
23
24
|
const _config_7 = resolveUserAgentConfig(_config_6);
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
26
|
+
super(_config_8);
|
|
27
|
+
this.config = _config_8;
|
|
26
28
|
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
27
29
|
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
28
30
|
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { ConfigureLogsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { de_ConfigureLogsCommand, se_ConfigureLogsCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class ConfigureLogsCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class ConfigureLogsCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: ConfigureLogsResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { CreateChannelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { de_CreateChannelCommand, se_CreateChannelCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class CreateChannelCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class CreateChannelCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: CreateChannelResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { DescribeChannelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { de_DescribeChannelCommand, se_DescribeChannelCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class DescribeChannelCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class DescribeChannelCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: DescribeChannelResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { ListChannelsResponseFilterSensitiveLog } from "../models/models_0";
|
|
4
5
|
import { de_ListChannelsCommand, se_ListChannelsCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class ListChannelsCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class ListChannelsCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: ListChannelsResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { RotateChannelCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { de_RotateChannelCredentialsCommand, se_RotateChannelCredentialsCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class RotateChannelCredentialsCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class RotateChannelCredentialsCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: RotateChannelCredentialsResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { RotateIngestEndpointCredentialsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { de_RotateIngestEndpointCredentialsCommand, se_RotateIngestEndpointCredentialsCommand, } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class RotateIngestEndpointCredentialsCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class RotateIngestEndpointCredentialsCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: RotateIngestEndpointCredentialsResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { UpdateChannelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
4
5
|
import { de_UpdateChannelCommand, se_UpdateChannelCommand } from "../protocols/Aws_restJson1";
|
|
5
6
|
export { $Command };
|
|
6
7
|
export class UpdateChannelCommand extends $Command {
|
|
@@ -28,7 +29,7 @@ export class UpdateChannelCommand extends $Command {
|
|
|
28
29
|
clientName,
|
|
29
30
|
commandName,
|
|
30
31
|
inputFilterSensitiveLog: (_) => _,
|
|
31
|
-
outputFilterSensitiveLog:
|
|
32
|
+
outputFilterSensitiveLog: UpdateChannelResponseFilterSensitiveLog,
|
|
32
33
|
};
|
|
33
34
|
const { requestHandler } = configuration;
|
|
34
35
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
2
|
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, {
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://mediapackage-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://mediapackage.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
1
2
|
import { MediaPackageServiceException as __BaseException } from "./MediaPackageServiceException";
|
|
2
3
|
export const __AdTriggersElement = {
|
|
3
4
|
BREAK: "BREAK",
|
|
@@ -169,3 +170,45 @@ export class UnprocessableEntityException extends __BaseException {
|
|
|
169
170
|
this.Message = opts.Message;
|
|
170
171
|
}
|
|
171
172
|
}
|
|
173
|
+
export const IngestEndpointFilterSensitiveLog = (obj) => ({
|
|
174
|
+
...obj,
|
|
175
|
+
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
176
|
+
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
177
|
+
});
|
|
178
|
+
export const HlsIngestFilterSensitiveLog = (obj) => ({
|
|
179
|
+
...obj,
|
|
180
|
+
...(obj.IngestEndpoints && {
|
|
181
|
+
IngestEndpoints: obj.IngestEndpoints.map((item) => IngestEndpointFilterSensitiveLog(item)),
|
|
182
|
+
}),
|
|
183
|
+
});
|
|
184
|
+
export const ChannelFilterSensitiveLog = (obj) => ({
|
|
185
|
+
...obj,
|
|
186
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
187
|
+
});
|
|
188
|
+
export const ConfigureLogsResponseFilterSensitiveLog = (obj) => ({
|
|
189
|
+
...obj,
|
|
190
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
191
|
+
});
|
|
192
|
+
export const CreateChannelResponseFilterSensitiveLog = (obj) => ({
|
|
193
|
+
...obj,
|
|
194
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
195
|
+
});
|
|
196
|
+
export const DescribeChannelResponseFilterSensitiveLog = (obj) => ({
|
|
197
|
+
...obj,
|
|
198
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
199
|
+
});
|
|
200
|
+
export const ListChannelsResponseFilterSensitiveLog = (obj) => ({
|
|
201
|
+
...obj,
|
|
202
|
+
});
|
|
203
|
+
export const RotateChannelCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
204
|
+
...obj,
|
|
205
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
206
|
+
});
|
|
207
|
+
export const RotateIngestEndpointCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
208
|
+
...obj,
|
|
209
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
210
|
+
});
|
|
211
|
+
export const UpdateChannelResponseFilterSensitiveLog = (obj) => ({
|
|
212
|
+
...obj,
|
|
213
|
+
...(obj.HlsIngest && { HlsIngest: HlsIngestFilterSensitiveLog(obj.HlsIngest) }),
|
|
214
|
+
});
|
|
@@ -9,6 +9,7 @@ export const getRuntimeConfig = (config) => ({
|
|
|
9
9
|
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
10
10
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
11
11
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
12
|
+
extensions: config?.extensions ?? [],
|
|
12
13
|
logger: config?.logger ?? new NoOpLogger(),
|
|
13
14
|
serviceId: config?.serviceId ?? "MediaPackage",
|
|
14
15
|
urlParser: config?.urlParser ?? parseUrl,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { getDefaultClientConfiguration, resolveDefaultRuntimeConfig } from "@smithy/types";
|
|
2
|
+
const asPartial = (t) => t;
|
|
3
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
4
|
+
const clientConfiguration = {
|
|
5
|
+
...asPartial(getDefaultClientConfiguration(runtimeConfig)),
|
|
6
|
+
};
|
|
7
|
+
extensions.forEach((extension) => extension.configureClient(clientConfiguration));
|
|
8
|
+
return {
|
|
9
|
+
...runtimeConfig,
|
|
10
|
+
...resolveDefaultRuntimeConfig(clientConfiguration),
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -28,6 +28,7 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
28
28
|
import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "./commands/UpdateChannelCommand";
|
|
29
29
|
import { UpdateOriginEndpointCommandInput, UpdateOriginEndpointCommandOutput } from "./commands/UpdateOriginEndpointCommand";
|
|
30
30
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
31
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
31
32
|
export { __Client };
|
|
32
33
|
/**
|
|
33
34
|
* @public
|
|
@@ -135,6 +136,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
135
136
|
* Optional logger for logging debug/info/warn/error.
|
|
136
137
|
*/
|
|
137
138
|
logger?: __Logger;
|
|
139
|
+
/**
|
|
140
|
+
* Optional extensions
|
|
141
|
+
*/
|
|
142
|
+
extensions?: RuntimeExtension[];
|
|
138
143
|
/**
|
|
139
144
|
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
140
145
|
*/
|
|
@@ -154,7 +159,7 @@ export interface MediaPackageClientConfig extends MediaPackageClientConfigType {
|
|
|
154
159
|
/**
|
|
155
160
|
* @public
|
|
156
161
|
*/
|
|
157
|
-
export type MediaPackageClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
162
|
+
export type MediaPackageClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
158
163
|
/**
|
|
159
164
|
* @public
|
|
160
165
|
*
|
|
@@ -2329,3 +2329,43 @@ export interface UpdateOriginEndpointResponse {
|
|
|
2329
2329
|
*/
|
|
2330
2330
|
Whitelist?: string[];
|
|
2331
2331
|
}
|
|
2332
|
+
/**
|
|
2333
|
+
* @internal
|
|
2334
|
+
*/
|
|
2335
|
+
export declare const IngestEndpointFilterSensitiveLog: (obj: IngestEndpoint) => any;
|
|
2336
|
+
/**
|
|
2337
|
+
* @internal
|
|
2338
|
+
*/
|
|
2339
|
+
export declare const HlsIngestFilterSensitiveLog: (obj: HlsIngest) => any;
|
|
2340
|
+
/**
|
|
2341
|
+
* @internal
|
|
2342
|
+
*/
|
|
2343
|
+
export declare const ChannelFilterSensitiveLog: (obj: Channel) => any;
|
|
2344
|
+
/**
|
|
2345
|
+
* @internal
|
|
2346
|
+
*/
|
|
2347
|
+
export declare const ConfigureLogsResponseFilterSensitiveLog: (obj: ConfigureLogsResponse) => any;
|
|
2348
|
+
/**
|
|
2349
|
+
* @internal
|
|
2350
|
+
*/
|
|
2351
|
+
export declare const CreateChannelResponseFilterSensitiveLog: (obj: CreateChannelResponse) => any;
|
|
2352
|
+
/**
|
|
2353
|
+
* @internal
|
|
2354
|
+
*/
|
|
2355
|
+
export declare const DescribeChannelResponseFilterSensitiveLog: (obj: DescribeChannelResponse) => any;
|
|
2356
|
+
/**
|
|
2357
|
+
* @internal
|
|
2358
|
+
*/
|
|
2359
|
+
export declare const ListChannelsResponseFilterSensitiveLog: (obj: ListChannelsResponse) => any;
|
|
2360
|
+
/**
|
|
2361
|
+
* @internal
|
|
2362
|
+
*/
|
|
2363
|
+
export declare const RotateChannelCredentialsResponseFilterSensitiveLog: (obj: RotateChannelCredentialsResponse) => any;
|
|
2364
|
+
/**
|
|
2365
|
+
* @internal
|
|
2366
|
+
*/
|
|
2367
|
+
export declare const RotateIngestEndpointCredentialsResponseFilterSensitiveLog: (obj: RotateIngestEndpointCredentialsResponse) => any;
|
|
2368
|
+
/**
|
|
2369
|
+
* @internal
|
|
2370
|
+
*/
|
|
2371
|
+
export declare const UpdateChannelResponseFilterSensitiveLog: (obj: UpdateChannelResponse) => any;
|
|
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
30
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
30
31
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
32
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -26,6 +26,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
serviceId: string;
|
|
28
28
|
logger: import("@smithy/types").Logger;
|
|
29
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
29
30
|
endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
|
|
30
31
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
32
|
logger?: import("@smithy/types").Logger | undefined;
|
|
@@ -24,6 +24,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
24
24
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
25
25
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
26
|
logger: import("@smithy/types").Logger;
|
|
27
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
27
28
|
defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
|
|
28
29
|
endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
|
|
29
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
10
10
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
11
11
|
logger?: import("@smithy/types").Logger | undefined;
|
|
12
12
|
}) => import("@smithy/types").EndpointV2;
|
|
13
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
13
14
|
logger: import("@smithy/types").Logger;
|
|
14
15
|
serviceId: string;
|
|
15
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MediaPackageClientConfiguration } from "./clientConfiguration";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface RuntimeExtension {
|
|
6
|
+
configureClient(clientConfiguration: MediaPackageClientConfiguration): void;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export interface RuntimeExtensionsConfig {
|
|
12
|
+
extensions: RuntimeExtension[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any;
|
|
@@ -126,6 +126,7 @@ import {
|
|
|
126
126
|
ClientResolvedEndpointParameters,
|
|
127
127
|
EndpointParameters,
|
|
128
128
|
} from "./endpoint/EndpointParameters";
|
|
129
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
129
130
|
export { __Client };
|
|
130
131
|
export type ServiceInputTypes =
|
|
131
132
|
| ConfigureLogsCommandInput
|
|
@@ -189,6 +190,7 @@ export interface ClientDefaults
|
|
|
189
190
|
maxAttempts?: number | __Provider<number>;
|
|
190
191
|
retryMode?: string | __Provider<string>;
|
|
191
192
|
logger?: __Logger;
|
|
193
|
+
extensions?: RuntimeExtension[];
|
|
192
194
|
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
193
195
|
}
|
|
194
196
|
export type MediaPackageClientConfigType = Partial<
|
|
@@ -207,6 +209,7 @@ export interface MediaPackageClientConfig
|
|
|
207
209
|
export type MediaPackageClientResolvedConfigType =
|
|
208
210
|
__SmithyResolvedConfiguration<__HttpHandlerOptions> &
|
|
209
211
|
Required<ClientDefaults> &
|
|
212
|
+
RuntimeExtensionsConfig &
|
|
210
213
|
RegionResolvedConfig &
|
|
211
214
|
EndpointResolvedConfig<EndpointParameters> &
|
|
212
215
|
RetryResolvedConfig &
|
|
@@ -592,3 +592,29 @@ export interface UpdateOriginEndpointResponse {
|
|
|
592
592
|
Url?: string;
|
|
593
593
|
Whitelist?: string[];
|
|
594
594
|
}
|
|
595
|
+
export declare const IngestEndpointFilterSensitiveLog: (
|
|
596
|
+
obj: IngestEndpoint
|
|
597
|
+
) => any;
|
|
598
|
+
export declare const HlsIngestFilterSensitiveLog: (obj: HlsIngest) => any;
|
|
599
|
+
export declare const ChannelFilterSensitiveLog: (obj: Channel) => any;
|
|
600
|
+
export declare const ConfigureLogsResponseFilterSensitiveLog: (
|
|
601
|
+
obj: ConfigureLogsResponse
|
|
602
|
+
) => any;
|
|
603
|
+
export declare const CreateChannelResponseFilterSensitiveLog: (
|
|
604
|
+
obj: CreateChannelResponse
|
|
605
|
+
) => any;
|
|
606
|
+
export declare const DescribeChannelResponseFilterSensitiveLog: (
|
|
607
|
+
obj: DescribeChannelResponse
|
|
608
|
+
) => any;
|
|
609
|
+
export declare const ListChannelsResponseFilterSensitiveLog: (
|
|
610
|
+
obj: ListChannelsResponse
|
|
611
|
+
) => any;
|
|
612
|
+
export declare const RotateChannelCredentialsResponseFilterSensitiveLog: (
|
|
613
|
+
obj: RotateChannelCredentialsResponse
|
|
614
|
+
) => any;
|
|
615
|
+
export declare const RotateIngestEndpointCredentialsResponseFilterSensitiveLog: (
|
|
616
|
+
obj: RotateIngestEndpointCredentialsResponse
|
|
617
|
+
) => any;
|
|
618
|
+
export declare const UpdateChannelResponseFilterSensitiveLog: (
|
|
619
|
+
obj: UpdateChannelResponse
|
|
620
|
+
) => any;
|
|
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
serviceId: string;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
39
40
|
endpoint?:
|
|
40
41
|
| ((
|
|
41
42
|
| string
|
|
@@ -36,6 +36,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
36
36
|
disableHostPrefix: boolean;
|
|
37
37
|
serviceId: string;
|
|
38
38
|
logger: import("@smithy/types").Logger;
|
|
39
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
39
40
|
endpoint?:
|
|
40
41
|
| ((
|
|
41
42
|
| string
|
|
@@ -32,6 +32,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
32
32
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
33
33
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
34
34
|
logger: import("@smithy/types").Logger;
|
|
35
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
35
36
|
defaultsMode:
|
|
36
37
|
| import("@smithy/smithy-client").DefaultsMode
|
|
37
38
|
| import("@smithy/types").Provider<
|
|
@@ -10,6 +10,7 @@ export declare const getRuntimeConfig: (config: MediaPackageClientConfig) => {
|
|
|
10
10
|
logger?: import("@smithy/types").Logger | undefined;
|
|
11
11
|
}
|
|
12
12
|
) => import("@smithy/types").EndpointV2;
|
|
13
|
+
extensions: import("./runtimeExtensions").RuntimeExtension[];
|
|
13
14
|
logger: import("@smithy/types").Logger;
|
|
14
15
|
serviceId: string;
|
|
15
16
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MediaPackageClientConfiguration } from "./clientConfiguration";
|
|
2
|
+
export interface RuntimeExtension {
|
|
3
|
+
configureClient(clientConfiguration: MediaPackageClientConfiguration): void;
|
|
4
|
+
}
|
|
5
|
+
export interface RuntimeExtensionsConfig {
|
|
6
|
+
extensions: RuntimeExtension[];
|
|
7
|
+
}
|
|
8
|
+
export declare const resolveRuntimeExtensions: (
|
|
9
|
+
runtimeConfig: any,
|
|
10
|
+
extensions: RuntimeExtension[]
|
|
11
|
+
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediapackage",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediapackage Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.395.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,37 +21,37 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.0.
|
|
36
|
-
"@smithy/fetch-http-handler": "^2.0.
|
|
37
|
-
"@smithy/hash-node": "^2.0.
|
|
38
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
39
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
40
|
-
"@smithy/middleware-endpoint": "^2.0.
|
|
41
|
-
"@smithy/middleware-retry": "^2.0.
|
|
42
|
-
"@smithy/middleware-serde": "^2.0.
|
|
24
|
+
"@aws-sdk/client-sts": "3.395.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.395.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.391.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.391.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.391.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.391.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.391.0",
|
|
31
|
+
"@aws-sdk/types": "3.391.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.391.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.391.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.391.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.0.3",
|
|
36
|
+
"@smithy/fetch-http-handler": "^2.0.3",
|
|
37
|
+
"@smithy/hash-node": "^2.0.3",
|
|
38
|
+
"@smithy/invalid-dependency": "^2.0.3",
|
|
39
|
+
"@smithy/middleware-content-length": "^2.0.3",
|
|
40
|
+
"@smithy/middleware-endpoint": "^2.0.3",
|
|
41
|
+
"@smithy/middleware-retry": "^2.0.3",
|
|
42
|
+
"@smithy/middleware-serde": "^2.0.3",
|
|
43
43
|
"@smithy/middleware-stack": "^2.0.0",
|
|
44
|
-
"@smithy/node-config-provider": "^2.0.
|
|
45
|
-
"@smithy/node-http-handler": "^2.0.
|
|
46
|
-
"@smithy/protocol-http": "^2.0.
|
|
47
|
-
"@smithy/smithy-client": "^2.0.
|
|
48
|
-
"@smithy/types": "^2.
|
|
49
|
-
"@smithy/url-parser": "^2.0.
|
|
44
|
+
"@smithy/node-config-provider": "^2.0.3",
|
|
45
|
+
"@smithy/node-http-handler": "^2.0.3",
|
|
46
|
+
"@smithy/protocol-http": "^2.0.3",
|
|
47
|
+
"@smithy/smithy-client": "^2.0.3",
|
|
48
|
+
"@smithy/types": "^2.2.0",
|
|
49
|
+
"@smithy/url-parser": "^2.0.3",
|
|
50
50
|
"@smithy/util-base64": "^2.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^2.0.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^2.0.3",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^2.0.3",
|
|
55
55
|
"@smithy/util-retry": "^2.0.0",
|
|
56
56
|
"@smithy/util-utf8": "^2.0.0",
|
|
57
57
|
"tslib": "^2.5.0"
|