/* * 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 mediastore-2017-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.MediaStore.Model; using Amazon.MediaStore.Model.Internal.MarshallTransformations; using Amazon.MediaStore.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.MediaStore { /// /// Implementation for accessing MediaStore /// /// An AWS Elemental MediaStore container is a namespace that holds folders and objects. /// You use a container endpoint to create, read, and delete objects. /// public partial class AmazonMediaStoreClient : AmazonServiceClient, IAmazonMediaStore { private static IServiceMetadata serviceMetadata = new AmazonMediaStoreMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IMediaStorePaginatorFactory _paginators; /// /// Paginators for the service /// public IMediaStorePaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new MediaStorePaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonMediaStoreClient 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 AmazonMediaStoreClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaStoreConfig()) { } /// /// Constructs AmazonMediaStoreClient 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 AmazonMediaStoreClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonMediaStoreConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaStoreClient 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 AmazonMediaStoreClient Configuration Object public AmazonMediaStoreClient(AmazonMediaStoreConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonMediaStoreClient with AWS Credentials /// /// AWS Credentials public AmazonMediaStoreClient(AWSCredentials credentials) : this(credentials, new AmazonMediaStoreConfig()) { } /// /// Constructs AmazonMediaStoreClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonMediaStoreClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonMediaStoreConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaStoreClient with AWS Credentials and an /// AmazonMediaStoreClient Configuration object. /// /// AWS Credentials /// The AmazonMediaStoreClient Configuration Object public AmazonMediaStoreClient(AWSCredentials credentials, AmazonMediaStoreConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonMediaStoreClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonMediaStoreClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaStoreConfig()) { } /// /// Constructs AmazonMediaStoreClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonMediaStoreClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonMediaStoreConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonMediaStoreClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaStoreClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonMediaStoreClient Configuration Object public AmazonMediaStoreClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMediaStoreConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonMediaStoreClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonMediaStoreClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaStoreConfig()) { } /// /// Constructs AmazonMediaStoreClient 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 AmazonMediaStoreClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMediaStoreConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonMediaStoreClient with AWS Access Key ID, AWS Secret Key and an /// AmazonMediaStoreClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonMediaStoreClient Configuration Object public AmazonMediaStoreClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMediaStoreConfig 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 AmazonMediaStoreEndpointResolver()); } /// /// 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 CreateContainer /// /// Creates a storage container to hold objects. A container is similar to a bucket in /// the Amazon S3 service. /// /// Container for the necessary parameters to execute the CreateContainer service method. /// /// The response from the CreateContainer service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The service is temporarily unavailable. /// /// /// A service limit has been exceeded. /// /// REST API Reference for CreateContainer Operation public virtual CreateContainerResponse CreateContainer(CreateContainerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateContainerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateContainerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateContainer operation. /// /// /// Container for the necessary parameters to execute the CreateContainer operation on AmazonMediaStoreClient. /// 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 EndCreateContainer /// operation. /// REST API Reference for CreateContainer Operation public virtual IAsyncResult BeginCreateContainer(CreateContainerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateContainerRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateContainerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the CreateContainer operation. /// /// /// The IAsyncResult returned by the call to BeginCreateContainer. /// /// Returns a CreateContainerResult from MediaStore. /// REST API Reference for CreateContainer Operation public virtual CreateContainerResponse EndCreateContainer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteContainer /// /// Deletes the specified container. Before you make a DeleteContainer request, /// delete any objects in the container or in any folders in the container. You can delete /// only empty containers. /// /// Container for the necessary parameters to execute the DeleteContainer service method. /// /// The response from the DeleteContainer service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for DeleteContainer Operation public virtual DeleteContainerResponse DeleteContainer(DeleteContainerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteContainerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteContainerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteContainer operation. /// /// /// Container for the necessary parameters to execute the DeleteContainer operation on AmazonMediaStoreClient. /// 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 EndDeleteContainer /// operation. /// REST API Reference for DeleteContainer Operation public virtual IAsyncResult BeginDeleteContainer(DeleteContainerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteContainerRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteContainerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteContainer operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteContainer. /// /// Returns a DeleteContainerResult from MediaStore. /// REST API Reference for DeleteContainer Operation public virtual DeleteContainerResponse EndDeleteContainer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteContainerPolicy /// /// Deletes the access policy that is associated with the specified container. /// /// Container for the necessary parameters to execute the DeleteContainerPolicy service method. /// /// The response from the DeleteContainerPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The policy that you specified in the request does not exist. /// /// REST API Reference for DeleteContainerPolicy Operation public virtual DeleteContainerPolicyResponse DeleteContainerPolicy(DeleteContainerPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteContainerPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteContainerPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteContainerPolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteContainerPolicy operation on AmazonMediaStoreClient. /// 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 EndDeleteContainerPolicy /// operation. /// REST API Reference for DeleteContainerPolicy Operation public virtual IAsyncResult BeginDeleteContainerPolicy(DeleteContainerPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteContainerPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteContainerPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteContainerPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteContainerPolicy. /// /// Returns a DeleteContainerPolicyResult from MediaStore. /// REST API Reference for DeleteContainerPolicy Operation public virtual DeleteContainerPolicyResponse EndDeleteContainerPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteCorsPolicy /// /// Deletes the cross-origin resource sharing (CORS) configuration information that is /// set for the container. /// /// /// /// To use this operation, you must have permission to perform the MediaStore:DeleteCorsPolicy /// action. The container owner has this permission by default and can grant this permission /// to others. /// /// /// Container for the necessary parameters to execute the DeleteCorsPolicy service method. /// /// The response from the DeleteCorsPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The CORS policy that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for DeleteCorsPolicy Operation public virtual DeleteCorsPolicyResponse DeleteCorsPolicy(DeleteCorsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCorsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCorsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteCorsPolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteCorsPolicy operation on AmazonMediaStoreClient. /// 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 EndDeleteCorsPolicy /// operation. /// REST API Reference for DeleteCorsPolicy Operation public virtual IAsyncResult BeginDeleteCorsPolicy(DeleteCorsPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCorsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCorsPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteCorsPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteCorsPolicy. /// /// Returns a DeleteCorsPolicyResult from MediaStore. /// REST API Reference for DeleteCorsPolicy Operation public virtual DeleteCorsPolicyResponse EndDeleteCorsPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteLifecyclePolicy /// /// Removes an object lifecycle policy from a container. It takes up to 20 minutes for /// the change to take effect. /// /// Container for the necessary parameters to execute the DeleteLifecyclePolicy service method. /// /// The response from the DeleteLifecyclePolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The policy that you specified in the request does not exist. /// /// REST API Reference for DeleteLifecyclePolicy Operation public virtual DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteLifecyclePolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteLifecyclePolicy operation on AmazonMediaStoreClient. /// 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 EndDeleteLifecyclePolicy /// operation. /// REST API Reference for DeleteLifecyclePolicy Operation public virtual IAsyncResult BeginDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecyclePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteLifecyclePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteLifecyclePolicy. /// /// Returns a DeleteLifecyclePolicyResult from MediaStore. /// REST API Reference for DeleteLifecyclePolicy Operation public virtual DeleteLifecyclePolicyResponse EndDeleteLifecyclePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DeleteMetricPolicy /// /// Deletes the metric policy that is associated with the specified container. If there /// is no metric policy associated with the container, MediaStore doesn't send metrics /// to CloudWatch. /// /// Container for the necessary parameters to execute the DeleteMetricPolicy service method. /// /// The response from the DeleteMetricPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The policy that you specified in the request does not exist. /// /// REST API Reference for DeleteMetricPolicy Operation public virtual DeleteMetricPolicyResponse DeleteMetricPolicy(DeleteMetricPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteMetricPolicy operation. /// /// /// Container for the necessary parameters to execute the DeleteMetricPolicy operation on AmazonMediaStoreClient. /// 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 EndDeleteMetricPolicy /// operation. /// REST API Reference for DeleteMetricPolicy Operation public virtual IAsyncResult BeginDeleteMetricPolicy(DeleteMetricPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteMetricPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteMetricPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DeleteMetricPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginDeleteMetricPolicy. /// /// Returns a DeleteMetricPolicyResult from MediaStore. /// REST API Reference for DeleteMetricPolicy Operation public virtual DeleteMetricPolicyResponse EndDeleteMetricPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region DescribeContainer /// /// Retrieves the properties of the requested container. This request is commonly used /// to retrieve the endpoint of a container. An endpoint is a value assigned by the service /// when a new container is created. A container's endpoint does not change after it has /// been assigned. The DescribeContainer request returns a single Container /// object based on ContainerName. To return all Container objects /// that are associated with a specified AWS account, use ListContainers. /// /// Container for the necessary parameters to execute the DescribeContainer service method. /// /// The response from the DescribeContainer service method, as returned by MediaStore. /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for DescribeContainer Operation public virtual DescribeContainerResponse DescribeContainer(DescribeContainerRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeContainerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeContainerResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeContainer operation. /// /// /// Container for the necessary parameters to execute the DescribeContainer operation on AmazonMediaStoreClient. /// 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 EndDescribeContainer /// operation. /// REST API Reference for DescribeContainer Operation public virtual IAsyncResult BeginDescribeContainer(DescribeContainerRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeContainerRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeContainerResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the DescribeContainer operation. /// /// /// The IAsyncResult returned by the call to BeginDescribeContainer. /// /// Returns a DescribeContainerResult from MediaStore. /// REST API Reference for DescribeContainer Operation public virtual DescribeContainerResponse EndDescribeContainer(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetContainerPolicy /// /// Retrieves the access policy for the specified container. For information about the /// data that is included in an access policy, see the AWS /// Identity and Access Management User Guide. /// /// Container for the necessary parameters to execute the GetContainerPolicy service method. /// /// The response from the GetContainerPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The policy that you specified in the request does not exist. /// /// REST API Reference for GetContainerPolicy Operation public virtual GetContainerPolicyResponse GetContainerPolicy(GetContainerPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetContainerPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetContainerPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetContainerPolicy operation. /// /// /// Container for the necessary parameters to execute the GetContainerPolicy operation on AmazonMediaStoreClient. /// 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 EndGetContainerPolicy /// operation. /// REST API Reference for GetContainerPolicy Operation public virtual IAsyncResult BeginGetContainerPolicy(GetContainerPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetContainerPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetContainerPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetContainerPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetContainerPolicy. /// /// Returns a GetContainerPolicyResult from MediaStore. /// REST API Reference for GetContainerPolicy Operation public virtual GetContainerPolicyResponse EndGetContainerPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetCorsPolicy /// /// Returns the cross-origin resource sharing (CORS) configuration information that is /// set for the container. /// /// /// /// To use this operation, you must have permission to perform the MediaStore:GetCorsPolicy /// action. By default, the container owner has this permission and can grant it to others. /// /// /// Container for the necessary parameters to execute the GetCorsPolicy service method. /// /// The response from the GetCorsPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The CORS policy that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for GetCorsPolicy Operation public virtual GetCorsPolicyResponse GetCorsPolicy(GetCorsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCorsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCorsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetCorsPolicy operation. /// /// /// Container for the necessary parameters to execute the GetCorsPolicy operation on AmazonMediaStoreClient. /// 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 EndGetCorsPolicy /// operation. /// REST API Reference for GetCorsPolicy Operation public virtual IAsyncResult BeginGetCorsPolicy(GetCorsPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCorsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCorsPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetCorsPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetCorsPolicy. /// /// Returns a GetCorsPolicyResult from MediaStore. /// REST API Reference for GetCorsPolicy Operation public virtual GetCorsPolicyResponse EndGetCorsPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetLifecyclePolicy /// /// Retrieves the object lifecycle policy that is assigned to a container. /// /// Container for the necessary parameters to execute the GetLifecyclePolicy service method. /// /// The response from the GetLifecyclePolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The policy that you specified in the request does not exist. /// /// REST API Reference for GetLifecyclePolicy Operation public virtual GetLifecyclePolicyResponse GetLifecyclePolicy(GetLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetLifecyclePolicy operation. /// /// /// Container for the necessary parameters to execute the GetLifecyclePolicy operation on AmazonMediaStoreClient. /// 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 EndGetLifecyclePolicy /// operation. /// REST API Reference for GetLifecyclePolicy Operation public virtual IAsyncResult BeginGetLifecyclePolicy(GetLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLifecyclePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetLifecyclePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetLifecyclePolicy. /// /// Returns a GetLifecyclePolicyResult from MediaStore. /// REST API Reference for GetLifecyclePolicy Operation public virtual GetLifecyclePolicyResponse EndGetLifecyclePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region GetMetricPolicy /// /// Returns the metric policy for the specified container. /// /// Container for the necessary parameters to execute the GetMetricPolicy service method. /// /// The response from the GetMetricPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// /// The policy that you specified in the request does not exist. /// /// REST API Reference for GetMetricPolicy Operation public virtual GetMetricPolicyResponse GetMetricPolicy(GetMetricPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetMetricPolicy operation. /// /// /// Container for the necessary parameters to execute the GetMetricPolicy operation on AmazonMediaStoreClient. /// 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 EndGetMetricPolicy /// operation. /// REST API Reference for GetMetricPolicy Operation public virtual IAsyncResult BeginGetMetricPolicy(GetMetricPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetMetricPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = GetMetricPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the GetMetricPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginGetMetricPolicy. /// /// Returns a GetMetricPolicyResult from MediaStore. /// REST API Reference for GetMetricPolicy Operation public virtual GetMetricPolicyResponse EndGetMetricPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListContainers /// /// Lists the properties of all containers in AWS Elemental MediaStore. /// /// /// /// You can query to receive all the containers in one response. Or you can include the /// MaxResults parameter to receive a limited number of containers in each /// response. In this case, the response includes a token. To get the next set of containers, /// send the command again, this time with the NextToken parameter (with /// the returned token as its value). The next set of responses appears, with a token /// if there are still more containers to receive. /// /// /// /// See also DescribeContainer, which gets the properties of one container. /// /// /// Container for the necessary parameters to execute the ListContainers service method. /// /// The response from the ListContainers service method, as returned by MediaStore. /// /// The service is temporarily unavailable. /// /// REST API Reference for ListContainers Operation public virtual ListContainersResponse ListContainers(ListContainersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListContainersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListContainersResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListContainers operation. /// /// /// Container for the necessary parameters to execute the ListContainers operation on AmazonMediaStoreClient. /// 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 EndListContainers /// operation. /// REST API Reference for ListContainers Operation public virtual IAsyncResult BeginListContainers(ListContainersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListContainersRequestMarshaller.Instance; options.ResponseUnmarshaller = ListContainersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the ListContainers operation. /// /// /// The IAsyncResult returned by the call to BeginListContainers. /// /// Returns a ListContainersResult from MediaStore. /// REST API Reference for ListContainers Operation public virtual ListContainersResponse EndListContainers(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region ListTagsForResource /// /// Returns a list of the tags assigned to the specified container. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// 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 AmazonMediaStoreClient. /// 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 MediaStore. /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutContainerPolicy /// /// Creates an access policy for the specified container to restrict the users and clients /// that can access it. For information about the data that is included in an access policy, /// see the AWS Identity and Access /// Management User Guide. /// /// /// /// For this release of the REST API, you can create only one policy for a container. /// If you enter PutContainerPolicy twice, the second command modifies the /// existing policy. /// /// /// Container for the necessary parameters to execute the PutContainerPolicy service method. /// /// The response from the PutContainerPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for PutContainerPolicy Operation public virtual PutContainerPolicyResponse PutContainerPolicy(PutContainerPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutContainerPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutContainerPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutContainerPolicy operation. /// /// /// Container for the necessary parameters to execute the PutContainerPolicy operation on AmazonMediaStoreClient. /// 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 EndPutContainerPolicy /// operation. /// REST API Reference for PutContainerPolicy Operation public virtual IAsyncResult BeginPutContainerPolicy(PutContainerPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutContainerPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutContainerPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutContainerPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutContainerPolicy. /// /// Returns a PutContainerPolicyResult from MediaStore. /// REST API Reference for PutContainerPolicy Operation public virtual PutContainerPolicyResponse EndPutContainerPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutCorsPolicy /// /// Sets the cross-origin resource sharing (CORS) configuration on a container so that /// the container can service cross-origin requests. For example, you might want to enable /// a request whose origin is http://www.example.com to access your AWS Elemental MediaStore /// container at my.example.container.com by using the browser's XMLHttpRequest capability. /// /// /// /// To enable CORS on a container, you attach a CORS policy to the container. In the CORS /// policy, you configure rules that identify origins and the HTTP methods that can be /// executed on your container. The policy can contain up to 398,000 characters. You can /// add up to 100 rules to a CORS policy. If more than one rule applies, the service uses /// the first applicable rule listed. /// /// /// /// To learn more about CORS, see Cross-Origin /// Resource Sharing (CORS) in AWS Elemental MediaStore. /// /// /// Container for the necessary parameters to execute the PutCorsPolicy service method. /// /// The response from the PutCorsPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for PutCorsPolicy Operation public virtual PutCorsPolicyResponse PutCorsPolicy(PutCorsPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCorsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCorsPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutCorsPolicy operation. /// /// /// Container for the necessary parameters to execute the PutCorsPolicy operation on AmazonMediaStoreClient. /// 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 EndPutCorsPolicy /// operation. /// REST API Reference for PutCorsPolicy Operation public virtual IAsyncResult BeginPutCorsPolicy(PutCorsPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutCorsPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCorsPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutCorsPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutCorsPolicy. /// /// Returns a PutCorsPolicyResult from MediaStore. /// REST API Reference for PutCorsPolicy Operation public virtual PutCorsPolicyResponse EndPutCorsPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutLifecyclePolicy /// /// Writes an object lifecycle policy to a container. If the container already has an /// object lifecycle policy, the service replaces the existing policy with the new policy. /// It takes up to 20 minutes for the change to take effect. /// /// /// /// For information about how to construct an object lifecycle policy, see Components /// of an Object Lifecycle Policy. /// /// /// Container for the necessary parameters to execute the PutLifecyclePolicy service method. /// /// The response from the PutLifecyclePolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for PutLifecyclePolicy Operation public virtual PutLifecyclePolicyResponse PutLifecyclePolicy(PutLifecyclePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecyclePolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutLifecyclePolicy operation. /// /// /// Container for the necessary parameters to execute the PutLifecyclePolicy operation on AmazonMediaStoreClient. /// 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 EndPutLifecyclePolicy /// operation. /// REST API Reference for PutLifecyclePolicy Operation public virtual IAsyncResult BeginPutLifecyclePolicy(PutLifecyclePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecyclePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecyclePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutLifecyclePolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutLifecyclePolicy. /// /// Returns a PutLifecyclePolicyResult from MediaStore. /// REST API Reference for PutLifecyclePolicy Operation public virtual PutLifecyclePolicyResponse EndPutLifecyclePolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region PutMetricPolicy /// /// The metric policy that you want to add to the container. A metric policy allows AWS /// Elemental MediaStore to send metrics to Amazon CloudWatch. It takes up to 20 minutes /// for the new policy to take effect. /// /// Container for the necessary parameters to execute the PutMetricPolicy service method. /// /// The response from the PutMetricPolicy service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for PutMetricPolicy Operation public virtual PutMetricPolicyResponse PutMetricPolicy(PutMetricPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricPolicyResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the PutMetricPolicy operation. /// /// /// Container for the necessary parameters to execute the PutMetricPolicy operation on AmazonMediaStoreClient. /// 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 EndPutMetricPolicy /// operation. /// REST API Reference for PutMetricPolicy Operation public virtual IAsyncResult BeginPutMetricPolicy(PutMetricPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutMetricPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutMetricPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the PutMetricPolicy operation. /// /// /// The IAsyncResult returned by the call to BeginPutMetricPolicy. /// /// Returns a PutMetricPolicyResult from MediaStore. /// REST API Reference for PutMetricPolicy Operation public virtual PutMetricPolicyResponse EndPutMetricPolicy(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StartAccessLogging /// /// Starts access logging on the specified container. When you enable access logging on /// a container, MediaStore delivers access logs for objects stored in that container /// to Amazon CloudWatch Logs. /// /// Container for the necessary parameters to execute the StartAccessLogging service method. /// /// The response from the StartAccessLogging service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for StartAccessLogging Operation public virtual StartAccessLoggingResponse StartAccessLogging(StartAccessLoggingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartAccessLoggingRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAccessLoggingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StartAccessLogging operation. /// /// /// Container for the necessary parameters to execute the StartAccessLogging operation on AmazonMediaStoreClient. /// 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 EndStartAccessLogging /// operation. /// REST API Reference for StartAccessLogging Operation public virtual IAsyncResult BeginStartAccessLogging(StartAccessLoggingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartAccessLoggingRequestMarshaller.Instance; options.ResponseUnmarshaller = StartAccessLoggingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StartAccessLogging operation. /// /// /// The IAsyncResult returned by the call to BeginStartAccessLogging. /// /// Returns a StartAccessLoggingResult from MediaStore. /// REST API Reference for StartAccessLogging Operation public virtual StartAccessLoggingResponse EndStartAccessLogging(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region StopAccessLogging /// /// Stops access logging on the specified container. When you stop access logging on a /// container, MediaStore stops sending access logs to Amazon CloudWatch Logs. These access /// logs are not saved and are not retrievable. /// /// Container for the necessary parameters to execute the StopAccessLogging service method. /// /// The response from the StopAccessLogging service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// REST API Reference for StopAccessLogging Operation public virtual StopAccessLoggingResponse StopAccessLogging(StopAccessLoggingRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopAccessLoggingRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAccessLoggingResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the StopAccessLogging operation. /// /// /// Container for the necessary parameters to execute the StopAccessLogging operation on AmazonMediaStoreClient. /// 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 EndStopAccessLogging /// operation. /// REST API Reference for StopAccessLogging Operation public virtual IAsyncResult BeginStopAccessLogging(StopAccessLoggingRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StopAccessLoggingRequestMarshaller.Instance; options.ResponseUnmarshaller = StopAccessLoggingResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the StopAccessLogging operation. /// /// /// The IAsyncResult returned by the call to BeginStopAccessLogging. /// /// Returns a StopAccessLoggingResult from MediaStore. /// REST API Reference for StopAccessLogging Operation public virtual StopAccessLoggingResponse EndStopAccessLogging(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region TagResource /// /// Adds tags to the specified AWS Elemental MediaStore container. Tags are key:value /// pairs that you can associate with AWS resources. For example, the tag key might be /// "customer" and the tag value might be "companyA." You can specify one or more tags /// to add to each container. You can add up to 50 tags to each container. For more information /// about tagging, including naming and usage conventions, see Tagging /// Resources in MediaStore. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// 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 AmazonMediaStoreClient. /// 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 MediaStore. /// REST API Reference for TagResource Operation public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion #region UntagResource /// /// Removes tags from the specified container. 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 MediaStore. /// /// The container that you specified in the request already exists or is being updated. /// /// /// The container that you specified in the request does not exist. /// /// /// The service is temporarily unavailable. /// /// 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 AmazonMediaStoreClient. /// 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 MediaStore. /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }