@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSMediaStoreAsyncClient extends AWSMediaStoreClient implements AWSMediaStoreAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
An AWS Elemental MediaStore container is a namespace that holds folders and objects. You use a container endpoint to create, read, and delete objects.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSMediaStoreAsyncClientBuilder |
asyncBuilder() |
Future<CreateContainerResult> |
createContainerAsync(CreateContainerRequest request)
Creates a storage container to hold objects.
|
Future<CreateContainerResult> |
createContainerAsync(CreateContainerRequest request,
AsyncHandler<CreateContainerRequest,CreateContainerResult> asyncHandler)
Creates a storage container to hold objects.
|
Future<DeleteContainerResult> |
deleteContainerAsync(DeleteContainerRequest request)
Deletes the specified container.
|
Future<DeleteContainerResult> |
deleteContainerAsync(DeleteContainerRequest request,
AsyncHandler<DeleteContainerRequest,DeleteContainerResult> asyncHandler)
Deletes the specified container.
|
Future<DeleteContainerPolicyResult> |
deleteContainerPolicyAsync(DeleteContainerPolicyRequest request)
Deletes the access policy that is associated with the specified container.
|
Future<DeleteContainerPolicyResult> |
deleteContainerPolicyAsync(DeleteContainerPolicyRequest request,
AsyncHandler<DeleteContainerPolicyRequest,DeleteContainerPolicyResult> asyncHandler)
Deletes the access policy that is associated with the specified container.
|
Future<DeleteCorsPolicyResult> |
deleteCorsPolicyAsync(DeleteCorsPolicyRequest request)
Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.
|
Future<DeleteCorsPolicyResult> |
deleteCorsPolicyAsync(DeleteCorsPolicyRequest request,
AsyncHandler<DeleteCorsPolicyRequest,DeleteCorsPolicyResult> asyncHandler)
Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.
|
Future<DescribeContainerResult> |
describeContainerAsync(DescribeContainerRequest request)
Retrieves the properties of the requested container.
|
Future<DescribeContainerResult> |
describeContainerAsync(DescribeContainerRequest request,
AsyncHandler<DescribeContainerRequest,DescribeContainerResult> asyncHandler)
Retrieves the properties of the requested container.
|
Future<GetContainerPolicyResult> |
getContainerPolicyAsync(GetContainerPolicyRequest request)
Retrieves the access policy for the specified container.
|
Future<GetContainerPolicyResult> |
getContainerPolicyAsync(GetContainerPolicyRequest request,
AsyncHandler<GetContainerPolicyRequest,GetContainerPolicyResult> asyncHandler)
Retrieves the access policy for the specified container.
|
Future<GetCorsPolicyResult> |
getCorsPolicyAsync(GetCorsPolicyRequest request)
Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.
|
Future<GetCorsPolicyResult> |
getCorsPolicyAsync(GetCorsPolicyRequest request,
AsyncHandler<GetCorsPolicyRequest,GetCorsPolicyResult> asyncHandler)
Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<ListContainersResult> |
listContainersAsync(ListContainersRequest request)
Lists the properties of all containers in AWS Elemental MediaStore.
|
Future<ListContainersResult> |
listContainersAsync(ListContainersRequest request,
AsyncHandler<ListContainersRequest,ListContainersResult> asyncHandler)
Lists the properties of all containers in AWS Elemental MediaStore.
|
Future<PutContainerPolicyResult> |
putContainerPolicyAsync(PutContainerPolicyRequest request)
Creates an access policy for the specified container to restrict the users and clients that can access it.
|
Future<PutContainerPolicyResult> |
putContainerPolicyAsync(PutContainerPolicyRequest request,
AsyncHandler<PutContainerPolicyRequest,PutContainerPolicyResult> asyncHandler)
Creates an access policy for the specified container to restrict the users and clients that can access it.
|
Future<PutCorsPolicyResult> |
putCorsPolicyAsync(PutCorsPolicyRequest request)
Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service
cross-origin requests.
|
Future<PutCorsPolicyResult> |
putCorsPolicyAsync(PutCorsPolicyRequest request,
AsyncHandler<PutCorsPolicyRequest,PutCorsPolicyResult> asyncHandler)
Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service
cross-origin requests.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
builder, createContainer, deleteContainer, deleteContainerPolicy, deleteCorsPolicy, describeContainer, getCachedResponseMetadata, getContainerPolicy, getCorsPolicy, listContainers, putContainerPolicy, putCorsPolicy
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createContainer, deleteContainer, deleteContainerPolicy, deleteCorsPolicy, describeContainer, getCachedResponseMetadata, getContainerPolicy, getCorsPolicy, listContainers, putContainerPolicy, putCorsPolicy
public static AWSMediaStoreAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateContainerResult> createContainerAsync(CreateContainerRequest request)
AWSMediaStoreAsync
Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
createContainerAsync
in interface AWSMediaStoreAsync
public Future<CreateContainerResult> createContainerAsync(CreateContainerRequest request, AsyncHandler<CreateContainerRequest,CreateContainerResult> asyncHandler)
AWSMediaStoreAsync
Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
createContainerAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteContainerResult> deleteContainerAsync(DeleteContainerRequest request)
AWSMediaStoreAsync
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.
deleteContainerAsync
in interface AWSMediaStoreAsync
public Future<DeleteContainerResult> deleteContainerAsync(DeleteContainerRequest request, AsyncHandler<DeleteContainerRequest,DeleteContainerResult> asyncHandler)
AWSMediaStoreAsync
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.
deleteContainerAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteContainerPolicyResult> deleteContainerPolicyAsync(DeleteContainerPolicyRequest request)
AWSMediaStoreAsync
Deletes the access policy that is associated with the specified container.
deleteContainerPolicyAsync
in interface AWSMediaStoreAsync
public Future<DeleteContainerPolicyResult> deleteContainerPolicyAsync(DeleteContainerPolicyRequest request, AsyncHandler<DeleteContainerPolicyRequest,DeleteContainerPolicyResult> asyncHandler)
AWSMediaStoreAsync
Deletes the access policy that is associated with the specified container.
deleteContainerPolicyAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteCorsPolicyResult> deleteCorsPolicyAsync(DeleteCorsPolicyRequest request)
AWSMediaStoreAsync
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.
deleteCorsPolicyAsync
in interface AWSMediaStoreAsync
public Future<DeleteCorsPolicyResult> deleteCorsPolicyAsync(DeleteCorsPolicyRequest request, AsyncHandler<DeleteCorsPolicyRequest,DeleteCorsPolicyResult> asyncHandler)
AWSMediaStoreAsync
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.
deleteCorsPolicyAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DescribeContainerResult> describeContainerAsync(DescribeContainerRequest request)
AWSMediaStoreAsync
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.
describeContainerAsync
in interface AWSMediaStoreAsync
public Future<DescribeContainerResult> describeContainerAsync(DescribeContainerRequest request, AsyncHandler<DescribeContainerRequest,DescribeContainerResult> asyncHandler)
AWSMediaStoreAsync
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.
describeContainerAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetContainerPolicyResult> getContainerPolicyAsync(GetContainerPolicyRequest request)
AWSMediaStoreAsync
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.
getContainerPolicyAsync
in interface AWSMediaStoreAsync
public Future<GetContainerPolicyResult> getContainerPolicyAsync(GetContainerPolicyRequest request, AsyncHandler<GetContainerPolicyRequest,GetContainerPolicyResult> asyncHandler)
AWSMediaStoreAsync
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.
getContainerPolicyAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetCorsPolicyResult> getCorsPolicyAsync(GetCorsPolicyRequest request)
AWSMediaStoreAsync
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.
getCorsPolicyAsync
in interface AWSMediaStoreAsync
public Future<GetCorsPolicyResult> getCorsPolicyAsync(GetCorsPolicyRequest request, AsyncHandler<GetCorsPolicyRequest,GetCorsPolicyResult> asyncHandler)
AWSMediaStoreAsync
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.
getCorsPolicyAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListContainersResult> listContainersAsync(ListContainersRequest request)
AWSMediaStoreAsync
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.
listContainersAsync
in interface AWSMediaStoreAsync
public Future<ListContainersResult> listContainersAsync(ListContainersRequest request, AsyncHandler<ListContainersRequest,ListContainersResult> asyncHandler)
AWSMediaStoreAsync
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.
listContainersAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutContainerPolicyResult> putContainerPolicyAsync(PutContainerPolicyRequest request)
AWSMediaStoreAsync
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.
putContainerPolicyAsync
in interface AWSMediaStoreAsync
public Future<PutContainerPolicyResult> putContainerPolicyAsync(PutContainerPolicyRequest request, AsyncHandler<PutContainerPolicyRequest,PutContainerPolicyResult> asyncHandler)
AWSMediaStoreAsync
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.
putContainerPolicyAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutCorsPolicyResult> putCorsPolicyAsync(PutCorsPolicyRequest request)
AWSMediaStoreAsync
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.
putCorsPolicyAsync
in interface AWSMediaStoreAsync
public Future<PutCorsPolicyResult> putCorsPolicyAsync(PutCorsPolicyRequest request, AsyncHandler<PutCorsPolicyRequest,PutCorsPolicyResult> asyncHandler)
AWSMediaStoreAsync
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.
putCorsPolicyAsync
in interface AWSMediaStoreAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSMediaStore
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.