We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
Use a bare-bones client and the command you need to make an API call.
import { MediaTailorClient, CreateChannelCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import// const { MediaTailorClient, CreateChannelCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS importconst client = new MediaTailorClient(config);const input = { // CreateChannelRequest ChannelName: "STRING_VALUE", // required FillerSlate: { // SlateSource SourceLocationName: "STRING_VALUE", VodSourceName: "STRING_VALUE", }, Outputs: [ // RequestOutputs // required { // RequestOutputItem DashPlaylistSettings: { // DashPlaylistSettings ManifestWindowSeconds: Number("int"), MinBufferTimeSeconds: Number("int"), MinUpdatePeriodSeconds: Number("int"), SuggestedPresentationDelaySeconds: Number("int"), }, HlsPlaylistSettings: { // HlsPlaylistSettings ManifestWindowSeconds: Number("int"), }, ManifestName: "STRING_VALUE", // required SourceGroup: "STRING_VALUE", // required }, ], PlaybackMode: "LOOP" || "LINEAR", // required Tags: { // __mapOf__string "<keys>": "STRING_VALUE", }, Tier: "BASIC" || "STANDARD",};const command = new CreateChannelCommand(input);const response = await client.send(command);// { // CreateChannelResponse// Arn: "STRING_VALUE",// ChannelName: "STRING_VALUE",// ChannelState: "RUNNING" || "STOPPED",// CreationTime: new Date("TIMESTAMP"),// FillerSlate: { // SlateSource// SourceLocationName: "STRING_VALUE",// VodSourceName: "STRING_VALUE",// },// LastModifiedTime: new Date("TIMESTAMP"),// Outputs: [ // ResponseOutputs// { // ResponseOutputItem// DashPlaylistSettings: { // DashPlaylistSettings// ManifestWindowSeconds: Number("int"),// MinBufferTimeSeconds: Number("int"),// MinUpdatePeriodSeconds: Number("int"),// SuggestedPresentationDelaySeconds: Number("int"),// },// HlsPlaylistSettings: { // HlsPlaylistSettings// ManifestWindowSeconds: Number("int"),// },// ManifestName: "STRING_VALUE", // required// PlaybackUrl: "STRING_VALUE", // required// SourceGroup: "STRING_VALUE", // required// },// ],// PlaybackMode: "STRING_VALUE",// Tags: { // __mapOf__string// "<keys>": "STRING_VALUE",// },// Tier: "STRING_VALUE",// };
CreateChannelCommandInput
CreateChannelCommandOutput
input
response
config
MediaTailorServiceException
Base exception class for all service exceptions from MediaTailor service.
Readonly
Static
Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.
Example
Use a bare-bones client and the command you need to make an API call.
Param
CreateChannelCommandInput
Returns
CreateChannelCommandOutput
See
input
shape.response
shape.config
shape.Throws
MediaTailorServiceException
Base exception class for all service exceptions from MediaTailor service.