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 PutPlaybackConfigurationCommandProtected

Creates a playback configuration. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.

Example

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

import { MediaTailorClient, PutPlaybackConfigurationCommand } from "@aws-sdk/client-mediatailor"; // ES Modules import
// const { MediaTailorClient, PutPlaybackConfigurationCommand } = require("@aws-sdk/client-mediatailor"); // CommonJS import
const client = new MediaTailorClient(config);
const input = { // PutPlaybackConfigurationRequest
AdDecisionServerUrl: "STRING_VALUE",
AvailSuppression: { // AvailSuppression
Mode: "OFF" || "BEHIND_LIVE_EDGE" || "AFTER_LIVE_EDGE",
Value: "STRING_VALUE",
FillPolicy: "FULL_AVAIL_ONLY" || "PARTIAL_AVAIL",
},
Bumper: { // Bumper
EndUrl: "STRING_VALUE",
StartUrl: "STRING_VALUE",
},
CdnConfiguration: { // CdnConfiguration
AdSegmentUrlPrefix: "STRING_VALUE",
ContentSegmentUrlPrefix: "STRING_VALUE",
},
ConfigurationAliases: { // ConfigurationAliasesRequest
"<keys>": { // __mapOf__string
"<keys>": "STRING_VALUE",
},
},
DashConfiguration: { // DashConfigurationForPut
MpdLocation: "STRING_VALUE",
OriginManifestType: "SINGLE_PERIOD" || "MULTI_PERIOD",
},
LivePreRollConfiguration: { // LivePreRollConfiguration
AdDecisionServerUrl: "STRING_VALUE",
MaxDurationSeconds: Number("int"),
},
ManifestProcessingRules: { // ManifestProcessingRules
AdMarkerPassthrough: { // AdMarkerPassthrough
Enabled: true || false,
},
},
Name: "STRING_VALUE", // required
PersonalizationThresholdSeconds: Number("int"),
SlateAdUrl: "STRING_VALUE",
Tags: {
"<keys>": "STRING_VALUE",
},
TranscodeProfileName: "STRING_VALUE",
VideoContentSourceUrl: "STRING_VALUE",
};
const command = new PutPlaybackConfigurationCommand(input);
const response = await client.send(command);
// { // PutPlaybackConfigurationResponse
// AdDecisionServerUrl: "STRING_VALUE",
// AvailSuppression: { // AvailSuppression
// Mode: "OFF" || "BEHIND_LIVE_EDGE" || "AFTER_LIVE_EDGE",
// Value: "STRING_VALUE",
// FillPolicy: "FULL_AVAIL_ONLY" || "PARTIAL_AVAIL",
// },
// Bumper: { // Bumper
// EndUrl: "STRING_VALUE",
// StartUrl: "STRING_VALUE",
// },
// CdnConfiguration: { // CdnConfiguration
// AdSegmentUrlPrefix: "STRING_VALUE",
// ContentSegmentUrlPrefix: "STRING_VALUE",
// },
// ConfigurationAliases: { // ConfigurationAliasesResponse
// "<keys>": { // __mapOf__string
// "<keys>": "STRING_VALUE",
// },
// },
// DashConfiguration: { // DashConfiguration
// ManifestEndpointPrefix: "STRING_VALUE",
// MpdLocation: "STRING_VALUE",
// OriginManifestType: "SINGLE_PERIOD" || "MULTI_PERIOD",
// },
// HlsConfiguration: { // HlsConfiguration
// ManifestEndpointPrefix: "STRING_VALUE",
// },
// LivePreRollConfiguration: { // LivePreRollConfiguration
// AdDecisionServerUrl: "STRING_VALUE",
// MaxDurationSeconds: Number("int"),
// },
// LogConfiguration: { // LogConfiguration
// PercentEnabled: Number("int"), // required
// },
// ManifestProcessingRules: { // ManifestProcessingRules
// AdMarkerPassthrough: { // AdMarkerPassthrough
// Enabled: true || false,
// },
// },
// Name: "STRING_VALUE",
// PersonalizationThresholdSeconds: Number("int"),
// PlaybackConfigurationArn: "STRING_VALUE",
// PlaybackEndpointPrefix: "STRING_VALUE",
// SessionInitializationEndpointPrefix: "STRING_VALUE",
// SlateAdUrl: "STRING_VALUE",
// Tags: {
// "<keys>": "STRING_VALUE",
// },
// TranscodeProfileName: "STRING_VALUE",
// VideoContentSourceUrl: "STRING_VALUE",
// };

Param

PutPlaybackConfigurationCommandInput

Returns

PutPlaybackConfigurationCommandOutput

See

Throws

MediaTailorServiceException

Base exception class for all service exceptions from MediaTailor service.

Hierarchy

Constructors

Properties

Methods