- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
ConfigureLogsForChannelCommand
Configures Amazon CloudWatch log settings for a channel.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MediaTailorClient, ConfigureLogsForChannelCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
// const { MediaTailorClient, ConfigureLogsForChannelCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
const client = new MediaTailorClient(config);
const input = { // ConfigureLogsForChannelRequest
ChannelName: "STRING_VALUE", // required
LogTypes: [ // LogTypes // required
"AS_RUN",
],
};
const command = new ConfigureLogsForChannelCommand(input);
const response = await client.send(command);
// { // ConfigureLogsForChannelResponse
// ChannelName: "STRING_VALUE",
// LogTypes: [ // LogTypes
// "AS_RUN",
// ],
// };
ConfigureLogsForChannelCommand Input
See ConfigureLogsForChannelCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ChannelName Required | string | undefined | The name of the channel. |
LogTypes Required | LogType[] | undefined | The types of logs to collect. |
ConfigureLogsForChannelCommand Output
See ConfigureLogsForChannelCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
ChannelName | string | undefined | The name of the channel. |
LogTypes | LogType[] | undefined | The types of logs collected. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
MediaTailorServiceException | Base exception class for all service exceptions from MediaTailor service. |