Note: You are viewing the documentation for an older major version of the AWS SDK for JavaScript (v2).

The modular AWS SDK for JavaScript (v3) is now General Available. For more information see the Developer Guide or API Reference.

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.createChannel(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'.

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

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

Creates a channel.

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, /* required */
  Tags: {
    '<__string>': 'STRING_VALUE',
    /* '<__string>': ... */
  }
};
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 identifier for the channel you are working on.

    • 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 for this channel. The only supported value is LOOP.

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

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

      • 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 type of playback for this channel. The only supported value is LOOP.

      • Tags — (map<String>)

        The tags assigned to the channel.

Returns:

  • (AWS.Request)

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

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

Creates a program.

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 */
      RelativeProgram: 'STRING_VALUE'
    }
  },
  SourceLocationName: 'STRING_VALUE', /* required */
  VodSourceName: 'STRING_VALUE', /* required */
  AdBreaks: [
    {
      MessageType: SPLICE_INSERT,
      OffsetMillis: 'NUMBER_VALUE',
      Slate: {
        SourceLocationName: 'STRING_VALUE',
        VodSourceName: 'STRING_VALUE'
      },
      SpliceInsertMessage: {
        AvailNum: 'NUMBER_VALUE',
        AvailsExpected: 'NUMBER_VALUE',
        SpliceEventId: 'NUMBER_VALUE',
        UniqueProgramId: 'NUMBER_VALUE'
      }
    },
    /* more items */
  ]
};
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.

        Possible values include:
        • "SPLICE_INSERT"
      • 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.

    • ChannelName — (String)

      The identifier for the channel you are working on.

    • ProgramName — (String)

      The identifier for the program you are working on.

    • ScheduleConfiguration — (map)

      The schedule configuration settings.

      • Transitionrequired — (map)

        Program transition configurations.

        • RelativePositionrequired — (String)

          The position where this program will be inserted relative to the RelativeProgram. Possible values are: AFTER_PROGRAM, and BEFORE_PROGRAM.

          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.

        • Typerequired — (String)

          When the program should be played. RELATIVE means that programs will be played back-to-back.

    • 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.

          Possible values include:
          • "SPLICE_INSERT"
        • 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.

      • 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.

      • ProgramName — (String)

        The name of the program.

      • 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.

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

Creates a source location on a specific channel.

Service Reference:

Examples:

Calling the createSourceLocation operation

var params = {
  HttpConfiguration: { /* required */
    BaseUrl: 'STRING_VALUE' /* required */
  },
  SourceLocationName: 'STRING_VALUE', /* required */
  AccessConfiguration: {
    AccessType: S3_SIGV4
  },
  DefaultSegmentDeliveryConfiguration: {
    BaseUrl: 'STRING_VALUE'
  },
  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"
    • 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://.

    • SourceLocationName — (String)

      The identifier for the source location you are working on.

    • Tags — (map<String>)

      The tags to assign to 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"
      • 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.

      • SourceLocationName — (String)

        The name of the source location.

      • Tags — (map<String>)

        The tags assigned to the source location.

Returns:

  • (AWS.Request)

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

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

Creates name for a specific VOD source in a source location.

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>)

      An array 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 identifier for the source location you are working on.

    • Tags — (map<String>)

      The tags to assign to the VOD source.

    • VodSourceName — (String)

      The identifier for the VOD source you are working on.

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 ARN for 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.

      • VodSourceName — (String)

        The name of 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. You must stop the channel before it can be deleted.

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 identifier for the channel you are working on.

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

Deletes a channel's IAM policy.

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 identifier for the channel you are working on.

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 the playback configuration for the specified name.

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 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.

Returns:

  • (AWS.Request)

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

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

Deletes a specific program on a specific channel.

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 identifier for the channel you are working on.

    • ProgramName — (String)

      The identifier for the program you are working on.

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 on a specific channel.

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 identifier for the source location you are working on.

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

Deletes a specific VOD source in a specific source location.

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 identifier for the source location you are working on.

    • VodSourceName — (String)

      The identifier for the VOD source you are working on.

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 the properties of a specific channel.

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 identifier for the channel you are working on.

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.

      • 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 type of playback for this channel. The only supported value is LOOP.

      • Tags — (map<String>)

        The tags assigned to the channel.

Returns:

  • (AWS.Request)

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

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

Retrieves the properties of the requested program.

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 identifier for the channel you are working on.

    • ProgramName — (String)

      The identifier for the program you are working on.

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.

          Possible values include:
          • "SPLICE_INSERT"
        • 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.

      • 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.

      • ProgramName — (String)

        The name of the program.

      • 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

Retrieves the properties of the requested source location.

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 identifier for the source location you are working on.

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"
      • 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.

      • SourceLocationName — (String)

        The name of the source location.

      • Tags — (map<String>)

        The tags assigned to the source location.

