You are viewing the documentation for an older major version of the AWS SDK for JavaScript.
The modular AWS SDK for JavaScript (v3), the latest major version of AWS SDK for JavaScript, is now stable and recommended for general use. For more information, see the Migration Guide and API Reference.

Class: AWS.MediaTailor

Inherits:
AWS.Service show all
Identifier:
mediatailor
API Version:
2018-04-23
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

Use the AWS Elemental MediaTailor SDKs and CLI to configure scalable ad insertion and linear channels. With MediaTailor, you can assemble existing content into a linear stream and serve targeted ads to viewers while maintaining broadcast quality in over-the-top (OTT) video applications. For information about using the service, including detailed information about the settings covered in this guide, see the AWS Elemental MediaTailor User Guide.

Through the SDKs and the CLI you manage AWS Elemental MediaTailor configurations and channels the same as you do through the console. For example, you specify ad insertion behavior and mapping information for the origin server and the ad decision server (ADS).

Sending a Request Using MediaTailor

var mediatailor = new AWS.MediaTailor();
mediatailor.configureLogsForPlaybackConfiguration(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the MediaTailor object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var mediatailor = new AWS.MediaTailor({apiVersion: '2018-04-23'});

You can also set the API version globally in AWS.config.apiVersions using the mediatailor service identifier:

AWS.config.apiVersions = {
  mediatailor: '2018-04-23',
  // other service API versions
};

var mediatailor = new AWS.MediaTailor();

Version:

  • 2018-04-23

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.MediaTailor(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a MediaTailor object

var mediatailor = new AWS.MediaTailor({apiVersion: '2018-04-23'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.MediaTailor.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.MediaTailor.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.MediaTailor.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

configureLogsForPlaybackConfiguration(params = {}, callback) ⇒ AWS.Request

Amazon CloudWatch log settings for a playback configuration.

Examples:

Calling the configureLogsForPlaybackConfiguration operation

var params = {
  PercentEnabled: 'NUMBER_VALUE', /* required */
  PlaybackConfigurationName: 'STRING_VALUE' /* required */
};
mediatailor.configureLogsForPlaybackConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • PercentEnabled — (Integer)

      The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode.

      Valid values: 0 - 100

    • PlaybackConfigurationName — (String)

      The name of the playback configuration.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • PercentEnabled — (Integer)

        The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account.

      • PlaybackConfigurationName — (String)

        The name of the playback configuration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createChannel(params = {}, callback) ⇒ AWS.Request

Creates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the createChannel operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  Outputs: [ /* required */
    {
      ManifestName: 'STRING_VALUE', /* required */
      SourceGroup: 'STRING_VALUE', /* required */
      DashPlaylistSettings: {
        ManifestWindowSeconds: 'NUMBER_VALUE',
        MinBufferTimeSeconds: 'NUMBER_VALUE',
        MinUpdatePeriodSeconds: 'NUMBER_VALUE',
        SuggestedPresentationDelaySeconds: 'NUMBER_VALUE'
      },
      HlsPlaylistSettings: {
        ManifestWindowSeconds: 'NUMBER_VALUE'
      }
    },
    /* more items */
  ],
  PlaybackMode: LOOP | LINEAR, /* required */
  FillerSlate: {
    SourceLocationName: 'STRING_VALUE',
    VodSourceName: 'STRING_VALUE'
  },
  Tags: {
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  },
  Tier: BASIC | STANDARD
};
mediatailor.createChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

    • FillerSlate — (map)

      The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

      • SourceLocationName — (String)

        The name of the source location where the slate VOD source is stored.

      • VodSourceName — (String)

        The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

    • Outputs — (Array<map>)

      The channel's output properties.

      • DashPlaylistSettings — (map)

        DASH manifest configuration parameters.

        • ManifestWindowSeconds — (Integer)

          The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

        • MinBufferTimeSeconds — (Integer)

          Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • MinUpdatePeriodSeconds — (Integer)

          Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • SuggestedPresentationDelaySeconds — (Integer)

          Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

      • HlsPlaylistSettings — (map)

        HLS playlist configuration parameters.

        • ManifestWindowSeconds — (Integer)

          The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

      • ManifestNamerequired — (String)

        The name of the manifest for the channel. The name appears in the PlaybackUrl.

      • SourceGrouprequired — (String)

        A string used to match which HttpPackageConfiguration is used for each VodSource.

    • PlaybackMode — (String)

      The type of playback mode to use for this channel.

      LINEAR - The programs in the schedule play once back-to-back in the schedule.

      LOOP - The programs in the schedule play back-to-back in an endless loop. When the last program in the schedule stops playing, playback loops back to the first program in the schedule.

      Possible values include:
      • "LOOP"
      • "LINEAR"
    • Tags — (map<String>)

      The tags to assign to the channel. 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.

    • Tier — (String)

      The tier of the channel.

      Possible values include:
      • "BASIC"
      • "STANDARD"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The Amazon Resource Name (ARN) to assign to the channel.

      • ChannelName — (String)

        The name to assign to the channel.

      • ChannelState — (String)

        Indicates whether the channel is in a running state or not.

        Possible values include:
        • "RUNNING"
        • "STOPPED"
      • CreationTime — (Date)

        The timestamp of when the channel was created.

      • FillerSlate — (map)

        Contains information about the slate used to fill gaps between programs in the schedule.

        • SourceLocationName — (String)

          The name of the source location where the slate VOD source is stored.

        • VodSourceName — (String)

          The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

      • LastModifiedTime — (Date)

        The timestamp of when the channel was last modified.

      • Outputs — (Array<map>)

        The output properties to assign to the channel.

        • DashPlaylistSettings — (map)

          DASH manifest configuration settings.

          • ManifestWindowSeconds — (Integer)

            The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

          • MinBufferTimeSeconds — (Integer)

            Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • MinUpdatePeriodSeconds — (Integer)

            Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • SuggestedPresentationDelaySeconds — (Integer)

            Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • HlsPlaylistSettings — (map)

          HLS manifest configuration settings.

          • ManifestWindowSeconds — (Integer)

            The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

        • ManifestNamerequired — (String)

          The name of the manifest for the channel that will appear in the channel output's playback URL.

        • PlaybackUrlrequired — (String)

          The URL used for playback by content players.

        • SourceGrouprequired — (String)

          A string used to associate a package configuration source group with a channel output.

      • PlaybackMode — (String)

        The playback mode to assign to the channel.

      • Tags — (map<String>)

        The tags to assign to the channel. 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.

      • Tier — (String)

        The tier of the channel.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createLiveSource(params = {}, callback) ⇒ AWS.Request

The live source configuration.

Service Reference:

Examples:

Calling the createLiveSource operation

var params = {
  HttpPackageConfigurations: [ /* required */
    {
      Path: 'STRING_VALUE', /* required */
      SourceGroup: 'STRING_VALUE', /* required */
      Type: DASH | HLS /* required */
    },
    /* more items */
  ],
  LiveSourceName: 'STRING_VALUE', /* required */
  SourceLocationName: 'STRING_VALUE', /* required */
  Tags: {
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  }
};
mediatailor.createLiveSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HttpPackageConfigurations — (Array<map>)

      A list of HTTP package configuration parameters for this live source.

      • Pathrequired — (String)

        The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

      • SourceGrouprequired — (String)

        The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

      • Typerequired — (String)

        The streaming protocol for this package configuration. Supported values are HLS and DASH.

        Possible values include:
        • "DASH"
        • "HLS"
    • LiveSourceName — (String)

      The name of the live source.

    • SourceLocationName — (String)

      The name of the source location.

    • Tags — (map<String>)

      The tags to assign to the live 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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The ARN to assign to the live source.

      • CreationTime — (Date)

        The time the live source was created.

      • HttpPackageConfigurations — (Array<map>)

        A list of HTTP package configuration parameters for this live source.

        • Pathrequired — (String)

          The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

        • SourceGrouprequired — (String)

          The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

        • Typerequired — (String)

          The streaming protocol for this package configuration. Supported values are HLS and DASH.

          Possible values include:
          • "DASH"
          • "HLS"
      • LastModifiedTime — (Date)

        The time the live source was last modified.

      • LiveSourceName — (String)

        The name to assign to the live source.

      • SourceLocationName — (String)

        The name to assign to the source location of the live source.

      • Tags — (map<String>)

        The tags to assign to the live 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createPrefetchSchedule(params = {}, callback) ⇒ AWS.Request

Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the createPrefetchSchedule operation

var params = {
  Consumption: { /* required */
    EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
    AvailMatchingCriteria: [
      {
        DynamicVariable: 'STRING_VALUE', /* required */
        Operator: EQUALS /* required */
      },
      /* more items */
    ],
    StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
  },
  Name: 'STRING_VALUE', /* required */
  PlaybackConfigurationName: 'STRING_VALUE', /* required */
  Retrieval: { /* required */
    EndTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789, /* required */
    DynamicVariables: {
      '<__string>': 'STRING_VALUE',
      /* '<__string>': ... */
    },
    StartTime: new Date || 'Wed Dec 31 1969 16:00:00 GMT-0800 (PST)' || 123456789
  },
  StreamId: 'STRING_VALUE'
};
mediatailor.createPrefetchSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Consumption — (map)

      The configuration settings for MediaTailor's consumption of the prefetched ads from the ad decision server. Each consumption configuration contains an end time and an optional start time that define the consumption window. Prefetch schedules automatically expire no earlier than seven days after the end time.

      • AvailMatchingCriteria — (Array<map>)

        If you only want MediaTailor to insert prefetched ads into avails (ad breaks) that match specific dynamic variables, such as scte.event_id, set the avail matching criteria.

        • DynamicVariablerequired — (String)

          The dynamic variable(s) that MediaTailor should use as avail matching criteria. MediaTailor only places the prefetched ads into the avail if the avail matches the criteria defined by the dynamic variable. For information about dynamic variables, see Using dynamic ad variables in the MediaTailor User Guide.

          You can include up to 100 dynamic variables.

        • Operatorrequired — (String)

          For the DynamicVariable specified in AvailMatchingCriteria, the Operator that is used for the comparison.

          Possible values include:
          • "EQUALS"
      • EndTimerequired — (Date)

        The time when MediaTailor no longer considers the prefetched ads for use in an ad break. MediaTailor automatically deletes prefetch schedules no less than seven days after the end time. If you'd like to manually delete the prefetch schedule, you can call DeletePrefetchSchedule.

      • StartTime — (Date)

        The time when prefetched ads are considered for use in an ad break. If you don't specify StartTime, the prefetched ads are available after MediaTailor retrives them from the ad decision server.

    • Name — (String)

      The name to assign to the schedule request.

    • PlaybackConfigurationName — (String)

      The name to assign to the playback configuration.

    • Retrieval — (map)

      The configuration settings for retrieval of prefetched ads from the ad decision server. Only one set of prefetched ads will be retrieved and subsequently consumed for each ad break.

      • DynamicVariables — (map<String>)

        The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

        You initially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

      • EndTimerequired — (Date)

        The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

      • StartTime — (Date)

        The time when prefetch retrievals can start for this break. Ad prefetching will be attempted for manifest requests that occur at or after this time. Defaults to the current time. If not specified, the prefetch retrieval starts as soon as possible.

    • StreamId — (String)

      An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration. If StreamId is specified, MediaTailor returns all of the prefetch schedules with an exact match on StreamId. If not specified, MediaTailor returns all of the prefetch schedules for the playback configuration, regardless of StreamId.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The ARN to assign to the prefetch schedule.

      • Consumption — (map)

        The configuration settings for MediaTailor's consumption of the prefetched ads from the ad decision server. Each consumption configuration contains an end time and an optional start time that define the consumption window. Prefetch schedules automatically expire no earlier than seven days after the end time.

        • AvailMatchingCriteria — (Array<map>)

          If you only want MediaTailor to insert prefetched ads into avails (ad breaks) that match specific dynamic variables, such as scte.event_id, set the avail matching criteria.

          • DynamicVariablerequired — (String)

            The dynamic variable(s) that MediaTailor should use as avail matching criteria. MediaTailor only places the prefetched ads into the avail if the avail matches the criteria defined by the dynamic variable. For information about dynamic variables, see Using dynamic ad variables in the MediaTailor User Guide.

            You can include up to 100 dynamic variables.

          • Operatorrequired — (String)

            For the DynamicVariable specified in AvailMatchingCriteria, the Operator that is used for the comparison.

            Possible values include:
            • "EQUALS"
        • EndTimerequired — (Date)

          The time when MediaTailor no longer considers the prefetched ads for use in an ad break. MediaTailor automatically deletes prefetch schedules no less than seven days after the end time. If you'd like to manually delete the prefetch schedule, you can call DeletePrefetchSchedule.

        • StartTime — (Date)

          The time when prefetched ads are considered for use in an ad break. If you don't specify StartTime, the prefetched ads are available after MediaTailor retrives them from the ad decision server.

      • Name — (String)

        The name to assign to the prefetch schedule.

      • PlaybackConfigurationName — (String)

        The name to assign to the playback configuration.

      • Retrieval — (map)

        The configuration settings for retrieval of prefetched ads from the ad decision server. Only one set of prefetched ads will be retrieved and subsequently consumed for each ad break.

        • DynamicVariables — (map<String>)

          The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

          You initially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

        • EndTimerequired — (Date)

          The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

        • StartTime — (Date)

          The time when prefetch retrievals can start for this break. Ad prefetching will be attempted for manifest requests that occur at or after this time. Defaults to the current time. If not specified, the prefetch retrieval starts as soon as possible.

      • StreamId — (String)

        An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration. If StreamId is specified, MediaTailor returns all of the prefetch schedules with an exact match on StreamId. If not specified, MediaTailor returns all of the prefetch schedules for the playback configuration, regardless of StreamId.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createProgram(params = {}, callback) ⇒ AWS.Request

Creates a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the createProgram operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  ProgramName: 'STRING_VALUE', /* required */
  ScheduleConfiguration: { /* required */
    Transition: { /* required */
      RelativePosition: BEFORE_PROGRAM | AFTER_PROGRAM, /* required */
      Type: 'STRING_VALUE', /* required */
      DurationMillis: 'NUMBER_VALUE',
      RelativeProgram: 'STRING_VALUE',
      ScheduledStartTimeMillis: 'NUMBER_VALUE'
    }
  },
  SourceLocationName: 'STRING_VALUE', /* required */
  AdBreaks: [
    {
      MessageType: SPLICE_INSERT | TIME_SIGNAL,
      OffsetMillis: 'NUMBER_VALUE',
      Slate: {
        SourceLocationName: 'STRING_VALUE',
        VodSourceName: 'STRING_VALUE'
      },
      SpliceInsertMessage: {
        AvailNum: 'NUMBER_VALUE',
        AvailsExpected: 'NUMBER_VALUE',
        SpliceEventId: 'NUMBER_VALUE',
        UniqueProgramId: 'NUMBER_VALUE'
      },
      TimeSignalMessage: {
        SegmentationDescriptors: [
          {
            SegmentNum: 'NUMBER_VALUE',
            SegmentationEventId: 'NUMBER_VALUE',
            SegmentationTypeId: 'NUMBER_VALUE',
            SegmentationUpid: 'STRING_VALUE',
            SegmentationUpidType: 'NUMBER_VALUE',
            SegmentsExpected: 'NUMBER_VALUE',
            SubSegmentNum: 'NUMBER_VALUE',
            SubSegmentsExpected: 'NUMBER_VALUE'
          },
          /* more items */
        ]
      }
    },
    /* more items */
  ],
  LiveSourceName: 'STRING_VALUE',
  VodSourceName: 'STRING_VALUE'
};
mediatailor.createProgram(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AdBreaks — (Array<map>)

      The ad break configuration settings.

      • MessageType — (String)

        The SCTE-35 ad insertion type. Accepted value: SPLICE_INSERT, TIME_SIGNAL.

        Possible values include:
        • "SPLICE_INSERT"
        • "TIME_SIGNAL"
      • OffsetMillis — (Integer)

        How long (in milliseconds) after the beginning of the program that an ad starts. This value must fall within 100ms of a segment boundary, otherwise the ad break will be skipped.

      • Slate — (map)

        Ad break slate configuration.

        • SourceLocationName — (String)

          The name of the source location where the slate VOD source is stored.

        • VodSourceName — (String)

          The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

      • SpliceInsertMessage — (map)

        This defines the SCTE-35 splice_insert() message inserted around the ad. For information about using splice_insert(), see the SCTE-35 specficiaiton, section 9.7.3.1.

        • AvailNum — (Integer)

          This is written to splice_insert.avail_num, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

        • AvailsExpected — (Integer)

          This is written to splice_insert.avails_expected, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

        • SpliceEventId — (Integer)

          This is written to splice_insert.splice_event_id, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 1.

        • UniqueProgramId — (Integer)

          This is written to splice_insert.unique_program_id, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

      • TimeSignalMessage — (map)

        Defines the SCTE-35 time_signal message inserted around the ad.

        Programs on a channel's schedule can be configured with one or more ad breaks. You can attach a splice_insert SCTE-35 message to the ad break. This message provides basic metadata about the ad break.

        See section 9.7.4 of the 2022 SCTE-35 specification for more information.

        • SegmentationDescriptors — (Array<map>)

          The configurations for the SCTE-35 segmentation_descriptor message(s) sent with the time_signal message.

          • SegmentNum — (Integer)

            The segment number to assign to the segmentation_descriptor.segment_num message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification Values must be between 0 and 256, inclusive. The default value is 0.

          • SegmentationEventId — (Integer)

            The Event Identifier to assign to the segmentation_descriptor.segmentation_event_id message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. The default value is 1.

          • SegmentationTypeId — (Integer)

            The Type Identifier to assign to the segmentation_descriptor.segmentation_type_id message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is 48.

          • SegmentationUpid — (String)

            The Upid to assign to the segmentation_descriptor.segmentation_upid message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. The value must be a hexadecimal string containing only the characters 0 though 9 and A through F. The default value is "" (an empty string).

          • SegmentationUpidType — (Integer)

            The Upid Type to assign to the segmentation_descriptor.segmentation_upid_type message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is 14.

          • SegmentsExpected — (Integer)

            The number of segments expected, which is assigned to the segmentation_descriptor.segments_expectedS message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification Values must be between 0 and 256, inclusive. The default value is 0.

          • SubSegmentNum — (Integer)

            The sub-segment number to assign to the segmentation_descriptor.sub_segment_num message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The defualt value is null.

          • SubSegmentsExpected — (Integer)

            The number of sub-segments expected, which is assigned to the segmentation_descriptor.sub_segments_expected message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is null.

    • ChannelName — (String)

      The name of the channel for this Program.

    • LiveSourceName — (String)

      The name of the LiveSource for this Program.

    • ProgramName — (String)

      The name of the Program.

    • ScheduleConfiguration — (map)

      The schedule configuration settings.

      • Transitionrequired — (map)

        Program transition configurations.

        • DurationMillis — (Integer)

          The duration of the live program in seconds.

        • RelativePositionrequired — (String)

          The position where this program will be inserted relative to the RelativePosition.

          Possible values include:
          • "BEFORE_PROGRAM"
          • "AFTER_PROGRAM"
        • RelativeProgram — (String)

          The name of the program that this program will be inserted next to, as defined by RelativePosition.

        • ScheduledStartTimeMillis — (Integer)

          The date and time that the program is scheduled to start, in epoch milliseconds.

        • Typerequired — (String)

          Defines when the program plays in the schedule. You can set the value to ABSOLUTE or RELATIVE.

          ABSOLUTE - The program plays at a specific wall clock time. This setting can only be used for channels using the LINEAR PlaybackMode.

          Note the following considerations when using ABSOLUTE transitions:

          If the preceding program in the schedule has a duration that extends past the wall clock time, MediaTailor truncates the preceding program on a common segment boundary.

          If there are gaps in playback, MediaTailor plays the FillerSlate you configured for your linear channel.

          RELATIVE - The program is inserted into the schedule either before or after a program that you specify via RelativePosition.

    • SourceLocationName — (String)

      The name of the source location.

    • VodSourceName — (String)

      The name that's used to refer to a VOD source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AdBreaks — (Array<map>)

        The ad break configuration settings.

        • MessageType — (String)

          The SCTE-35 ad insertion type. Accepted value: SPLICE_INSERT, TIME_SIGNAL.

          Possible values include:
          • "SPLICE_INSERT"
          • "TIME_SIGNAL"
        • OffsetMillis — (Integer)

          How long (in milliseconds) after the beginning of the program that an ad starts. This value must fall within 100ms of a segment boundary, otherwise the ad break will be skipped.

        • Slate — (map)

          Ad break slate configuration.

          • SourceLocationName — (String)

            The name of the source location where the slate VOD source is stored.

          • VodSourceName — (String)

            The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

        • SpliceInsertMessage — (map)

          This defines the SCTE-35 splice_insert() message inserted around the ad. For information about using splice_insert(), see the SCTE-35 specficiaiton, section 9.7.3.1.

          • AvailNum — (Integer)

            This is written to splice_insert.avail_num, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

          • AvailsExpected — (Integer)

            This is written to splice_insert.avails_expected, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

          • SpliceEventId — (Integer)

            This is written to splice_insert.splice_event_id, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 1.

          • UniqueProgramId — (Integer)

            This is written to splice_insert.unique_program_id, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

        • TimeSignalMessage — (map)

          Defines the SCTE-35 time_signal message inserted around the ad.

          Programs on a channel's schedule can be configured with one or more ad breaks. You can attach a splice_insert SCTE-35 message to the ad break. This message provides basic metadata about the ad break.

          See section 9.7.4 of the 2022 SCTE-35 specification for more information.

          • SegmentationDescriptors — (Array<map>)

            The configurations for the SCTE-35 segmentation_descriptor message(s) sent with the time_signal message.

            • SegmentNum — (Integer)

              The segment number to assign to the segmentation_descriptor.segment_num message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification Values must be between 0 and 256, inclusive. The default value is 0.

            • SegmentationEventId — (Integer)

              The Event Identifier to assign to the segmentation_descriptor.segmentation_event_id message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. The default value is 1.

            • SegmentationTypeId — (Integer)

              The Type Identifier to assign to the segmentation_descriptor.segmentation_type_id message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is 48.

            • SegmentationUpid — (String)

              The Upid to assign to the segmentation_descriptor.segmentation_upid message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. The value must be a hexadecimal string containing only the characters 0 though 9 and A through F. The default value is "" (an empty string).

            • SegmentationUpidType — (Integer)

              The Upid Type to assign to the segmentation_descriptor.segmentation_upid_type message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is 14.

            • SegmentsExpected — (Integer)

              The number of segments expected, which is assigned to the segmentation_descriptor.segments_expectedS message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification Values must be between 0 and 256, inclusive. The default value is 0.

            • SubSegmentNum — (Integer)

              The sub-segment number to assign to the segmentation_descriptor.sub_segment_num message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The defualt value is null.

            • SubSegmentsExpected — (Integer)

              The number of sub-segments expected, which is assigned to the segmentation_descriptor.sub_segments_expected message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is null.

      • Arn — (String)

        The ARN to assign to the program.

      • ChannelName — (String)

        The name to assign to the channel for this program.

      • CreationTime — (Date)

        The time the program was created.

      • LiveSourceName — (String)

        The name of the LiveSource for this Program.

      • ProgramName — (String)

        The name to assign to this program.

      • ScheduledStartTime — (Date)

        The scheduled start time for this Program.

      • SourceLocationName — (String)

        The name to assign to the source location for this program.

      • VodSourceName — (String)

        The name that's used to refer to a VOD source.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createSourceLocation(params = {}, callback) ⇒ AWS.Request

Creates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the createSourceLocation operation

var params = {
  HttpConfiguration: { /* required */
    BaseUrl: 'STRING_VALUE' /* required */
  },
  SourceLocationName: 'STRING_VALUE', /* required */
  AccessConfiguration: {
    AccessType: S3_SIGV4 | SECRETS_MANAGER_ACCESS_TOKEN,
    SecretsManagerAccessTokenConfiguration: {
      HeaderName: 'STRING_VALUE',
      SecretArn: 'STRING_VALUE',
      SecretStringKey: 'STRING_VALUE'
    }
  },
  DefaultSegmentDeliveryConfiguration: {
    BaseUrl: 'STRING_VALUE'
  },
  SegmentDeliveryConfigurations: [
    {
      BaseUrl: 'STRING_VALUE',
      Name: 'STRING_VALUE'
    },
    /* more items */
  ],
  Tags: {
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  }
};
mediatailor.createSourceLocation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AccessConfiguration — (map)

      Access configuration parameters. Configures the type of authentication used to access content from your source location.

      • AccessType — (String)

        The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4.

        S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.

        Before you can use S3_SIGV4, you must meet these requirements:

        • You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.

        • The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.

        • The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.

        Possible values include:
        • "S3_SIGV4"
        • "SECRETS_MANAGER_ACCESS_TOKEN"
      • SecretsManagerAccessTokenConfiguration — (map)

        AWS Secrets Manager access token configuration parameters.

        • HeaderName — (String)

          The name of the HTTP header used to supply the access token in requests to the source location.

        • SecretArn — (String)

          The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

        • SecretStringKey — (String)

          The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

    • DefaultSegmentDeliveryConfiguration — (map)

      The optional configuration for the server that serves segments.

      • BaseUrl — (String)

        The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.

    • HttpConfiguration — (map)

      The source's HTTP package configurations.

      • BaseUrlrequired — (String)

        The base URL for the source location host server. This string must include the protocol, such as https://.

    • SegmentDeliveryConfigurations — (Array<map>)

      A list of the segment delivery configurations associated with this resource.

      • BaseUrl — (String)

        The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

      • Name — (String)

        A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

    • SourceLocationName — (String)

      The name associated with the source location.

    • Tags — (map<String>)

      The tags to assign to the source location. 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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AccessConfiguration — (map)

        Access configuration parameters. Configures the type of authentication used to access content from your source location.

        • AccessType — (String)

          The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4.

          S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.

          Before you can use S3_SIGV4, you must meet these requirements:

          • You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.

          • The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.

          • The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.

          Possible values include:
          • "S3_SIGV4"
          • "SECRETS_MANAGER_ACCESS_TOKEN"
        • SecretsManagerAccessTokenConfiguration — (map)

          AWS Secrets Manager access token configuration parameters.

          • HeaderName — (String)

            The name of the HTTP header used to supply the access token in requests to the source location.

          • SecretArn — (String)

            The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

          • SecretStringKey — (String)

            The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

      • Arn — (String)

        The ARN to assign to the source location.

      • CreationTime — (Date)

        The time the source location was created.

      • DefaultSegmentDeliveryConfiguration — (map)

        The optional configuration for the server that serves segments.

        • BaseUrl — (String)

          The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.

      • HttpConfiguration — (map)

        The source's HTTP package configurations.

        • BaseUrlrequired — (String)

          The base URL for the source location host server. This string must include the protocol, such as https://.

      • LastModifiedTime — (Date)

        The time the source location was last modified.

      • SegmentDeliveryConfigurations — (Array<map>)

        The segment delivery configurations for the source location. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.

        • BaseUrl — (String)

          The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

        • Name — (String)

          A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

      • SourceLocationName — (String)

        The name to assign to the source location.

      • Tags — (map<String>)

        The tags to assign to the source location. 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createVodSource(params = {}, callback) ⇒ AWS.Request

The VOD source configuration parameters.

Service Reference:

Examples:

Calling the createVodSource operation

var params = {
  HttpPackageConfigurations: [ /* required */
    {
      Path: 'STRING_VALUE', /* required */
      SourceGroup: 'STRING_VALUE', /* required */
      Type: DASH | HLS /* required */
    },
    /* more items */
  ],
  SourceLocationName: 'STRING_VALUE', /* required */
  VodSourceName: 'STRING_VALUE', /* required */
  Tags: {
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  }
};
mediatailor.createVodSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HttpPackageConfigurations — (Array<map>)

      A list of HTTP package configuration parameters for this VOD source.

      • Pathrequired — (String)

        The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

      • SourceGrouprequired — (String)

        The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

      • Typerequired — (String)

        The streaming protocol for this package configuration. Supported values are HLS and DASH.

        Possible values include:
        • "DASH"
        • "HLS"
    • SourceLocationName — (String)

      The name of the source location for this VOD source.

    • Tags — (map<String>)

      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)

      The name associated with the VOD source.>

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The ARN to assign to this VOD source.

      • CreationTime — (Date)

        The time the VOD source was created.

      • HttpPackageConfigurations — (Array<map>)

        A list of HTTP package configuration parameters for this VOD source.

        • Pathrequired — (String)

          The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

        • SourceGrouprequired — (String)

          The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

        • Typerequired — (String)

          The streaming protocol for this package configuration. Supported values are HLS and DASH.

          Possible values include:
          • "DASH"
          • "HLS"
      • LastModifiedTime — (Date)

        The time the VOD source was last modified.

      • SourceLocationName — (String)

        The name to assign to the source location for this VOD source.

      • Tags — (map<String>)

        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)

        The name to assign to the VOD source.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteChannel(params = {}, callback) ⇒ AWS.Request

Deletes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the deleteChannel operation

var params = {
  ChannelName: 'STRING_VALUE' /* required */
};
mediatailor.deleteChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteChannelPolicy(params = {}, callback) ⇒ AWS.Request

The channel policy to delete.

Service Reference:

Examples:

Calling the deleteChannelPolicy operation

var params = {
  ChannelName: 'STRING_VALUE' /* required */
};
mediatailor.deleteChannelPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel associated with this channel policy.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteLiveSource(params = {}, callback) ⇒ AWS.Request

The live source to delete.

Service Reference:

Examples:

Calling the deleteLiveSource operation

var params = {
  LiveSourceName: 'STRING_VALUE', /* required */
  SourceLocationName: 'STRING_VALUE' /* required */
};
mediatailor.deleteLiveSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • LiveSourceName — (String)

      The name of the live source.

    • SourceLocationName — (String)

      The name of the source location associated with this Live Source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deletePlaybackConfiguration(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deletePlaybackConfiguration operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
mediatailor.deletePlaybackConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the playback configuration.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deletePrefetchSchedule(params = {}, callback) ⇒ AWS.Request

Deletes a prefetch schedule for a specific playback configuration. If you call DeletePrefetchSchedule on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the deletePrefetchSchedule operation

var params = {
  Name: 'STRING_VALUE', /* required */
  PlaybackConfigurationName: 'STRING_VALUE' /* required */
};
mediatailor.deletePrefetchSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the prefetch schedule. If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.

    • PlaybackConfigurationName — (String)

      The name of the playback configuration for this prefetch schedule.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteProgram(params = {}, callback) ⇒ AWS.Request

Deletes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the deleteProgram operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  ProgramName: 'STRING_VALUE' /* required */
};
mediatailor.deleteProgram(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

    • ProgramName — (String)

      The name of the program.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteSourceLocation(params = {}, callback) ⇒ AWS.Request

Deletes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the deleteSourceLocation operation

var params = {
  SourceLocationName: 'STRING_VALUE' /* required */
};
mediatailor.deleteSourceLocation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SourceLocationName — (String)

      The name of the source location.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteVodSource(params = {}, callback) ⇒ AWS.Request

The video on demand (VOD) source to delete.

Service Reference:

Examples:

Calling the deleteVodSource operation

var params = {
  SourceLocationName: 'STRING_VALUE', /* required */
  VodSourceName: 'STRING_VALUE' /* required */
};
mediatailor.deleteVodSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SourceLocationName — (String)

      The name of the source location associated with this VOD Source.

    • VodSourceName — (String)

      The name of the VOD source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeChannel(params = {}, callback) ⇒ AWS.Request

Describes a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the describeChannel operation

var params = {
  ChannelName: 'STRING_VALUE' /* required */
};
mediatailor.describeChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The ARN of the channel.

      • ChannelName — (String)

        The name of the channel.

      • ChannelState — (String)

        Indicates whether the channel is in a running state or not.

        Possible values include:
        • "RUNNING"
        • "STOPPED"
      • CreationTime — (Date)

        The timestamp of when the channel was created.

      • FillerSlate — (map)

        Contains information about the slate used to fill gaps between programs in the schedule.

        • SourceLocationName — (String)

          The name of the source location where the slate VOD source is stored.

        • VodSourceName — (String)

          The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

      • LastModifiedTime — (Date)

        The timestamp of when the channel was last modified.

      • Outputs — (Array<map>)

        The channel's output properties.

        • DashPlaylistSettings — (map)

          DASH manifest configuration settings.

          • ManifestWindowSeconds — (Integer)

            The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

          • MinBufferTimeSeconds — (Integer)

            Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • MinUpdatePeriodSeconds — (Integer)

            Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • SuggestedPresentationDelaySeconds — (Integer)

            Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • HlsPlaylistSettings — (map)

          HLS manifest configuration settings.

          • ManifestWindowSeconds — (Integer)

            The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

        • ManifestNamerequired — (String)

          The name of the manifest for the channel that will appear in the channel output's playback URL.

        • PlaybackUrlrequired — (String)

          The URL used for playback by content players.

        • SourceGrouprequired — (String)

          A string used to associate a package configuration source group with a channel output.

      • PlaybackMode — (String)

        The channel's playback mode.

      • Tags — (map<String>)

        The tags assigned to the channel. 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.

      • Tier — (String)

        The channel's tier.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeLiveSource(params = {}, callback) ⇒ AWS.Request

The live source to describe.

Service Reference:

Examples:

Calling the describeLiveSource operation

var params = {
  LiveSourceName: 'STRING_VALUE', /* required */
  SourceLocationName: 'STRING_VALUE' /* required */
};
mediatailor.describeLiveSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • LiveSourceName — (String)

      The name of the live source.

    • SourceLocationName — (String)

      The name of the source location associated with this Live Source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The ARN of the live source.

      • CreationTime — (Date)

        The timestamp that indicates when the live source was created.

      • HttpPackageConfigurations — (Array<map>)

        The HTTP package configurations.

        • Pathrequired — (String)

          The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

        • SourceGrouprequired — (String)

          The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

        • Typerequired — (String)

          The streaming protocol for this package configuration. Supported values are HLS and DASH.

          Possible values include:
          • "DASH"
          • "HLS"
      • LastModifiedTime — (Date)

        The timestamp that indicates when the live source was modified.

      • LiveSourceName — (String)

        The name of the live source.

      • SourceLocationName — (String)

        The name of the source location associated with the live source.

      • Tags — (map<String>)

        The tags assigned to the live 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeProgram(params = {}, callback) ⇒ AWS.Request

Describes a program within a channel. For information about programs, see Working with programs in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the describeProgram operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  ProgramName: 'STRING_VALUE' /* required */
};
mediatailor.describeProgram(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel associated with this Program.

    • ProgramName — (String)

      The name of the program.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AdBreaks — (Array<map>)

        The ad break configuration settings.

        • MessageType — (String)

          The SCTE-35 ad insertion type. Accepted value: SPLICE_INSERT, TIME_SIGNAL.

          Possible values include:
          • "SPLICE_INSERT"
          • "TIME_SIGNAL"
        • OffsetMillis — (Integer)

          How long (in milliseconds) after the beginning of the program that an ad starts. This value must fall within 100ms of a segment boundary, otherwise the ad break will be skipped.

        • Slate — (map)

          Ad break slate configuration.

          • SourceLocationName — (String)

            The name of the source location where the slate VOD source is stored.

          • VodSourceName — (String)

            The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

        • SpliceInsertMessage — (map)

          This defines the SCTE-35 splice_insert() message inserted around the ad. For information about using splice_insert(), see the SCTE-35 specficiaiton, section 9.7.3.1.

          • AvailNum — (Integer)

            This is written to splice_insert.avail_num, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

          • AvailsExpected — (Integer)

            This is written to splice_insert.avails_expected, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

          • SpliceEventId — (Integer)

            This is written to splice_insert.splice_event_id, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 1.

          • UniqueProgramId — (Integer)

            This is written to splice_insert.unique_program_id, as defined in section 9.7.3.1 of the SCTE-35 specification. The default value is 0. Values must be between 0 and 256, inclusive.

        • TimeSignalMessage — (map)

          Defines the SCTE-35 time_signal message inserted around the ad.

          Programs on a channel's schedule can be configured with one or more ad breaks. You can attach a splice_insert SCTE-35 message to the ad break. This message provides basic metadata about the ad break.

          See section 9.7.4 of the 2022 SCTE-35 specification for more information.

          • SegmentationDescriptors — (Array<map>)

            The configurations for the SCTE-35 segmentation_descriptor message(s) sent with the time_signal message.

            • SegmentNum — (Integer)

              The segment number to assign to the segmentation_descriptor.segment_num message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification Values must be between 0 and 256, inclusive. The default value is 0.

            • SegmentationEventId — (Integer)

              The Event Identifier to assign to the segmentation_descriptor.segmentation_event_id message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. The default value is 1.

            • SegmentationTypeId — (Integer)

              The Type Identifier to assign to the segmentation_descriptor.segmentation_type_id message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is 48.

            • SegmentationUpid — (String)

              The Upid to assign to the segmentation_descriptor.segmentation_upid message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. The value must be a hexadecimal string containing only the characters 0 though 9 and A through F. The default value is "" (an empty string).

            • SegmentationUpidType — (Integer)

              The Upid Type to assign to the segmentation_descriptor.segmentation_upid_type message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is 14.

            • SegmentsExpected — (Integer)

              The number of segments expected, which is assigned to the segmentation_descriptor.segments_expectedS message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification Values must be between 0 and 256, inclusive. The default value is 0.

            • SubSegmentNum — (Integer)

              The sub-segment number to assign to the segmentation_descriptor.sub_segment_num message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The defualt value is null.

            • SubSegmentsExpected — (Integer)

              The number of sub-segments expected, which is assigned to the segmentation_descriptor.sub_segments_expected message, as defined in section 10.3.3.1 of the 2022 SCTE-35 specification. Values must be between 0 and 256, inclusive. The default value is null.

      • Arn — (String)

        The ARN of the program.

      • ChannelName — (String)

        The name of the channel that the program belongs to.

      • CreationTime — (Date)

        The timestamp of when the program was created.

      • LiveSourceName — (String)

        The name of the LiveSource for this Program.

      • ProgramName — (String)

        The name of the program.

      • ScheduledStartTime — (Date)

        The date and time that the program is scheduled to start in ISO 8601 format and Coordinated Universal Time (UTC). For example, the value 2021-03-27T17:48:16.751Z represents March 27, 2021 at 17:48:16.751 UTC.

      • SourceLocationName — (String)

        The source location name.

      • VodSourceName — (String)

        The name that's used to refer to a VOD source.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSourceLocation(params = {}, callback) ⇒ AWS.Request

Describes a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the describeSourceLocation operation

var params = {
  SourceLocationName: 'STRING_VALUE' /* required */
};
mediatailor.describeSourceLocation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SourceLocationName — (String)

      The name of the source location.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AccessConfiguration — (map)

        The access configuration for the source location.

        • AccessType — (String)

          The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4.

          S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.

          Before you can use S3_SIGV4, you must meet these requirements:

          • You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.

          • The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.

          • The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.

          Possible values include:
          • "S3_SIGV4"
          • "SECRETS_MANAGER_ACCESS_TOKEN"
        • SecretsManagerAccessTokenConfiguration — (map)

          AWS Secrets Manager access token configuration parameters.

          • HeaderName — (String)

            The name of the HTTP header used to supply the access token in requests to the source location.

          • SecretArn — (String)

            The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

          • SecretStringKey — (String)

            The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

      • Arn — (String)

        The ARN of the source location.

      • CreationTime — (Date)

        The timestamp that indicates when the source location was created.

      • DefaultSegmentDeliveryConfiguration — (map)

        The default segment delivery configuration settings.

        • BaseUrl — (String)

          The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.

      • HttpConfiguration — (map)

        The HTTP package configuration settings for the source location.

        • BaseUrlrequired — (String)

          The base URL for the source location host server. This string must include the protocol, such as https://.

      • LastModifiedTime — (Date)

        The timestamp that indicates when the source location was last modified.

      • SegmentDeliveryConfigurations — (Array<map>)

        A list of the segment delivery configurations associated with this resource.

        • BaseUrl — (String)

          The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

        • Name — (String)

          A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

      • SourceLocationName — (String)

        The name of the source location.

      • Tags — (map<String>)

        The tags assigned to the source location. 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeVodSource(params = {}, callback) ⇒ AWS.Request

Provides details about a specific video on demand (VOD) source in a specific source location.

Service Reference:

Examples:

Calling the describeVodSource operation

var params = {
  SourceLocationName: 'STRING_VALUE', /* required */
  VodSourceName: 'STRING_VALUE' /* required */
};
mediatailor.describeVodSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SourceLocationName — (String)

      The name of the source location associated with this VOD Source.

    • VodSourceName — (String)

      The name of the VOD Source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The ARN of the VOD source.

      • CreationTime — (Date)

        The timestamp that indicates when the VOD source was created.

      • HttpPackageConfigurations — (Array<map>)

        The HTTP package configurations.

        • Pathrequired — (String)

          The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

        • SourceGrouprequired — (String)

          The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

        • Typerequired — (String)

          The streaming protocol for this package configuration. Supported values are HLS and DASH.

          Possible values include:
          • "DASH"
          • "HLS"
      • LastModifiedTime — (Date)

        The last modified time of the VOD source.

      • SourceLocationName — (String)

        The name of the source location associated with the VOD source.

      • Tags — (map<String>)

        The tags assigned 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)

        The name of the VOD source.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getChannelPolicy(params = {}, callback) ⇒ AWS.Request

Returns the channel's IAM policy. IAM policies are used to control access to your channel.

Service Reference:

Examples:

Calling the getChannelPolicy operation

var params = {
  ChannelName: 'STRING_VALUE' /* required */
};
mediatailor.getChannelPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel associated with this Channel Policy.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Policy — (String)

        The IAM policy for the channel. IAM policies are used to control access to your channel.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getChannelSchedule(params = {}, callback) ⇒ AWS.Request

Retrieves information about your channel's schedule.

Service Reference:

Examples:

Calling the getChannelSchedule operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  DurationMinutes: 'STRING_VALUE',
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.getChannelSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel associated with this Channel Schedule.

    • DurationMinutes — (String)

      The duration in minutes of the channel schedule.

    • MaxResults — (Integer)

      The maximum number of channel schedules that you want MediaTailor to return in response to the current request. If there are more than MaxResults channel schedules, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      (Optional) If the playback configuration has more than MaxResults channel schedules, use NextToken to get the second and subsequent pages of results.

      For the first GetChannelScheduleRequest request, omit this value.

      For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.

      If the previous response didn't include a NextToken element, there are no more channel schedules to get.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        A list of schedule entries for the channel.

        • ApproximateDurationSeconds — (Integer)

          The approximate duration of this program, in seconds.

        • ApproximateStartTime — (Date)

          The approximate time that the program will start playing.

        • Arnrequired — (String)

          The ARN of the program.

        • ChannelNamerequired — (String)

          The name of the channel that uses this schedule.

        • LiveSourceName — (String)

          The name of the live source used for the program.

        • ProgramNamerequired — (String)

          The name of the program.

        • ScheduleAdBreaks — (Array<map>)

          The schedule's ad break properties.

          • ApproximateDurationSeconds — (Integer)

            The approximate duration of the ad break, in seconds.

          • ApproximateStartTime — (Date)

            The approximate time that the ad will start playing.

          • SourceLocationName — (String)

            The name of the source location containing the VOD source used for the ad break.

          • VodSourceName — (String)

            The name of the VOD source used for the ad break.

        • ScheduleEntryType — (String)

          The type of schedule entry.

          Possible values include:
          • "PROGRAM"
          • "FILLER_SLATE"
        • SourceLocationNamerequired — (String)

          The name of the source location.

        • VodSourceName — (String)

          The name of the VOD source.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getPlaybackConfiguration(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the getPlaybackConfiguration operation

var params = {
  Name: 'STRING_VALUE' /* required */
};
mediatailor.getPlaybackConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The identifier for the playback configuration.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AdDecisionServerUrl — (String)

        The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.

      • AvailSuppression — (map)

        The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.

        • Mode — (String)

          Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.

          Possible values include:
          • "OFF"
          • "BEHIND_LIVE_EDGE"
        • Value — (String)

          A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.

      • Bumper — (map)

        The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.

        • EndUrl — (String)

          The URL for the end bumper asset.

        • StartUrl — (String)

          The URL for the start bumper asset.

      • CdnConfiguration — (map)

        The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

        • AdSegmentUrlPrefix — (String)

          A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

        • ContentSegmentUrlPrefix — (String)

          A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.

      • ConfigurationAliases — (map<map<String>>)

        The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

      • DashConfiguration — (map)

        The configuration for DASH content.

        • ManifestEndpointPrefix — (String)

          The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.

        • MpdLocation — (String)

          The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.

        • OriginManifestType — (String)

          The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.

          Possible values include:
          • "SINGLE_PERIOD"
          • "MULTI_PERIOD"
      • HlsConfiguration — (map)

        The configuration for HLS content.

        • ManifestEndpointPrefix — (String)

          The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.

      • LivePreRollConfiguration — (map)

        The configuration for pre-roll ad insertion.

        • AdDecisionServerUrl — (String)

          The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.

        • MaxDurationSeconds — (Integer)

          The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.

      • LogConfiguration — (map)

        The Amazon CloudWatch log settings for a playback configuration.

        • PercentEnabledrequired — (Integer)

          The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode.

          Valid values: 0 - 100

      • ManifestProcessingRules — (map)

        The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.

        • AdMarkerPassthrough — (map)

          For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.

          No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.

          • Enabled — (Boolean)

            Enables ad marker passthrough for your configuration.

      • Name — (String)

        The identifier for the playback configuration.

      • PersonalizationThresholdSeconds — (Integer)

        Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.

      • PlaybackConfigurationArn — (String)

        The Amazon Resource Name (ARN) for the playback configuration.

      • PlaybackEndpointPrefix — (String)

        The URL that the player accesses to get a manifest from AWS Elemental MediaTailor. This session will use server-side reporting.

      • SessionInitializationEndpointPrefix — (String)

        The URL that the player uses to initialize a session that uses client-side reporting.

      • SlateAdUrl — (String)

        The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.

      • Tags — (map<String>)

        The tags assigned to the playback configuration. 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.

      • TranscodeProfileName — (String)

        The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

      • VideoContentSourceUrl — (String)

        The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getPrefetchSchedule(params = {}, callback) ⇒ AWS.Request

Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using ad prefetching in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the getPrefetchSchedule operation

var params = {
  Name: 'STRING_VALUE', /* required */
  PlaybackConfigurationName: 'STRING_VALUE' /* required */
};
mediatailor.getPrefetchSchedule(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated with the specified playback configuration.

    • PlaybackConfigurationName — (String)

      Returns information about the prefetch schedule for a specific playback configuration. If you call GetPrefetchSchedule on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The Amazon Resource Name (ARN) of the prefetch schedule.

      • Consumption — (map)

        Consumption settings determine how, and when, MediaTailor places the prefetched ads into ad breaks. Ad consumption occurs within a span of time that you define, called a consumption window. You can designate which ad breaks that MediaTailor fills with prefetch ads by setting avail matching criteria.

        • AvailMatchingCriteria — (Array<map>)

          If you only want MediaTailor to insert prefetched ads into avails (ad breaks) that match specific dynamic variables, such as scte.event_id, set the avail matching criteria.

          • DynamicVariablerequired — (String)

            The dynamic variable(s) that MediaTailor should use as avail matching criteria. MediaTailor only places the prefetched ads into the avail if the avail matches the criteria defined by the dynamic variable. For information about dynamic variables, see Using dynamic ad variables in the MediaTailor User Guide.

            You can include up to 100 dynamic variables.

          • Operatorrequired — (String)

            For the DynamicVariable specified in AvailMatchingCriteria, the Operator that is used for the comparison.

            Possible values include:
            • "EQUALS"
        • EndTimerequired — (Date)

          The time when MediaTailor no longer considers the prefetched ads for use in an ad break. MediaTailor automatically deletes prefetch schedules no less than seven days after the end time. If you'd like to manually delete the prefetch schedule, you can call DeletePrefetchSchedule.

        • StartTime — (Date)

          The time when prefetched ads are considered for use in an ad break. If you don't specify StartTime, the prefetched ads are available after MediaTailor retrives them from the ad decision server.

      • Name — (String)

        The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated with the specified playback configuration.

      • PlaybackConfigurationName — (String)

        The name of the playback configuration to create the prefetch schedule for.

      • Retrieval — (map)

        A complex type that contains settings for prefetch retrieval from the ad decision server (ADS).

        • DynamicVariables — (map<String>)

          The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

          You initially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

        • EndTimerequired — (Date)

          The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

        • StartTime — (Date)

          The time when prefetch retrievals can start for this break. Ad prefetching will be attempted for manifest requests that occur at or after this time. Defaults to the current time. If not specified, the prefetch retrieval starts as soon as possible.

      • StreamId — (String)

        An optional stream identifier that you can specify in order to prefetch for multiple streams that use the same playback configuration.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listAlerts(params = {}, callback) ⇒ AWS.Request

Lists the alerts that are associated with a MediaTailor channel assembly resource.

Service Reference:

Examples:

Calling the listAlerts operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.listAlerts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of alerts that you want MediaTailor to return in response to the current request. If there are more than MaxResults alerts, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        A list of alerts that are associated with this resource.

        • AlertCoderequired — (String)

          The code for the alert. For example, NOT_PROCESSED.

        • AlertMessagerequired — (String)

          If an alert is generated for a resource, an explanation of the reason for the alert.

        • LastModifiedTimerequired — (Date)

          The timestamp when the alert was last modified.

        • RelatedResourceArnsrequired — (Array<String>)

          The Amazon Resource Names (ARNs) related to this alert.

        • ResourceArnrequired — (String)

          The Amazon Resource Name (ARN) of the resource.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listChannels(params = {}, callback) ⇒ AWS.Request

Retrieves information about the channels that are associated with the current AWS account.

Service Reference:

Examples:

Calling the listChannels operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.listChannels(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of channels that you want MediaTailor to return in response to the current request. If there are more than MaxResults channels, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        A list of channels that are associated with this account.

        • Arnrequired — (String)

          The ARN of the channel.

        • ChannelNamerequired — (String)

          The name of the channel.

        • ChannelStaterequired — (String)

          Returns the state whether the channel is running or not.

        • CreationTime — (Date)

          The timestamp of when the channel was created.

        • FillerSlate — (map)

          The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

          • SourceLocationName — (String)

            The name of the source location where the slate VOD source is stored.

          • VodSourceName — (String)

            The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

        • LastModifiedTime — (Date)

          The timestamp of when the channel was last modified.

        • Outputsrequired — (Array<map>)

          The channel's output properties.

          • DashPlaylistSettings — (map)

            DASH manifest configuration settings.

            • ManifestWindowSeconds — (Integer)

              The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

            • MinBufferTimeSeconds — (Integer)

              Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

            • MinUpdatePeriodSeconds — (Integer)

              Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

            • SuggestedPresentationDelaySeconds — (Integer)

              Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • HlsPlaylistSettings — (map)

            HLS manifest configuration settings.

            • ManifestWindowSeconds — (Integer)

              The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

          • ManifestNamerequired — (String)

            The name of the manifest for the channel that will appear in the channel output's playback URL.

          • PlaybackUrlrequired — (String)

            The URL used for playback by content players.

          • SourceGrouprequired — (String)

            A string used to associate a package configuration source group with a channel output.

        • PlaybackModerequired — (String)

          The type of playback mode for this channel.

          LINEAR - Programs play back-to-back only once.

          LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, playback loops back to the first program in the schedule.

        • Tags — (map<String>)

          The tags to assign to the channel. 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.

        • Tierrequired — (String)

          The tier for this channel. STANDARD tier channels can contain live programs.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listLiveSources(params = {}, callback) ⇒ AWS.Request

Lists the live sources contained in a source location. A source represents a piece of content.

Service Reference:

Examples:

Calling the listLiveSources operation

var params = {
  SourceLocationName: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.listLiveSources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of live sources that you want MediaTailor to return in response to the current request. If there are more than MaxResults live sources, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

    • SourceLocationName — (String)

      The name of the source location associated with this Live Sources list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        Lists the live sources.

        • Arnrequired — (String)

          The ARN for the live source.

        • CreationTime — (Date)

          The timestamp that indicates when the live source was created.

        • HttpPackageConfigurationsrequired — (Array<map>)

          The HTTP package configurations for the live source.

          • Pathrequired — (String)

            The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

          • SourceGrouprequired — (String)

            The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

          • Typerequired — (String)

            The streaming protocol for this package configuration. Supported values are HLS and DASH.

            Possible values include:
            • "DASH"
            • "HLS"
        • LastModifiedTime — (Date)

          The timestamp that indicates when the live source was last modified.

        • LiveSourceNamerequired — (String)

          The name that's used to refer to a live source.

        • SourceLocationNamerequired — (String)

          The name of the source location.

        • Tags — (map<String>)

          The tags assigned to the live 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.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPlaybackConfigurations(params = {}, callback) ⇒ AWS.Request

Retrieves existing playback configurations. For information about MediaTailor configurations, see Working with Configurations in AWS Elemental MediaTailor.

Service Reference:

Examples:

Calling the listPlaybackConfigurations operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.listPlaybackConfigurations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of playback configurations that you want MediaTailor to return in response to the current request. If there are more than MaxResults playback configurations, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        Array of playback configurations. This might be all the available configurations or a subset, depending on the settings that you provide and the total number of configurations stored.

        • AdDecisionServerUrl — (String)

          The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.

        • AvailSuppression — (map)

          The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.

          • Mode — (String)

            Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.

            Possible values include:
            • "OFF"
            • "BEHIND_LIVE_EDGE"
          • Value — (String)

            A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.

        • Bumper — (map)

          The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.

          • EndUrl — (String)

            The URL for the end bumper asset.

          • StartUrl — (String)

            The URL for the start bumper asset.

        • CdnConfiguration — (map)

          The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

          • AdSegmentUrlPrefix — (String)

            A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

          • ContentSegmentUrlPrefix — (String)

            A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.

        • ConfigurationAliases — (map<map<String>>)

          The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

        • DashConfiguration — (map)

          The configuration for a DASH source.

          • ManifestEndpointPrefix — (String)

            The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.

          • MpdLocation — (String)

            The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.

          • OriginManifestType — (String)

            The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.

            Possible values include:
            • "SINGLE_PERIOD"
            • "MULTI_PERIOD"
        • HlsConfiguration — (map)

          The configuration for HLS content.

          • ManifestEndpointPrefix — (String)

            The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.

        • LivePreRollConfiguration — (map)

          The configuration for pre-roll ad insertion.

          • AdDecisionServerUrl — (String)

            The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.

          • MaxDurationSeconds — (Integer)

            The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.

        • LogConfiguration — (map)

          The Amazon CloudWatch log settings for a playback configuration.

          • PercentEnabledrequired — (Integer)

            The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode.

            Valid values: 0 - 100

        • ManifestProcessingRules — (map)

          The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.

          • AdMarkerPassthrough — (map)

            For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.

            No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.

            • Enabled — (Boolean)

              Enables ad marker passthrough for your configuration.

        • Name — (String)

          The identifier for the playback configuration.

        • PersonalizationThresholdSeconds — (Integer)

          Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.

        • PlaybackConfigurationArn — (String)

          The Amazon Resource Name (ARN) for the playback configuration.

        • PlaybackEndpointPrefix — (String)

          The URL that the player accesses to get a manifest from AWS Elemental MediaTailor.

        • SessionInitializationEndpointPrefix — (String)

          The URL that the player uses to initialize a session that uses client-side reporting.

        • SlateAdUrl — (String)

          The URL for a video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.

        • Tags — (map<String>)

          The tags to assign to the playback configuration. 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.

        • TranscodeProfileName — (String)

          The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

        • VideoContentSourceUrl — (String)

          The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.

      • NextToken — (String)

        Pagination token returned by the GET list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listPrefetchSchedules(params = {}, callback) ⇒ AWS.Request

Lists the prefetch schedules for a playback configuration.

Service Reference:

Examples:

Calling the listPrefetchSchedules operation

var params = {
  PlaybackConfigurationName: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  StreamId: 'STRING_VALUE'
};
mediatailor.listPrefetchSchedules(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of prefetch schedules that you want MediaTailor to return in response to the current request. If there are more than MaxResults prefetch schedules, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      (Optional) If the playback configuration has more than MaxResults prefetch schedules, use NextToken to get the second and subsequent pages of results.

      For the first ListPrefetchSchedulesRequest request, omit this value.

      For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.

      If the previous response didn't include a NextToken element, there are no more prefetch schedules to get.

    • PlaybackConfigurationName — (String)

      Retrieves the prefetch schedule(s) for a specific playback configuration.

    • StreamId — (String)

      An optional filtering parameter whereby MediaTailor filters the prefetch schedules to include only specific streams.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        Lists the prefetch schedules. An empty Items list doesn't mean there aren't more items to fetch, just that that page was empty.

        • Arnrequired — (String)

          The Amazon Resource Name (ARN) of the prefetch schedule.

        • Consumptionrequired — (map)

          Consumption settings determine how, and when, MediaTailor places the prefetched ads into ad breaks. Ad consumption occurs within a span of time that you define, called a consumption window. You can designate which ad breaks that MediaTailor fills with prefetch ads by setting avail matching criteria.

          • AvailMatchingCriteria — (Array<map>)

            If you only want MediaTailor to insert prefetched ads into avails (ad breaks) that match specific dynamic variables, such as scte.event_id, set the avail matching criteria.

            • DynamicVariablerequired — (String)

              The dynamic variable(s) that MediaTailor should use as avail matching criteria. MediaTailor only places the prefetched ads into the avail if the avail matches the criteria defined by the dynamic variable. For information about dynamic variables, see Using dynamic ad variables in the MediaTailor User Guide.

              You can include up to 100 dynamic variables.

            • Operatorrequired — (String)

              For the DynamicVariable specified in AvailMatchingCriteria, the Operator that is used for the comparison.

              Possible values include:
              • "EQUALS"
          • EndTimerequired — (Date)

            The time when MediaTailor no longer considers the prefetched ads for use in an ad break. MediaTailor automatically deletes prefetch schedules no less than seven days after the end time. If you'd like to manually delete the prefetch schedule, you can call DeletePrefetchSchedule.

          • StartTime — (Date)

            The time when prefetched ads are considered for use in an ad break. If you don't specify StartTime, the prefetched ads are available after MediaTailor retrives them from the ad decision server.

        • Namerequired — (String)

          The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated with the specified playback configuration.

        • PlaybackConfigurationNamerequired — (String)

          The name of the playback configuration to create the prefetch schedule for.

        • Retrievalrequired — (map)

          A complex type that contains settings for prefetch retrieval from the ad decision server (ADS).

          • DynamicVariables — (map<String>)

            The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

            You initially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

          • EndTimerequired — (Date)

            The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

          • StartTime — (Date)

            The time when prefetch retrievals can start for this break. Ad prefetching will be attempted for manifest requests that occur at or after this time. Defaults to the current time. If not specified, the prefetch retrieval starts as soon as possible.

        • StreamId — (String)

          An optional stream identifier that you can specify in order to prefetch for multiple streams that use the same playback configuration.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSourceLocations(params = {}, callback) ⇒ AWS.Request

Lists the source locations for a channel. A source location defines the host server URL, and contains a list of sources.

Service Reference:

Examples:

Calling the listSourceLocations operation

var params = {
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.listSourceLocations(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of source locations that you want MediaTailor to return in response to the current request. If there are more than MaxResults source locations, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        A list of source locations.

        • AccessConfiguration — (map)

          The access configuration for the source location.

          • AccessType — (String)

            The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4.

            S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.

            Before you can use S3_SIGV4, you must meet these requirements:

            • You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.

            • The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.

            • The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.

            Possible values include:
            • "S3_SIGV4"
            • "SECRETS_MANAGER_ACCESS_TOKEN"
          • SecretsManagerAccessTokenConfiguration — (map)

            AWS Secrets Manager access token configuration parameters.

            • HeaderName — (String)

              The name of the HTTP header used to supply the access token in requests to the source location.

            • SecretArn — (String)

              The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

            • SecretStringKey — (String)

              The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

        • Arnrequired — (String)

          The ARN of the SourceLocation.

        • CreationTime — (Date)

          The timestamp that indicates when the source location was created.

        • DefaultSegmentDeliveryConfiguration — (map)

          The default segment delivery configuration.

          • BaseUrl — (String)

            The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.

        • HttpConfigurationrequired — (map)

          The HTTP configuration for the source location.

          • BaseUrlrequired — (String)

            The base URL for the source location host server. This string must include the protocol, such as https://.

        • LastModifiedTime — (Date)

          The timestamp that indicates when the source location was last modified.

        • SegmentDeliveryConfigurations — (Array<map>)

          The segment delivery configurations for the source location.

          • BaseUrl — (String)

            The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

          • Name — (String)

            A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

        • SourceLocationNamerequired — (String)

          The name of the source location.

        • Tags — (map<String>)

          The tags assigned to the source location. 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.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

A list of tags that are associated with this resource. 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.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceArn: 'STRING_VALUE' /* required */
};
mediatailor.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) associated with this resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (map<String>)

        The tags associated with this resource. 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listVodSources(params = {}, callback) ⇒ AWS.Request

Lists the VOD sources contained in a source location. A source represents a piece of content.

Service Reference:

Examples:

Calling the listVodSources operation

var params = {
  SourceLocationName: 'STRING_VALUE', /* required */
  MaxResults: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
mediatailor.listVodSources(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • MaxResults — (Integer)

      The maximum number of VOD sources that you want MediaTailor to return in response to the current request. If there are more than MaxResults VOD sources, use the value of NextToken in the response to get the next page of results.

    • NextToken — (String)

      Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

    • SourceLocationName — (String)

      The name of the source location associated with this VOD Source list.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Items — (Array<map>)

        Lists the VOD sources.

        • Arnrequired — (String)

          The ARN for the VOD source.

        • CreationTime — (Date)

          The timestamp that indicates when the VOD source was created.

        • HttpPackageConfigurationsrequired — (Array<map>)

          The HTTP package configurations for the VOD source.

          • Pathrequired — (String)

            The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

          • SourceGrouprequired — (String)

            The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

          • Typerequired — (String)

            The streaming protocol for this package configuration. Supported values are HLS and DASH.

            Possible values include:
            • "DASH"
            • "HLS"
        • LastModifiedTime — (Date)

          The timestamp that indicates when the VOD source was last modified.

        • SourceLocationNamerequired — (String)

          The name of the source location that the VOD source is associated with.

        • Tags — (map<String>)

          The tags assigned 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.

        • VodSourceNamerequired — (String)

          The name of the VOD source.

      • NextToken — (String)

        Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putChannelPolicy(params = {}, callback) ⇒ AWS.Request

Creates an IAM policy for the channel. IAM policies are used to control access to your channel.

Service Reference:

Examples:

Calling the putChannelPolicy operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  Policy: 'STRING_VALUE' /* required */
};
mediatailor.putChannelPolicy(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The channel name associated with this Channel Policy.

    • Policy — (String)

      Adds an IAM role that determines the permissions of your channel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

putPlaybackConfiguration(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the putPlaybackConfiguration operation

var params = {
  Name: 'STRING_VALUE', /* required */
  AdDecisionServerUrl: 'STRING_VALUE',
  AvailSuppression: {
    Mode: OFF | BEHIND_LIVE_EDGE,
    Value: 'STRING_VALUE'
  },
  Bumper: {
    EndUrl: 'STRING_VALUE',
    StartUrl: 'STRING_VALUE'
  },
  CdnConfiguration: {
    AdSegmentUrlPrefix: 'STRING_VALUE',
    ContentSegmentUrlPrefix: 'STRING_VALUE'
  },
  ConfigurationAliases: {
    '<__string>': {
      '<__string>': 'STRING_VALUE',
      /* '<__string>': ... */
    },
    /* '<__string>': ... */
  },
  DashConfiguration: {
    MpdLocation: 'STRING_VALUE',
    OriginManifestType: SINGLE_PERIOD | MULTI_PERIOD
  },
  LivePreRollConfiguration: {
    AdDecisionServerUrl: 'STRING_VALUE',
    MaxDurationSeconds: 'NUMBER_VALUE'
  },
  ManifestProcessingRules: {
    AdMarkerPassthrough: {
      Enabled: true || false
    }
  },
  PersonalizationThresholdSeconds: 'NUMBER_VALUE',
  SlateAdUrl: 'STRING_VALUE',
  Tags: {
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  },
  TranscodeProfileName: 'STRING_VALUE',
  VideoContentSourceUrl: 'STRING_VALUE'
};
mediatailor.putPlaybackConfiguration(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AdDecisionServerUrl — (String)

      The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.

    • AvailSuppression — (map)

      The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.

      • Mode — (String)

        Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.

        Possible values include:
        • "OFF"
        • "BEHIND_LIVE_EDGE"
      • Value — (String)

        A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.

    • Bumper — (map)

      The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.

      • EndUrl — (String)

        The URL for the end bumper asset.

      • StartUrl — (String)

        The URL for the start bumper asset.

    • CdnConfiguration — (map)

      The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

      • AdSegmentUrlPrefix — (String)

        A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

      • ContentSegmentUrlPrefix — (String)

        A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.

    • ConfigurationAliases — (map<map<String>>)

      The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

    • DashConfiguration — (map)

      The configuration for DASH content.

      • MpdLocation — (String)

        The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.

      • OriginManifestType — (String)

        The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.

        Possible values include:
        • "SINGLE_PERIOD"
        • "MULTI_PERIOD"
    • LivePreRollConfiguration — (map)

      The configuration for pre-roll ad insertion.

      • AdDecisionServerUrl — (String)

        The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.

      • MaxDurationSeconds — (Integer)

        The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.

    • ManifestProcessingRules — (map)

      The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.

      • AdMarkerPassthrough — (map)

        For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.

        No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.

        • Enabled — (Boolean)

          Enables ad marker passthrough for your configuration.

    • Name — (String)

      The identifier for the playback configuration.

    • PersonalizationThresholdSeconds — (Integer)

      Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.

    • SlateAdUrl — (String)

      The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.

    • Tags — (map<String>)

      The tags to assign to the playback configuration. 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.

    • TranscodeProfileName — (String)

      The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

    • VideoContentSourceUrl — (String)

      The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AdDecisionServerUrl — (String)

        The URL for the ad decision server (ADS). This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.

      • AvailSuppression — (map)

        The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression.

        • Mode — (String)

          Sets the ad suppression mode. By default, ad suppression is off and all ad breaks are filled with ads or slate. When Mode is set to BEHIND_LIVE_EDGE, ad suppression is active and MediaTailor won't fill ad breaks on or behind the ad suppression Value time in the manifest lookback window.

          Possible values include:
          • "OFF"
          • "BEHIND_LIVE_EDGE"
        • Value — (String)

          A live edge offset time in HH:MM:SS. MediaTailor won't fill ad breaks on or behind this time in the manifest lookback window. If Value is set to 00:00:00, it is in sync with the live edge, and MediaTailor won't fill any ad breaks on or behind the live edge. If you set a Value time, MediaTailor won't fill any ad breaks on or behind this time in the manifest lookback window. For example, if you set 00:45:00, then MediaTailor will fill ad breaks that occur within 45 minutes behind the live edge, but won't fill ad breaks on or behind 45 minutes behind the live edge.

      • Bumper — (map)

        The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers.

        • EndUrl — (String)

          The URL for the end bumper asset.

        • StartUrl — (String)

          The URL for the start bumper asset.

      • CdnConfiguration — (map)

        The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.

        • AdSegmentUrlPrefix — (String)

          A non-default content delivery network (CDN) to serve ad segments. By default, AWS Elemental MediaTailor uses Amazon CloudFront with default cache settings as its CDN for ad segments. To set up an alternate CDN, create a rule in your CDN for the origin ads.mediatailor.<region>.amazonaws.com. Then specify the rule's name in this AdSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for ad segments.

        • ContentSegmentUrlPrefix — (String)

          A content delivery network (CDN) to cache content segments, so that content requests don’t always have to go to the origin server. First, create a rule in your CDN for the content segment origin server. Then specify the rule's name in this ContentSegmentUrlPrefix. When AWS Elemental MediaTailor serves a manifest, it reports your CDN as the source for content segments.

      • ConfigurationAliases — (map<map<String>>)

        The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables.

      • DashConfiguration — (map)

        The configuration for DASH content.

        • ManifestEndpointPrefix — (String)

          The URL generated by MediaTailor to initiate a playback session. The session uses server-side reporting. This setting is ignored in PUT operations.

        • MpdLocation — (String)

          The setting that controls whether MediaTailor includes the Location tag in DASH manifests. MediaTailor populates the Location tag with the URL for manifest update requests, to be used by players that don't support sticky redirects. Disable this if you have CDN routing rules set up for accessing MediaTailor manifests, and you are either using client-side reporting or your players support sticky HTTP redirects. Valid values are DISABLED and EMT_DEFAULT. The EMT_DEFAULT setting enables the inclusion of the tag and is the default value.

        • OriginManifestType — (String)

          The setting that controls whether MediaTailor handles manifests from the origin server as multi-period manifests or single-period manifests. If your origin server produces single-period manifests, set this to SINGLE_PERIOD. The default setting is MULTI_PERIOD. For multi-period manifests, omit this setting or set it to MULTI_PERIOD.

          Possible values include:
          • "SINGLE_PERIOD"
          • "MULTI_PERIOD"
      • HlsConfiguration — (map)

        The configuration for HLS content.

        • ManifestEndpointPrefix — (String)

          The URL that is used to initiate a playback session for devices that support Apple HLS. The session uses server-side reporting.

      • LivePreRollConfiguration — (map)

        The configuration for pre-roll ad insertion.

        • AdDecisionServerUrl — (String)

          The URL for the ad decision server (ADS) for pre-roll ads. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing, you can provide a static VAST URL. The maximum length is 25,000 characters.

        • MaxDurationSeconds — (Integer)

          The maximum allowed duration for the pre-roll ad avail. AWS Elemental MediaTailor won't play pre-roll ads to exceed this duration, regardless of the total duration of ads that the ADS returns.

      • LogConfiguration — (map)

        The Amazon CloudWatch log settings for a playback configuration.

        • PercentEnabledrequired — (Integer)

          The percentage of session logs that MediaTailor sends to your Cloudwatch Logs account. For example, if your playback configuration has 1000 sessions and percentEnabled is set to 60, MediaTailor sends logs for 600 of the sessions to CloudWatch Logs. MediaTailor decides at random which of the playback configuration sessions to send logs for. If you want to view logs for a specific session, you can use the debug log mode.

          Valid values: 0 - 100

      • ManifestProcessingRules — (map)

        The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.

        • AdMarkerPassthrough — (map)

          For HLS, when set to true, MediaTailor passes through EXT-X-CUE-IN, EXT-X-CUE-OUT, and EXT-X-SPLICEPOINT-SCTE35 ad markers from the origin manifest to the MediaTailor personalized manifest.

          No logic is applied to these ad markers. For example, if EXT-X-CUE-OUT has a value of 60, but no ads are filled for that ad break, MediaTailor will not set the value to 0.

          • Enabled — (Boolean)

            Enables ad marker passthrough for your configuration.

      • Name — (String)

        The identifier for the playback configuration.

      • PersonalizationThresholdSeconds — (Integer)

        Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor.

      • PlaybackConfigurationArn — (String)

        The Amazon Resource Name (ARN) associated with the playback configuration.

      • PlaybackEndpointPrefix — (String)

        The playback endpoint prefix associated with the playback configuration.

      • SessionInitializationEndpointPrefix — (String)

        The session initialization endpoint prefix associated with the playback configuration.

      • SlateAdUrl — (String)

        The URL for a high-quality video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID configurations. For VPAID, the slate is required because MediaTailor provides it in the slots that are designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.

      • Tags — (map<String>)

        The tags to assign to the playback configuration. 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.

      • TranscodeProfileName — (String)

        The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.

      • VideoContentSourceUrl — (String)

        The URL prefix for the parent manifest for the stream, minus the asset ID. The maximum length is 512 characters.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startChannel(params = {}, callback) ⇒ AWS.Request

Starts a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the startChannel operation

var params = {
  ChannelName: 'STRING_VALUE' /* required */
};
mediatailor.startChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

stopChannel(params = {}, callback) ⇒ AWS.Request

Stops a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the stopChannel operation

var params = {
  ChannelName: 'STRING_VALUE' /* required */
};
mediatailor.stopChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

tagResource(params = {}, callback) ⇒ AWS.Request

The resource to tag. 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.

Service Reference:

Examples:

Calling the tagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  Tags: { /* required */
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  }
};
mediatailor.tagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) associated with the resource.

    • Tags — (map<String>)

      The tags to assign to the resource. 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.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

untagResource(params = {}, callback) ⇒ AWS.Request

The resource to untag.

Service Reference:

Examples:

Calling the untagResource operation

var params = {
  ResourceArn: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
mediatailor.untagResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceArn — (String)

      The Amazon Resource Name (ARN) of the resource to untag.

    • TagKeys — (Array<String>)

      The tag keys associated with the resource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateChannel(params = {}, callback) ⇒ AWS.Request

Updates a channel. For information about MediaTailor channels, see Working with channels in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the updateChannel operation

var params = {
  ChannelName: 'STRING_VALUE', /* required */
  Outputs: [ /* required */
    {
      ManifestName: 'STRING_VALUE', /* required */
      SourceGroup: 'STRING_VALUE', /* required */
      DashPlaylistSettings: {
        ManifestWindowSeconds: 'NUMBER_VALUE',
        MinBufferTimeSeconds: 'NUMBER_VALUE',
        MinUpdatePeriodSeconds: 'NUMBER_VALUE',
        SuggestedPresentationDelaySeconds: 'NUMBER_VALUE'
      },
      HlsPlaylistSettings: {
        ManifestWindowSeconds: 'NUMBER_VALUE'
      }
    },
    /* more items */
  ],
  FillerSlate: {
    SourceLocationName: 'STRING_VALUE',
    VodSourceName: 'STRING_VALUE'
  }
};
mediatailor.updateChannel(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ChannelName — (String)

      The name of the channel.

    • FillerSlate — (map)

      The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

      • SourceLocationName — (String)

        The name of the source location where the slate VOD source is stored.

      • VodSourceName — (String)

        The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

    • Outputs — (Array<map>)

      The channel's output properties.

      • DashPlaylistSettings — (map)

        DASH manifest configuration parameters.

        • ManifestWindowSeconds — (Integer)

          The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

        • MinBufferTimeSeconds — (Integer)

          Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • MinUpdatePeriodSeconds — (Integer)

          Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • SuggestedPresentationDelaySeconds — (Integer)

          Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

      • HlsPlaylistSettings — (map)

        HLS playlist configuration parameters.

        • ManifestWindowSeconds — (Integer)

          The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

      • ManifestNamerequired — (String)

        The name of the manifest for the channel. The name appears in the PlaybackUrl.

      • SourceGrouprequired — (String)

        A string used to match which HttpPackageConfiguration is used for each VodSource.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The Amazon Resource Name (ARN) associated with the channel.

      • ChannelName — (String)

        The name of the channel.

      • ChannelState — (String)

        Returns the state whether the channel is running or not.

        Possible values include:
        • "RUNNING"
        • "STOPPED"
      • CreationTime — (Date)

        The timestamp of when the channel was created.

      • FillerSlate — (map)

        The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses the LINEAR PlaybackMode. MediaTailor doesn't support filler slate for channels using the LOOP PlaybackMode.

        • SourceLocationName — (String)

          The name of the source location where the slate VOD source is stored.

        • VodSourceName — (String)

          The slate VOD source name. The VOD source must already exist in a source location before it can be used for slate.

      • LastModifiedTime — (Date)

        The timestamp that indicates when the channel was last modified.

      • Outputs — (Array<map>)

        The channel's output properties.

        • DashPlaylistSettings — (map)

          DASH manifest configuration settings.

          • ManifestWindowSeconds — (Integer)

            The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

          • MinBufferTimeSeconds — (Integer)

            Minimum amount of content (measured in seconds) that a player must keep available in the buffer. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • MinUpdatePeriodSeconds — (Integer)

            Minimum amount of time (in seconds) that the player should wait before requesting updates to the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

          • SuggestedPresentationDelaySeconds — (Integer)

            Amount of time (in seconds) that the player should be from the live point at the end of the manifest. Minimum value: 2 seconds. Maximum value: 60 seconds.

        • HlsPlaylistSettings — (map)

          HLS manifest configuration settings.

          • ManifestWindowSeconds — (Integer)

            The total duration (in seconds) of each manifest. Minimum value: 30 seconds. Maximum value: 3600 seconds.

        • ManifestNamerequired — (String)

          The name of the manifest for the channel that will appear in the channel output's playback URL.

        • PlaybackUrlrequired — (String)

          The URL used for playback by content players.

        • SourceGrouprequired — (String)

          A string used to associate a package configuration source group with a channel output.

      • PlaybackMode — (String)

        The type of playback mode for this channel.

        LINEAR - Programs play back-to-back only once.

        LOOP - Programs play back-to-back in an endless loop. When the last program in the schedule plays, playback loops back to the first program in the schedule.

      • Tags — (map<String>)

        The tags to assign to the channel. 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.

      • Tier — (String)

        The tier associated with this Channel.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateLiveSource(params = {}, callback) ⇒ AWS.Request

Updates a live source's configuration.

Service Reference:

Examples:

Calling the updateLiveSource operation

var params = {
  HttpPackageConfigurations: [ /* required */
    {
      Path: 'STRING_VALUE', /* required */
      SourceGroup: 'STRING_VALUE', /* required */
      Type: DASH | HLS /* required */
    },
    /* more items */
  ],
  LiveSourceName: 'STRING_VALUE', /* required */
  SourceLocationName: 'STRING_VALUE' /* required */
};
mediatailor.updateLiveSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HttpPackageConfigurations — (Array<map>)

      A list of HTTP package configurations for the live source on this account.

      • Pathrequired — (String)

        The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

      • SourceGrouprequired — (String)

        The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

      • Typerequired — (String)

        The streaming protocol for this package configuration. Supported values are HLS and DASH.

        Possible values include:
        • "DASH"
        • "HLS"
    • LiveSourceName — (String)

      The name of the live source.

    • SourceLocationName — (String)

      The name of the source location associated with this Live Source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The Amazon Resource Name (ARN) associated with this live source.

      • CreationTime — (Date)

        The timestamp that indicates when the live source was created.

      • HttpPackageConfigurations — (Array<map>)

        A list of HTTP package configurations for the live source on this account.

        • Pathrequired — (String)

          The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

        • SourceGrouprequired — (String)

          The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

        • Typerequired — (String)

          The streaming protocol for this package configuration. Supported values are HLS and DASH.

          Possible values include:
          • "DASH"
          • "HLS"
      • LastModifiedTime — (Date)

        The timestamp that indicates when the live source was last modified.

      • LiveSourceName — (String)

        The name of the live source.

      • SourceLocationName — (String)

        The name of the source location associated with the live source.

      • Tags — (map<String>)

        The tags to assign to the live 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateSourceLocation(params = {}, callback) ⇒ AWS.Request

Updates a source location. A source location is a container for sources. For more information about source locations, see Working with source locations in the MediaTailor User Guide.

Service Reference:

Examples:

Calling the updateSourceLocation operation

var params = {
  HttpConfiguration: { /* required */
    BaseUrl: 'STRING_VALUE' /* required */
  },
  SourceLocationName: 'STRING_VALUE', /* required */
  AccessConfiguration: {
    AccessType: S3_SIGV4 | SECRETS_MANAGER_ACCESS_TOKEN,
    SecretsManagerAccessTokenConfiguration: {
      HeaderName: 'STRING_VALUE',
      SecretArn: 'STRING_VALUE',
      SecretStringKey: 'STRING_VALUE'
    }
  },
  DefaultSegmentDeliveryConfiguration: {
    BaseUrl: 'STRING_VALUE'
  },
  SegmentDeliveryConfigurations: [
    {
      BaseUrl: 'STRING_VALUE',
      Name: 'STRING_VALUE'
    },
    /* more items */
  ]
};
mediatailor.updateSourceLocation(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • AccessConfiguration — (map)

      Access configuration parameters. Configures the type of authentication used to access content from your source location.

      • AccessType — (String)

        The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4.

        S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.

        Before you can use S3_SIGV4, you must meet these requirements:

        • You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.

        • The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.

        • The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.

        Possible values include:
        • "S3_SIGV4"
        • "SECRETS_MANAGER_ACCESS_TOKEN"
      • SecretsManagerAccessTokenConfiguration — (map)

        AWS Secrets Manager access token configuration parameters.

        • HeaderName — (String)

          The name of the HTTP header used to supply the access token in requests to the source location.

        • SecretArn — (String)

          The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

        • SecretStringKey — (String)

          The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

    • DefaultSegmentDeliveryConfiguration — (map)

      The optional configuration for the host server that serves segments.

      • BaseUrl — (String)

        The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.

    • HttpConfiguration — (map)

      The HTTP configuration for the source location.

      • BaseUrlrequired — (String)

        The base URL for the source location host server. This string must include the protocol, such as https://.

    • SegmentDeliveryConfigurations — (Array<map>)

      A list of the segment delivery configurations associated with this resource.

      • BaseUrl — (String)

        The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

      • Name — (String)

        A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

    • SourceLocationName — (String)

      The name of the source location.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • AccessConfiguration — (map)

        Access configuration parameters. Configures the type of authentication used to access content from your source location.

        • AccessType — (String)

          The type of authentication used to access content from HttpConfiguration::BaseUrl on your source location. Accepted value: S3_SIGV4.

          S3_SIGV4 - AWS Signature Version 4 authentication for Amazon S3 hosted virtual-style access. If your source location base URL is an Amazon S3 bucket, MediaTailor can use AWS Signature Version 4 (SigV4) authentication to access the bucket where your source content is stored. Your MediaTailor source location baseURL must follow the S3 virtual hosted-style request URL format. For example, https://bucket-name.s3.Region.amazonaws.com/key-name.

          Before you can use S3_SIGV4, you must meet these requirements:

          • You must allow MediaTailor to access your S3 bucket by granting mediatailor.amazonaws.com principal access in IAM. For information about configuring access in IAM, see Access management in the IAM User Guide.

          • The mediatailor.amazonaws.com service principal must have permissions to read all top level manifests referenced by the VodSource packaging configurations.

          • The caller of the API must have s3:GetObject IAM permissions to read all top level manifests referenced by your MediaTailor VodSource packaging configurations.

          Possible values include:
          • "S3_SIGV4"
          • "SECRETS_MANAGER_ACCESS_TOKEN"
        • SecretsManagerAccessTokenConfiguration — (map)

          AWS Secrets Manager access token configuration parameters.

          • HeaderName — (String)

            The name of the HTTP header used to supply the access token in requests to the source location.

          • SecretArn — (String)

            The Amazon Resource Name (ARN) of the AWS Secrets Manager secret that contains the access token.

          • SecretStringKey — (String)

            The AWS Secrets Manager SecretString key associated with the access token. MediaTailor uses the key to look up SecretString key and value pair containing the access token.

      • Arn — (String)

        The Amazon Resource Name (ARN) associated with the source location.

      • CreationTime — (Date)

        The timestamp that indicates when the source location was created.

      • DefaultSegmentDeliveryConfiguration — (map)

        The optional configuration for the host server that serves segments.

        • BaseUrl — (String)

          The hostname of the server that will be used to serve segments. This string must include the protocol, such as https://.

      • HttpConfiguration — (map)

        The HTTP configuration for the source location.

        • BaseUrlrequired — (String)

          The base URL for the source location host server. This string must include the protocol, such as https://.

      • LastModifiedTime — (Date)

        The timestamp that indicates when the source location was last modified.

      • SegmentDeliveryConfigurations — (Array<map>)

        The segment delivery configurations for the source location. For information about MediaTailor configurations, see Working with configurations in AWS Elemental MediaTailor.

        • BaseUrl — (String)

          The base URL of the host or path of the segment delivery server that you're using to serve segments. This is typically a content delivery network (CDN). The URL can be absolute or relative. To use an absolute URL include the protocol, such as https://example.com/some/path. To use a relative URL specify the relative path, such as /some/path*.

        • Name — (String)

          A unique identifier used to distinguish between multiple segment delivery configurations in a source location.

      • SourceLocationName — (String)

        The name of the source location.

      • Tags — (map<String>)

        The tags to assign to the source location. 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.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateVodSource(params = {}, callback) ⇒ AWS.Request

Updates a VOD source's configuration.

Service Reference:

Examples:

Calling the updateVodSource operation

var params = {
  HttpPackageConfigurations: [ /* required */
    {
      Path: 'STRING_VALUE', /* required */
      SourceGroup: 'STRING_VALUE', /* required */
      Type: DASH | HLS /* required */
    },
    /* more items */
  ],
  SourceLocationName: 'STRING_VALUE', /* required */
  VodSourceName: 'STRING_VALUE' /* required */
};
mediatailor.updateVodSource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • HttpPackageConfigurations — (Array<map>)

      A list of HTTP package configurations for the VOD source on this account.

      • Pathrequired — (String)

        The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

      • SourceGrouprequired — (String)

        The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

      • Typerequired — (String)

        The streaming protocol for this package configuration. Supported values are HLS and DASH.

        Possible values include:
        • "DASH"
        • "HLS"
    • SourceLocationName — (String)

      The name of the source location associated with this VOD Source.

    • VodSourceName — (String)

      The name of the VOD source.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Arn — (String)

        The Amazon Resource Name (ARN) associated with the VOD source.

      • CreationTime — (Date)

        The timestamp that indicates when the VOD source was created.

      • HttpPackageConfigurations — (Array<map>)

        A list of HTTP package configurations for the VOD source on this account.

        • Pathrequired — (String)

          The relative path to the URL for this VOD source. This is combined with SourceLocation::HttpConfiguration::BaseUrl to form a valid URL.

        • SourceGrouprequired — (String)

          The name of the source group. This has to match one of the Channel::Outputs::SourceGroup.

        • Typerequired — (String)

          The streaming protocol for this package configuration. Supported values are HLS and DASH.

          Possible values include:
          • "DASH"
          • "HLS"
      • LastModifiedTime — (Date)

        The timestamp that indicates when the VOD source was last modified.

      • SourceLocationName — (String)

        The name of the source location associated with the VOD source.

      • Tags — (map<String>)

        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)

        The name of the VOD source.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.