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

Parameter
Type
Description
ChannelName
Required
string | undefined

The name of the channel.

LogTypes
Required
LogType[] | undefined

The types of logs to collect.

ConfigureLogsForChannelCommand Output

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
MediaTailorServiceException
Base exception class for all service exceptions from MediaTailor service.