Returns:

  • (AWS.Request)

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

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

Provides details about a specific 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 identifier for the source location you are working on.

    • VodSourceName — (String)

      The identifier for the VOD source you are working on.

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 ARN for 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.

      • 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

Retrieves information about a channel's IAM policy.

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 identifier for the channel you are working on.

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.

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 identifier for the channel you are working on.

    • DurationMinutes — (String)

      The schedule duration in minutes. The maximum duration is 4320 minutes (three days).

    • MaxResults — (Integer)

      Upper bound on number of records to return. The maximum number of results is 100.

    • NextToken — (String)

      Pagination token from the GET list request. 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>)

        An array 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.

        • ProgramNamerequired — (String)

          The name of the program.

        • SourceLocationNamerequired — (String)

          The name of the source location.

        • VodSourceNamerequired — (String)

          The name of the VOD source.

      • NextToken — (String)

        Pagination token from the GET list request. 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

Returns the playback configuration for the specified name.

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.&lt;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.
      • 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.

      • 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.

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

Retrieves a list of channels that are associated with this 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)

      Upper bound on number of records to return. The maximum number of results is 100.

    • NextToken — (String)

      Pagination token from the GET list request. 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>)

        An array 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.

        • 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. Possible values: ONCE or LOOP.

        • Tags — (map<String>)

          The tags to assign to the channel.

      • 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

Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.

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)

      Maximum number of records to return.

    • 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.

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.&lt;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.
        • 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.

        • 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.

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

Retrieves a list of source locations.

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)

      Upper bound on number of records to return. The maximum number of results is 100.

    • NextToken — (String)

      Pagination token from the GET list request. 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>)

        An array 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"
        • 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.

        • SourceLocationNamerequired — (String)

          The name of the source location.

        • Tags — (map<String>)

          The tags assigned to the source location.

      • NextToken — (String)

        Pagination token from the list request. 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

Returns a list of the tags assigned to the specified playback configuration resource.

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) for the playback configuration. You can get this from the response to any playback configuration request.

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>)

        A comma-separated list of tag key:value pairs.

Returns:

  • (AWS.Request)

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

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

Lists all the VOD sources in a source location.

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)

      Upper bound on number of records to return. The maximum number of results is 100.

    • NextToken — (String)

      Pagination token from the GET list request. Use the token to fetch the next page of results.

    • SourceLocationName — (String)

      The identifier for the source location you are working on.

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.

        • VodSourceNamerequired — (String)

          The name of the VOD source.

      • NextToken — (String)

        Pagination token from the list request. 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.

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 identifier for the channel you are working on.

    • 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

Adds a new playback configuration to AWS Elemental MediaTailor.

Service Reference:

Examples:

Calling the putPlaybackConfiguration operation

var params = {
  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
    }
  },
  Name: 'STRING_VALUE',
  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.&lt;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.

    • 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.&lt;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.
      • 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.

      • 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 specific channel.

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 identifier for the channel you are working on.

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 specific channel.

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 identifier for the channel you are working on.

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

Adds tags to the specified playback configuration resource. You can specify one or more tags to add.

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) for the playback configuration. You can get this from the response to any playback configuration request.

    • Tags — (map<String>)

      A comma-separated list of tag key:value pairs.

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

Removes tags from the specified playback configuration resource. You can specify one or more tags to remove.

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) for the playback configuration. You can get this from the response to any playback configuration request.

    • TagKeys — (Array<String>)

      A comma-separated list of the tag keys to remove from 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.

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

Updates an existing channel.

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 */
  ]
};
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 identifier for the channel you are working on.

    • 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 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.

      • 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 type of playback for this channel. The only supported value is LOOP.

      • Tags — (map<String>)

        The tags assigned to the channel.

Returns:

  • (AWS.Request)

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

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

Updates a source location on a specific channel.

Service Reference:

Examples:

Calling the updateSourceLocation operation

var params = {
  HttpConfiguration: { /* required */
    BaseUrl: 'STRING_VALUE' /* required */
  },
  SourceLocationName: 'STRING_VALUE', /* required */
  AccessConfiguration: {
    AccessType: S3_SIGV4
  },
  DefaultSegmentDeliveryConfiguration: {
    BaseUrl: 'STRING_VALUE'
  }
};
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"
    • 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://.

    • SourceLocationName — (String)

      The identifier for the source location you are working on.

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"
      • 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.

      • SourceLocationName — (String)

        The name of the source location.

      • Tags — (map<String>)

        The tags assigned to the source location.

Returns:

  • (AWS.Request)

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

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

Updates a specific VOD source in a specific source location.

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>)

      An array 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 identifier for the source location you are working on.

    • VodSourceName — (String)

      The identifier for the VOD source you are working on.

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 ARN for 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.

      • VodSourceName — (String)

        The name of the VOD source.

Returns:

  • (AWS.Request)

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