Class: AWS.MediaStore
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.MediaStore
- Identifier:
- mediastore
- API Version:
- 2017-09-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
An AWS Elemental MediaStore container is a namespace that holds folders and objects. You use a container endpoint to create, read, and delete objects.
Sending a Request Using MediaStore
var mediastore = new AWS.MediaStore();
mediastore.createContainer(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the MediaStore object uses this specific API, you can
construct the object by passing the apiVersion
option to the constructor:
var mediastore = new AWS.MediaStore({apiVersion: '2017-09-01'});
You can also set the API version globally in AWS.config.apiVersions
using
the mediastore service identifier:
AWS.config.apiVersions = {
mediastore: '2017-09-01',
// other service API versions
};
var mediastore = new AWS.MediaStore();
Constructor Summary
-
new AWS.MediaStore(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary
-
createContainer(params = {}, callback) ⇒ AWS.Request
Creates a storage container to hold objects.
-
deleteContainer(params = {}, callback) ⇒ AWS.Request
Deletes the specified container.
-
deleteContainerPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the access policy that is associated with the specified container.
-
deleteCorsPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.
-
deleteLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Removes an object lifecycle policy from a container.
-
describeContainer(params = {}, callback) ⇒ AWS.Request
Retrieves the properties of the requested container.
-
getContainerPolicy(params = {}, callback) ⇒ AWS.Request
Retrieves the access policy for the specified container.
-
getCorsPolicy(params = {}, callback) ⇒ AWS.Request
Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.
-
getLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Retrieves the object lifecycle policy that is assigned to a container.
-
listContainers(params = {}, callback) ⇒ AWS.Request
Lists the properties of all containers in AWS Elemental MediaStore.
-
putContainerPolicy(params = {}, callback) ⇒ AWS.Request
Creates an access policy for the specified container to restrict the users and clients that can access it.
-
putCorsPolicy(params = {}, callback) ⇒ AWS.Request
Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests.
-
putLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Writes an object lifecycle policy to a container.
-
startAccessLogging(params = {}, callback) ⇒ AWS.Request
Starts access logging on the specified container.
-
stopAccessLogging(params = {}, callback) ⇒ AWS.Request
Stops access logging on the specified container.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
Property Details
Method Details
createContainer(params = {}, callback) ⇒ AWS.Request
Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
deleteContainer(params = {}, callback) ⇒ AWS.Request
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.
deleteContainerPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the access policy that is associated with the specified container.
deleteCorsPolicy(params = {}, callback) ⇒ AWS.Request
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.
deleteLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
describeContainer(params = {}, callback) ⇒ AWS.Request
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.
getContainerPolicy(params = {}, callback) ⇒ AWS.Request
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.
getCorsPolicy(params = {}, callback) ⇒ AWS.Request
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.
getLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Retrieves the object lifecycle policy that is assigned to a container.
listContainers(params = {}, callback) ⇒ AWS.Request
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.
putContainerPolicy(params = {}, callback) ⇒ AWS.Request
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.
putCorsPolicy(params = {}, callback) ⇒ AWS.Request
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.
putLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
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.