@aws-sdk/client-mediatailor 3.258.0 → 3.260.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/README.md +7 -7
- package/dist-cjs/MediaTailor.js +15 -0
- package/dist-cjs/commands/ConfigureLogsForChannelCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +19 -3
- package/dist-cjs/protocols/Aws_restJson1.js +84 -2
- package/dist-es/MediaTailor.js +15 -0
- package/dist-es/commands/ConfigureLogsForChannelCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +13 -0
- package/dist-es/protocols/Aws_restJson1.js +80 -0
- package/dist-types/MediaTailor.d.ts +7 -0
- package/dist-types/MediaTailorClient.d.ts +3 -2
- package/dist-types/commands/ConfigureLogsForChannelCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +52 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/MediaTailor.d.ts +17 -0
- package/dist-types/ts3.4/MediaTailorClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ConfigureLogsForChannelCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +25 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -27,16 +27,16 @@ using your favorite package manager:
|
|
|
27
27
|
|
|
28
28
|
The AWS SDK is modulized by clients and commands.
|
|
29
29
|
To send a request, you only need to import the `MediaTailorClient` and
|
|
30
|
-
the commands you need, for example `
|
|
30
|
+
the commands you need, for example `ConfigureLogsForChannelCommand`:
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
33
|
// ES5 example
|
|
34
|
-
const { MediaTailorClient,
|
|
34
|
+
const { MediaTailorClient, ConfigureLogsForChannelCommand } = require("@aws-sdk/client-mediatailor");
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
// ES6+ example
|
|
39
|
-
import { MediaTailorClient,
|
|
39
|
+
import { MediaTailorClient, ConfigureLogsForChannelCommand } from "@aws-sdk/client-mediatailor";
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### Usage
|
|
@@ -55,7 +55,7 @@ const client = new MediaTailorClient({ region: "REGION" });
|
|
|
55
55
|
const params = {
|
|
56
56
|
/** input parameters */
|
|
57
57
|
};
|
|
58
|
-
const command = new
|
|
58
|
+
const command = new ConfigureLogsForChannelCommand(params);
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
#### Async/await
|
|
@@ -134,7 +134,7 @@ const client = new AWS.MediaTailor({ region: "REGION" });
|
|
|
134
134
|
|
|
135
135
|
// async/await.
|
|
136
136
|
try {
|
|
137
|
-
const data = await client.
|
|
137
|
+
const data = await client.configureLogsForChannel(params);
|
|
138
138
|
// process data.
|
|
139
139
|
} catch (error) {
|
|
140
140
|
// error handling.
|
|
@@ -142,7 +142,7 @@ try {
|
|
|
142
142
|
|
|
143
143
|
// Promises.
|
|
144
144
|
client
|
|
145
|
-
.
|
|
145
|
+
.configureLogsForChannel(params)
|
|
146
146
|
.then((data) => {
|
|
147
147
|
// process data.
|
|
148
148
|
})
|
|
@@ -151,7 +151,7 @@ client
|
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
// callbacks.
|
|
154
|
-
client.
|
|
154
|
+
client.configureLogsForChannel(params, (err, data) => {
|
|
155
155
|
// process err and data.
|
|
156
156
|
});
|
|
157
157
|
```
|
package/dist-cjs/MediaTailor.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MediaTailor = void 0;
|
|
4
|
+
const ConfigureLogsForChannelCommand_1 = require("./commands/ConfigureLogsForChannelCommand");
|
|
4
5
|
const ConfigureLogsForPlaybackConfigurationCommand_1 = require("./commands/ConfigureLogsForPlaybackConfigurationCommand");
|
|
5
6
|
const CreateChannelCommand_1 = require("./commands/CreateChannelCommand");
|
|
6
7
|
const CreateLiveSourceCommand_1 = require("./commands/CreateLiveSourceCommand");
|
|
@@ -45,6 +46,20 @@ const UpdateSourceLocationCommand_1 = require("./commands/UpdateSourceLocationCo
|
|
|
45
46
|
const UpdateVodSourceCommand_1 = require("./commands/UpdateVodSourceCommand");
|
|
46
47
|
const MediaTailorClient_1 = require("./MediaTailorClient");
|
|
47
48
|
class MediaTailor extends MediaTailorClient_1.MediaTailorClient {
|
|
49
|
+
configureLogsForChannel(args, optionsOrCb, cb) {
|
|
50
|
+
const command = new ConfigureLogsForChannelCommand_1.ConfigureLogsForChannelCommand(args);
|
|
51
|
+
if (typeof optionsOrCb === "function") {
|
|
52
|
+
this.send(command, optionsOrCb);
|
|
53
|
+
}
|
|
54
|
+
else if (typeof cb === "function") {
|
|
55
|
+
if (typeof optionsOrCb !== "object")
|
|
56
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
57
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return this.send(command, optionsOrCb);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
48
63
|
configureLogsForPlaybackConfiguration(args, optionsOrCb, cb) {
|
|
49
64
|
const command = new ConfigureLogsForPlaybackConfigurationCommand_1.ConfigureLogsForPlaybackConfigurationCommand(args);
|
|
50
65
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigureLogsForChannelCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ConfigureLogsForChannelCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ConfigureLogsForChannelCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MediaTailorClient";
|
|
28
|
+
const commandName = "ConfigureLogsForChannelCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ConfigureLogsForChannelRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ConfigureLogsForChannelResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ConfigureLogsForChannelCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ConfigureLogsForChannelCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ConfigureLogsForChannelCommand = ConfigureLogsForChannelCommand;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./ConfigureLogsForChannelCommand"), exports);
|
|
4
5
|
tslib_1.__exportStar(require("./ConfigureLogsForPlaybackConfigurationCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateChannelCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./CreateLiveSourceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "fn", r = "argv", s = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateVodSourceResponseFilterSensitiveLog = exports.UpdateVodSourceRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateSourceLocationResponseFilterSensitiveLog = exports.UpdateSourceLocationRequestFilterSensitiveLog = exports.PutPlaybackConfigurationResponseFilterSensitiveLog = exports.PutPlaybackConfigurationRequestFilterSensitiveLog = exports.UpdateLiveSourceResponseFilterSensitiveLog = exports.UpdateLiveSourceRequestFilterSensitiveLog = exports.ListVodSourcesResponseFilterSensitiveLog = exports.ListVodSourcesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSourceLocationsResponseFilterSensitiveLog = exports.ListSourceLocationsRequestFilterSensitiveLog = exports.ListPrefetchSchedulesResponseFilterSensitiveLog = exports.ListPrefetchSchedulesRequestFilterSensitiveLog = exports.ListPlaybackConfigurationsResponseFilterSensitiveLog = exports.ListPlaybackConfigurationsRequestFilterSensitiveLog = exports.ListLiveSourcesResponseFilterSensitiveLog = exports.ListLiveSourcesRequestFilterSensitiveLog = exports.ListAlertsResponseFilterSensitiveLog = exports.ListAlertsRequestFilterSensitiveLog = exports.GetPrefetchScheduleResponseFilterSensitiveLog = exports.GetPrefetchScheduleRequestFilterSensitiveLog = exports.GetPlaybackConfigurationResponseFilterSensitiveLog = exports.GetPlaybackConfigurationRequestFilterSensitiveLog = exports.DescribeVodSourceResponseFilterSensitiveLog = exports.DescribeVodSourceRequestFilterSensitiveLog = exports.DescribeSourceLocationResponseFilterSensitiveLog = exports.DescribeSourceLocationRequestFilterSensitiveLog = exports.DescribeLiveSourceResponseFilterSensitiveLog = void 0;
|
|
3
|
+
exports.DeleteChannelPolicyRequestFilterSensitiveLog = exports.VodSourceFilterSensitiveLog = exports.SourceLocationFilterSensitiveLog = exports.HttpConfigurationFilterSensitiveLog = exports.DefaultSegmentDeliveryConfigurationFilterSensitiveLog = exports.AccessConfigurationFilterSensitiveLog = exports.SecretsManagerAccessTokenConfigurationFilterSensitiveLog = exports.SegmentDeliveryConfigurationFilterSensitiveLog = exports.ScheduleEntryFilterSensitiveLog = exports.ScheduleAdBreakFilterSensitiveLog = exports.PrefetchScheduleFilterSensitiveLog = exports.PrefetchRetrievalFilterSensitiveLog = exports.PrefetchConsumptionFilterSensitiveLog = exports.PlaybackConfigurationFilterSensitiveLog = exports.ManifestProcessingRulesFilterSensitiveLog = exports.AdMarkerPassthroughFilterSensitiveLog = exports.LogConfigurationFilterSensitiveLog = exports.LivePreRollConfigurationFilterSensitiveLog = exports.HlsConfigurationFilterSensitiveLog = exports.DashConfigurationFilterSensitiveLog = exports.CdnConfigurationFilterSensitiveLog = exports.BumperFilterSensitiveLog = exports.AvailSuppressionFilterSensitiveLog = exports.LiveSourceFilterSensitiveLog = exports.HttpPackageConfigurationFilterSensitiveLog = exports.ChannelFilterSensitiveLog = exports.ResponseOutputItemFilterSensitiveLog = exports.HlsPlaylistSettingsFilterSensitiveLog = exports.DashPlaylistSettingsFilterSensitiveLog = exports.LogConfigurationForChannelFilterSensitiveLog = exports.AvailMatchingCriteriaFilterSensitiveLog = exports.AlertFilterSensitiveLog = exports.AdBreakFilterSensitiveLog = exports.TimeSignalMessageFilterSensitiveLog = exports.SegmentationDescriptorFilterSensitiveLog = exports.SpliceInsertMessageFilterSensitiveLog = exports.SlateSourceFilterSensitiveLog = exports.RelativePosition = exports.ChannelState = exports.Tier = exports.PlaybackMode = exports.BadRequestException = exports.AccessType = exports.ScheduleEntryType = exports.OriginManifestType = exports.Mode = exports.Type = exports.LogType = exports.Operator = exports.MessageType = void 0;
|
|
4
|
+
exports.DeleteSourceLocationRequestFilterSensitiveLog = exports.DeletePrefetchScheduleResponseFilterSensitiveLog = exports.DeletePrefetchScheduleRequestFilterSensitiveLog = exports.DeletePlaybackConfigurationResponseFilterSensitiveLog = exports.DeletePlaybackConfigurationRequestFilterSensitiveLog = exports.DeleteLiveSourceResponseFilterSensitiveLog = exports.DeleteLiveSourceRequestFilterSensitiveLog = exports.DashConfigurationForPutFilterSensitiveLog = exports.CreateVodSourceResponseFilterSensitiveLog = exports.CreateVodSourceRequestFilterSensitiveLog = exports.CreateSourceLocationResponseFilterSensitiveLog = exports.CreateSourceLocationRequestFilterSensitiveLog = exports.CreatePrefetchScheduleResponseFilterSensitiveLog = exports.CreatePrefetchScheduleRequestFilterSensitiveLog = exports.CreateLiveSourceResponseFilterSensitiveLog = exports.CreateLiveSourceRequestFilterSensitiveLog = exports.ConfigureLogsForPlaybackConfigurationResponseFilterSensitiveLog = exports.ConfigureLogsForPlaybackConfigurationRequestFilterSensitiveLog = exports.UpdateChannelResponseFilterSensitiveLog = exports.UpdateChannelRequestFilterSensitiveLog = exports.StopChannelResponseFilterSensitiveLog = exports.StopChannelRequestFilterSensitiveLog = exports.StartChannelResponseFilterSensitiveLog = exports.StartChannelRequestFilterSensitiveLog = exports.DescribeProgramResponseFilterSensitiveLog = exports.DescribeProgramRequestFilterSensitiveLog = exports.DeleteProgramResponseFilterSensitiveLog = exports.DeleteProgramRequestFilterSensitiveLog = exports.CreateProgramResponseFilterSensitiveLog = exports.CreateProgramRequestFilterSensitiveLog = exports.ScheduleConfigurationFilterSensitiveLog = exports.TransitionFilterSensitiveLog = exports.ListChannelsResponseFilterSensitiveLog = exports.ListChannelsRequestFilterSensitiveLog = exports.GetChannelScheduleResponseFilterSensitiveLog = exports.GetChannelScheduleRequestFilterSensitiveLog = exports.DescribeChannelResponseFilterSensitiveLog = exports.DescribeChannelRequestFilterSensitiveLog = exports.DeleteChannelResponseFilterSensitiveLog = exports.DeleteChannelRequestFilterSensitiveLog = exports.CreateChannelResponseFilterSensitiveLog = exports.CreateChannelRequestFilterSensitiveLog = exports.RequestOutputItemFilterSensitiveLog = exports.ConfigureLogsForChannelResponseFilterSensitiveLog = exports.ConfigureLogsForChannelRequestFilterSensitiveLog = exports.PutChannelPolicyResponseFilterSensitiveLog = exports.PutChannelPolicyRequestFilterSensitiveLog = exports.GetChannelPolicyResponseFilterSensitiveLog = exports.GetChannelPolicyRequestFilterSensitiveLog = exports.DeleteChannelPolicyResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.UpdateVodSourceResponseFilterSensitiveLog = exports.UpdateVodSourceRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.UpdateSourceLocationResponseFilterSensitiveLog = exports.UpdateSourceLocationRequestFilterSensitiveLog = exports.PutPlaybackConfigurationResponseFilterSensitiveLog = exports.PutPlaybackConfigurationRequestFilterSensitiveLog = exports.UpdateLiveSourceResponseFilterSensitiveLog = exports.UpdateLiveSourceRequestFilterSensitiveLog = exports.ListVodSourcesResponseFilterSensitiveLog = exports.ListVodSourcesRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListSourceLocationsResponseFilterSensitiveLog = exports.ListSourceLocationsRequestFilterSensitiveLog = exports.ListPrefetchSchedulesResponseFilterSensitiveLog = exports.ListPrefetchSchedulesRequestFilterSensitiveLog = exports.ListPlaybackConfigurationsResponseFilterSensitiveLog = exports.ListPlaybackConfigurationsRequestFilterSensitiveLog = exports.ListLiveSourcesResponseFilterSensitiveLog = exports.ListLiveSourcesRequestFilterSensitiveLog = exports.ListAlertsResponseFilterSensitiveLog = exports.ListAlertsRequestFilterSensitiveLog = exports.GetPrefetchScheduleResponseFilterSensitiveLog = exports.GetPrefetchScheduleRequestFilterSensitiveLog = exports.GetPlaybackConfigurationResponseFilterSensitiveLog = exports.GetPlaybackConfigurationRequestFilterSensitiveLog = exports.DescribeVodSourceResponseFilterSensitiveLog = exports.DescribeVodSourceRequestFilterSensitiveLog = exports.DescribeSourceLocationResponseFilterSensitiveLog = exports.DescribeSourceLocationRequestFilterSensitiveLog = exports.DescribeLiveSourceResponseFilterSensitiveLog = exports.DescribeLiveSourceRequestFilterSensitiveLog = exports.DeleteVodSourceResponseFilterSensitiveLog = exports.DeleteVodSourceRequestFilterSensitiveLog = exports.DeleteSourceLocationResponseFilterSensitiveLog = void 0;
|
|
6
6
|
const MediaTailorServiceException_1 = require("./MediaTailorServiceException");
|
|
7
7
|
var MessageType;
|
|
8
8
|
(function (MessageType) {
|
|
@@ -13,6 +13,10 @@ var Operator;
|
|
|
13
13
|
(function (Operator) {
|
|
14
14
|
Operator["EQUALS"] = "EQUALS";
|
|
15
15
|
})(Operator = exports.Operator || (exports.Operator = {}));
|
|
16
|
+
var LogType;
|
|
17
|
+
(function (LogType) {
|
|
18
|
+
LogType["AS_RUN"] = "AS_RUN";
|
|
19
|
+
})(LogType = exports.LogType || (exports.LogType = {}));
|
|
16
20
|
var Type;
|
|
17
21
|
(function (Type) {
|
|
18
22
|
Type["DASH"] = "DASH";
|
|
@@ -100,6 +104,10 @@ const AvailMatchingCriteriaFilterSensitiveLog = (obj) => ({
|
|
|
100
104
|
...obj,
|
|
101
105
|
});
|
|
102
106
|
exports.AvailMatchingCriteriaFilterSensitiveLog = AvailMatchingCriteriaFilterSensitiveLog;
|
|
107
|
+
const LogConfigurationForChannelFilterSensitiveLog = (obj) => ({
|
|
108
|
+
...obj,
|
|
109
|
+
});
|
|
110
|
+
exports.LogConfigurationForChannelFilterSensitiveLog = LogConfigurationForChannelFilterSensitiveLog;
|
|
103
111
|
const DashPlaylistSettingsFilterSensitiveLog = (obj) => ({
|
|
104
112
|
...obj,
|
|
105
113
|
});
|
|
@@ -236,6 +244,14 @@ const PutChannelPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
|
236
244
|
...obj,
|
|
237
245
|
});
|
|
238
246
|
exports.PutChannelPolicyResponseFilterSensitiveLog = PutChannelPolicyResponseFilterSensitiveLog;
|
|
247
|
+
const ConfigureLogsForChannelRequestFilterSensitiveLog = (obj) => ({
|
|
248
|
+
...obj,
|
|
249
|
+
});
|
|
250
|
+
exports.ConfigureLogsForChannelRequestFilterSensitiveLog = ConfigureLogsForChannelRequestFilterSensitiveLog;
|
|
251
|
+
const ConfigureLogsForChannelResponseFilterSensitiveLog = (obj) => ({
|
|
252
|
+
...obj,
|
|
253
|
+
});
|
|
254
|
+
exports.ConfigureLogsForChannelResponseFilterSensitiveLog = ConfigureLogsForChannelResponseFilterSensitiveLog;
|
|
239
255
|
const RequestOutputItemFilterSensitiveLog = (obj) => ({
|
|
240
256
|
...obj,
|
|
241
257
|
});
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateLiveSourceCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListLiveSourcesCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPrefetchScheduleCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeLiveSourceCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteLiveSourceCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1CreateSourceLocationCommand = exports.deserializeAws_restJson1CreateProgramCommand = exports.deserializeAws_restJson1CreatePrefetchScheduleCommand = exports.deserializeAws_restJson1CreateLiveSourceCommand = exports.deserializeAws_restJson1CreateChannelCommand = exports.deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.deserializeAws_restJson1ConfigureLogsForChannelCommand = exports.serializeAws_restJson1UpdateVodSourceCommand = exports.serializeAws_restJson1UpdateSourceLocationCommand = exports.serializeAws_restJson1UpdateLiveSourceCommand = exports.serializeAws_restJson1UpdateChannelCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopChannelCommand = exports.serializeAws_restJson1StartChannelCommand = exports.serializeAws_restJson1PutPlaybackConfigurationCommand = exports.serializeAws_restJson1PutChannelPolicyCommand = exports.serializeAws_restJson1ListVodSourcesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceLocationsCommand = exports.serializeAws_restJson1ListPrefetchSchedulesCommand = exports.serializeAws_restJson1ListPlaybackConfigurationsCommand = exports.serializeAws_restJson1ListLiveSourcesCommand = exports.serializeAws_restJson1ListChannelsCommand = exports.serializeAws_restJson1ListAlertsCommand = exports.serializeAws_restJson1GetPrefetchScheduleCommand = exports.serializeAws_restJson1GetPlaybackConfigurationCommand = exports.serializeAws_restJson1GetChannelScheduleCommand = exports.serializeAws_restJson1GetChannelPolicyCommand = exports.serializeAws_restJson1DescribeVodSourceCommand = exports.serializeAws_restJson1DescribeSourceLocationCommand = exports.serializeAws_restJson1DescribeProgramCommand = exports.serializeAws_restJson1DescribeLiveSourceCommand = exports.serializeAws_restJson1DescribeChannelCommand = exports.serializeAws_restJson1DeleteVodSourceCommand = exports.serializeAws_restJson1DeleteSourceLocationCommand = exports.serializeAws_restJson1DeleteProgramCommand = exports.serializeAws_restJson1DeletePrefetchScheduleCommand = exports.serializeAws_restJson1DeletePlaybackConfigurationCommand = exports.serializeAws_restJson1DeleteLiveSourceCommand = exports.serializeAws_restJson1DeleteChannelPolicyCommand = exports.serializeAws_restJson1DeleteChannelCommand = exports.serializeAws_restJson1CreateVodSourceCommand = exports.serializeAws_restJson1CreateSourceLocationCommand = exports.serializeAws_restJson1CreateProgramCommand = exports.serializeAws_restJson1CreatePrefetchScheduleCommand = exports.serializeAws_restJson1CreateLiveSourceCommand = exports.serializeAws_restJson1CreateChannelCommand = exports.serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = exports.serializeAws_restJson1ConfigureLogsForChannelCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1UpdateVodSourceCommand = exports.deserializeAws_restJson1UpdateSourceLocationCommand = exports.deserializeAws_restJson1UpdateLiveSourceCommand = exports.deserializeAws_restJson1UpdateChannelCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopChannelCommand = exports.deserializeAws_restJson1StartChannelCommand = exports.deserializeAws_restJson1PutPlaybackConfigurationCommand = exports.deserializeAws_restJson1PutChannelPolicyCommand = exports.deserializeAws_restJson1ListVodSourcesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceLocationsCommand = exports.deserializeAws_restJson1ListPrefetchSchedulesCommand = exports.deserializeAws_restJson1ListPlaybackConfigurationsCommand = exports.deserializeAws_restJson1ListLiveSourcesCommand = exports.deserializeAws_restJson1ListChannelsCommand = exports.deserializeAws_restJson1ListAlertsCommand = exports.deserializeAws_restJson1GetPrefetchScheduleCommand = exports.deserializeAws_restJson1GetPlaybackConfigurationCommand = exports.deserializeAws_restJson1GetChannelScheduleCommand = exports.deserializeAws_restJson1GetChannelPolicyCommand = exports.deserializeAws_restJson1DescribeVodSourceCommand = exports.deserializeAws_restJson1DescribeSourceLocationCommand = exports.deserializeAws_restJson1DescribeProgramCommand = exports.deserializeAws_restJson1DescribeLiveSourceCommand = exports.deserializeAws_restJson1DescribeChannelCommand = exports.deserializeAws_restJson1DeleteVodSourceCommand = exports.deserializeAws_restJson1DeleteSourceLocationCommand = exports.deserializeAws_restJson1DeleteProgramCommand = exports.deserializeAws_restJson1DeletePrefetchScheduleCommand = exports.deserializeAws_restJson1DeletePlaybackConfigurationCommand = exports.deserializeAws_restJson1DeleteLiveSourceCommand = exports.deserializeAws_restJson1DeleteChannelPolicyCommand = exports.deserializeAws_restJson1DeleteChannelCommand = exports.deserializeAws_restJson1CreateVodSourceCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const MediaTailorServiceException_1 = require("../models/MediaTailorServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const serializeAws_restJson1ConfigureLogsForChannelCommand = async (input, context) => {
|
|
10
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
|
+
const headers = {
|
|
12
|
+
"content-type": "application/json",
|
|
13
|
+
};
|
|
14
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/channel";
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify({
|
|
17
|
+
...(input.ChannelName != null && { ChannelName: input.ChannelName }),
|
|
18
|
+
...(input.LogTypes != null && { LogTypes: serializeAws_restJson1LogTypes(input.LogTypes, context) }),
|
|
19
|
+
});
|
|
20
|
+
return new protocol_http_1.HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "PUT",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.serializeAws_restJson1ConfigureLogsForChannelCommand = serializeAws_restJson1ConfigureLogsForChannelCommand;
|
|
9
31
|
const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (input, context) => {
|
|
10
32
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
33
|
const headers = {
|
|
@@ -942,6 +964,37 @@ const serializeAws_restJson1UpdateVodSourceCommand = async (input, context) => {
|
|
|
942
964
|
});
|
|
943
965
|
};
|
|
944
966
|
exports.serializeAws_restJson1UpdateVodSourceCommand = serializeAws_restJson1UpdateVodSourceCommand;
|
|
967
|
+
const deserializeAws_restJson1ConfigureLogsForChannelCommand = async (output, context) => {
|
|
968
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
969
|
+
return deserializeAws_restJson1ConfigureLogsForChannelCommandError(output, context);
|
|
970
|
+
}
|
|
971
|
+
const contents = map({
|
|
972
|
+
$metadata: deserializeMetadata(output),
|
|
973
|
+
});
|
|
974
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
975
|
+
if (data.ChannelName != null) {
|
|
976
|
+
contents.ChannelName = (0, smithy_client_1.expectString)(data.ChannelName);
|
|
977
|
+
}
|
|
978
|
+
if (data.LogTypes != null) {
|
|
979
|
+
contents.LogTypes = deserializeAws_restJson1LogTypes(data.LogTypes, context);
|
|
980
|
+
}
|
|
981
|
+
return contents;
|
|
982
|
+
};
|
|
983
|
+
exports.deserializeAws_restJson1ConfigureLogsForChannelCommand = deserializeAws_restJson1ConfigureLogsForChannelCommand;
|
|
984
|
+
const deserializeAws_restJson1ConfigureLogsForChannelCommandError = async (output, context) => {
|
|
985
|
+
const parsedOutput = {
|
|
986
|
+
...output,
|
|
987
|
+
body: await parseErrorBody(output.body, context),
|
|
988
|
+
};
|
|
989
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
990
|
+
const parsedBody = parsedOutput.body;
|
|
991
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
992
|
+
output,
|
|
993
|
+
parsedBody,
|
|
994
|
+
exceptionCtor: MediaTailorServiceException_1.MediaTailorServiceException,
|
|
995
|
+
errorCode,
|
|
996
|
+
});
|
|
997
|
+
};
|
|
945
998
|
const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (output, context) => {
|
|
946
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
1000
|
return deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError(output, context);
|
|
@@ -1493,6 +1546,9 @@ const deserializeAws_restJson1DescribeChannelCommand = async (output, context) =
|
|
|
1493
1546
|
if (data.LastModifiedTime != null) {
|
|
1494
1547
|
contents.LastModifiedTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastModifiedTime)));
|
|
1495
1548
|
}
|
|
1549
|
+
if (data.LogConfiguration != null) {
|
|
1550
|
+
contents.LogConfiguration = deserializeAws_restJson1LogConfigurationForChannel(data.LogConfiguration, context);
|
|
1551
|
+
}
|
|
1496
1552
|
if (data.Outputs != null) {
|
|
1497
1553
|
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
1498
1554
|
}
|
|
@@ -2724,6 +2780,13 @@ const serializeAws_restJson1LivePreRollConfiguration = (input, context) => {
|
|
|
2724
2780
|
...(input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
2725
2781
|
};
|
|
2726
2782
|
};
|
|
2783
|
+
const serializeAws_restJson1LogTypes = (input, context) => {
|
|
2784
|
+
return input
|
|
2785
|
+
.filter((e) => e != null)
|
|
2786
|
+
.map((entry) => {
|
|
2787
|
+
return entry;
|
|
2788
|
+
});
|
|
2789
|
+
};
|
|
2727
2790
|
const serializeAws_restJson1ManifestProcessingRules = (input, context) => {
|
|
2728
2791
|
return {
|
|
2729
2792
|
...(input.AdMarkerPassthrough != null && {
|
|
@@ -3062,6 +3125,9 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
3062
3125
|
LastModifiedTime: output.LastModifiedTime != null
|
|
3063
3126
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedTime)))
|
|
3064
3127
|
: undefined,
|
|
3128
|
+
LogConfiguration: output.LogConfiguration != null
|
|
3129
|
+
? deserializeAws_restJson1LogConfigurationForChannel(output.LogConfiguration, context)
|
|
3130
|
+
: undefined,
|
|
3065
3131
|
Outputs: output.Outputs != null ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context) : undefined,
|
|
3066
3132
|
PlaybackMode: (0, smithy_client_1.expectString)(output.PlaybackMode),
|
|
3067
3133
|
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
@@ -3158,6 +3224,22 @@ const deserializeAws_restJson1LogConfiguration = (output, context) => {
|
|
|
3158
3224
|
PercentEnabled: (0, smithy_client_1.expectInt32)(output.PercentEnabled),
|
|
3159
3225
|
};
|
|
3160
3226
|
};
|
|
3227
|
+
const deserializeAws_restJson1LogConfigurationForChannel = (output, context) => {
|
|
3228
|
+
return {
|
|
3229
|
+
LogTypes: output.LogTypes != null ? deserializeAws_restJson1LogTypes(output.LogTypes, context) : undefined,
|
|
3230
|
+
};
|
|
3231
|
+
};
|
|
3232
|
+
const deserializeAws_restJson1LogTypes = (output, context) => {
|
|
3233
|
+
const retVal = (output || [])
|
|
3234
|
+
.filter((e) => e != null)
|
|
3235
|
+
.map((entry) => {
|
|
3236
|
+
if (entry === null) {
|
|
3237
|
+
return null;
|
|
3238
|
+
}
|
|
3239
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3240
|
+
});
|
|
3241
|
+
return retVal;
|
|
3242
|
+
};
|
|
3161
3243
|
const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
3162
3244
|
return {
|
|
3163
3245
|
AdMarkerPassthrough: output.AdMarkerPassthrough != null
|
package/dist-es/MediaTailor.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ConfigureLogsForChannelCommand, } from "./commands/ConfigureLogsForChannelCommand";
|
|
1
2
|
import { ConfigureLogsForPlaybackConfigurationCommand, } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
|
|
2
3
|
import { CreateChannelCommand, } from "./commands/CreateChannelCommand";
|
|
3
4
|
import { CreateLiveSourceCommand, } from "./commands/CreateLiveSourceCommand";
|
|
@@ -42,6 +43,20 @@ import { UpdateSourceLocationCommand, } from "./commands/UpdateSourceLocationCom
|
|
|
42
43
|
import { UpdateVodSourceCommand, } from "./commands/UpdateVodSourceCommand";
|
|
43
44
|
import { MediaTailorClient } from "./MediaTailorClient";
|
|
44
45
|
export class MediaTailor extends MediaTailorClient {
|
|
46
|
+
configureLogsForChannel(args, optionsOrCb, cb) {
|
|
47
|
+
const command = new ConfigureLogsForChannelCommand(args);
|
|
48
|
+
if (typeof optionsOrCb === "function") {
|
|
49
|
+
this.send(command, optionsOrCb);
|
|
50
|
+
}
|
|
51
|
+
else if (typeof cb === "function") {
|
|
52
|
+
if (typeof optionsOrCb !== "object")
|
|
53
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return this.send(command, optionsOrCb);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
45
60
|
configureLogsForPlaybackConfiguration(args, optionsOrCb, cb) {
|
|
46
61
|
const command = new ConfigureLogsForPlaybackConfigurationCommand(args);
|
|
47
62
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ConfigureLogsForChannelRequestFilterSensitiveLog, ConfigureLogsForChannelResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1ConfigureLogsForChannelCommand, serializeAws_restJson1ConfigureLogsForChannelCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
export class ConfigureLogsForChannelCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ConfigureLogsForChannelCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "MediaTailorClient";
|
|
25
|
+
const commandName = "ConfigureLogsForChannelCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ConfigureLogsForChannelRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ConfigureLogsForChannelResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_restJson1ConfigureLogsForChannelCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_restJson1ConfigureLogsForChannelCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "fn", r = "argv", s = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.mediatailor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://api.mediatailor.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -8,6 +8,10 @@ export var Operator;
|
|
|
8
8
|
(function (Operator) {
|
|
9
9
|
Operator["EQUALS"] = "EQUALS";
|
|
10
10
|
})(Operator || (Operator = {}));
|
|
11
|
+
export var LogType;
|
|
12
|
+
(function (LogType) {
|
|
13
|
+
LogType["AS_RUN"] = "AS_RUN";
|
|
14
|
+
})(LogType || (LogType = {}));
|
|
11
15
|
export var Type;
|
|
12
16
|
(function (Type) {
|
|
13
17
|
Type["DASH"] = "DASH";
|
|
@@ -87,6 +91,9 @@ export const AlertFilterSensitiveLog = (obj) => ({
|
|
|
87
91
|
export const AvailMatchingCriteriaFilterSensitiveLog = (obj) => ({
|
|
88
92
|
...obj,
|
|
89
93
|
});
|
|
94
|
+
export const LogConfigurationForChannelFilterSensitiveLog = (obj) => ({
|
|
95
|
+
...obj,
|
|
96
|
+
});
|
|
90
97
|
export const DashPlaylistSettingsFilterSensitiveLog = (obj) => ({
|
|
91
98
|
...obj,
|
|
92
99
|
});
|
|
@@ -189,6 +196,12 @@ export const PutChannelPolicyRequestFilterSensitiveLog = (obj) => ({
|
|
|
189
196
|
export const PutChannelPolicyResponseFilterSensitiveLog = (obj) => ({
|
|
190
197
|
...obj,
|
|
191
198
|
});
|
|
199
|
+
export const ConfigureLogsForChannelRequestFilterSensitiveLog = (obj) => ({
|
|
200
|
+
...obj,
|
|
201
|
+
});
|
|
202
|
+
export const ConfigureLogsForChannelResponseFilterSensitiveLog = (obj) => ({
|
|
203
|
+
...obj,
|
|
204
|
+
});
|
|
192
205
|
export const RequestOutputItemFilterSensitiveLog = (obj) => ({
|
|
193
206
|
...obj,
|
|
194
207
|
});
|
|
@@ -2,6 +2,27 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { MediaTailorServiceException as __BaseException } from "../models/MediaTailorServiceException";
|
|
4
4
|
import { BadRequestException, } from "../models/models_0";
|
|
5
|
+
export const serializeAws_restJson1ConfigureLogsForChannelCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configureLogs/channel";
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify({
|
|
13
|
+
...(input.ChannelName != null && { ChannelName: input.ChannelName }),
|
|
14
|
+
...(input.LogTypes != null && { LogTypes: serializeAws_restJson1LogTypes(input.LogTypes, context) }),
|
|
15
|
+
});
|
|
16
|
+
return new __HttpRequest({
|
|
17
|
+
protocol,
|
|
18
|
+
hostname,
|
|
19
|
+
port,
|
|
20
|
+
method: "PUT",
|
|
21
|
+
headers,
|
|
22
|
+
path: resolvedPath,
|
|
23
|
+
body,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
5
26
|
export const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (input, context) => {
|
|
6
27
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
28
|
const headers = {
|
|
@@ -896,6 +917,36 @@ export const serializeAws_restJson1UpdateVodSourceCommand = async (input, contex
|
|
|
896
917
|
body,
|
|
897
918
|
});
|
|
898
919
|
};
|
|
920
|
+
export const deserializeAws_restJson1ConfigureLogsForChannelCommand = async (output, context) => {
|
|
921
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
922
|
+
return deserializeAws_restJson1ConfigureLogsForChannelCommandError(output, context);
|
|
923
|
+
}
|
|
924
|
+
const contents = map({
|
|
925
|
+
$metadata: deserializeMetadata(output),
|
|
926
|
+
});
|
|
927
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
928
|
+
if (data.ChannelName != null) {
|
|
929
|
+
contents.ChannelName = __expectString(data.ChannelName);
|
|
930
|
+
}
|
|
931
|
+
if (data.LogTypes != null) {
|
|
932
|
+
contents.LogTypes = deserializeAws_restJson1LogTypes(data.LogTypes, context);
|
|
933
|
+
}
|
|
934
|
+
return contents;
|
|
935
|
+
};
|
|
936
|
+
const deserializeAws_restJson1ConfigureLogsForChannelCommandError = async (output, context) => {
|
|
937
|
+
const parsedOutput = {
|
|
938
|
+
...output,
|
|
939
|
+
body: await parseErrorBody(output.body, context),
|
|
940
|
+
};
|
|
941
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
942
|
+
const parsedBody = parsedOutput.body;
|
|
943
|
+
throwDefaultError({
|
|
944
|
+
output,
|
|
945
|
+
parsedBody,
|
|
946
|
+
exceptionCtor: __BaseException,
|
|
947
|
+
errorCode,
|
|
948
|
+
});
|
|
949
|
+
};
|
|
899
950
|
export const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand = async (output, context) => {
|
|
900
951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
901
952
|
return deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommandError(output, context);
|
|
@@ -1432,6 +1483,9 @@ export const deserializeAws_restJson1DescribeChannelCommand = async (output, con
|
|
|
1432
1483
|
if (data.LastModifiedTime != null) {
|
|
1433
1484
|
contents.LastModifiedTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTime)));
|
|
1434
1485
|
}
|
|
1486
|
+
if (data.LogConfiguration != null) {
|
|
1487
|
+
contents.LogConfiguration = deserializeAws_restJson1LogConfigurationForChannel(data.LogConfiguration, context);
|
|
1488
|
+
}
|
|
1435
1489
|
if (data.Outputs != null) {
|
|
1436
1490
|
contents.Outputs = deserializeAws_restJson1ResponseOutputs(data.Outputs, context);
|
|
1437
1491
|
}
|
|
@@ -2636,6 +2690,13 @@ const serializeAws_restJson1LivePreRollConfiguration = (input, context) => {
|
|
|
2636
2690
|
...(input.MaxDurationSeconds != null && { MaxDurationSeconds: input.MaxDurationSeconds }),
|
|
2637
2691
|
};
|
|
2638
2692
|
};
|
|
2693
|
+
const serializeAws_restJson1LogTypes = (input, context) => {
|
|
2694
|
+
return input
|
|
2695
|
+
.filter((e) => e != null)
|
|
2696
|
+
.map((entry) => {
|
|
2697
|
+
return entry;
|
|
2698
|
+
});
|
|
2699
|
+
};
|
|
2639
2700
|
const serializeAws_restJson1ManifestProcessingRules = (input, context) => {
|
|
2640
2701
|
return {
|
|
2641
2702
|
...(input.AdMarkerPassthrough != null && {
|
|
@@ -2974,6 +3035,9 @@ const deserializeAws_restJson1Channel = (output, context) => {
|
|
|
2974
3035
|
LastModifiedTime: output.LastModifiedTime != null
|
|
2975
3036
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
2976
3037
|
: undefined,
|
|
3038
|
+
LogConfiguration: output.LogConfiguration != null
|
|
3039
|
+
? deserializeAws_restJson1LogConfigurationForChannel(output.LogConfiguration, context)
|
|
3040
|
+
: undefined,
|
|
2977
3041
|
Outputs: output.Outputs != null ? deserializeAws_restJson1ResponseOutputs(output.Outputs, context) : undefined,
|
|
2978
3042
|
PlaybackMode: __expectString(output.PlaybackMode),
|
|
2979
3043
|
Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
|
|
@@ -3070,6 +3134,22 @@ const deserializeAws_restJson1LogConfiguration = (output, context) => {
|
|
|
3070
3134
|
PercentEnabled: __expectInt32(output.PercentEnabled),
|
|
3071
3135
|
};
|
|
3072
3136
|
};
|
|
3137
|
+
const deserializeAws_restJson1LogConfigurationForChannel = (output, context) => {
|
|
3138
|
+
return {
|
|
3139
|
+
LogTypes: output.LogTypes != null ? deserializeAws_restJson1LogTypes(output.LogTypes, context) : undefined,
|
|
3140
|
+
};
|
|
3141
|
+
};
|
|
3142
|
+
const deserializeAws_restJson1LogTypes = (output, context) => {
|
|
3143
|
+
const retVal = (output || [])
|
|
3144
|
+
.filter((e) => e != null)
|
|
3145
|
+
.map((entry) => {
|
|
3146
|
+
if (entry === null) {
|
|
3147
|
+
return null;
|
|
3148
|
+
}
|
|
3149
|
+
return __expectString(entry);
|
|
3150
|
+
});
|
|
3151
|
+
return retVal;
|
|
3152
|
+
};
|
|
3073
3153
|
const deserializeAws_restJson1ManifestProcessingRules = (output, context) => {
|
|
3074
3154
|
return {
|
|
3075
3155
|
AdMarkerPassthrough: output.AdMarkerPassthrough != null
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { ConfigureLogsForChannelCommandInput, ConfigureLogsForChannelCommandOutput } from "./commands/ConfigureLogsForChannelCommand";
|
|
2
3
|
import { ConfigureLogsForPlaybackConfigurationCommandInput, ConfigureLogsForPlaybackConfigurationCommandOutput } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
|
|
3
4
|
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
|
|
4
5
|
import { CreateLiveSourceCommandInput, CreateLiveSourceCommandOutput } from "./commands/CreateLiveSourceCommand";
|
|
@@ -47,6 +48,12 @@ import { MediaTailorClient } from "./MediaTailorClient";
|
|
|
47
48
|
* <p>Through the SDKs and the CLI you manage AWS Elemental MediaTailor configurations and channels the same as you do through the console. For example, you specify ad insertion behavior and mapping information for the origin server and the ad decision server (ADS).</p>
|
|
48
49
|
*/
|
|
49
50
|
export declare class MediaTailor extends MediaTailorClient {
|
|
51
|
+
/**
|
|
52
|
+
* <p>Configures Amazon CloudWatch log settings for a channel.</p>
|
|
53
|
+
*/
|
|
54
|
+
configureLogsForChannel(args: ConfigureLogsForChannelCommandInput, options?: __HttpHandlerOptions): Promise<ConfigureLogsForChannelCommandOutput>;
|
|
55
|
+
configureLogsForChannel(args: ConfigureLogsForChannelCommandInput, cb: (err: any, data?: ConfigureLogsForChannelCommandOutput) => void): void;
|
|
56
|
+
configureLogsForChannel(args: ConfigureLogsForChannelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConfigureLogsForChannelCommandOutput) => void): void;
|
|
50
57
|
/**
|
|
51
58
|
* <p>Amazon CloudWatch log settings for a playback configuration.</p>
|
|
52
59
|
*/
|
|
@@ -7,6 +7,7 @@ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middlewa
|
|
|
7
7
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
8
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
9
|
import { BodyLengthCalculator as __BodyLengthCalculator, ChecksumConstructor as __ChecksumConstructor, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
10
|
+
import { ConfigureLogsForChannelCommandInput, ConfigureLogsForChannelCommandOutput } from "./commands/ConfigureLogsForChannelCommand";
|
|
10
11
|
import { ConfigureLogsForPlaybackConfigurationCommandInput, ConfigureLogsForPlaybackConfigurationCommandOutput } from "./commands/ConfigureLogsForPlaybackConfigurationCommand";
|
|
11
12
|
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "./commands/CreateChannelCommand";
|
|
12
13
|
import { CreateLiveSourceCommandInput, CreateLiveSourceCommandOutput } from "./commands/CreateLiveSourceCommand";
|
|
@@ -50,8 +51,8 @@ import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "./c
|
|
|
50
51
|
import { UpdateSourceLocationCommandInput, UpdateSourceLocationCommandOutput } from "./commands/UpdateSourceLocationCommand";
|
|
51
52
|
import { UpdateVodSourceCommandInput, UpdateVodSourceCommandOutput } from "./commands/UpdateVodSourceCommand";
|
|
52
53
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
53
|
-
export declare type ServiceInputTypes = ConfigureLogsForPlaybackConfigurationCommandInput | CreateChannelCommandInput | CreateLiveSourceCommandInput | CreatePrefetchScheduleCommandInput | CreateProgramCommandInput | CreateSourceLocationCommandInput | CreateVodSourceCommandInput | DeleteChannelCommandInput | DeleteChannelPolicyCommandInput | DeleteLiveSourceCommandInput | DeletePlaybackConfigurationCommandInput | DeletePrefetchScheduleCommandInput | DeleteProgramCommandInput | DeleteSourceLocationCommandInput | DeleteVodSourceCommandInput | DescribeChannelCommandInput | DescribeLiveSourceCommandInput | DescribeProgramCommandInput | DescribeSourceLocationCommandInput | DescribeVodSourceCommandInput | GetChannelPolicyCommandInput | GetChannelScheduleCommandInput | GetPlaybackConfigurationCommandInput | GetPrefetchScheduleCommandInput | ListAlertsCommandInput | ListChannelsCommandInput | ListLiveSourcesCommandInput | ListPlaybackConfigurationsCommandInput | ListPrefetchSchedulesCommandInput | ListSourceLocationsCommandInput | ListTagsForResourceCommandInput | ListVodSourcesCommandInput | PutChannelPolicyCommandInput | PutPlaybackConfigurationCommandInput | StartChannelCommandInput | StopChannelCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput | UpdateLiveSourceCommandInput | UpdateSourceLocationCommandInput | UpdateVodSourceCommandInput;
|
|
54
|
-
export declare type ServiceOutputTypes = ConfigureLogsForPlaybackConfigurationCommandOutput | CreateChannelCommandOutput | CreateLiveSourceCommandOutput | CreatePrefetchScheduleCommandOutput | CreateProgramCommandOutput | CreateSourceLocationCommandOutput | CreateVodSourceCommandOutput | DeleteChannelCommandOutput | DeleteChannelPolicyCommandOutput | DeleteLiveSourceCommandOutput | DeletePlaybackConfigurationCommandOutput | DeletePrefetchScheduleCommandOutput | DeleteProgramCommandOutput | DeleteSourceLocationCommandOutput | DeleteVodSourceCommandOutput | DescribeChannelCommandOutput | DescribeLiveSourceCommandOutput | DescribeProgramCommandOutput | DescribeSourceLocationCommandOutput | DescribeVodSourceCommandOutput | GetChannelPolicyCommandOutput | GetChannelScheduleCommandOutput | GetPlaybackConfigurationCommandOutput | GetPrefetchScheduleCommandOutput | ListAlertsCommandOutput | ListChannelsCommandOutput | ListLiveSourcesCommandOutput | ListPlaybackConfigurationsCommandOutput | ListPrefetchSchedulesCommandOutput | ListSourceLocationsCommandOutput | ListTagsForResourceCommandOutput | ListVodSourcesCommandOutput | PutChannelPolicyCommandOutput | PutPlaybackConfigurationCommandOutput | StartChannelCommandOutput | StopChannelCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput | UpdateLiveSourceCommandOutput | UpdateSourceLocationCommandOutput | UpdateVodSourceCommandOutput;
|
|
54
|
+
export declare type ServiceInputTypes = ConfigureLogsForChannelCommandInput | ConfigureLogsForPlaybackConfigurationCommandInput | CreateChannelCommandInput | CreateLiveSourceCommandInput | CreatePrefetchScheduleCommandInput | CreateProgramCommandInput | CreateSourceLocationCommandInput | CreateVodSourceCommandInput | DeleteChannelCommandInput | DeleteChannelPolicyCommandInput | DeleteLiveSourceCommandInput | DeletePlaybackConfigurationCommandInput | DeletePrefetchScheduleCommandInput | DeleteProgramCommandInput | DeleteSourceLocationCommandInput | DeleteVodSourceCommandInput | DescribeChannelCommandInput | DescribeLiveSourceCommandInput | DescribeProgramCommandInput | DescribeSourceLocationCommandInput | DescribeVodSourceCommandInput | GetChannelPolicyCommandInput | GetChannelScheduleCommandInput | GetPlaybackConfigurationCommandInput | GetPrefetchScheduleCommandInput | ListAlertsCommandInput | ListChannelsCommandInput | ListLiveSourcesCommandInput | ListPlaybackConfigurationsCommandInput | ListPrefetchSchedulesCommandInput | ListSourceLocationsCommandInput | ListTagsForResourceCommandInput | ListVodSourcesCommandInput | PutChannelPolicyCommandInput | PutPlaybackConfigurationCommandInput | StartChannelCommandInput | StopChannelCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateChannelCommandInput | UpdateLiveSourceCommandInput | UpdateSourceLocationCommandInput | UpdateVodSourceCommandInput;
|
|
55
|
+
export declare type ServiceOutputTypes = ConfigureLogsForChannelCommandOutput | ConfigureLogsForPlaybackConfigurationCommandOutput | CreateChannelCommandOutput | CreateLiveSourceCommandOutput | CreatePrefetchScheduleCommandOutput | CreateProgramCommandOutput | CreateSourceLocationCommandOutput | CreateVodSourceCommandOutput | DeleteChannelCommandOutput | DeleteChannelPolicyCommandOutput | DeleteLiveSourceCommandOutput | DeletePlaybackConfigurationCommandOutput | DeletePrefetchScheduleCommandOutput | DeleteProgramCommandOutput | DeleteSourceLocationCommandOutput | DeleteVodSourceCommandOutput | DescribeChannelCommandOutput | DescribeLiveSourceCommandOutput | DescribeProgramCommandOutput | DescribeSourceLocationCommandOutput | DescribeVodSourceCommandOutput | GetChannelPolicyCommandOutput | GetChannelScheduleCommandOutput | GetPlaybackConfigurationCommandOutput | GetPrefetchScheduleCommandOutput | ListAlertsCommandOutput | ListChannelsCommandOutput | ListLiveSourcesCommandOutput | ListPlaybackConfigurationsCommandOutput | ListPrefetchSchedulesCommandOutput | ListSourceLocationsCommandOutput | ListTagsForResourceCommandOutput | ListVodSourcesCommandOutput | PutChannelPolicyCommandOutput | PutPlaybackConfigurationCommandOutput | StartChannelCommandOutput | StopChannelCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateChannelCommandOutput | UpdateLiveSourceCommandOutput | UpdateSourceLocationCommandOutput | UpdateVodSourceCommandOutput;
|
|
55
56
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
56
57
|
/**
|
|
57
58
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { MediaTailorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../MediaTailorClient";
|
|
5
|
+
import { ConfigureLogsForChannelRequest, ConfigureLogsForChannelResponse } from "../models/models_0";
|
|
6
|
+
export interface ConfigureLogsForChannelCommandInput extends ConfigureLogsForChannelRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface ConfigureLogsForChannelCommandOutput extends ConfigureLogsForChannelResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Configures Amazon CloudWatch log settings for a channel.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { MediaTailorClient, ConfigureLogsForChannelCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
|
|
16
|
+
* // const { MediaTailorClient, ConfigureLogsForChannelCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
|
|
17
|
+
* const client = new MediaTailorClient(config);
|
|
18
|
+
* const command = new ConfigureLogsForChannelCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ConfigureLogsForChannelCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ConfigureLogsForChannelCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link MediaTailorClientResolvedConfig | config} for MediaTailorClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ConfigureLogsForChannelCommand extends $Command<ConfigureLogsForChannelCommandInput, ConfigureLogsForChannelCommandOutput, MediaTailorClientResolvedConfig> {
|
|
28
|
+
readonly input: ConfigureLogsForChannelCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ConfigureLogsForChannelCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: MediaTailorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ConfigureLogsForChannelCommandInput, ConfigureLogsForChannelCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -160,6 +160,18 @@ export interface AvailMatchingCriteria {
|
|
|
160
160
|
*/
|
|
161
161
|
Operator: Operator | string | undefined;
|
|
162
162
|
}
|
|
163
|
+
export declare enum LogType {
|
|
164
|
+
AS_RUN = "AS_RUN"
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* <p>The log configuration for the channel.</p>
|
|
168
|
+
*/
|
|
169
|
+
export interface LogConfigurationForChannel {
|
|
170
|
+
/**
|
|
171
|
+
* <p>The log types.</p>
|
|
172
|
+
*/
|
|
173
|
+
LogTypes?: (LogType | string)[];
|
|
174
|
+
}
|
|
163
175
|
/**
|
|
164
176
|
* <p>Dash manifest configuration parameters.</p>
|
|
165
177
|
*/
|
|
@@ -265,6 +277,10 @@ export interface Channel {
|
|
|
265
277
|
* <p>The tier for this channel. STANDARD tier channels can contain live programs.</p>
|
|
266
278
|
*/
|
|
267
279
|
Tier: string | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* <p>The log configuration.</p>
|
|
282
|
+
*/
|
|
283
|
+
LogConfiguration: LogConfigurationForChannel | undefined;
|
|
268
284
|
}
|
|
269
285
|
export declare enum Type {
|
|
270
286
|
DASH = "DASH",
|
|
@@ -841,6 +857,26 @@ export interface PutChannelPolicyRequest {
|
|
|
841
857
|
}
|
|
842
858
|
export interface PutChannelPolicyResponse {
|
|
843
859
|
}
|
|
860
|
+
export interface ConfigureLogsForChannelRequest {
|
|
861
|
+
/**
|
|
862
|
+
* <p>The name of the channel.</p>
|
|
863
|
+
*/
|
|
864
|
+
ChannelName: string | undefined;
|
|
865
|
+
/**
|
|
866
|
+
* <p>The types of logs to collect.</p>
|
|
867
|
+
*/
|
|
868
|
+
LogTypes: (LogType | string)[] | undefined;
|
|
869
|
+
}
|
|
870
|
+
export interface ConfigureLogsForChannelResponse {
|
|
871
|
+
/**
|
|
872
|
+
* <p>The name of the channel.</p>
|
|
873
|
+
*/
|
|
874
|
+
ChannelName?: string;
|
|
875
|
+
/**
|
|
876
|
+
* <p>The types of logs collected.</p>
|
|
877
|
+
*/
|
|
878
|
+
LogTypes?: (LogType | string)[];
|
|
879
|
+
}
|
|
844
880
|
/**
|
|
845
881
|
* <p>The output configuration for this channel.</p>
|
|
846
882
|
*/
|
|
@@ -1003,6 +1039,10 @@ export interface DescribeChannelResponse {
|
|
|
1003
1039
|
* <p>The channel's tier.</p>
|
|
1004
1040
|
*/
|
|
1005
1041
|
Tier?: string;
|
|
1042
|
+
/**
|
|
1043
|
+
* <p>The log configuration for the channel.</p>
|
|
1044
|
+
*/
|
|
1045
|
+
LogConfiguration: LogConfigurationForChannel | undefined;
|
|
1006
1046
|
}
|
|
1007
1047
|
export interface GetChannelScheduleRequest {
|
|
1008
1048
|
/**
|
|
@@ -2338,6 +2378,10 @@ export declare const AlertFilterSensitiveLog: (obj: Alert) => any;
|
|
|
2338
2378
|
* @internal
|
|
2339
2379
|
*/
|
|
2340
2380
|
export declare const AvailMatchingCriteriaFilterSensitiveLog: (obj: AvailMatchingCriteria) => any;
|
|
2381
|
+
/**
|
|
2382
|
+
* @internal
|
|
2383
|
+
*/
|
|
2384
|
+
export declare const LogConfigurationForChannelFilterSensitiveLog: (obj: LogConfigurationForChannel) => any;
|
|
2341
2385
|
/**
|
|
2342
2386
|
* @internal
|
|
2343
2387
|
*/
|
|
@@ -2474,6 +2518,14 @@ export declare const PutChannelPolicyRequestFilterSensitiveLog: (obj: PutChannel
|
|
|
2474
2518
|
* @internal
|
|
2475
2519
|
*/
|
|
2476
2520
|
export declare const PutChannelPolicyResponseFilterSensitiveLog: (obj: PutChannelPolicyResponse) => any;
|
|
2521
|
+
/**
|
|
2522
|
+
* @internal
|
|
2523
|
+
*/
|
|
2524
|
+
export declare const ConfigureLogsForChannelRequestFilterSensitiveLog: (obj: ConfigureLogsForChannelRequest) => any;
|
|
2525
|
+
/**
|
|
2526
|
+
* @internal
|
|
2527
|
+
*/
|
|
2528
|
+
export declare const ConfigureLogsForChannelResponseFilterSensitiveLog: (obj: ConfigureLogsForChannelResponse) => any;
|
|
2477
2529
|
/**
|
|
2478
2530
|
* @internal
|
|
2479
2531
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
3
|
+
import { ConfigureLogsForChannelCommandInput, ConfigureLogsForChannelCommandOutput } from "../commands/ConfigureLogsForChannelCommand";
|
|
3
4
|
import { ConfigureLogsForPlaybackConfigurationCommandInput, ConfigureLogsForPlaybackConfigurationCommandOutput } from "../commands/ConfigureLogsForPlaybackConfigurationCommand";
|
|
4
5
|
import { CreateChannelCommandInput, CreateChannelCommandOutput } from "../commands/CreateChannelCommand";
|
|
5
6
|
import { CreateLiveSourceCommandInput, CreateLiveSourceCommandOutput } from "../commands/CreateLiveSourceCommand";
|
|
@@ -42,6 +43,7 @@ import { UpdateChannelCommandInput, UpdateChannelCommandOutput } from "../comman
|
|
|
42
43
|
import { UpdateLiveSourceCommandInput, UpdateLiveSourceCommandOutput } from "../commands/UpdateLiveSourceCommand";
|
|
43
44
|
import { UpdateSourceLocationCommandInput, UpdateSourceLocationCommandOutput } from "../commands/UpdateSourceLocationCommand";
|
|
44
45
|
import { UpdateVodSourceCommandInput, UpdateVodSourceCommandOutput } from "../commands/UpdateVodSourceCommand";
|
|
46
|
+
export declare const serializeAws_restJson1ConfigureLogsForChannelCommand: (input: ConfigureLogsForChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
45
47
|
export declare const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand: (input: ConfigureLogsForPlaybackConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
48
|
export declare const serializeAws_restJson1CreateChannelCommand: (input: CreateChannelCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
47
49
|
export declare const serializeAws_restJson1CreateLiveSourceCommand: (input: CreateLiveSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -84,6 +86,7 @@ export declare const serializeAws_restJson1UpdateChannelCommand: (input: UpdateC
|
|
|
84
86
|
export declare const serializeAws_restJson1UpdateLiveSourceCommand: (input: UpdateLiveSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
85
87
|
export declare const serializeAws_restJson1UpdateSourceLocationCommand: (input: UpdateSourceLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
86
88
|
export declare const serializeAws_restJson1UpdateVodSourceCommand: (input: UpdateVodSourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
89
|
+
export declare const deserializeAws_restJson1ConfigureLogsForChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConfigureLogsForChannelCommandOutput>;
|
|
87
90
|
export declare const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ConfigureLogsForPlaybackConfigurationCommandOutput>;
|
|
88
91
|
export declare const deserializeAws_restJson1CreateChannelCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateChannelCommandOutput>;
|
|
89
92
|
export declare const deserializeAws_restJson1CreateLiveSourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateLiveSourceCommandOutput>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import {
|
|
3
|
+
ConfigureLogsForChannelCommandInput,
|
|
4
|
+
ConfigureLogsForChannelCommandOutput,
|
|
5
|
+
} from "./commands/ConfigureLogsForChannelCommand";
|
|
2
6
|
import {
|
|
3
7
|
ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
4
8
|
ConfigureLogsForPlaybackConfigurationCommandOutput,
|
|
@@ -169,6 +173,19 @@ import {
|
|
|
169
173
|
} from "./commands/UpdateVodSourceCommand";
|
|
170
174
|
import { MediaTailorClient } from "./MediaTailorClient";
|
|
171
175
|
export declare class MediaTailor extends MediaTailorClient {
|
|
176
|
+
configureLogsForChannel(
|
|
177
|
+
args: ConfigureLogsForChannelCommandInput,
|
|
178
|
+
options?: __HttpHandlerOptions
|
|
179
|
+
): Promise<ConfigureLogsForChannelCommandOutput>;
|
|
180
|
+
configureLogsForChannel(
|
|
181
|
+
args: ConfigureLogsForChannelCommandInput,
|
|
182
|
+
cb: (err: any, data?: ConfigureLogsForChannelCommandOutput) => void
|
|
183
|
+
): void;
|
|
184
|
+
configureLogsForChannel(
|
|
185
|
+
args: ConfigureLogsForChannelCommandInput,
|
|
186
|
+
options: __HttpHandlerOptions,
|
|
187
|
+
cb: (err: any, data?: ConfigureLogsForChannelCommandOutput) => void
|
|
188
|
+
): void;
|
|
172
189
|
configureLogsForPlaybackConfiguration(
|
|
173
190
|
args: ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
174
191
|
options?: __HttpHandlerOptions
|
|
@@ -44,6 +44,10 @@ import {
|
|
|
44
44
|
UrlParser as __UrlParser,
|
|
45
45
|
UserAgent as __UserAgent,
|
|
46
46
|
} from "@aws-sdk/types";
|
|
47
|
+
import {
|
|
48
|
+
ConfigureLogsForChannelCommandInput,
|
|
49
|
+
ConfigureLogsForChannelCommandOutput,
|
|
50
|
+
} from "./commands/ConfigureLogsForChannelCommand";
|
|
47
51
|
import {
|
|
48
52
|
ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
49
53
|
ConfigureLogsForPlaybackConfigurationCommandOutput,
|
|
@@ -218,6 +222,7 @@ import {
|
|
|
218
222
|
EndpointParameters,
|
|
219
223
|
} from "./endpoint/EndpointParameters";
|
|
220
224
|
export declare type ServiceInputTypes =
|
|
225
|
+
| ConfigureLogsForChannelCommandInput
|
|
221
226
|
| ConfigureLogsForPlaybackConfigurationCommandInput
|
|
222
227
|
| CreateChannelCommandInput
|
|
223
228
|
| CreateLiveSourceCommandInput
|
|
@@ -261,6 +266,7 @@ export declare type ServiceInputTypes =
|
|
|
261
266
|
| UpdateSourceLocationCommandInput
|
|
262
267
|
| UpdateVodSourceCommandInput;
|
|
263
268
|
export declare type ServiceOutputTypes =
|
|
269
|
+
| ConfigureLogsForChannelCommandOutput
|
|
264
270
|
| ConfigureLogsForPlaybackConfigurationCommandOutput
|
|
265
271
|
| CreateChannelCommandOutput
|
|
266
272
|
| CreateLiveSourceCommandOutput
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
MediaTailorClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../MediaTailorClient";
|
|
14
|
+
import {
|
|
15
|
+
ConfigureLogsForChannelRequest,
|
|
16
|
+
ConfigureLogsForChannelResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export interface ConfigureLogsForChannelCommandInput
|
|
19
|
+
extends ConfigureLogsForChannelRequest {}
|
|
20
|
+
export interface ConfigureLogsForChannelCommandOutput
|
|
21
|
+
extends ConfigureLogsForChannelResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class ConfigureLogsForChannelCommand extends $Command<
|
|
24
|
+
ConfigureLogsForChannelCommandInput,
|
|
25
|
+
ConfigureLogsForChannelCommandOutput,
|
|
26
|
+
MediaTailorClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: ConfigureLogsForChannelCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ConfigureLogsForChannelCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: MediaTailorClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<
|
|
36
|
+
ConfigureLogsForChannelCommandInput,
|
|
37
|
+
ConfigureLogsForChannelCommandOutput
|
|
38
|
+
>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
|
@@ -48,6 +48,12 @@ export interface AvailMatchingCriteria {
|
|
|
48
48
|
DynamicVariable: string | undefined;
|
|
49
49
|
Operator: Operator | string | undefined;
|
|
50
50
|
}
|
|
51
|
+
export declare enum LogType {
|
|
52
|
+
AS_RUN = "AS_RUN",
|
|
53
|
+
}
|
|
54
|
+
export interface LogConfigurationForChannel {
|
|
55
|
+
LogTypes?: (LogType | string)[];
|
|
56
|
+
}
|
|
51
57
|
export interface DashPlaylistSettings {
|
|
52
58
|
ManifestWindowSeconds?: number;
|
|
53
59
|
MinBufferTimeSeconds?: number;
|
|
@@ -75,6 +81,7 @@ export interface Channel {
|
|
|
75
81
|
PlaybackMode: string | undefined;
|
|
76
82
|
Tags?: Record<string, string>;
|
|
77
83
|
Tier: string | undefined;
|
|
84
|
+
LogConfiguration: LogConfigurationForChannel | undefined;
|
|
78
85
|
}
|
|
79
86
|
export declare enum Type {
|
|
80
87
|
DASH = "DASH",
|
|
@@ -262,6 +269,14 @@ export interface PutChannelPolicyRequest {
|
|
|
262
269
|
Policy: string | undefined;
|
|
263
270
|
}
|
|
264
271
|
export interface PutChannelPolicyResponse {}
|
|
272
|
+
export interface ConfigureLogsForChannelRequest {
|
|
273
|
+
ChannelName: string | undefined;
|
|
274
|
+
LogTypes: (LogType | string)[] | undefined;
|
|
275
|
+
}
|
|
276
|
+
export interface ConfigureLogsForChannelResponse {
|
|
277
|
+
ChannelName?: string;
|
|
278
|
+
LogTypes?: (LogType | string)[];
|
|
279
|
+
}
|
|
265
280
|
export interface RequestOutputItem {
|
|
266
281
|
DashPlaylistSettings?: DashPlaylistSettings;
|
|
267
282
|
HlsPlaylistSettings?: HlsPlaylistSettings;
|
|
@@ -318,6 +333,7 @@ export interface DescribeChannelResponse {
|
|
|
318
333
|
PlaybackMode?: string;
|
|
319
334
|
Tags?: Record<string, string>;
|
|
320
335
|
Tier?: string;
|
|
336
|
+
LogConfiguration: LogConfigurationForChannel | undefined;
|
|
321
337
|
}
|
|
322
338
|
export interface GetChannelScheduleRequest {
|
|
323
339
|
ChannelName: string | undefined;
|
|
@@ -756,6 +772,9 @@ export declare const AlertFilterSensitiveLog: (obj: Alert) => any;
|
|
|
756
772
|
export declare const AvailMatchingCriteriaFilterSensitiveLog: (
|
|
757
773
|
obj: AvailMatchingCriteria
|
|
758
774
|
) => any;
|
|
775
|
+
export declare const LogConfigurationForChannelFilterSensitiveLog: (
|
|
776
|
+
obj: LogConfigurationForChannel
|
|
777
|
+
) => any;
|
|
759
778
|
export declare const DashPlaylistSettingsFilterSensitiveLog: (
|
|
760
779
|
obj: DashPlaylistSettings
|
|
761
780
|
) => any;
|
|
@@ -850,6 +869,12 @@ export declare const PutChannelPolicyRequestFilterSensitiveLog: (
|
|
|
850
869
|
export declare const PutChannelPolicyResponseFilterSensitiveLog: (
|
|
851
870
|
obj: PutChannelPolicyResponse
|
|
852
871
|
) => any;
|
|
872
|
+
export declare const ConfigureLogsForChannelRequestFilterSensitiveLog: (
|
|
873
|
+
obj: ConfigureLogsForChannelRequest
|
|
874
|
+
) => any;
|
|
875
|
+
export declare const ConfigureLogsForChannelResponseFilterSensitiveLog: (
|
|
876
|
+
obj: ConfigureLogsForChannelResponse
|
|
877
|
+
) => any;
|
|
853
878
|
export declare const RequestOutputItemFilterSensitiveLog: (
|
|
854
879
|
obj: RequestOutputItem
|
|
855
880
|
) => any;
|
|
@@ -3,6 +3,10 @@ import {
|
|
|
3
3
|
HttpResponse as __HttpResponse,
|
|
4
4
|
} from "@aws-sdk/protocol-http";
|
|
5
5
|
import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
|
|
6
|
+
import {
|
|
7
|
+
ConfigureLogsForChannelCommandInput,
|
|
8
|
+
ConfigureLogsForChannelCommandOutput,
|
|
9
|
+
} from "../commands/ConfigureLogsForChannelCommand";
|
|
6
10
|
import {
|
|
7
11
|
ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
8
12
|
ConfigureLogsForPlaybackConfigurationCommandOutput,
|
|
@@ -171,6 +175,10 @@ import {
|
|
|
171
175
|
UpdateVodSourceCommandInput,
|
|
172
176
|
UpdateVodSourceCommandOutput,
|
|
173
177
|
} from "../commands/UpdateVodSourceCommand";
|
|
178
|
+
export declare const serializeAws_restJson1ConfigureLogsForChannelCommand: (
|
|
179
|
+
input: ConfigureLogsForChannelCommandInput,
|
|
180
|
+
context: __SerdeContext
|
|
181
|
+
) => Promise<__HttpRequest>;
|
|
174
182
|
export declare const serializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand: (
|
|
175
183
|
input: ConfigureLogsForPlaybackConfigurationCommandInput,
|
|
176
184
|
context: __SerdeContext
|
|
@@ -339,6 +347,10 @@ export declare const serializeAws_restJson1UpdateVodSourceCommand: (
|
|
|
339
347
|
input: UpdateVodSourceCommandInput,
|
|
340
348
|
context: __SerdeContext
|
|
341
349
|
) => Promise<__HttpRequest>;
|
|
350
|
+
export declare const deserializeAws_restJson1ConfigureLogsForChannelCommand: (
|
|
351
|
+
output: __HttpResponse,
|
|
352
|
+
context: __SerdeContext
|
|
353
|
+
) => Promise<ConfigureLogsForChannelCommandOutput>;
|
|
342
354
|
export declare const deserializeAws_restJson1ConfigureLogsForPlaybackConfigurationCommand: (
|
|
343
355
|
output: __HttpResponse,
|
|
344
356
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mediatailor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mediatailor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.260.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/config-resolver": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.259.0",
|
|
24
|
+
"@aws-sdk/config-resolver": "3.259.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.259.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.257.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.257.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.257.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@aws-sdk/middleware-host-header": "3.257.0",
|
|
32
32
|
"@aws-sdk/middleware-logger": "3.257.0",
|
|
33
33
|
"@aws-sdk/middleware-recursion-detection": "3.257.0",
|
|
34
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
+
"@aws-sdk/middleware-retry": "3.259.0",
|
|
35
35
|
"@aws-sdk/middleware-serde": "3.257.0",
|
|
36
36
|
"@aws-sdk/middleware-signing": "3.257.0",
|
|
37
37
|
"@aws-sdk/middleware-stack": "3.257.0",
|
|
38
38
|
"@aws-sdk/middleware-user-agent": "3.257.0",
|
|
39
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
+
"@aws-sdk/node-config-provider": "3.259.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.257.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.257.0",
|
|
42
42
|
"@aws-sdk/smithy-client": "3.257.0",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
48
|
"@aws-sdk/util-defaults-mode-browser": "3.257.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.259.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.257.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.257.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.257.0",
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.259.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.254.0",
|
|
55
55
|
"tslib": "^2.3.1"
|
|
56
56
|
},
|