/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the mediatailor-2018-04-23.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.MediaTailor.Model; using Amazon.MediaTailor.Model.Internal.MarshallTransformations; using Amazon.MediaTailor.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MediaTailor { /// /// Implementation for accessing MediaTailor /// /// 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). /// /// public partial class AmazonMediaTailorClient : AmazonServiceClient, IAmazonMediaTailor { private static IServiceMetadata serviceMetadata = new AmazonMediaTailorMetadata(); #region Constructors /// /// Constructs AmazonMediaTailorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonMediaTailorClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaTailorConfig()) { } /// /// Constructs AmazonMediaTailorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonMediaTailorClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaTailorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaTailorClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonMediaTailorClient Configuration Object public AmazonMediaTailorClient(AmazonMediaTailorConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMediaTailorClient with AWS Credentials /// /// AWS Credentials public AmazonMediaTailorClient(AWSCredentials credentials) : this(credentials, new AmazonMediaTailorConfig()) { } /// /// Constructs AmazonMediaTailorClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMediaTailorClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMediaTailorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaTailorClient with AWS Credentials and an /// AmazonMediaTailorClient Configuration object. /// /// AWS Credentials /// The AmazonMediaTailorClient Configuration Object public AmazonMediaTailorClient(AWSCredentials credentials, AmazonMediaTailorConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMediaTailorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMediaTailorClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaTailorConfig()) { } /// /// Constructs AmazonMediaTailorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMediaTailorClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaTailorConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMediaTailorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaTailorClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMediaTailorClient Configuration Object public AmazonMediaTailorClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMediaTailorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMediaTailorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMediaTailorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaTailorConfig()) { } /// /// Constructs AmazonMediaTailorClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonMediaTailorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaTailorConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaTailorClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaTailorClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMediaTailorClient Configuration Object public AmazonMediaTailorClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMediaTailorConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IMediaTailorPaginatorFactory _paginators; /// /// Paginators for the service /// public IMediaTailorPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MediaTailorPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonMediaTailorEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region ConfigureLogsForChannel internal virtual ConfigureLogsForChannelResponse ConfigureLogsForChannel(ConfigureLogsForChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ConfigureLogsForChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfigureLogsForChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Configures Amazon CloudWatch log settings for a channel. /// /// Container for the necessary parameters to execute the ConfigureLogsForChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ConfigureLogsForChannel service method, as returned by MediaTailor. /// REST API Reference for ConfigureLogsForChannel Operation public virtual Task ConfigureLogsForChannelAsync(ConfigureLogsForChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ConfigureLogsForChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfigureLogsForChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ConfigureLogsForPlaybackConfiguration internal virtual ConfigureLogsForPlaybackConfigurationResponse ConfigureLogsForPlaybackConfiguration(ConfigureLogsForPlaybackConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ConfigureLogsForPlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfigureLogsForPlaybackConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Amazon CloudWatch log settings for a playback configuration. /// /// Container for the necessary parameters to execute the ConfigureLogsForPlaybackConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ConfigureLogsForPlaybackConfiguration service method, as returned by MediaTailor. /// REST API Reference for ConfigureLogsForPlaybackConfiguration Operation public virtual Task ConfigureLogsForPlaybackConfigurationAsync(ConfigureLogsForPlaybackConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ConfigureLogsForPlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfigureLogsForPlaybackConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateChannel internal virtual CreateChannelResponse CreateChannel(CreateChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a channel. For information about MediaTailor channels, see Working /// with channels in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the CreateChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateChannel service method, as returned by MediaTailor. /// REST API Reference for CreateChannel Operation public virtual Task CreateChannelAsync(CreateChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLiveSource internal virtual CreateLiveSourceResponse CreateLiveSource(CreateLiveSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLiveSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The live source configuration. /// /// Container for the necessary parameters to execute the CreateLiveSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLiveSource service method, as returned by MediaTailor. /// REST API Reference for CreateLiveSource Operation public virtual Task CreateLiveSourceAsync(CreateLiveSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLiveSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreatePrefetchSchedule internal virtual CreatePrefetchScheduleResponse CreatePrefetchSchedule(CreatePrefetchScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePrefetchScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePrefetchScheduleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a prefetch schedule for a playback configuration. A prefetch schedule allows /// you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. /// For more information about ad prefetching, see Using /// ad prefetching in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the CreatePrefetchSchedule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreatePrefetchSchedule service method, as returned by MediaTailor. /// REST API Reference for CreatePrefetchSchedule Operation public virtual Task CreatePrefetchScheduleAsync(CreatePrefetchScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePrefetchScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePrefetchScheduleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateProgram internal virtual CreateProgramResponse CreateProgram(CreateProgramRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProgramResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a program within a channel. For information about programs, see Working /// with programs in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the CreateProgram service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateProgram service method, as returned by MediaTailor. /// REST API Reference for CreateProgram Operation public virtual Task CreateProgramAsync(CreateProgramRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateProgramResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateSourceLocation internal virtual CreateSourceLocationResponse CreateSourceLocation(CreateSourceLocationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSourceLocationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a source location. A source location is a container for sources. For more /// information about source locations, see Working /// with source locations in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the CreateSourceLocation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateSourceLocation service method, as returned by MediaTailor. /// REST API Reference for CreateSourceLocation Operation public virtual Task CreateSourceLocationAsync(CreateSourceLocationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateSourceLocationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateVodSource internal virtual CreateVodSourceResponse CreateVodSource(CreateVodSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateVodSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The VOD source configuration parameters. /// /// Container for the necessary parameters to execute the CreateVodSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateVodSource service method, as returned by MediaTailor. /// REST API Reference for CreateVodSource Operation public virtual Task CreateVodSourceAsync(CreateVodSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateVodSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannel internal virtual DeleteChannelResponse DeleteChannel(DeleteChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a channel. For information about MediaTailor channels, see Working /// with channels in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DeleteChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannel service method, as returned by MediaTailor. /// REST API Reference for DeleteChannel Operation public virtual Task DeleteChannelAsync(DeleteChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteChannelPolicy internal virtual DeleteChannelPolicyResponse DeleteChannelPolicy(DeleteChannelPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The channel policy to delete. /// /// Container for the necessary parameters to execute the DeleteChannelPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteChannelPolicy service method, as returned by MediaTailor. /// REST API Reference for DeleteChannelPolicy Operation public virtual Task DeleteChannelPolicyAsync(DeleteChannelPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteLiveSource internal virtual DeleteLiveSourceResponse DeleteLiveSource(DeleteLiveSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLiveSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The live source to delete. /// /// Container for the necessary parameters to execute the DeleteLiveSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteLiveSource service method, as returned by MediaTailor. /// REST API Reference for DeleteLiveSource Operation public virtual Task DeleteLiveSourceAsync(DeleteLiveSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLiveSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePlaybackConfiguration internal virtual DeletePlaybackConfigurationResponse DeletePlaybackConfiguration(DeletePlaybackConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePlaybackConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a playback configuration. For information about MediaTailor configurations, /// see Working /// with configurations in AWS Elemental MediaTailor. /// /// Container for the necessary parameters to execute the DeletePlaybackConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePlaybackConfiguration service method, as returned by MediaTailor. /// REST API Reference for DeletePlaybackConfiguration Operation public virtual Task DeletePlaybackConfigurationAsync(DeletePlaybackConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePlaybackConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeletePrefetchSchedule internal virtual DeletePrefetchScheduleResponse DeletePrefetchSchedule(DeletePrefetchScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePrefetchScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePrefetchScheduleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a prefetch schedule for a specific playback configuration. If you call DeletePrefetchSchedule /// on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code. For /// more information about ad prefetching, see Using /// ad prefetching in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DeletePrefetchSchedule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeletePrefetchSchedule service method, as returned by MediaTailor. /// REST API Reference for DeletePrefetchSchedule Operation public virtual Task DeletePrefetchScheduleAsync(DeletePrefetchScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePrefetchScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePrefetchScheduleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteProgram internal virtual DeleteProgramResponse DeleteProgram(DeleteProgramRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProgramResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a program within a channel. For information about programs, see Working /// with programs in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DeleteProgram service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteProgram service method, as returned by MediaTailor. /// REST API Reference for DeleteProgram Operation public virtual Task DeleteProgramAsync(DeleteProgramRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteProgramResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteSourceLocation internal virtual DeleteSourceLocationResponse DeleteSourceLocation(DeleteSourceLocationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSourceLocationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a source location. A source location is a container for sources. For more /// information about source locations, see Working /// with source locations in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DeleteSourceLocation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteSourceLocation service method, as returned by MediaTailor. /// REST API Reference for DeleteSourceLocation Operation public virtual Task DeleteSourceLocationAsync(DeleteSourceLocationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteSourceLocationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteVodSource internal virtual DeleteVodSourceResponse DeleteVodSource(DeleteVodSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteVodSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The video on demand (VOD) source to delete. /// /// Container for the necessary parameters to execute the DeleteVodSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteVodSource service method, as returned by MediaTailor. /// REST API Reference for DeleteVodSource Operation public virtual Task DeleteVodSourceAsync(DeleteVodSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteVodSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeChannel internal virtual DescribeChannelResponse DescribeChannel(DescribeChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a channel. For information about MediaTailor channels, see Working /// with channels in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DescribeChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeChannel service method, as returned by MediaTailor. /// REST API Reference for DescribeChannel Operation public virtual Task DescribeChannelAsync(DescribeChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLiveSource internal virtual DescribeLiveSourceResponse DescribeLiveSource(DescribeLiveSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLiveSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The live source to describe. /// /// Container for the necessary parameters to execute the DescribeLiveSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLiveSource service method, as returned by MediaTailor. /// REST API Reference for DescribeLiveSource Operation public virtual Task DescribeLiveSourceAsync(DescribeLiveSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLiveSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeProgram internal virtual DescribeProgramResponse DescribeProgram(DescribeProgramRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProgramResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a program within a channel. For information about programs, see Working /// with programs in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DescribeProgram service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeProgram service method, as returned by MediaTailor. /// REST API Reference for DescribeProgram Operation public virtual Task DescribeProgramAsync(DescribeProgramRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProgramResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeSourceLocation internal virtual DescribeSourceLocationResponse DescribeSourceLocation(DescribeSourceLocationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSourceLocationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a source location. A source location is a container for sources. For more /// information about source locations, see Working /// with source locations in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the DescribeSourceLocation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeSourceLocation service method, as returned by MediaTailor. /// REST API Reference for DescribeSourceLocation Operation public virtual Task DescribeSourceLocationAsync(DescribeSourceLocationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeSourceLocationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeVodSource internal virtual DescribeVodSourceResponse DescribeVodSource(DescribeVodSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeVodSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides details about a specific video on demand (VOD) source in a specific source /// location. /// /// Container for the necessary parameters to execute the DescribeVodSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeVodSource service method, as returned by MediaTailor. /// REST API Reference for DescribeVodSource Operation public virtual Task DescribeVodSourceAsync(DescribeVodSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeVodSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetChannelPolicy internal virtual GetChannelPolicyResponse GetChannelPolicy(GetChannelPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the channel's IAM policy. IAM policies are used to control access to your /// channel. /// /// Container for the necessary parameters to execute the GetChannelPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetChannelPolicy service method, as returned by MediaTailor. /// REST API Reference for GetChannelPolicy Operation public virtual Task GetChannelPolicyAsync(GetChannelPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetChannelSchedule internal virtual GetChannelScheduleResponse GetChannelSchedule(GetChannelScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelScheduleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about your channel's schedule. /// /// Container for the necessary parameters to execute the GetChannelSchedule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetChannelSchedule service method, as returned by MediaTailor. /// REST API Reference for GetChannelSchedule Operation public virtual Task GetChannelScheduleAsync(GetChannelScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetChannelScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetChannelScheduleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPlaybackConfiguration internal virtual GetPlaybackConfigurationResponse GetPlaybackConfiguration(GetPlaybackConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPlaybackConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a playback configuration. For information about MediaTailor configurations, /// see Working /// with configurations in AWS Elemental MediaTailor. /// /// Container for the necessary parameters to execute the GetPlaybackConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPlaybackConfiguration service method, as returned by MediaTailor. /// REST API Reference for GetPlaybackConfiguration Operation public virtual Task GetPlaybackConfigurationAsync(GetPlaybackConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPlaybackConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetPrefetchSchedule internal virtual GetPrefetchScheduleResponse GetPrefetchSchedule(GetPrefetchScheduleRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPrefetchScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPrefetchScheduleResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows /// you to tell MediaTailor to fetch and prepare certain ads before an ad break happens. /// For more information about ad prefetching, see Using /// ad prefetching in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the GetPrefetchSchedule service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetPrefetchSchedule service method, as returned by MediaTailor. /// REST API Reference for GetPrefetchSchedule Operation public virtual Task GetPrefetchScheduleAsync(GetPrefetchScheduleRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPrefetchScheduleRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPrefetchScheduleResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAlerts internal virtual ListAlertsResponse ListAlerts(ListAlertsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAlertsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAlertsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the alerts that are associated with a MediaTailor channel assembly resource. /// /// Container for the necessary parameters to execute the ListAlerts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAlerts service method, as returned by MediaTailor. /// REST API Reference for ListAlerts Operation public virtual Task ListAlertsAsync(ListAlertsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAlertsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAlertsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListChannels internal virtual ListChannelsResponse ListChannels(ListChannelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves information about the channels that are associated with the current AWS /// account. /// /// Container for the necessary parameters to execute the ListChannels service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListChannels service method, as returned by MediaTailor. /// REST API Reference for ListChannels Operation public virtual Task ListChannelsAsync(ListChannelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListLiveSources internal virtual ListLiveSourcesResponse ListLiveSources(ListLiveSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLiveSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLiveSourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the live sources contained in a source location. A source represents a piece /// of content. /// /// Container for the necessary parameters to execute the ListLiveSources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListLiveSources service method, as returned by MediaTailor. /// REST API Reference for ListLiveSources Operation public virtual Task ListLiveSourcesAsync(ListLiveSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLiveSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLiveSourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPlaybackConfigurations internal virtual ListPlaybackConfigurationsResponse ListPlaybackConfigurations(ListPlaybackConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPlaybackConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPlaybackConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieves existing playback configurations. For information about MediaTailor configurations, /// see Working /// with Configurations in AWS Elemental MediaTailor. /// /// Container for the necessary parameters to execute the ListPlaybackConfigurations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPlaybackConfigurations service method, as returned by MediaTailor. /// REST API Reference for ListPlaybackConfigurations Operation public virtual Task ListPlaybackConfigurationsAsync(ListPlaybackConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPlaybackConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPlaybackConfigurationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListPrefetchSchedules internal virtual ListPrefetchSchedulesResponse ListPrefetchSchedules(ListPrefetchSchedulesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPrefetchSchedulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPrefetchSchedulesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the prefetch schedules for a playback configuration. /// /// Container for the necessary parameters to execute the ListPrefetchSchedules service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListPrefetchSchedules service method, as returned by MediaTailor. /// REST API Reference for ListPrefetchSchedules Operation public virtual Task ListPrefetchSchedulesAsync(ListPrefetchSchedulesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListPrefetchSchedulesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPrefetchSchedulesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListSourceLocations internal virtual ListSourceLocationsResponse ListSourceLocations(ListSourceLocationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceLocationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceLocationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the source locations for a channel. A source location defines the host server /// URL, and contains a list of sources. /// /// Container for the necessary parameters to execute the ListSourceLocations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListSourceLocations service method, as returned by MediaTailor. /// REST API Reference for ListSourceLocations Operation public virtual Task ListSourceLocationsAsync(ListSourceLocationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListSourceLocationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListSourceLocationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// A list of tags that are associated with this resource. Tags are key-value pairs that /// you can associate with Amazon resources to help with organization, access control, /// and cost tracking. For more information, see Tagging /// AWS Elemental MediaTailor Resources. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by MediaTailor. /// /// A request contains unexpected data. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListVodSources internal virtual ListVodSourcesResponse ListVodSources(ListVodSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListVodSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVodSourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the VOD sources contained in a source location. A source represents a piece /// of content. /// /// Container for the necessary parameters to execute the ListVodSources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListVodSources service method, as returned by MediaTailor. /// REST API Reference for ListVodSources Operation public virtual Task ListVodSourcesAsync(ListVodSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListVodSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListVodSourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutChannelPolicy internal virtual PutChannelPolicyResponse PutChannelPolicy(PutChannelPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an IAM policy for the channel. IAM policies are used to control access to /// your channel. /// /// Container for the necessary parameters to execute the PutChannelPolicy service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutChannelPolicy service method, as returned by MediaTailor. /// REST API Reference for PutChannelPolicy Operation public virtual Task PutChannelPolicyAsync(PutChannelPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutChannelPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutChannelPolicyResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutPlaybackConfiguration internal virtual PutPlaybackConfigurationResponse PutPlaybackConfiguration(PutPlaybackConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutPlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutPlaybackConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a playback configuration. For information about MediaTailor configurations, /// see Working /// with configurations in AWS Elemental MediaTailor. /// /// Container for the necessary parameters to execute the PutPlaybackConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutPlaybackConfiguration service method, as returned by MediaTailor. /// REST API Reference for PutPlaybackConfiguration Operation public virtual Task PutPlaybackConfigurationAsync(PutPlaybackConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutPlaybackConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutPlaybackConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartChannel internal virtual StartChannelResponse StartChannel(StartChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = StartChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts a channel. For information about MediaTailor channels, see Working /// with channels in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the StartChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartChannel service method, as returned by MediaTailor. /// REST API Reference for StartChannel Operation public virtual Task StartChannelAsync(StartChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = StartChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopChannel internal virtual StopChannelResponse StopChannel(StopChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = StopChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops a channel. For information about MediaTailor channels, see Working /// with channels in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the StopChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopChannel service method, as returned by MediaTailor. /// REST API Reference for StopChannel Operation public virtual Task StopChannelAsync(StopChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = StopChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The resource to tag. Tags are key-value pairs that you can associate with Amazon resources /// to help with organization, access control, and cost tracking. For more information, /// see Tagging /// AWS Elemental MediaTailor Resources. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by MediaTailor. /// /// A request contains unexpected data. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// The resource to untag. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by MediaTailor. /// /// A request contains unexpected data. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateChannel internal virtual UpdateChannelResponse UpdateChannel(UpdateChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a channel. For information about MediaTailor channels, see Working /// with channels in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the UpdateChannel service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateChannel service method, as returned by MediaTailor. /// REST API Reference for UpdateChannel Operation public virtual Task UpdateChannelAsync(UpdateChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLiveSource internal virtual UpdateLiveSourceResponse UpdateLiveSource(UpdateLiveSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLiveSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a live source's configuration. /// /// Container for the necessary parameters to execute the UpdateLiveSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLiveSource service method, as returned by MediaTailor. /// REST API Reference for UpdateLiveSource Operation public virtual Task UpdateLiveSourceAsync(UpdateLiveSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLiveSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLiveSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateProgram internal virtual UpdateProgramResponse UpdateProgram(UpdateProgramRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProgramResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a program within a channel. /// /// Container for the necessary parameters to execute the UpdateProgram service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateProgram service method, as returned by MediaTailor. /// REST API Reference for UpdateProgram Operation public virtual Task UpdateProgramAsync(UpdateProgramRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProgramRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProgramResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateSourceLocation internal virtual UpdateSourceLocationResponse UpdateSourceLocation(UpdateSourceLocationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceLocationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a source location. A source location is a container for sources. For more /// information about source locations, see Working /// with source locations in the MediaTailor User Guide. /// /// Container for the necessary parameters to execute the UpdateSourceLocation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateSourceLocation service method, as returned by MediaTailor. /// REST API Reference for UpdateSourceLocation Operation public virtual Task UpdateSourceLocationAsync(UpdateSourceLocationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateSourceLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateSourceLocationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateVodSource internal virtual UpdateVodSourceResponse UpdateVodSource(UpdateVodSourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateVodSourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates a VOD source's configuration. /// /// Container for the necessary parameters to execute the UpdateVodSource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateVodSource service method, as returned by MediaTailor. /// REST API Reference for UpdateVodSource Operation public virtual Task UpdateVodSourceAsync(UpdateVodSourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateVodSourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateVodSourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }