@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonDocDBElasticClient extends AmazonWebServiceClient implements AmazonDocDBElastic
Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity. Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.
Amazon DocumentDB elastic-clusters were created to:
provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.
give customers higher connection limits, and to reduce downtime from patching.
continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonDocDBElasticClientBuilder |
builder() |
CopyClusterSnapshotResult |
copyClusterSnapshot(CopyClusterSnapshotRequest request)
Copies a snapshot of an elastic cluster.
|
CreateClusterResult |
createCluster(CreateClusterRequest request)
Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
|
CreateClusterSnapshotResult |
createClusterSnapshot(CreateClusterSnapshotRequest request)
Creates a snapshot of an elastic cluster.
|
DeleteClusterResult |
deleteCluster(DeleteClusterRequest request)
Delete an elastic cluster.
|
DeleteClusterSnapshotResult |
deleteClusterSnapshot(DeleteClusterSnapshotRequest request)
Delete an elastic cluster snapshot.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
GetClusterResult |
getCluster(GetClusterRequest request)
Returns information about a specific elastic cluster.
|
GetClusterSnapshotResult |
getClusterSnapshot(GetClusterSnapshotRequest request)
Returns information about a specific elastic cluster snapshot
|
ListClustersResult |
listClusters(ListClustersRequest request)
Returns information about provisioned Amazon DocumentDB elastic clusters.
|
ListClusterSnapshotsResult |
listClusterSnapshots(ListClusterSnapshotsRequest request)
Returns information about snapshots for a specified elastic cluster.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists all tags on a elastic cluster resource
|
RestoreClusterFromSnapshotResult |
restoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest request)
Restores an elastic cluster from a snapshot.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
StartClusterResult |
startCluster(StartClusterRequest request)
Restarts the stopped elastic cluster that is specified by
clusterARN . |
StopClusterResult |
stopCluster(StopClusterRequest request)
Stops the running elastic cluster that is specified by
clusterArn . |
TagResourceResult |
tagResource(TagResourceRequest request)
Adds metadata tags to an elastic cluster resource
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes metadata tags from an elastic cluster resource
|
UpdateClusterResult |
updateCluster(UpdateClusterRequest request)
Modifies an elastic cluster.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AmazonDocDBElasticClientBuilder builder()
public CopyClusterSnapshotResult copyClusterSnapshot(CopyClusterSnapshotRequest request)
Copies a snapshot of an elastic cluster.
copyClusterSnapshot
in interface AmazonDocDBElastic
copyClusterSnapshotRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ServiceQuotaExceededException
- The service quota for the action was exceeded.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public CreateClusterResult createCluster(CreateClusterRequest request)
Creates a new Amazon DocumentDB elastic cluster and returns its cluster structure.
createCluster
in interface AmazonDocDBElastic
createClusterRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ServiceQuotaExceededException
- The service quota for the action was exceeded.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public CreateClusterSnapshotResult createClusterSnapshot(CreateClusterSnapshotRequest request)
Creates a snapshot of an elastic cluster.
createClusterSnapshot
in interface AmazonDocDBElastic
createClusterSnapshotRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ServiceQuotaExceededException
- The service quota for the action was exceeded.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public DeleteClusterResult deleteCluster(DeleteClusterRequest request)
Delete an elastic cluster.
deleteCluster
in interface AmazonDocDBElastic
deleteClusterRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public DeleteClusterSnapshotResult deleteClusterSnapshot(DeleteClusterSnapshotRequest request)
Delete an elastic cluster snapshot.
deleteClusterSnapshot
in interface AmazonDocDBElastic
deleteClusterSnapshotRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public GetClusterResult getCluster(GetClusterRequest request)
Returns information about a specific elastic cluster.
getCluster
in interface AmazonDocDBElastic
getClusterRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public GetClusterSnapshotResult getClusterSnapshot(GetClusterSnapshotRequest request)
Returns information about a specific elastic cluster snapshot
getClusterSnapshot
in interface AmazonDocDBElastic
getClusterSnapshotRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public ListClusterSnapshotsResult listClusterSnapshots(ListClusterSnapshotsRequest request)
Returns information about snapshots for a specified elastic cluster.
listClusterSnapshots
in interface AmazonDocDBElastic
listClusterSnapshotsRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public ListClustersResult listClusters(ListClustersRequest request)
Returns information about provisioned Amazon DocumentDB elastic clusters.
listClusters
in interface AmazonDocDBElastic
listClustersRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists all tags on a elastic cluster resource
listTagsForResource
in interface AmazonDocDBElastic
listTagsForResourceRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.public RestoreClusterFromSnapshotResult restoreClusterFromSnapshot(RestoreClusterFromSnapshotRequest request)
Restores an elastic cluster from a snapshot.
restoreClusterFromSnapshot
in interface AmazonDocDBElastic
restoreClusterFromSnapshotRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ServiceQuotaExceededException
- The service quota for the action was exceeded.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public StartClusterResult startCluster(StartClusterRequest request)
Restarts the stopped elastic cluster that is specified by clusterARN
.
startCluster
in interface AmazonDocDBElastic
startClusterRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public StopClusterResult stopCluster(StopClusterRequest request)
Stops the running elastic cluster that is specified by clusterArn
. The elastic cluster must be in
the available state.
stopCluster
in interface AmazonDocDBElastic
stopClusterRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public TagResourceResult tagResource(TagResourceRequest request)
Adds metadata tags to an elastic cluster resource
tagResource
in interface AmazonDocDBElastic
tagResourceRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes metadata tags from an elastic cluster resource
untagResource
in interface AmazonDocDBElastic
untagResourceRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.public UpdateClusterResult updateCluster(UpdateClusterRequest request)
Modifies an elastic cluster. This includes updating admin-username/password, upgrading the API version, and setting up a backup window and maintenance window
updateCluster
in interface AmazonDocDBElastic
updateClusterRequest
- ThrottlingException
- ThrottlingException will be thrown when request was denied due to request throttling.ValidationException
- A structure defining a validation exception.ConflictException
- There was an access conflict.InternalServerException
- There was an internal server error.ResourceNotFoundException
- The specified resource could not be located.AccessDeniedException
- An exception that occurs when there are not sufficient permissions to perform an action.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
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 the request.
getCachedResponseMetadata
in interface AmazonDocDBElastic
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AmazonDocDBElastic
shutdown
in class AmazonWebServiceClient