Interface MediaStoreAsyncClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder()
method.The asynchronous client performs non-blocking I/O when configured with any SdkAsyncHttpClient
supported in the SDK. However, full non-blocking is not guaranteed as the async client may perform blocking calls in
some cases such as credentials retrieval and endpoint discovery as part of the async API call.
An AWS Elemental MediaStore container is a namespace that holds folders and objects. You use a container endpoint to create, read, and delete objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaStoreAsyncClientBuilderbuilder()Create a builder that can be used to configure and create aMediaStoreAsyncClient.static MediaStoreAsyncClientcreate()Create aMediaStoreAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CompletableFuture<CreateContainerResponse> createContainer(Consumer<CreateContainerRequest.Builder> createContainerRequest) Creates a storage container to hold objects.default CompletableFuture<CreateContainerResponse> createContainer(CreateContainerRequest createContainerRequest) Creates a storage container to hold objects.default CompletableFuture<DeleteContainerResponse> deleteContainer(Consumer<DeleteContainerRequest.Builder> deleteContainerRequest) Deletes the specified container.default CompletableFuture<DeleteContainerResponse> deleteContainer(DeleteContainerRequest deleteContainerRequest) Deletes the specified container.deleteContainerPolicy(Consumer<DeleteContainerPolicyRequest.Builder> deleteContainerPolicyRequest) Deletes the access policy that is associated with the specified container.deleteContainerPolicy(DeleteContainerPolicyRequest deleteContainerPolicyRequest) Deletes the access policy that is associated with the specified container.deleteCorsPolicy(Consumer<DeleteCorsPolicyRequest.Builder> deleteCorsPolicyRequest) Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.deleteCorsPolicy(DeleteCorsPolicyRequest deleteCorsPolicyRequest) Deletes the cross-origin resource sharing (CORS) configuration information that is set for the container.deleteLifecyclePolicy(Consumer<DeleteLifecyclePolicyRequest.Builder> deleteLifecyclePolicyRequest) Removes an object lifecycle policy from a container.deleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) Removes an object lifecycle policy from a container.deleteMetricPolicy(Consumer<DeleteMetricPolicyRequest.Builder> deleteMetricPolicyRequest) Deletes the metric policy that is associated with the specified container.deleteMetricPolicy(DeleteMetricPolicyRequest deleteMetricPolicyRequest) Deletes the metric policy that is associated with the specified container.describeContainer(Consumer<DescribeContainerRequest.Builder> describeContainerRequest) Retrieves the properties of the requested container.describeContainer(DescribeContainerRequest describeContainerRequest) Retrieves the properties of the requested container.getContainerPolicy(Consumer<GetContainerPolicyRequest.Builder> getContainerPolicyRequest) Retrieves the access policy for the specified container.getContainerPolicy(GetContainerPolicyRequest getContainerPolicyRequest) Retrieves the access policy for the specified container.default CompletableFuture<GetCorsPolicyResponse> getCorsPolicy(Consumer<GetCorsPolicyRequest.Builder> getCorsPolicyRequest) Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.default CompletableFuture<GetCorsPolicyResponse> getCorsPolicy(GetCorsPolicyRequest getCorsPolicyRequest) Returns the cross-origin resource sharing (CORS) configuration information that is set for the container.getLifecyclePolicy(Consumer<GetLifecyclePolicyRequest.Builder> getLifecyclePolicyRequest) Retrieves the object lifecycle policy that is assigned to a container.getLifecyclePolicy(GetLifecyclePolicyRequest getLifecyclePolicyRequest) Retrieves the object lifecycle policy that is assigned to a container.default CompletableFuture<GetMetricPolicyResponse> getMetricPolicy(Consumer<GetMetricPolicyRequest.Builder> getMetricPolicyRequest) Returns the metric policy for the specified container.default CompletableFuture<GetMetricPolicyResponse> getMetricPolicy(GetMetricPolicyRequest getMetricPolicyRequest) Returns the metric policy for the specified container.default CompletableFuture<ListContainersResponse> Lists the properties of all containers in AWS Elemental MediaStore.default CompletableFuture<ListContainersResponse> listContainers(Consumer<ListContainersRequest.Builder> listContainersRequest) Lists the properties of all containers in AWS Elemental MediaStore.default CompletableFuture<ListContainersResponse> listContainers(ListContainersRequest listContainersRequest) Lists the properties of all containers in AWS Elemental MediaStore.default ListContainersPublisherThis is a variant oflistContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation.default ListContainersPublisherlistContainersPaginator(Consumer<ListContainersRequest.Builder> listContainersRequest) This is a variant oflistContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation.default ListContainersPublisherlistContainersPaginator(ListContainersRequest listContainersRequest) This is a variant oflistContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation.listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of the tags assigned to the specified container.listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of the tags assigned to the specified container.putContainerPolicy(Consumer<PutContainerPolicyRequest.Builder> putContainerPolicyRequest) Creates an access policy for the specified container to restrict the users and clients that can access it.putContainerPolicy(PutContainerPolicyRequest putContainerPolicyRequest) Creates an access policy for the specified container to restrict the users and clients that can access it.default CompletableFuture<PutCorsPolicyResponse> putCorsPolicy(Consumer<PutCorsPolicyRequest.Builder> putCorsPolicyRequest) Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests.default CompletableFuture<PutCorsPolicyResponse> putCorsPolicy(PutCorsPolicyRequest putCorsPolicyRequest) Sets the cross-origin resource sharing (CORS) configuration on a container so that the container can service cross-origin requests.putLifecyclePolicy(Consumer<PutLifecyclePolicyRequest.Builder> putLifecyclePolicyRequest) Writes an object lifecycle policy to a container.putLifecyclePolicy(PutLifecyclePolicyRequest putLifecyclePolicyRequest) Writes an object lifecycle policy to a container.default CompletableFuture<PutMetricPolicyResponse> putMetricPolicy(Consumer<PutMetricPolicyRequest.Builder> putMetricPolicyRequest) The metric policy that you want to add to the container.default CompletableFuture<PutMetricPolicyResponse> putMetricPolicy(PutMetricPolicyRequest putMetricPolicyRequest) The metric policy that you want to add to the container.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstartAccessLogging(Consumer<StartAccessLoggingRequest.Builder> startAccessLoggingRequest) Starts access logging on the specified container.startAccessLogging(StartAccessLoggingRequest startAccessLoggingRequest) Starts access logging on the specified container.stopAccessLogging(Consumer<StopAccessLoggingRequest.Builder> stopAccessLoggingRequest) Stops access logging on the specified container.stopAccessLogging(StopAccessLoggingRequest stopAccessLoggingRequest) Stops access logging on the specified container.default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds tags to the specified AWS Elemental MediaStore container.default CompletableFuture<TagResourceResponse> tagResource(TagResourceRequest tagResourceRequest) Adds tags to the specified AWS Elemental MediaStore container.default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the specified container.default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from the specified container.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createContainer
default CompletableFuture<CreateContainerResponse> createContainer(CreateContainerRequest createContainerRequest) Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
- Parameters:
createContainerRequest-- Returns:
- A Java Future containing the result of the CreateContainer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- LimitExceededException A service limit has been exceeded.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
createContainer
default CompletableFuture<CreateContainerResponse> createContainer(Consumer<CreateContainerRequest.Builder> createContainerRequest) Creates a storage container to hold objects. A container is similar to a bucket in the Amazon S3 service.
This is a convenience which creates an instance of the
CreateContainerRequest.Builderavoiding the need to create one manually viaCreateContainerRequest.builder()- Parameters:
createContainerRequest- AConsumerthat will call methods onCreateContainerRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the CreateContainer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- LimitExceededException A service limit has been exceeded.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteContainer
default CompletableFuture<DeleteContainerResponse> deleteContainer(DeleteContainerRequest deleteContainerRequest) Deletes the specified container. Before you make a
DeleteContainerrequest, delete any objects in the container or in any folders in the container. You can delete only empty containers.- Parameters:
deleteContainerRequest-- Returns:
- A Java Future containing the result of the DeleteContainer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteContainer
default CompletableFuture<DeleteContainerResponse> deleteContainer(Consumer<DeleteContainerRequest.Builder> deleteContainerRequest) Deletes the specified container. Before you make a
DeleteContainerrequest, delete any objects in the container or in any folders in the container. You can delete only empty containers.
This is a convenience which creates an instance of the
DeleteContainerRequest.Builderavoiding the need to create one manually viaDeleteContainerRequest.builder()- Parameters:
deleteContainerRequest- AConsumerthat will call methods onDeleteContainerRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteContainer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteContainerPolicy
default CompletableFuture<DeleteContainerPolicyResponse> deleteContainerPolicy(DeleteContainerPolicyRequest deleteContainerPolicyRequest) Deletes the access policy that is associated with the specified container.
- Parameters:
deleteContainerPolicyRequest-- Returns:
- A Java Future containing the result of the DeleteContainerPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteContainerPolicy
default CompletableFuture<DeleteContainerPolicyResponse> deleteContainerPolicy(Consumer<DeleteContainerPolicyRequest.Builder> deleteContainerPolicyRequest) Deletes the access policy that is associated with the specified container.
This is a convenience which creates an instance of the
DeleteContainerPolicyRequest.Builderavoiding the need to create one manually viaDeleteContainerPolicyRequest.builder()- Parameters:
deleteContainerPolicyRequest- AConsumerthat will call methods onDeleteContainerPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteContainerPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCorsPolicy
default CompletableFuture<DeleteCorsPolicyResponse> deleteCorsPolicy(DeleteCorsPolicyRequest deleteCorsPolicyRequest) 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:DeleteCorsPolicyaction. The container owner has this permission by default and can grant this permission to others.- Parameters:
deleteCorsPolicyRequest-- Returns:
- A Java Future containing the result of the DeleteCorsPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- CorsPolicyNotFoundException The CORS policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteCorsPolicy
default CompletableFuture<DeleteCorsPolicyResponse> deleteCorsPolicy(Consumer<DeleteCorsPolicyRequest.Builder> deleteCorsPolicyRequest) 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:DeleteCorsPolicyaction. The container owner has this permission by default and can grant this permission to others.
This is a convenience which creates an instance of the
DeleteCorsPolicyRequest.Builderavoiding the need to create one manually viaDeleteCorsPolicyRequest.builder()- Parameters:
deleteCorsPolicyRequest- AConsumerthat will call methods onDeleteCorsPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteCorsPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- CorsPolicyNotFoundException The CORS policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteLifecyclePolicy
default CompletableFuture<DeleteLifecyclePolicyResponse> deleteLifecyclePolicy(DeleteLifecyclePolicyRequest deleteLifecyclePolicyRequest) Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
- Parameters:
deleteLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the DeleteLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteLifecyclePolicy
default CompletableFuture<DeleteLifecyclePolicyResponse> deleteLifecyclePolicy(Consumer<DeleteLifecyclePolicyRequest.Builder> deleteLifecyclePolicyRequest) Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.
This is a convenience which creates an instance of the
DeleteLifecyclePolicyRequest.Builderavoiding the need to create one manually viaDeleteLifecyclePolicyRequest.builder()- Parameters:
deleteLifecyclePolicyRequest- AConsumerthat will call methods onDeleteLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMetricPolicy
default CompletableFuture<DeleteMetricPolicyResponse> deleteMetricPolicy(DeleteMetricPolicyRequest deleteMetricPolicyRequest) 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.
- Parameters:
deleteMetricPolicyRequest-- Returns:
- A Java Future containing the result of the DeleteMetricPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
deleteMetricPolicy
default CompletableFuture<DeleteMetricPolicyResponse> deleteMetricPolicy(Consumer<DeleteMetricPolicyRequest.Builder> deleteMetricPolicyRequest) 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.
This is a convenience which creates an instance of the
DeleteMetricPolicyRequest.Builderavoiding the need to create one manually viaDeleteMetricPolicyRequest.builder()- Parameters:
deleteMetricPolicyRequest- AConsumerthat will call methods onDeleteMetricPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DeleteMetricPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeContainer
default CompletableFuture<DescribeContainerResponse> describeContainer(DescribeContainerRequest describeContainerRequest) 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
DescribeContainerrequest returns a singleContainerobject based onContainerName. To return allContainerobjects that are associated with a specified AWS account, use ListContainers.- Parameters:
describeContainerRequest-- Returns:
- A Java Future containing the result of the DescribeContainer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
describeContainer
default CompletableFuture<DescribeContainerResponse> describeContainer(Consumer<DescribeContainerRequest.Builder> describeContainerRequest) 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
DescribeContainerrequest returns a singleContainerobject based onContainerName. To return allContainerobjects that are associated with a specified AWS account, use ListContainers.
This is a convenience which creates an instance of the
DescribeContainerRequest.Builderavoiding the need to create one manually viaDescribeContainerRequest.builder()- Parameters:
describeContainerRequest- AConsumerthat will call methods onDescribeContainerRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the DescribeContainer operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getContainerPolicy
default CompletableFuture<GetContainerPolicyResponse> getContainerPolicy(GetContainerPolicyRequest getContainerPolicyRequest) 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.
- Parameters:
getContainerPolicyRequest-- Returns:
- A Java Future containing the result of the GetContainerPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getContainerPolicy
default CompletableFuture<GetContainerPolicyResponse> getContainerPolicy(Consumer<GetContainerPolicyRequest.Builder> getContainerPolicyRequest) 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.
This is a convenience which creates an instance of the
GetContainerPolicyRequest.Builderavoiding the need to create one manually viaGetContainerPolicyRequest.builder()- Parameters:
getContainerPolicyRequest- AConsumerthat will call methods onGetContainerPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetContainerPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCorsPolicy
default CompletableFuture<GetCorsPolicyResponse> getCorsPolicy(GetCorsPolicyRequest getCorsPolicyRequest) 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:GetCorsPolicyaction. By default, the container owner has this permission and can grant it to others.- Parameters:
getCorsPolicyRequest-- Returns:
- A Java Future containing the result of the GetCorsPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- CorsPolicyNotFoundException The CORS policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getCorsPolicy
default CompletableFuture<GetCorsPolicyResponse> getCorsPolicy(Consumer<GetCorsPolicyRequest.Builder> getCorsPolicyRequest) 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:GetCorsPolicyaction. By default, the container owner has this permission and can grant it to others.
This is a convenience which creates an instance of the
GetCorsPolicyRequest.Builderavoiding the need to create one manually viaGetCorsPolicyRequest.builder()- Parameters:
getCorsPolicyRequest- AConsumerthat will call methods onGetCorsPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetCorsPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- CorsPolicyNotFoundException The CORS policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getLifecyclePolicy
default CompletableFuture<GetLifecyclePolicyResponse> getLifecyclePolicy(GetLifecyclePolicyRequest getLifecyclePolicyRequest) Retrieves the object lifecycle policy that is assigned to a container.
- Parameters:
getLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the GetLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getLifecyclePolicy
default CompletableFuture<GetLifecyclePolicyResponse> getLifecyclePolicy(Consumer<GetLifecyclePolicyRequest.Builder> getLifecyclePolicyRequest) Retrieves the object lifecycle policy that is assigned to a container.
This is a convenience which creates an instance of the
GetLifecyclePolicyRequest.Builderavoiding the need to create one manually viaGetLifecyclePolicyRequest.builder()- Parameters:
getLifecyclePolicyRequest- AConsumerthat will call methods onGetLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricPolicy
default CompletableFuture<GetMetricPolicyResponse> getMetricPolicy(GetMetricPolicyRequest getMetricPolicyRequest) Returns the metric policy for the specified container.
- Parameters:
getMetricPolicyRequest-- Returns:
- A Java Future containing the result of the GetMetricPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- ContainerInUseException The container that you specified in the request already exists or is being updated.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
getMetricPolicy
default CompletableFuture<GetMetricPolicyResponse> getMetricPolicy(Consumer<GetMetricPolicyRequest.Builder> getMetricPolicyRequest) Returns the metric policy for the specified container.
This is a convenience which creates an instance of the
GetMetricPolicyRequest.Builderavoiding the need to create one manually viaGetMetricPolicyRequest.builder()- Parameters:
getMetricPolicyRequest- AConsumerthat will call methods onGetMetricPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the GetMetricPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- PolicyNotFoundException The policy that you specified in the request does not exist.
- ContainerInUseException The container that you specified in the request already exists or is being updated.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listContainers
default CompletableFuture<ListContainersResponse> listContainers(ListContainersRequest listContainersRequest) 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
MaxResultsparameter 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 theNextTokenparameter (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.
- Parameters:
listContainersRequest-- Returns:
- A Java Future containing the result of the ListContainers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listContainers
default CompletableFuture<ListContainersResponse> listContainers(Consumer<ListContainersRequest.Builder> listContainersRequest) 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
MaxResultsparameter 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 theNextTokenparameter (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.
This is a convenience which creates an instance of the
ListContainersRequest.Builderavoiding the need to create one manually viaListContainersRequest.builder()- Parameters:
listContainersRequest- AConsumerthat will call methods onListContainersRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListContainers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
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
MaxResultsparameter 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 theNextTokenparameter (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.
- Returns:
- A Java Future containing the result of the ListContainers operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listContainersPaginator
This is a variant of
listContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.mediastore.paginators.ListContainersPublisher publisher = client.listContainersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediastore.paginators.ListContainersPublisher publisher = client.listContainersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediastore.model.ListContainersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediastore.model.ListContainersResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listContainersPaginator
default ListContainersPublisher listContainersPaginator(ListContainersRequest listContainersRequest) This is a variant of
listContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.mediastore.paginators.ListContainersPublisher publisher = client.listContainersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediastore.paginators.ListContainersPublisher publisher = client.listContainersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediastore.model.ListContainersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediastore.model.ListContainersResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation.- Parameters:
listContainersRequest-- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listContainersPaginator
default ListContainersPublisher listContainersPaginator(Consumer<ListContainersRequest.Builder> listContainersRequest) This is a variant of
listContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation. The return type is a custom publisher that can be subscribed to request a stream of response pages. SDK will internally handle making service calls for you.When the operation is called, an instance of this class is returned. At this point, no service calls are made yet and so there is no guarantee that the request is valid. If there are errors in your request, you will see the failures only after you start streaming the data. The subscribe method should be called as a request to start streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber). Each call to the subscribe method will result in a newSubscriptioni.e., a new contract to stream data from the starting request.The following are few ways to use the response class:
1) Using the subscribe helper method
2) Using a custom subscribersoftware.amazon.awssdk.services.mediastore.paginators.ListContainersPublisher publisher = client.listContainersPaginator(request); CompletableFuture<Void> future = publisher.subscribe(res -> { // Do something with the response }); future.get();
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.software.amazon.awssdk.services.mediastore.paginators.ListContainersPublisher publisher = client.listContainersPaginator(request); publisher.subscribe(new Subscriber<software.amazon.awssdk.services.mediastore.model.ListContainersResponse>() { public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... }; public void onNext(software.amazon.awssdk.services.mediastore.model.ListContainersResponse response) { //... }; });Please notice that the configuration of MaxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listContainers(software.amazon.awssdk.services.mediastore.model.ListContainersRequest)operation.
This is a convenience which creates an instance of the
ListContainersRequest.Builderavoiding the need to create one manually viaListContainersRequest.builder()- Parameters:
listContainersRequest- AConsumerthat will call methods onListContainersRequest.Builderto create a request.- Returns:
- A custom publisher that can be subscribed to request a stream of response pages.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of the tags assigned to the specified container.
- Parameters:
listTagsForResourceRequest-- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
listTagsForResource
default CompletableFuture<ListTagsForResourceResponse> listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of the tags assigned to the specified container.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the ListTagsForResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putContainerPolicy
default CompletableFuture<PutContainerPolicyResponse> putContainerPolicy(PutContainerPolicyRequest putContainerPolicyRequest) 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
PutContainerPolicytwice, the second command modifies the existing policy.- Parameters:
putContainerPolicyRequest-- Returns:
- A Java Future containing the result of the PutContainerPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- ContainerInUseException The container that you specified in the request already exists or is being updated.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putContainerPolicy
default CompletableFuture<PutContainerPolicyResponse> putContainerPolicy(Consumer<PutContainerPolicyRequest.Builder> putContainerPolicyRequest) 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
PutContainerPolicytwice, the second command modifies the existing policy.
This is a convenience which creates an instance of the
PutContainerPolicyRequest.Builderavoiding the need to create one manually viaPutContainerPolicyRequest.builder()- Parameters:
putContainerPolicyRequest- AConsumerthat will call methods onPutContainerPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutContainerPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- ContainerInUseException The container that you specified in the request already exists or is being updated.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putCorsPolicy
default CompletableFuture<PutCorsPolicyResponse> putCorsPolicy(PutCorsPolicyRequest putCorsPolicyRequest) 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.
- Parameters:
putCorsPolicyRequest-- Returns:
- A Java Future containing the result of the PutCorsPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- ContainerInUseException The container that you specified in the request already exists or is being updated.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putCorsPolicy
default CompletableFuture<PutCorsPolicyResponse> putCorsPolicy(Consumer<PutCorsPolicyRequest.Builder> putCorsPolicyRequest) 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.
This is a convenience which creates an instance of the
PutCorsPolicyRequest.Builderavoiding the need to create one manually viaPutCorsPolicyRequest.builder()- Parameters:
putCorsPolicyRequest- AConsumerthat will call methods onPutCorsPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutCorsPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerNotFoundException The container that you specified in the request does not exist.
- ContainerInUseException The container that you specified in the request already exists or is being updated.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putLifecyclePolicy
default CompletableFuture<PutLifecyclePolicyResponse> putLifecyclePolicy(PutLifecyclePolicyRequest putLifecyclePolicyRequest) 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.
- Parameters:
putLifecyclePolicyRequest-- Returns:
- A Java Future containing the result of the PutLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putLifecyclePolicy
default CompletableFuture<PutLifecyclePolicyResponse> putLifecyclePolicy(Consumer<PutLifecyclePolicyRequest.Builder> putLifecyclePolicyRequest) 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.
This is a convenience which creates an instance of the
PutLifecyclePolicyRequest.Builderavoiding the need to create one manually viaPutLifecyclePolicyRequest.builder()- Parameters:
putLifecyclePolicyRequest- AConsumerthat will call methods onPutLifecyclePolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutLifecyclePolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMetricPolicy
default CompletableFuture<PutMetricPolicyResponse> putMetricPolicy(PutMetricPolicyRequest putMetricPolicyRequest) 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.
- Parameters:
putMetricPolicyRequest-- Returns:
- A Java Future containing the result of the PutMetricPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
putMetricPolicy
default CompletableFuture<PutMetricPolicyResponse> putMetricPolicy(Consumer<PutMetricPolicyRequest.Builder> putMetricPolicyRequest) 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.
This is a convenience which creates an instance of the
PutMetricPolicyRequest.Builderavoiding the need to create one manually viaPutMetricPolicyRequest.builder()- Parameters:
putMetricPolicyRequest- AConsumerthat will call methods onPutMetricPolicyRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the PutMetricPolicy operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAccessLogging
default CompletableFuture<StartAccessLoggingResponse> startAccessLogging(StartAccessLoggingRequest startAccessLoggingRequest) 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.
- Parameters:
startAccessLoggingRequest-- Returns:
- A Java Future containing the result of the StartAccessLogging operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
startAccessLogging
default CompletableFuture<StartAccessLoggingResponse> startAccessLogging(Consumer<StartAccessLoggingRequest.Builder> startAccessLoggingRequest) 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.
This is a convenience which creates an instance of the
StartAccessLoggingRequest.Builderavoiding the need to create one manually viaStartAccessLoggingRequest.builder()- Parameters:
startAccessLoggingRequest- AConsumerthat will call methods onStartAccessLoggingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StartAccessLogging operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopAccessLogging
default CompletableFuture<StopAccessLoggingResponse> stopAccessLogging(StopAccessLoggingRequest stopAccessLoggingRequest) 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.
- Parameters:
stopAccessLoggingRequest-- Returns:
- A Java Future containing the result of the StopAccessLogging operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
stopAccessLogging
default CompletableFuture<StopAccessLoggingResponse> stopAccessLogging(Consumer<StopAccessLoggingRequest.Builder> stopAccessLoggingRequest) 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.
This is a convenience which creates an instance of the
StopAccessLoggingRequest.Builderavoiding the need to create one manually viaStopAccessLoggingRequest.builder()- Parameters:
stopAccessLoggingRequest- AConsumerthat will call methods onStopAccessLoggingRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the StopAccessLogging operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
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.
- Parameters:
tagResourceRequest-- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
tagResource
default CompletableFuture<TagResourceResponse> tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) 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.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the TagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(UntagResourceRequest untagResourceRequest) Removes tags from the specified container. You can specify one or more tags to remove.
- Parameters:
untagResourceRequest-- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
untagResource
default CompletableFuture<UntagResourceResponse> untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes tags from the specified container. You can specify one or more tags to remove.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- A Java Future containing the result of the UntagResource operation returned by the service.
The CompletableFuture returned by this method can be completed exceptionally with the following exceptions. The exception returned is wrapped with CompletionException, so you need to invokeThrowable.getCause()to retrieve the underlying exception.- ContainerInUseException The container that you specified in the request already exists or is being updated.
- ContainerNotFoundException The container that you specified in the request does not exist.
- InternalServerErrorException The service is temporarily unavailable.
- SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.
- SdkClientException If any client side error occurs such as an IO related failure, failure to get credentials, etc.
- MediaStoreException Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.
- See Also:
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-
create
Create aMediaStoreAsyncClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aMediaStoreAsyncClient.
-