/* * 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 mediapackage-2017-10-12.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.MediaPackage.Model; using Amazon.MediaPackage.Model.Internal.MarshallTransformations; using Amazon.MediaPackage.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MediaPackage { /// /// Implementation for accessing MediaPackage /// /// AWS Elemental MediaPackage /// public partial class AmazonMediaPackageClient : AmazonServiceClient, IAmazonMediaPackage { private static IServiceMetadata serviceMetadata = new AmazonMediaPackageMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IMediaPackagePaginatorFactory _paginators; /// /// Paginators for the service /// public IMediaPackagePaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MediaPackagePaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonMediaPackageClient 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 AmazonMediaPackageClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaPackageConfig()) { } /// /// Constructs AmazonMediaPackageClient 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 AmazonMediaPackageClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaPackageConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaPackageClient 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 AmazonMediaPackageClient Configuration Object public AmazonMediaPackageClient(AmazonMediaPackageConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMediaPackageClient with AWS Credentials /// /// AWS Credentials public AmazonMediaPackageClient(AWSCredentials credentials) : this(credentials, new AmazonMediaPackageConfig()) { } /// /// Constructs AmazonMediaPackageClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMediaPackageClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMediaPackageConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaPackageClient with AWS Credentials and an /// AmazonMediaPackageClient Configuration object. /// /// AWS Credentials /// The AmazonMediaPackageClient Configuration Object public AmazonMediaPackageClient(AWSCredentials credentials, AmazonMediaPackageConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMediaPackageClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMediaPackageClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaPackageConfig()) { } /// /// Constructs AmazonMediaPackageClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMediaPackageClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaPackageConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMediaPackageClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaPackageClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMediaPackageClient Configuration Object public AmazonMediaPackageClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMediaPackageConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMediaPackageClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMediaPackageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaPackageConfig()) { } /// /// Constructs AmazonMediaPackageClient 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 AmazonMediaPackageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaPackageConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaPackageClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaPackageClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMediaPackageClient Configuration Object public AmazonMediaPackageClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMediaPackageConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonMediaPackageEndpointResolver()); } /// /// 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 ConfigureLogs /// /// Changes the Channel's properities to configure log subscription /// /// Container for the necessary parameters to execute the ConfigureLogs service method. /// /// The response from the ConfigureLogs service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for ConfigureLogs Operation public virtual ConfigureLogsResponse ConfigureLogs(ConfigureLogsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ConfigureLogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfigureLogsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ConfigureLogs operation. /// /// /// Container for the necessary parameters to execute the ConfigureLogs operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndConfigureLogs /// operation. /// REST API Reference for ConfigureLogs Operation public virtual IAsyncResult BeginConfigureLogs(ConfigureLogsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ConfigureLogsRequestMarshaller.Instance; options.ResponseUnmarshaller = ConfigureLogsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ConfigureLogs operation. /// /// /// The IAsyncResult returned by the call to BeginConfigureLogs. /// /// Returns a ConfigureLogsResult from MediaPackage. /// REST API Reference for ConfigureLogs Operation public virtual ConfigureLogsResponse EndConfigureLogs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateChannel /// /// Creates a new Channel. /// /// Container for the necessary parameters to execute the CreateChannel service method. /// /// The response from the CreateChannel service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for CreateChannel Operation public virtual CreateChannelResponse CreateChannel(CreateChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateChannel operation. /// /// /// Container for the necessary parameters to execute the CreateChannel operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateChannel /// operation. /// REST API Reference for CreateChannel Operation public virtual IAsyncResult BeginCreateChannel(CreateChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateChannel operation. /// /// /// The IAsyncResult returned by the call to BeginCreateChannel. /// /// Returns a CreateChannelResult from MediaPackage. /// REST API Reference for CreateChannel Operation public virtual CreateChannelResponse EndCreateChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateHarvestJob /// /// Creates a new HarvestJob record. /// /// Container for the necessary parameters to execute the CreateHarvestJob service method. /// /// The response from the CreateHarvestJob service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for CreateHarvestJob Operation public virtual CreateHarvestJobResponse CreateHarvestJob(CreateHarvestJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHarvestJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHarvestJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateHarvestJob operation. /// /// /// Container for the necessary parameters to execute the CreateHarvestJob operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateHarvestJob /// operation. /// REST API Reference for CreateHarvestJob Operation public virtual IAsyncResult BeginCreateHarvestJob(CreateHarvestJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateHarvestJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateHarvestJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateHarvestJob operation. /// /// /// The IAsyncResult returned by the call to BeginCreateHarvestJob. /// /// Returns a CreateHarvestJobResult from MediaPackage. /// REST API Reference for CreateHarvestJob Operation public virtual CreateHarvestJobResponse EndCreateHarvestJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateOriginEndpoint /// /// Creates a new OriginEndpoint record. /// /// Container for the necessary parameters to execute the CreateOriginEndpoint service method. /// /// The response from the CreateOriginEndpoint service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for CreateOriginEndpoint Operation public virtual CreateOriginEndpointResponse CreateOriginEndpoint(CreateOriginEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOriginEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateOriginEndpoint operation. /// /// /// Container for the necessary parameters to execute the CreateOriginEndpoint operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateOriginEndpoint /// operation. /// REST API Reference for CreateOriginEndpoint Operation public virtual IAsyncResult BeginCreateOriginEndpoint(CreateOriginEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOriginEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateOriginEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginCreateOriginEndpoint. /// /// Returns a CreateOriginEndpointResult from MediaPackage. /// REST API Reference for CreateOriginEndpoint Operation public virtual CreateOriginEndpointResponse EndCreateOriginEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteChannel /// /// Deletes an existing Channel. /// /// Container for the necessary parameters to execute the DeleteChannel service method. /// /// The response from the DeleteChannel service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for DeleteChannel Operation public virtual DeleteChannelResponse DeleteChannel(DeleteChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteChannel operation. /// /// /// Container for the necessary parameters to execute the DeleteChannel operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteChannel /// operation. /// REST API Reference for DeleteChannel Operation public virtual IAsyncResult BeginDeleteChannel(DeleteChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteChannel operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteChannel. /// /// Returns a DeleteChannelResult from MediaPackage. /// REST API Reference for DeleteChannel Operation public virtual DeleteChannelResponse EndDeleteChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteOriginEndpoint /// /// Deletes an existing OriginEndpoint. /// /// Container for the necessary parameters to execute the DeleteOriginEndpoint service method. /// /// The response from the DeleteOriginEndpoint service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for DeleteOriginEndpoint Operation public virtual DeleteOriginEndpointResponse DeleteOriginEndpoint(DeleteOriginEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteOriginEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteOriginEndpoint operation. /// /// /// Container for the necessary parameters to execute the DeleteOriginEndpoint operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteOriginEndpoint /// operation. /// REST API Reference for DeleteOriginEndpoint Operation public virtual IAsyncResult BeginDeleteOriginEndpoint(DeleteOriginEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteOriginEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteOriginEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteOriginEndpoint. /// /// Returns a DeleteOriginEndpointResult from MediaPackage. /// REST API Reference for DeleteOriginEndpoint Operation public virtual DeleteOriginEndpointResponse EndDeleteOriginEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeChannel /// /// Gets details about a Channel. /// /// Container for the necessary parameters to execute the DescribeChannel service method. /// /// The response from the DescribeChannel service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for DescribeChannel Operation public virtual DescribeChannelResponse DescribeChannel(DescribeChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeChannel operation. /// /// /// Container for the necessary parameters to execute the DescribeChannel operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeChannel /// operation. /// REST API Reference for DescribeChannel Operation public virtual IAsyncResult BeginDescribeChannel(DescribeChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeChannel operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeChannel. /// /// Returns a DescribeChannelResult from MediaPackage. /// REST API Reference for DescribeChannel Operation public virtual DescribeChannelResponse EndDescribeChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeHarvestJob /// /// Gets details about an existing HarvestJob. /// /// Container for the necessary parameters to execute the DescribeHarvestJob service method. /// /// The response from the DescribeHarvestJob service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for DescribeHarvestJob Operation public virtual DescribeHarvestJobResponse DescribeHarvestJob(DescribeHarvestJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHarvestJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHarvestJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeHarvestJob operation. /// /// /// Container for the necessary parameters to execute the DescribeHarvestJob operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeHarvestJob /// operation. /// REST API Reference for DescribeHarvestJob Operation public virtual IAsyncResult BeginDescribeHarvestJob(DescribeHarvestJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeHarvestJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeHarvestJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeHarvestJob operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeHarvestJob. /// /// Returns a DescribeHarvestJobResult from MediaPackage. /// REST API Reference for DescribeHarvestJob Operation public virtual DescribeHarvestJobResponse EndDescribeHarvestJob(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeOriginEndpoint /// /// Gets details about an existing OriginEndpoint. /// /// Container for the necessary parameters to execute the DescribeOriginEndpoint service method. /// /// The response from the DescribeOriginEndpoint service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for DescribeOriginEndpoint Operation public virtual DescribeOriginEndpointResponse DescribeOriginEndpoint(DescribeOriginEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOriginEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeOriginEndpoint operation. /// /// /// Container for the necessary parameters to execute the DescribeOriginEndpoint operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeOriginEndpoint /// operation. /// REST API Reference for DescribeOriginEndpoint Operation public virtual IAsyncResult BeginDescribeOriginEndpoint(DescribeOriginEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeOriginEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeOriginEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeOriginEndpoint. /// /// Returns a DescribeOriginEndpointResult from MediaPackage. /// REST API Reference for DescribeOriginEndpoint Operation public virtual DescribeOriginEndpointResponse EndDescribeOriginEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListChannels /// /// Returns a collection of Channels. /// /// Container for the necessary parameters to execute the ListChannels service method. /// /// The response from the ListChannels service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for ListChannels Operation public virtual ListChannelsResponse ListChannels(ListChannelsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListChannels operation. /// /// /// Container for the necessary parameters to execute the ListChannels operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListChannels /// operation. /// REST API Reference for ListChannels Operation public virtual IAsyncResult BeginListChannels(ListChannelsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListChannelsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListChannelsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListChannels operation. /// /// /// The IAsyncResult returned by the call to BeginListChannels. /// /// Returns a ListChannelsResult from MediaPackage. /// REST API Reference for ListChannels Operation public virtual ListChannelsResponse EndListChannels(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListHarvestJobs /// /// Returns a collection of HarvestJob records. /// /// Container for the necessary parameters to execute the ListHarvestJobs service method. /// /// The response from the ListHarvestJobs service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for ListHarvestJobs Operation public virtual ListHarvestJobsResponse ListHarvestJobs(ListHarvestJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListHarvestJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHarvestJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListHarvestJobs operation. /// /// /// Container for the necessary parameters to execute the ListHarvestJobs operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListHarvestJobs /// operation. /// REST API Reference for ListHarvestJobs Operation public virtual IAsyncResult BeginListHarvestJobs(ListHarvestJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListHarvestJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListHarvestJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListHarvestJobs operation. /// /// /// The IAsyncResult returned by the call to BeginListHarvestJobs. /// /// Returns a ListHarvestJobsResult from MediaPackage. /// REST API Reference for ListHarvestJobs Operation public virtual ListHarvestJobsResponse EndListHarvestJobs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListOriginEndpoints /// /// Returns a collection of OriginEndpoint records. /// /// Container for the necessary parameters to execute the ListOriginEndpoints service method. /// /// The response from the ListOriginEndpoints service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for ListOriginEndpoints Operation public virtual ListOriginEndpointsResponse ListOriginEndpoints(ListOriginEndpointsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListOriginEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOriginEndpointsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListOriginEndpoints operation. /// /// /// Container for the necessary parameters to execute the ListOriginEndpoints operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListOriginEndpoints /// operation. /// REST API Reference for ListOriginEndpoints Operation public virtual IAsyncResult BeginListOriginEndpoints(ListOriginEndpointsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListOriginEndpointsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListOriginEndpointsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListOriginEndpoints operation. /// /// /// The IAsyncResult returned by the call to BeginListOriginEndpoints. /// /// Returns a ListOriginEndpointsResult from MediaPackage. /// REST API Reference for ListOriginEndpoints Operation public virtual ListOriginEndpointsResponse EndListOriginEndpoints(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by MediaPackage. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation. /// REST API Reference for ListTagsForResource Operation public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListTagsForResource operation. /// /// /// The IAsyncResult returned by the call to BeginListTagsForResource. /// /// Returns a ListTagsForResourceResult from MediaPackage. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RotateChannelCredentials /// /// Changes the Channel's first IngestEndpoint's username and password. WARNING - This /// API is deprecated. Please use RotateIngestEndpointCredentials instead /// /// Container for the necessary parameters to execute the RotateChannelCredentials service method. /// /// The response from the RotateChannelCredentials service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for RotateChannelCredentials Operation [Obsolete("This API is deprecated. Please use RotateIngestEndpointCredentials instead")] public virtual RotateChannelCredentialsResponse RotateChannelCredentials(RotateChannelCredentialsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RotateChannelCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = RotateChannelCredentialsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RotateChannelCredentials operation. /// /// /// Container for the necessary parameters to execute the RotateChannelCredentials operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRotateChannelCredentials /// operation. /// REST API Reference for RotateChannelCredentials Operation [Obsolete("This API is deprecated. Please use RotateIngestEndpointCredentials instead")] public virtual IAsyncResult BeginRotateChannelCredentials(RotateChannelCredentialsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RotateChannelCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = RotateChannelCredentialsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RotateChannelCredentials operation. /// /// /// The IAsyncResult returned by the call to BeginRotateChannelCredentials. /// /// Returns a RotateChannelCredentialsResult from MediaPackage. /// REST API Reference for RotateChannelCredentials Operation [Obsolete("This API is deprecated. Please use RotateIngestEndpointCredentials instead")] public virtual RotateChannelCredentialsResponse EndRotateChannelCredentials(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region RotateIngestEndpointCredentials /// /// Rotate the IngestEndpoint's username and password, as specified by the IngestEndpoint's /// id. /// /// Container for the necessary parameters to execute the RotateIngestEndpointCredentials service method. /// /// The response from the RotateIngestEndpointCredentials service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for RotateIngestEndpointCredentials Operation public virtual RotateIngestEndpointCredentialsResponse RotateIngestEndpointCredentials(RotateIngestEndpointCredentialsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RotateIngestEndpointCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = RotateIngestEndpointCredentialsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RotateIngestEndpointCredentials operation. /// /// /// Container for the necessary parameters to execute the RotateIngestEndpointCredentials operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRotateIngestEndpointCredentials /// operation. /// REST API Reference for RotateIngestEndpointCredentials Operation public virtual IAsyncResult BeginRotateIngestEndpointCredentials(RotateIngestEndpointCredentialsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RotateIngestEndpointCredentialsRequestMarshaller.Instance; options.ResponseUnmarshaller = RotateIngestEndpointCredentialsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the RotateIngestEndpointCredentials operation. /// /// /// The IAsyncResult returned by the call to BeginRotateIngestEndpointCredentials. /// /// Returns a RotateIngestEndpointCredentialsResult from MediaPackage. /// REST API Reference for RotateIngestEndpointCredentials Operation public virtual RotateIngestEndpointCredentialsResponse EndRotateIngestEndpointCredentials(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by MediaPackage. /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation. /// REST API Reference for TagResource Operation public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TagResource operation. /// /// /// The IAsyncResult returned by the call to BeginTagResource. /// /// Returns a TagResourceResult from MediaPackage. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by MediaPackage. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation. /// REST API Reference for UntagResource Operation public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UntagResource operation. /// /// /// The IAsyncResult returned by the call to BeginUntagResource. /// /// Returns a UntagResourceResult from MediaPackage. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateChannel /// /// Updates an existing Channel. /// /// Container for the necessary parameters to execute the UpdateChannel service method. /// /// The response from the UpdateChannel service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for UpdateChannel Operation public virtual UpdateChannelResponse UpdateChannel(UpdateChannelRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateChannel operation. /// /// /// Container for the necessary parameters to execute the UpdateChannel operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateChannel /// operation. /// REST API Reference for UpdateChannel Operation public virtual IAsyncResult BeginUpdateChannel(UpdateChannelRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateChannelRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateChannelResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateChannel operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateChannel. /// /// Returns a UpdateChannelResult from MediaPackage. /// REST API Reference for UpdateChannel Operation public virtual UpdateChannelResponse EndUpdateChannel(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdateOriginEndpoint /// /// Updates an existing OriginEndpoint. /// /// Container for the necessary parameters to execute the UpdateOriginEndpoint service method. /// /// The response from the UpdateOriginEndpoint service method, as returned by MediaPackage. /// /// The client is not authorized to access the requested resource. /// /// /// An unexpected error occurred. /// /// /// The requested resource does not exist. /// /// /// An unexpected error occurred. /// /// /// The client has exceeded their resource or throttling limits. /// /// /// The parameters sent in the request are not valid. /// /// REST API Reference for UpdateOriginEndpoint Operation public virtual UpdateOriginEndpointResponse UpdateOriginEndpoint(UpdateOriginEndpointRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateOriginEndpointResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateOriginEndpoint operation. /// /// /// Container for the necessary parameters to execute the UpdateOriginEndpoint operation on AmazonMediaPackageClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateOriginEndpoint /// operation. /// REST API Reference for UpdateOriginEndpoint Operation public virtual IAsyncResult BeginUpdateOriginEndpoint(UpdateOriginEndpointRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateOriginEndpointRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateOriginEndpointResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdateOriginEndpoint operation. /// /// /// The IAsyncResult returned by the call to BeginUpdateOriginEndpoint. /// /// Returns a UpdateOriginEndpointResult from MediaPackage. /// REST API Reference for UpdateOriginEndpoint Operation public virtual UpdateOriginEndpointResponse EndUpdateOriginEndpoint(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }