/* * 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-vod-2018-11-07.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.MediaPackageVod.Model; using Amazon.MediaPackageVod.Model.Internal.MarshallTransformations; using Amazon.MediaPackageVod.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MediaPackageVod { /// /// Implementation for accessing MediaPackageVod /// /// AWS Elemental MediaPackage VOD /// public partial class AmazonMediaPackageVodClient : AmazonServiceClient, IAmazonMediaPackageVod { private static IServiceMetadata serviceMetadata = new AmazonMediaPackageVodMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IMediaPackageVodPaginatorFactory _paginators; /// /// Paginators for the service /// public IMediaPackageVodPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MediaPackageVodPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonMediaPackageVodClient 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 AmazonMediaPackageVodClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaPackageVodConfig()) { } /// /// Constructs AmazonMediaPackageVodClient 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 AmazonMediaPackageVodClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaPackageVodConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaPackageVodClient 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 AmazonMediaPackageVodClient Configuration Object public AmazonMediaPackageVodClient(AmazonMediaPackageVodConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMediaPackageVodClient with AWS Credentials /// /// AWS Credentials public AmazonMediaPackageVodClient(AWSCredentials credentials) : this(credentials, new AmazonMediaPackageVodConfig()) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMediaPackageVodClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMediaPackageVodConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Credentials and an /// AmazonMediaPackageVodClient Configuration object. /// /// AWS Credentials /// The AmazonMediaPackageVodClient Configuration Object public AmazonMediaPackageVodClient(AWSCredentials credentials, AmazonMediaPackageVodConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaPackageVodConfig()) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaPackageVodConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaPackageVodClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMediaPackageVodClient Configuration Object public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMediaPackageVodConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaPackageVodConfig()) { } /// /// Constructs AmazonMediaPackageVodClient 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 AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaPackageVodConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaPackageVodClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaPackageVodClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMediaPackageVodClient Configuration Object public AmazonMediaPackageVodClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMediaPackageVodConfig 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 AmazonMediaPackageVodEndpointResolver()); } /// /// 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 packaging group'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 MediaPackageVod. /// /// 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 AmazonMediaPackageVodClient. /// 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 MediaPackageVod. /// REST API Reference for ConfigureLogs Operation public virtual ConfigureLogsResponse EndConfigureLogs(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreateAsset /// /// Creates a new MediaPackage VOD Asset resource. /// /// Container for the necessary parameters to execute the CreateAsset service method. /// /// The response from the CreateAsset service method, as returned by MediaPackageVod. /// /// 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 CreateAsset Operation public virtual CreateAssetResponse CreateAsset(CreateAssetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAssetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateAsset operation. /// /// /// Container for the necessary parameters to execute the CreateAsset operation on AmazonMediaPackageVodClient. /// 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 EndCreateAsset /// operation. /// REST API Reference for CreateAsset Operation public virtual IAsyncResult BeginCreateAsset(CreateAssetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAssetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateAsset operation. /// /// /// The IAsyncResult returned by the call to BeginCreateAsset. /// /// Returns a CreateAssetResult from MediaPackageVod. /// REST API Reference for CreateAsset Operation public virtual CreateAssetResponse EndCreateAsset(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreatePackagingConfiguration /// /// Creates a new MediaPackage VOD PackagingConfiguration resource. /// /// Container for the necessary parameters to execute the CreatePackagingConfiguration service method. /// /// The response from the CreatePackagingConfiguration service method, as returned by MediaPackageVod. /// /// 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 CreatePackagingConfiguration Operation public virtual CreatePackagingConfigurationResponse CreatePackagingConfiguration(CreatePackagingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackagingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackagingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreatePackagingConfiguration operation. /// /// /// Container for the necessary parameters to execute the CreatePackagingConfiguration operation on AmazonMediaPackageVodClient. /// 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 EndCreatePackagingConfiguration /// operation. /// REST API Reference for CreatePackagingConfiguration Operation public virtual IAsyncResult BeginCreatePackagingConfiguration(CreatePackagingConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackagingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackagingConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreatePackagingConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginCreatePackagingConfiguration. /// /// Returns a CreatePackagingConfigurationResult from MediaPackageVod. /// REST API Reference for CreatePackagingConfiguration Operation public virtual CreatePackagingConfigurationResponse EndCreatePackagingConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region CreatePackagingGroup /// /// Creates a new MediaPackage VOD PackagingGroup resource. /// /// Container for the necessary parameters to execute the CreatePackagingGroup service method. /// /// The response from the CreatePackagingGroup service method, as returned by MediaPackageVod. /// /// 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 CreatePackagingGroup Operation public virtual CreatePackagingGroupResponse CreatePackagingGroup(CreatePackagingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackagingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreatePackagingGroup operation. /// /// /// Container for the necessary parameters to execute the CreatePackagingGroup operation on AmazonMediaPackageVodClient. /// 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 EndCreatePackagingGroup /// operation. /// REST API Reference for CreatePackagingGroup Operation public virtual IAsyncResult BeginCreatePackagingGroup(CreatePackagingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreatePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreatePackagingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreatePackagingGroup operation. /// /// /// The IAsyncResult returned by the call to BeginCreatePackagingGroup. /// /// Returns a CreatePackagingGroupResult from MediaPackageVod. /// REST API Reference for CreatePackagingGroup Operation public virtual CreatePackagingGroupResponse EndCreatePackagingGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteAsset /// /// Deletes an existing MediaPackage VOD Asset resource. /// /// Container for the necessary parameters to execute the DeleteAsset service method. /// /// The response from the DeleteAsset service method, as returned by MediaPackageVod. /// /// 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 DeleteAsset Operation public virtual DeleteAssetResponse DeleteAsset(DeleteAssetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteAsset operation. /// /// /// Container for the necessary parameters to execute the DeleteAsset operation on AmazonMediaPackageVodClient. /// 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 EndDeleteAsset /// operation. /// REST API Reference for DeleteAsset Operation public virtual IAsyncResult BeginDeleteAsset(DeleteAssetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAssetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteAsset operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteAsset. /// /// Returns a DeleteAssetResult from MediaPackageVod. /// REST API Reference for DeleteAsset Operation public virtual DeleteAssetResponse EndDeleteAsset(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeletePackagingConfiguration /// /// Deletes a MediaPackage VOD PackagingConfiguration resource. /// /// Container for the necessary parameters to execute the DeletePackagingConfiguration service method. /// /// The response from the DeletePackagingConfiguration service method, as returned by MediaPackageVod. /// /// 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 DeletePackagingConfiguration Operation public virtual DeletePackagingConfigurationResponse DeletePackagingConfiguration(DeletePackagingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackagingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackagingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeletePackagingConfiguration operation. /// /// /// Container for the necessary parameters to execute the DeletePackagingConfiguration operation on AmazonMediaPackageVodClient. /// 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 EndDeletePackagingConfiguration /// operation. /// REST API Reference for DeletePackagingConfiguration Operation public virtual IAsyncResult BeginDeletePackagingConfiguration(DeletePackagingConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackagingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackagingConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeletePackagingConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginDeletePackagingConfiguration. /// /// Returns a DeletePackagingConfigurationResult from MediaPackageVod. /// REST API Reference for DeletePackagingConfiguration Operation public virtual DeletePackagingConfigurationResponse EndDeletePackagingConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeletePackagingGroup /// /// Deletes a MediaPackage VOD PackagingGroup resource. /// /// Container for the necessary parameters to execute the DeletePackagingGroup service method. /// /// The response from the DeletePackagingGroup service method, as returned by MediaPackageVod. /// /// 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 DeletePackagingGroup Operation public virtual DeletePackagingGroupResponse DeletePackagingGroup(DeletePackagingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackagingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeletePackagingGroup operation. /// /// /// Container for the necessary parameters to execute the DeletePackagingGroup operation on AmazonMediaPackageVodClient. /// 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 EndDeletePackagingGroup /// operation. /// REST API Reference for DeletePackagingGroup Operation public virtual IAsyncResult BeginDeletePackagingGroup(DeletePackagingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePackagingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeletePackagingGroup operation. /// /// /// The IAsyncResult returned by the call to BeginDeletePackagingGroup. /// /// Returns a DeletePackagingGroupResult from MediaPackageVod. /// REST API Reference for DeletePackagingGroup Operation public virtual DeletePackagingGroupResponse EndDeletePackagingGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeAsset /// /// Returns a description of a MediaPackage VOD Asset resource. /// /// Container for the necessary parameters to execute the DescribeAsset service method. /// /// The response from the DescribeAsset service method, as returned by MediaPackageVod. /// /// 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 DescribeAsset Operation public virtual DescribeAssetResponse DescribeAsset(DescribeAssetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeAsset operation. /// /// /// Container for the necessary parameters to execute the DescribeAsset operation on AmazonMediaPackageVodClient. /// 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 EndDescribeAsset /// operation. /// REST API Reference for DescribeAsset Operation public virtual IAsyncResult BeginDescribeAsset(DescribeAssetRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAssetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAssetResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeAsset operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeAsset. /// /// Returns a DescribeAssetResult from MediaPackageVod. /// REST API Reference for DescribeAsset Operation public virtual DescribeAssetResponse EndDescribeAsset(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribePackagingConfiguration /// /// Returns a description of a MediaPackage VOD PackagingConfiguration resource. /// /// Container for the necessary parameters to execute the DescribePackagingConfiguration service method. /// /// The response from the DescribePackagingConfiguration service method, as returned by MediaPackageVod. /// /// 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 DescribePackagingConfiguration Operation public virtual DescribePackagingConfigurationResponse DescribePackagingConfiguration(DescribePackagingConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackagingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackagingConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribePackagingConfiguration operation. /// /// /// Container for the necessary parameters to execute the DescribePackagingConfiguration operation on AmazonMediaPackageVodClient. /// 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 EndDescribePackagingConfiguration /// operation. /// REST API Reference for DescribePackagingConfiguration Operation public virtual IAsyncResult BeginDescribePackagingConfiguration(DescribePackagingConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackagingConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackagingConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribePackagingConfiguration operation. /// /// /// The IAsyncResult returned by the call to BeginDescribePackagingConfiguration. /// /// Returns a DescribePackagingConfigurationResult from MediaPackageVod. /// REST API Reference for DescribePackagingConfiguration Operation public virtual DescribePackagingConfigurationResponse EndDescribePackagingConfiguration(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribePackagingGroup /// /// Returns a description of a MediaPackage VOD PackagingGroup resource. /// /// Container for the necessary parameters to execute the DescribePackagingGroup service method. /// /// The response from the DescribePackagingGroup service method, as returned by MediaPackageVod. /// /// 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 DescribePackagingGroup Operation public virtual DescribePackagingGroupResponse DescribePackagingGroup(DescribePackagingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackagingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribePackagingGroup operation. /// /// /// Container for the necessary parameters to execute the DescribePackagingGroup operation on AmazonMediaPackageVodClient. /// 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 EndDescribePackagingGroup /// operation. /// REST API Reference for DescribePackagingGroup Operation public virtual IAsyncResult BeginDescribePackagingGroup(DescribePackagingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePackagingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribePackagingGroup operation. /// /// /// The IAsyncResult returned by the call to BeginDescribePackagingGroup. /// /// Returns a DescribePackagingGroupResult from MediaPackageVod. /// REST API Reference for DescribePackagingGroup Operation public virtual DescribePackagingGroupResponse EndDescribePackagingGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListAssets /// /// Returns a collection of MediaPackage VOD Asset resources. /// /// Container for the necessary parameters to execute the ListAssets service method. /// /// The response from the ListAssets service method, as returned by MediaPackageVod. /// /// 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 ListAssets Operation public virtual ListAssetsResponse ListAssets(ListAssetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListAssets operation. /// /// /// Container for the necessary parameters to execute the ListAssets operation on AmazonMediaPackageVodClient. /// 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 EndListAssets /// operation. /// REST API Reference for ListAssets Operation public virtual IAsyncResult BeginListAssets(ListAssetsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListAssetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAssetsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListAssets operation. /// /// /// The IAsyncResult returned by the call to BeginListAssets. /// /// Returns a ListAssetsResult from MediaPackageVod. /// REST API Reference for ListAssets Operation public virtual ListAssetsResponse EndListAssets(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListPackagingConfigurations /// /// Returns a collection of MediaPackage VOD PackagingConfiguration resources. /// /// Container for the necessary parameters to execute the ListPackagingConfigurations service method. /// /// The response from the ListPackagingConfigurations service method, as returned by MediaPackageVod. /// /// 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 ListPackagingConfigurations Operation public virtual ListPackagingConfigurationsResponse ListPackagingConfigurations(ListPackagingConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagingConfigurationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListPackagingConfigurations operation. /// /// /// Container for the necessary parameters to execute the ListPackagingConfigurations operation on AmazonMediaPackageVodClient. /// 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 EndListPackagingConfigurations /// operation. /// REST API Reference for ListPackagingConfigurations Operation public virtual IAsyncResult BeginListPackagingConfigurations(ListPackagingConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagingConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagingConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListPackagingConfigurations operation. /// /// /// The IAsyncResult returned by the call to BeginListPackagingConfigurations. /// /// Returns a ListPackagingConfigurationsResult from MediaPackageVod. /// REST API Reference for ListPackagingConfigurations Operation public virtual ListPackagingConfigurationsResponse EndListPackagingConfigurations(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListPackagingGroups /// /// Returns a collection of MediaPackage VOD PackagingGroup resources. /// /// Container for the necessary parameters to execute the ListPackagingGroups service method. /// /// The response from the ListPackagingGroups service method, as returned by MediaPackageVod. /// /// 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 ListPackagingGroups Operation public virtual ListPackagingGroupsResponse ListPackagingGroups(ListPackagingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagingGroupsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListPackagingGroups operation. /// /// /// Container for the necessary parameters to execute the ListPackagingGroups operation on AmazonMediaPackageVodClient. /// 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 EndListPackagingGroups /// operation. /// REST API Reference for ListPackagingGroups Operation public virtual IAsyncResult BeginListPackagingGroups(ListPackagingGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListPackagingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListPackagingGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListPackagingGroups operation. /// /// /// The IAsyncResult returned by the call to BeginListPackagingGroups. /// /// Returns a ListPackagingGroupsResult from MediaPackageVod. /// REST API Reference for ListPackagingGroups Operation public virtual ListPackagingGroupsResponse EndListPackagingGroups(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Returns a list of the tags assigned to the specified resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by MediaPackageVod. /// 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 AmazonMediaPackageVodClient. /// 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 MediaPackageVod. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Adds tags to the specified resource. You can specify one or more tags to add. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by MediaPackageVod. /// 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 AmazonMediaPackageVodClient. /// 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 MediaPackageVod. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes tags from the specified resource. You can specify one or more tags to remove. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by MediaPackageVod. /// 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 AmazonMediaPackageVodClient. /// 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 MediaPackageVod. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UpdatePackagingGroup /// /// Updates a specific packaging group. You can't change the id attribute or any other /// system-generated attributes. /// /// Container for the necessary parameters to execute the UpdatePackagingGroup service method. /// /// The response from the UpdatePackagingGroup service method, as returned by MediaPackageVod. /// /// 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 UpdatePackagingGroup Operation public virtual UpdatePackagingGroupResponse UpdatePackagingGroup(UpdatePackagingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackagingGroupResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdatePackagingGroup operation. /// /// /// Container for the necessary parameters to execute the UpdatePackagingGroup operation on AmazonMediaPackageVodClient. /// 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 EndUpdatePackagingGroup /// operation. /// REST API Reference for UpdatePackagingGroup Operation public virtual IAsyncResult BeginUpdatePackagingGroup(UpdatePackagingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdatePackagingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdatePackagingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the UpdatePackagingGroup operation. /// /// /// The IAsyncResult returned by the call to BeginUpdatePackagingGroup. /// /// Returns a UpdatePackagingGroupResult from MediaPackageVod. /// REST API Reference for UpdatePackagingGroup Operation public virtual UpdatePackagingGroupResponse EndUpdatePackagingGroup(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }