- 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.
CreateVodSourceCommand
The VOD source configuration parameters.
Example Syntax
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",
// };
CreateVodSourceCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
HttpPackageConfigurations Required | HttpPackageConfiguration[] | undefined | A list of HTTP package configuration parameters for this VOD source. |
SourceLocationName Required | string | undefined | The name of the source location for this VOD source. |
VodSourceName Required | string | undefined | The name associated with the VOD source.> |
Tags | Record<string, string> | undefined | The tags to assign to the VOD source. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources . |
CreateVodSourceCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Arn | string | undefined | The ARN to assign to this VOD source. |
CreationTime | Date | undefined | The time the VOD source was created. |
HttpPackageConfigurations | HttpPackageConfiguration[] | undefined | A list of HTTP package configuration parameters for this VOD source. |
LastModifiedTime | Date | undefined | The time the VOD source was last modified. |
SourceLocationName | string | undefined | The name to assign to the source location for this VOD source. |
Tags | Record<string, string> | undefined | The tags to assign to the VOD source. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources . |
VodSourceName | string | undefined | The name to assign to the VOD source. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
MediaTailorServiceException | Base exception class for all service exceptions from MediaTailor service. |