- 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.
UpdateVodSourceCommand
Updates a VOD source's configuration.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { MediaTailorClient, UpdateVodSourceCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
// const { MediaTailorClient, UpdateVodSourceCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
const client = new MediaTailorClient(config);
const input = { // UpdateVodSourceRequest
HttpPackageConfigurations: [ // HttpPackageConfigurations // required
{ // HttpPackageConfiguration
Path: "STRING_VALUE", // required
SourceGroup: "STRING_VALUE", // required
Type: "DASH" || "HLS", // required
},
],
SourceLocationName: "STRING_VALUE", // required
VodSourceName: "STRING_VALUE", // required
};
const command = new UpdateVodSourceCommand(input);
const response = await client.send(command);
// { // UpdateVodSourceResponse
// 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",
// };
UpdateVodSourceCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
HttpPackageConfigurations Required | HttpPackageConfiguration[] | undefined | A list of HTTP package configurations for the VOD source on this account. |
SourceLocationName Required | string | undefined | The name of the source location associated with this VOD Source. |
VodSourceName Required | string | undefined | The name of the VOD source. |
UpdateVodSourceCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Arn | string | undefined | The Amazon Resource Name (ARN) associated with the VOD source. |
CreationTime | Date | undefined | The timestamp that indicates when the VOD source was created. |
HttpPackageConfigurations | HttpPackageConfiguration[] | undefined | A list of HTTP package configurations for the VOD source on this account. |
LastModifiedTime | Date | undefined | The timestamp that indicates when the VOD source was last modified. |
SourceLocationName | string | undefined | The name of the source location 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 . |
VodSourceName | string | undefined | The name of the VOD source. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
MediaTailorServiceException | Base exception class for all service exceptions from MediaTailor service. |