Jump to Content

New API Documentation - Developer Preview Available

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.

Class CreateVodSourceCommandProtected

The VOD source configuration parameters.

Example

Use a bare-bones client and the command you need to make an API call.

import { MediaTailorClient, CreateVodSourceCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
// const { MediaTailorClient, CreateVodSourceCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
const client = new MediaTailorClient(config);
const input = { // CreateVodSourceRequest
HttpPackageConfigurations: [ // HttpPackageConfigurations // required
{ // HttpPackageConfiguration
Path: "STRING_VALUE", // required
SourceGroup: "STRING_VALUE", // required
Type: "DASH" || "HLS", // required
},
],
SourceLocationName: "STRING_VALUE", // required
Tags: { // __mapOf__string
"<keys>": "STRING_VALUE",
},
VodSourceName: "STRING_VALUE", // required
};
const command = new CreateVodSourceCommand(input);
const response = await client.send(command);
// { // CreateVodSourceResponse
// Arn: "STRING_VALUE",
// CreationTime: new Date("TIMESTAMP"),
// HttpPackageConfigurations: [ // HttpPackageConfigurations
// { // HttpPackageConfiguration
// Path: "STRING_VALUE", // required
// SourceGroup: "STRING_VALUE", // required
// Type: "DASH" || "HLS", // required
// },
// ],
// LastModifiedTime: new Date("TIMESTAMP"),
// SourceLocationName: "STRING_VALUE",
// Tags: { // __mapOf__string
// "<keys>": "STRING_VALUE",
// },
// VodSourceName: "STRING_VALUE",
// };

Param

CreateVodSourceCommandInput

Returns

CreateVodSourceCommandOutput

See

Throws

MediaTailorServiceException

Base exception class for all service exceptions from MediaTailor service.

Hierarchy

Constructors

Properties

Methods