/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.docdbelastic; import javax.annotation.Generated; import com.amazonaws.*; import com.amazonaws.regions.*; import com.amazonaws.services.docdbelastic.model.*; /** * Interface for accessing DocDB Elastic. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.docdbelastic.AbstractAmazonDocDBElastic} instead. *
**
* The new Amazon Elastic DocumentDB service endpoint. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonDocDBElastic { /** * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata * (such as supported regions) of the service. * * @see RegionUtils#getRegionsForService(String) */ String ENDPOINT_PREFIX = "docdb-elastic"; /** ** Creates a new Elastic DocumentDB cluster and returns its Cluster structure. *
* * @param createClusterRequest * @return Result of the CreateCluster operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws ServiceQuotaExceededException * The service quota for the action was exceeded. * @throws ConflictException * There was an access conflict. * @throws InternalServerException * There was an internal server error. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.CreateCluster * @see AWS * API Documentation */ CreateClusterResult createCluster(CreateClusterRequest createClusterRequest); /** ** Creates a snapshot of a cluster. *
* * @param createClusterSnapshotRequest * @return Result of the CreateClusterSnapshot operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws ServiceQuotaExceededException * The service quota for the action was exceeded. * @throws ConflictException * There was an access conflict. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.CreateClusterSnapshot * @see AWS API Documentation */ CreateClusterSnapshotResult createClusterSnapshot(CreateClusterSnapshotRequest createClusterSnapshotRequest); /** ** Delete a Elastic DocumentDB cluster. *
* * @param deleteClusterRequest * @return Result of the DeleteCluster operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws ConflictException * There was an access conflict. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.DeleteCluster * @see AWS * API Documentation */ DeleteClusterResult deleteCluster(DeleteClusterRequest deleteClusterRequest); /** ** Delete a Elastic DocumentDB snapshot. *
* * @param deleteClusterSnapshotRequest * @return Result of the DeleteClusterSnapshot operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws ConflictException * There was an access conflict. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.DeleteClusterSnapshot * @see AWS API Documentation */ DeleteClusterSnapshotResult deleteClusterSnapshot(DeleteClusterSnapshotRequest deleteClusterSnapshotRequest); /** ** Returns information about a specific Elastic DocumentDB cluster. *
* * @param getClusterRequest * @return Result of the GetCluster operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.GetCluster * @see AWS API * Documentation */ GetClusterResult getCluster(GetClusterRequest getClusterRequest); /** ** Returns information about a specific Elastic DocumentDB snapshot *
* * @param getClusterSnapshotRequest * @return Result of the GetClusterSnapshot operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.GetClusterSnapshot * @see AWS API Documentation */ GetClusterSnapshotResult getClusterSnapshot(GetClusterSnapshotRequest getClusterSnapshotRequest); /** ** Returns information about Elastic DocumentDB snapshots for a specified cluster. *
* * @param listClusterSnapshotsRequest * @return Result of the ListClusterSnapshots operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.ListClusterSnapshots * @see AWS API Documentation */ ListClusterSnapshotsResult listClusterSnapshots(ListClusterSnapshotsRequest listClusterSnapshotsRequest); /** ** Returns information about provisioned Elastic DocumentDB clusters. *
* * @param listClustersRequest * @return Result of the ListClusters operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.ListClusters * @see AWS API * Documentation */ ListClustersResult listClusters(ListClustersRequest listClustersRequest); /** ** Lists all tags on a Elastic DocumentDB resource *
* * @param listTagsForResourceRequest * @return Result of the ListTagsForResource operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @sample AmazonDocDBElastic.ListTagsForResource * @see AWS API Documentation */ ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest); /** ** Restores a Elastic DocumentDB cluster from a snapshot. *
* * @param restoreClusterFromSnapshotRequest * @return Result of the RestoreClusterFromSnapshot operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws ServiceQuotaExceededException * The service quota for the action was exceeded. * @throws ConflictException * There was an access conflict. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.RestoreClusterFromSnapshot * @see AWS API Documentation */ RestoreClusterFromSnapshotResult restoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest restoreClusterFromSnapshotRequest); /** ** Adds metadata tags to a Elastic DocumentDB resource *
* * @param tagResourceRequest * @return Result of the TagResource operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @sample AmazonDocDBElastic.TagResource * @see AWS API * Documentation */ TagResourceResult tagResource(TagResourceRequest tagResourceRequest); /** ** Removes metadata tags to a Elastic DocumentDB resource *
* * @param untagResourceRequest * @return Result of the UntagResource operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @sample AmazonDocDBElastic.UntagResource * @see AWS * API Documentation */ UntagResourceResult untagResource(UntagResourceRequest untagResourceRequest); /** ** Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password, upgrading API version * setting up a backup window and maintenance window *
* * @param updateClusterRequest * @return Result of the UpdateCluster operation returned by the service. * @throws ThrottlingException * ThrottlingException will be thrown when request was denied due to request throttling. * @throws ValidationException * A structure defining a validation exception. * @throws ConflictException * There was an access conflict. * @throws InternalServerException * There was an internal server error. * @throws ResourceNotFoundException * The specified resource could not be located. * @throws AccessDeniedException * An exception that occurs when there are not sufficient permissions to perform an action. * @sample AmazonDocDBElastic.UpdateCluster * @see AWS * API Documentation */ UpdateClusterResult updateCluster(UpdateClusterRequest updateClusterRequest); /** * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client * has been shutdown, it should not be used to make any more requests. */ void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. ** Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none is available. */ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); }