/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
#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
#if 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 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 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
internal virtual ConfigureLogsResponse ConfigureLogs(ConfigureLogsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ConfigureLogsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ConfigureLogsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Changes the Channel's properities to configure log subscription
///
/// Container for the necessary parameters to execute the ConfigureLogs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ConfigureLogsAsync(ConfigureLogsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ConfigureLogsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ConfigureLogsResponseUnmarshaller.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 new Channel.
///
/// 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 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 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 CreateHarvestJob
internal virtual CreateHarvestJobResponse CreateHarvestJob(CreateHarvestJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateHarvestJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateHarvestJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new HarvestJob record.
///
/// Container for the necessary parameters to execute the CreateHarvestJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateHarvestJobAsync(CreateHarvestJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateHarvestJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateHarvestJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateOriginEndpoint
internal virtual CreateOriginEndpointResponse CreateOriginEndpoint(CreateOriginEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOriginEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new OriginEndpoint record.
///
/// Container for the necessary parameters to execute the CreateOriginEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateOriginEndpointAsync(CreateOriginEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateOriginEndpointResponseUnmarshaller.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 an existing Channel.
///
/// 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 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 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 DeleteOriginEndpoint
internal virtual DeleteOriginEndpointResponse DeleteOriginEndpoint(DeleteOriginEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOriginEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an existing OriginEndpoint.
///
/// Container for the necessary parameters to execute the DeleteOriginEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DeleteOriginEndpointAsync(DeleteOriginEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteOriginEndpointResponseUnmarshaller.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);
}
///
/// Gets details about a Channel.
///
/// 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 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 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 DescribeHarvestJob
internal virtual DescribeHarvestJobResponse DescribeHarvestJob(DescribeHarvestJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHarvestJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHarvestJobResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets details about an existing HarvestJob.
///
/// Container for the necessary parameters to execute the DescribeHarvestJob service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeHarvestJobAsync(DescribeHarvestJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeHarvestJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeHarvestJobResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeOriginEndpoint
internal virtual DescribeOriginEndpointResponse DescribeOriginEndpoint(DescribeOriginEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOriginEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets details about an existing OriginEndpoint.
///
/// Container for the necessary parameters to execute the DescribeOriginEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeOriginEndpointAsync(DescribeOriginEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeOriginEndpointResponseUnmarshaller.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);
}
///
/// Returns a collection of Channels.
///
/// 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 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 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 ListHarvestJobs
internal virtual ListHarvestJobsResponse ListHarvestJobs(ListHarvestJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHarvestJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHarvestJobsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a collection of HarvestJob records.
///
/// Container for the necessary parameters to execute the ListHarvestJobs service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListHarvestJobsAsync(ListHarvestJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListHarvestJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListHarvestJobsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListOriginEndpoints
internal virtual ListOriginEndpointsResponse ListOriginEndpoints(ListOriginEndpointsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOriginEndpointsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOriginEndpointsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a collection of OriginEndpoint records.
///
/// Container for the necessary parameters to execute the ListOriginEndpoints service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListOriginEndpointsAsync(ListOriginEndpointsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListOriginEndpointsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListOriginEndpointsResponseUnmarshaller.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);
}
///
///
///
/// 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 MediaPackage.
/// 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 RotateChannelCredentials
[Obsolete("This API is deprecated. Please use RotateIngestEndpointCredentials instead")]
internal virtual RotateChannelCredentialsResponse RotateChannelCredentials(RotateChannelCredentialsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RotateChannelCredentialsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RotateChannelCredentialsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RotateChannelCredentialsAsync(RotateChannelCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RotateChannelCredentialsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RotateChannelCredentialsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RotateIngestEndpointCredentials
internal virtual RotateIngestEndpointCredentialsResponse RotateIngestEndpointCredentials(RotateIngestEndpointCredentialsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RotateIngestEndpointCredentialsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RotateIngestEndpointCredentialsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task RotateIngestEndpointCredentialsAsync(RotateIngestEndpointCredentialsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RotateIngestEndpointCredentialsRequestMarshaller.Instance;
options.ResponseUnmarshaller = RotateIngestEndpointCredentialsResponseUnmarshaller.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);
}
///
///
///
/// 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 MediaPackage.
/// 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);
}
///
///
///
/// 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 MediaPackage.
/// 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 an existing Channel.
///
/// 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 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 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 UpdateOriginEndpoint
internal virtual UpdateOriginEndpointResponse UpdateOriginEndpoint(UpdateOriginEndpointRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOriginEndpointResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates an existing OriginEndpoint.
///
/// Container for the necessary parameters to execute the UpdateOriginEndpoint service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UpdateOriginEndpointAsync(UpdateOriginEndpointRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateOriginEndpointRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateOriginEndpointResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}