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 collapse
-
new AWS.MediaStore(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
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.
To use this operation, you must have permission to perform the
MediaStore:DeleteCorsPolicy
action. -
deleteLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Removes an object lifecycle policy from a container.
-
deleteMetricPolicy(params = {}, callback) ⇒ AWS.Request
Deletes the metric policy that is associated with the specified 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.
To use this operation, you must have permission to perform the
MediaStore:GetCorsPolicy
action. -
getLifecyclePolicy(params = {}, callback) ⇒ AWS.Request
Retrieves the object lifecycle policy that is assigned to a container.
.
-
getMetricPolicy(params = {}, callback) ⇒ AWS.Request
Returns the metric policy for the specified container.
-
listContainers(params = {}, callback) ⇒ AWS.Request
Lists the properties of all containers in AWS Elemental MediaStore.
-
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of the tags assigned to the specified container.
-
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.
-
putMetricPolicy(params = {}, callback) ⇒ AWS.Request
The metric policy that you want to add to the 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.
-
tagResource(params = {}, callback) ⇒ AWS.Request
Adds tags to the specified AWS Elemental MediaStore container.
-
untagResource(params = {}, callback) ⇒ AWS.Request
Removes tags from the specified container.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.MediaStore(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
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.
deleteMetricPolicy(params = {}, callback) ⇒ AWS.Request
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.
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.
getMetricPolicy(params = {}, callback) ⇒ AWS.Request
Returns the metric policy for the specified 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.
listTagsForResource(params = {}, callback) ⇒ AWS.Request
Returns a list of the tags assigned to the specified 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.
putMetricPolicy(params = {}, callback) ⇒ AWS.Request
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.
startAccessLogging(params = {}, callback) ⇒ AWS.Request
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.
stopAccessLogging(params = {}, callback) ⇒ AWS.Request
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.
tagResource(params = {}, callback) ⇒ AWS.Request
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.