/* * 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 Amazon.Runtime; using Amazon.MediaStore.Model; namespace Amazon.MediaStore { /// /// Interface 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 interface IAmazonMediaStore : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// /// Paginators for the service /// IMediaStorePaginatorFactory Paginators { get; } #endif #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 CreateContainerResponse CreateContainer(CreateContainerRequest request); /// /// 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 IAsyncResult BeginCreateContainer(CreateContainerRequest request, AsyncCallback callback, object 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 CreateContainerResponse EndCreateContainer(IAsyncResult 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 DeleteContainerResponse DeleteContainer(DeleteContainerRequest request); /// /// 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 IAsyncResult BeginDeleteContainer(DeleteContainerRequest request, AsyncCallback callback, object 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 DeleteContainerResponse EndDeleteContainer(IAsyncResult 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 DeleteContainerPolicyResponse DeleteContainerPolicy(DeleteContainerPolicyRequest request); /// /// 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 IAsyncResult BeginDeleteContainerPolicy(DeleteContainerPolicyRequest request, AsyncCallback callback, object 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 DeleteContainerPolicyResponse EndDeleteContainerPolicy(IAsyncResult 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 DeleteCorsPolicyResponse DeleteCorsPolicy(DeleteCorsPolicyRequest request); /// /// 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 IAsyncResult BeginDeleteCorsPolicy(DeleteCorsPolicyRequest request, AsyncCallback callback, object 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 DeleteCorsPolicyResponse EndDeleteCorsPolicy(IAsyncResult 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 DeleteLifecyclePolicyResponse DeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request); /// /// 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 IAsyncResult BeginDeleteLifecyclePolicy(DeleteLifecyclePolicyRequest request, AsyncCallback callback, object 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 DeleteLifecyclePolicyResponse EndDeleteLifecyclePolicy(IAsyncResult 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 DeleteMetricPolicyResponse DeleteMetricPolicy(DeleteMetricPolicyRequest request); /// /// 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 IAsyncResult BeginDeleteMetricPolicy(DeleteMetricPolicyRequest request, AsyncCallback callback, object 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 DeleteMetricPolicyResponse EndDeleteMetricPolicy(IAsyncResult 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 DescribeContainerResponse DescribeContainer(DescribeContainerRequest request); /// /// 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 IAsyncResult BeginDescribeContainer(DescribeContainerRequest request, AsyncCallback callback, object 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 DescribeContainerResponse EndDescribeContainer(IAsyncResult 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 GetContainerPolicyResponse GetContainerPolicy(GetContainerPolicyRequest request); /// /// 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 IAsyncResult BeginGetContainerPolicy(GetContainerPolicyRequest request, AsyncCallback callback, object 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 GetContainerPolicyResponse EndGetContainerPolicy(IAsyncResult 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 GetCorsPolicyResponse GetCorsPolicy(GetCorsPolicyRequest request); /// /// 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 IAsyncResult BeginGetCorsPolicy(GetCorsPolicyRequest request, AsyncCallback callback, object 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 GetCorsPolicyResponse EndGetCorsPolicy(IAsyncResult 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 GetLifecyclePolicyResponse GetLifecyclePolicy(GetLifecyclePolicyRequest request); /// /// 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 IAsyncResult BeginGetLifecyclePolicy(GetLifecyclePolicyRequest request, AsyncCallback callback, object 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 GetLifecyclePolicyResponse EndGetLifecyclePolicy(IAsyncResult 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 GetMetricPolicyResponse GetMetricPolicy(GetMetricPolicyRequest request); /// /// 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 IAsyncResult BeginGetMetricPolicy(GetMetricPolicyRequest request, AsyncCallback callback, object 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 GetMetricPolicyResponse EndGetMetricPolicy(IAsyncResult 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 ListContainersResponse ListContainers(ListContainersRequest request); /// /// 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 IAsyncResult BeginListContainers(ListContainersRequest request, AsyncCallback callback, object 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 ListContainersResponse EndListContainers(IAsyncResult 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 ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// /// 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 IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object 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 ListTagsForResourceResponse EndListTagsForResource(IAsyncResult 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 PutContainerPolicyResponse PutContainerPolicy(PutContainerPolicyRequest request); /// /// 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 IAsyncResult BeginPutContainerPolicy(PutContainerPolicyRequest request, AsyncCallback callback, object 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 PutContainerPolicyResponse EndPutContainerPolicy(IAsyncResult 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 PutCorsPolicyResponse PutCorsPolicy(PutCorsPolicyRequest request); /// /// 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 IAsyncResult BeginPutCorsPolicy(PutCorsPolicyRequest request, AsyncCallback callback, object 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 PutCorsPolicyResponse EndPutCorsPolicy(IAsyncResult 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 PutLifecyclePolicyResponse PutLifecyclePolicy(PutLifecyclePolicyRequest request); /// /// 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 IAsyncResult BeginPutLifecyclePolicy(PutLifecyclePolicyRequest request, AsyncCallback callback, object 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 PutLifecyclePolicyResponse EndPutLifecyclePolicy(IAsyncResult 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 PutMetricPolicyResponse PutMetricPolicy(PutMetricPolicyRequest request); /// /// 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 IAsyncResult BeginPutMetricPolicy(PutMetricPolicyRequest request, AsyncCallback callback, object 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 PutMetricPolicyResponse EndPutMetricPolicy(IAsyncResult 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 StartAccessLoggingResponse StartAccessLogging(StartAccessLoggingRequest request); /// /// 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 IAsyncResult BeginStartAccessLogging(StartAccessLoggingRequest request, AsyncCallback callback, object 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 StartAccessLoggingResponse EndStartAccessLogging(IAsyncResult 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 StopAccessLoggingResponse StopAccessLogging(StopAccessLoggingRequest request); /// /// 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 IAsyncResult BeginStopAccessLogging(StopAccessLoggingRequest request, AsyncCallback callback, object 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 StopAccessLoggingResponse EndStopAccessLogging(IAsyncResult 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 TagResourceResponse TagResource(TagResourceRequest request); /// /// 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 IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object 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 TagResourceResponse EndTagResource(IAsyncResult 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 UntagResourceResponse UntagResource(UntagResourceRequest request); /// /// 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 IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object 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 UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion } }