Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 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.rds;
  
  
  
Asynchronous client for accessing AmazonRDS. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. Amazon Relational Database Service

Amazon Relational Database Service (Amazon RDS) is a web service that makes it easier to set up, operate, and scale a relational database in the cloud. It provides cost-efficient, resizable capacity for an industry-standard relational database and manages common database administration tasks, freeing up developers to focus on what makes their applications and businesses unique.

Amazon RDS gives you access to the capabilities of a MySQL, PostgreSQL, Microsoft SQL Server, Oracle, or Aurora database server. This means the code, applications, and tools you already use today with your existing databases work with Amazon RDS without modification. Amazon RDS automatically backs up your database and maintains the database software that powers your DB instance. Amazon RDS is flexible: you can scale your database instance's compute resources and storage capacity to meet your application's demand. As with all Amazon Web Services, there are no up-front investments, and you pay only for the resources you use.

This is an interface reference for Amazon RDS. It contains documentation for a programming or command line interface you can use to manage Amazon RDS. Note that Amazon RDS is asynchronous, which means that some interfaces may require techniques such as polling or callback functions to determine when a command has been applied. In this reference, the parameter descriptions indicate whether a command is applied immediately, on the next instance reboot, or during the maintenance window. For a summary of the Amazon RDS interfaces, go to Available RDS Interfaces .

  
  public class AmazonRDSAsyncClient extends AmazonRDSClient
          implements AmazonRDSAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AmazonRDSAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonRDS (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonRDSAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonRDSAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRDSAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRDSAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonRDS using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonRDSAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Deletes a DB subnet group.

NOTE:The specified database subnet group must not be associated with any DB instances.

Parameters:
deleteDBSubnetGroupRequest Container for the necessary parameters to execute the DeleteDBSubnetGroup operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DeleteDBSubnetGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteDBSubnetGroupAsync(final DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteDBSubnetGroup(deleteDBSubnetGroupRequest);
                 return null;
         }
     });
     }

    

Deletes a DB subnet group.

NOTE:The specified database subnet group must not be associated with any DB instances.

Parameters:
deleteDBSubnetGroupRequest Container for the necessary parameters to execute the DeleteDBSubnetGroup operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteDBSubnetGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest,
             final AsyncHandler<DeleteDBSubnetGroupRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteDBSubnetGroup(deleteDBSubnetGroupRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteDBSubnetGroupRequestnull);
                  return null;
         }
     });
     }
    
    

Copies the specified option group.

Parameters:
copyOptionGroupRequest Container for the necessary parameters to execute the CopyOptionGroup operation on AmazonRDS.
Returns:
A Java Future object containing the response from the CopyOptionGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<OptionGroupcopyOptionGroupAsync(final CopyOptionGroupRequest copyOptionGroupRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<OptionGroup>() {
             public OptionGroup call() throws Exception {
                 return copyOptionGroup(copyOptionGroupRequest);
         }
     });
     }

    

Copies the specified option group.

Parameters:
copyOptionGroupRequest Container for the necessary parameters to execute the CopyOptionGroup operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CopyOptionGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final CopyOptionGroupRequest copyOptionGroupRequest,
             final AsyncHandler<CopyOptionGroupRequestOptionGroupasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<OptionGroup>() {
             public OptionGroup call() throws Exception {
               OptionGroup result;
                 try {
                 result = copyOptionGroup(copyOptionGroupRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(copyOptionGroupRequestresult);
                  return result;
         }
     });
     }
    
    

Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the LatestRestorableTime for up to BackupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

Parameters:
restoreDBInstanceToPointInTimeRequest Container for the necessary parameters to execute the RestoreDBInstanceToPointInTime operation on AmazonRDS.
Returns:
A Java Future object containing the response from the RestoreDBInstanceToPointInTime service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DBInstancerestoreDBInstanceToPointInTimeAsync(final RestoreDBInstanceToPointInTimeRequest restoreDBInstanceToPointInTimeRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBInstance>() {
             public DBInstance call() throws Exception {
                 return restoreDBInstanceToPointInTime(restoreDBInstanceToPointInTimeRequest);
         }
     });
     }

    

Restores a DB instance to an arbitrary point-in-time. Users can restore to any point in time before the LatestRestorableTime for up to BackupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.

Parameters:
restoreDBInstanceToPointInTimeRequest Container for the necessary parameters to execute the RestoreDBInstanceToPointInTime operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RestoreDBInstanceToPointInTime service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final RestoreDBInstanceToPointInTimeRequest restoreDBInstanceToPointInTimeRequest,
             final AsyncHandler<RestoreDBInstanceToPointInTimeRequestDBInstanceasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBInstance>() {
             public DBInstance call() throws Exception {
               DBInstance result;
                 try {
                 result = restoreDBInstanceToPointInTime(restoreDBInstanceToPointInTimeRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(restoreDBInstanceToPointInTimeRequestresult);
                  return result;
         }
     });
     }
    
    

Copies the specified DBSnapshot. The source DBSnapshot must be in the "available" state.

Parameters:
copyDBSnapshotRequest Container for the necessary parameters to execute the CopyDBSnapshot operation on AmazonRDS.
Returns:
A Java Future object containing the response from the CopyDBSnapshot service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DBSnapshotcopyDBSnapshotAsync(final CopyDBSnapshotRequest copyDBSnapshotRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBSnapshot>() {
             public DBSnapshot call() throws Exception {
                 return copyDBSnapshot(copyDBSnapshotRequest);
         }
     });
     }

    

Copies the specified DBSnapshot. The source DBSnapshot must be in the "available" state.

Parameters:
copyDBSnapshotRequest Container for the necessary parameters to execute the CopyDBSnapshot operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CopyDBSnapshot service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final CopyDBSnapshotRequest copyDBSnapshotRequest,
             final AsyncHandler<CopyDBSnapshotRequestDBSnapshotasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBSnapshot>() {
             public DBSnapshot call() throws Exception {
               DBSnapshot result;
                 try {
                 result = copyDBSnapshot(copyDBSnapshotRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(copyDBSnapshotRequestresult);
                  return result;
         }
     });
     }
    
    

Returns a list of resources (for example, DB instances) that have at least one pending maintenance action.

Parameters:
describePendingMaintenanceActionsRequest Container for the necessary parameters to execute the DescribePendingMaintenanceActions operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribePendingMaintenanceActions service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribePendingMaintenanceActionsResult call() throws Exception {
                 return describePendingMaintenanceActions(describePendingMaintenanceActionsRequest);
         }
     });
     }

    

Returns a list of resources (for example, DB instances) that have at least one pending maintenance action.

Parameters:
describePendingMaintenanceActionsRequest Container for the necessary parameters to execute the DescribePendingMaintenanceActions operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribePendingMaintenanceActions service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final DescribePendingMaintenanceActionsRequest describePendingMaintenanceActionsRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribePendingMaintenanceActionsResult call() throws Exception {
               DescribePendingMaintenanceActionsResult result;
                 try {
                 result = describePendingMaintenanceActions(describePendingMaintenanceActionsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describePendingMaintenanceActionsRequestresult);
                  return result;
         }
     });
     }
    
    

Creates a new DB instance.

Parameters:
createDBInstanceRequest Container for the necessary parameters to execute the CreateDBInstance operation on AmazonRDS.
Returns:
A Java Future object containing the response from the CreateDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DBInstancecreateDBInstanceAsync(final CreateDBInstanceRequest createDBInstanceRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBInstance>() {
             public DBInstance call() throws Exception {
                 return createDBInstance(createDBInstanceRequest);
         }
     });
     }

    

Creates a new DB instance.

Parameters:
createDBInstanceRequest Container for the necessary parameters to execute the CreateDBInstance operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final CreateDBInstanceRequest createDBInstanceRequest,
             final AsyncHandler<CreateDBInstanceRequestDBInstanceasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBInstance>() {
             public DBInstance call() throws Exception {
               DBInstance result;
                 try {
                 result = createDBInstance(createDBInstanceRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createDBInstanceRequestresult);
                  return result;
         }
     });
     }
    
    

Creates a new DB security group. DB security groups control access to a DB instance.

Parameters:
createDBSecurityGroupRequest Container for the necessary parameters to execute the CreateDBSecurityGroup operation on AmazonRDS.
Returns:
A Java Future object containing the response from the CreateDBSecurityGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DBSecurityGroupcreateDBSecurityGroupAsync(final CreateDBSecurityGroupRequest createDBSecurityGroupRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBSecurityGroup>() {
             public DBSecurityGroup call() throws Exception {
                 return createDBSecurityGroup(createDBSecurityGroupRequest);
         }
     });
     }

    

Creates a new DB security group. DB security groups control access to a DB instance.

Parameters:
createDBSecurityGroupRequest Container for the necessary parameters to execute the CreateDBSecurityGroup operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateDBSecurityGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final CreateDBSecurityGroupRequest createDBSecurityGroupRequest,
             final AsyncHandler<CreateDBSecurityGroupRequestDBSecurityGroupasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DBSecurityGroup>() {
             public DBSecurityGroup call() throws Exception {
               DBSecurityGroup result;
                 try {
                 result = createDBSecurityGroup(createDBSecurityGroupRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createDBSecurityGroupRequestresult);
                  return result;
         }
     });
     }
    
    

Describes the available option groups.

Parameters:
describeOptionGroupsRequest Container for the necessary parameters to execute the DescribeOptionGroups operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribeOptionGroups service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeOptionGroupsResultdescribeOptionGroupsAsync(final DescribeOptionGroupsRequest describeOptionGroupsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeOptionGroupsResult>() {
             public DescribeOptionGroupsResult call() throws Exception {
                 return describeOptionGroups(describeOptionGroupsRequest);
         }
     });
     }

    

Describes the available option groups.

Parameters:
describeOptionGroupsRequest Container for the necessary parameters to execute the DescribeOptionGroups operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeOptionGroups service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeOptionGroupsRequest describeOptionGroupsRequest,
             final AsyncHandler<DescribeOptionGroupsRequestDescribeOptionGroupsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeOptionGroupsResult>() {
             public DescribeOptionGroupsResult call() throws Exception {
               DescribeOptionGroupsResult result;
                 try {
                 result = describeOptionGroups(describeOptionGroupsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeOptionGroupsRequestresult);
                  return result;
         }
     });
     }
    
    

Returns information about provisioned RDS instances. This API supports pagination.

Parameters:
describeDBInstancesRequest Container for the necessary parameters to execute the DescribeDBInstances operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribeDBInstances service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeDBInstancesResultdescribeDBInstancesAsync(final DescribeDBInstancesRequest describeDBInstancesRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeDBInstancesResult>() {
             public DescribeDBInstancesResult call() throws Exception {
                 return describeDBInstances(describeDBInstancesRequest);
         }
     });
     }

    

Returns information about provisioned RDS instances. This API supports pagination.

Parameters:
describeDBInstancesRequest Container for the necessary parameters to execute the DescribeDBInstances operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeDBInstances service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeDBInstancesRequest describeDBInstancesRequest,
             final AsyncHandler<DescribeDBInstancesRequestDescribeDBInstancesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeDBInstancesResult>() {
             public DescribeDBInstancesResult call() throws Exception {
               DescribeDBInstancesResult result;
                 try {
                 result = describeDBInstances(describeDBInstancesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeDBInstancesRequestresult);
                  return result;
         }
     });
     }
    
    

Removes a source identifier from an existing RDS event notification subscription.

Parameters:
removeSourceIdentifierFromSubscriptionRequest Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription operation on AmazonRDS.
Returns:
A Java Future object containing the response from the RemoveSourceIdentifierFromSubscription service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<EventSubscriptionremoveSourceIdentifierFromSubscriptionAsync(final RemoveSourceIdentifierFromSubscriptionRequest removeSourceIdentifierFromSubscriptionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EventSubscription>() {
            public EventSubscription call() throws Exception {
                return removeSourceIdentifierFromSubscription(removeSourceIdentifierFromSubscriptionRequest);
        }
    });
    }

    

Removes a source identifier from an existing RDS event notification subscription.

Parameters:
removeSourceIdentifierFromSubscriptionRequest Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RemoveSourceIdentifierFromSubscription service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final RemoveSourceIdentifierFromSubscriptionRequest removeSourceIdentifierFromSubscriptionRequest,
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EventSubscription>() {
            public EventSubscription call() throws Exception {
              EventSubscription result;
                try {
                result = removeSourceIdentifierFromSubscription(removeSourceIdentifierFromSubscriptionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(removeSourceIdentifierFromSubscriptionRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes a DB security group.

NOTE:The specified DB security group must not be associated with any DB instances.

Parameters:
deleteDBSecurityGroupRequest Container for the necessary parameters to execute the DeleteDBSecurityGroup operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DeleteDBSecurityGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteDBSecurityGroupAsync(final DeleteDBSecurityGroupRequest deleteDBSecurityGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteDBSecurityGroup(deleteDBSecurityGroupRequest);
                return null;
        }
    });
    }

    

Deletes a DB security group.

NOTE:The specified DB security group must not be associated with any DB instances.

Parameters:
deleteDBSecurityGroupRequest Container for the necessary parameters to execute the DeleteDBSecurityGroup operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteDBSecurityGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DeleteDBSecurityGroupRequest deleteDBSecurityGroupRequest,
            final AsyncHandler<DeleteDBSecurityGroupRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteDBSecurityGroup(deleteDBSecurityGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteDBSecurityGroupRequestnull);
                 return null;
        }
    });
    }
    
    

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

NOTE: You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial .

Parameters:
authorizeDBSecurityGroupIngressRequest Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress operation on AmazonRDS.
Returns:
A Java Future object containing the response from the AuthorizeDBSecurityGroupIngress service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DBSecurityGroupauthorizeDBSecurityGroupIngressAsync(final AuthorizeDBSecurityGroupIngressRequest authorizeDBSecurityGroupIngressRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBSecurityGroup>() {
            public DBSecurityGroup call() throws Exception {
                return authorizeDBSecurityGroupIngress(authorizeDBSecurityGroupIngressRequest);
        }
    });
    }

    

Enables ingress to a DBSecurityGroup using one of two forms of authorization. First, EC2 or VPC security groups can be added to the DBSecurityGroup if the application using the database is running on EC2 or VPC instances. Second, IP ranges are available if the application accessing your database is running on the Internet. Required parameters for this API are one of CIDR range, EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName or EC2SecurityGroupId for non-VPC).

NOTE: You cannot authorize ingress from an EC2 security group in one Region to an Amazon RDS DB instance in another. You cannot authorize ingress from a VPC security group in one VPC to an Amazon RDS DB instance in another.

For an overview of CIDR ranges, go to the Wikipedia Tutorial .

Parameters:
authorizeDBSecurityGroupIngressRequest Container for the necessary parameters to execute the AuthorizeDBSecurityGroupIngress operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AuthorizeDBSecurityGroupIngress service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final AuthorizeDBSecurityGroupIngressRequest authorizeDBSecurityGroupIngressRequest,
            final AsyncHandler<AuthorizeDBSecurityGroupIngressRequestDBSecurityGroupasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBSecurityGroup>() {
            public DBSecurityGroup call() throws Exception {
              DBSecurityGroup result;
                try {
                result = authorizeDBSecurityGroupIngress(authorizeDBSecurityGroupIngressRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(authorizeDBSecurityGroupIngressRequestresult);
                 return result;
        }
    });
    }
    
    

Applies a pending maintenance action to a resource (for example, a DB instance).

Parameters:
applyPendingMaintenanceActionRequest Container for the necessary parameters to execute the ApplyPendingMaintenanceAction operation on AmazonRDS.
Returns:
A Java Future object containing the response from the ApplyPendingMaintenanceAction service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ResourcePendingMaintenanceActions call() throws Exception {
                return applyPendingMaintenanceAction(applyPendingMaintenanceActionRequest);
        }
    });
    }

    

Applies a pending maintenance action to a resource (for example, a DB instance).

Parameters:
applyPendingMaintenanceActionRequest Container for the necessary parameters to execute the ApplyPendingMaintenanceAction operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ApplyPendingMaintenanceAction service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final ApplyPendingMaintenanceActionRequest applyPendingMaintenanceActionRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public ResourcePendingMaintenanceActions call() throws Exception {
              ResourcePendingMaintenanceActions result;
                try {
                result = applyPendingMaintenanceAction(applyPendingMaintenanceActionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(applyPendingMaintenanceActionRequestresult);
                 return result;
        }
    });
    }
    
    

Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

Parameters:
modifyDBInstanceRequest Container for the necessary parameters to execute the ModifyDBInstance operation on AmazonRDS.
Returns:
A Java Future object containing the response from the ModifyDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DBInstancemodifyDBInstanceAsync(final ModifyDBInstanceRequest modifyDBInstanceRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBInstance>() {
            public DBInstance call() throws Exception {
                return modifyDBInstance(modifyDBInstanceRequest);
        }
    });
    }

    

Modify settings for a DB instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.

Parameters:
modifyDBInstanceRequest Container for the necessary parameters to execute the ModifyDBInstance operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final ModifyDBInstanceRequest modifyDBInstanceRequest,
            final AsyncHandler<ModifyDBInstanceRequestDBInstanceasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBInstance>() {
            public DBInstance call() throws Exception {
              DBInstance result;
                try {
                result = modifyDBInstance(modifyDBInstanceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(modifyDBInstanceRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes an RDS event notification subscription.

Parameters:
deleteEventSubscriptionRequest Container for the necessary parameters to execute the DeleteEventSubscription operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DeleteEventSubscription service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<EventSubscriptiondeleteEventSubscriptionAsync(final DeleteEventSubscriptionRequest deleteEventSubscriptionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EventSubscription>() {
            public EventSubscription call() throws Exception {
                return deleteEventSubscription(deleteEventSubscriptionRequest);
        }
    });
    }

    

Deletes an RDS event notification subscription.

Parameters:
deleteEventSubscriptionRequest Container for the necessary parameters to execute the DeleteEventSubscription operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteEventSubscription service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DeleteEventSubscriptionRequest deleteEventSubscriptionRequest,
            final AsyncHandler<DeleteEventSubscriptionRequestEventSubscriptionasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<EventSubscription>() {
            public EventSubscription call() throws Exception {
              EventSubscription result;
                try {
                result = deleteEventSubscription(deleteEventSubscriptionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteEventSubscriptionRequestresult);
                 return result;
        }
    });
    }
    
    

Removes metadata tags from an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources .

Parameters:
removeTagsFromResourceRequest Container for the necessary parameters to execute the RemoveTagsFromResource operation on AmazonRDS.
Returns:
A Java Future object containing the response from the RemoveTagsFromResource service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidremoveTagsFromResourceAsync(final RemoveTagsFromResourceRequest removeTagsFromResourceRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                removeTagsFromResource(removeTagsFromResourceRequest);
                return null;
        }
    });
    }

    

Removes metadata tags from an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources .

Parameters:
removeTagsFromResourceRequest Container for the necessary parameters to execute the RemoveTagsFromResource operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RemoveTagsFromResource service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final RemoveTagsFromResourceRequest removeTagsFromResourceRequest,
            final AsyncHandler<RemoveTagsFromResourceRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                removeTagsFromResource(removeTagsFromResourceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(removeTagsFromResourceRequestnull);
                 return null;
        }
    });
    }
    
    

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

Parameters:
describeEventCategoriesRequest Container for the necessary parameters to execute the DescribeEventCategories operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribeEventCategories service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeEventCategoriesResult call() throws Exception {
                return describeEventCategories(describeEventCategoriesRequest);
        }
    });
    }

    

Displays a list of categories for all event source types, or, if specified, for a specified source type. You can see a list of the event categories and source types in the Events topic in the Amazon RDS User Guide.

Parameters:
describeEventCategoriesRequest Container for the necessary parameters to execute the DescribeEventCategories operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeEventCategories service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DescribeEventCategoriesRequest describeEventCategoriesRequest,
            final AsyncHandler<DescribeEventCategoriesRequestDescribeEventCategoriesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeEventCategoriesResult call() throws Exception {
              DescribeEventCategoriesResult result;
                try {
                result = describeEventCategories(describeEventCategoriesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeEventCategoriesRequestresult);
                 return result;
        }
    });
    }
    
    

Copies the specified DB parameter group.

Parameters:
copyDBParameterGroupRequest Container for the necessary parameters to execute the CopyDBParameterGroup operation on AmazonRDS.
Returns:
A Java Future object containing the response from the CopyDBParameterGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DBParameterGroupcopyDBParameterGroupAsync(final CopyDBParameterGroupRequest copyDBParameterGroupRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBParameterGroup>() {
            public DBParameterGroup call() throws Exception {
                return copyDBParameterGroup(copyDBParameterGroupRequest);
        }
    });
    }

    

Copies the specified DB parameter group.

Parameters:
copyDBParameterGroupRequest Container for the necessary parameters to execute the CopyDBParameterGroup operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CopyDBParameterGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final CopyDBParameterGroupRequest copyDBParameterGroupRequest,
            final AsyncHandler<CopyDBParameterGroupRequestDBParameterGroupasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBParameterGroup>() {
            public DBParameterGroup call() throws Exception {
              DBParameterGroup result;
                try {
                result = copyDBParameterGroup(copyDBParameterGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(copyDBParameterGroupRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a DB instance that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

IMPORTANT: The source DB instance must have backup retention enabled.

Parameters:
createDBInstanceReadReplicaRequest Container for the necessary parameters to execute the CreateDBInstanceReadReplica operation on AmazonRDS.
Returns:
A Java Future object containing the response from the CreateDBInstanceReadReplica service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DBInstancecreateDBInstanceReadReplicaAsync(final CreateDBInstanceReadReplicaRequest createDBInstanceReadReplicaRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBInstance>() {
            public DBInstance call() throws Exception {
                return createDBInstanceReadReplica(createDBInstanceReadReplicaRequest);
        }
    });
    }

    

Creates a DB instance that acts as a Read Replica of a source DB instance.

All Read Replica DB instances are created as Single-AZ deployments with backups disabled. All other DB instance attributes (including DB security groups and DB parameter groups) are inherited from the source DB instance, except as specified below.

IMPORTANT: The source DB instance must have backup retention enabled.

Parameters:
createDBInstanceReadReplicaRequest Container for the necessary parameters to execute the CreateDBInstanceReadReplica operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateDBInstanceReadReplica service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final CreateDBInstanceReadReplicaRequest createDBInstanceReadReplicaRequest,
            final AsyncHandler<CreateDBInstanceReadReplicaRequestDBInstanceasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBInstance>() {
            public DBInstance call() throws Exception {
              DBInstance result;
                try {
                result = createDBInstanceReadReplica(createDBInstanceReadReplicaRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createDBInstanceReadReplicaRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

NOTE:The DBSnapshot must be in the available state to be deleted.

Parameters:
deleteDBSnapshotRequest Container for the necessary parameters to execute the DeleteDBSnapshot operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DeleteDBSnapshot service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DBSnapshotdeleteDBSnapshotAsync(final DeleteDBSnapshotRequest deleteDBSnapshotRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBSnapshot>() {
            public DBSnapshot call() throws Exception {
                return deleteDBSnapshot(deleteDBSnapshotRequest);
        }
    });
    }

    

Deletes a DBSnapshot. If the snapshot is being copied, the copy operation is terminated.

NOTE:The DBSnapshot must be in the available state to be deleted.

Parameters:
deleteDBSnapshotRequest Container for the necessary parameters to execute the DeleteDBSnapshot operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteDBSnapshot service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DeleteDBSnapshotRequest deleteDBSnapshotRequest,
            final AsyncHandler<DeleteDBSnapshotRequestDBSnapshotasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBSnapshot>() {
            public DBSnapshot call() throws Exception {
              DBSnapshot result;
                try {
                result = deleteDBSnapshot(deleteDBSnapshotRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteDBSnapshotRequestresult);
                 return result;
        }
    });
    }
    
    

Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

Parameters:
rebootDBInstanceRequest Container for the necessary parameters to execute the RebootDBInstance operation on AmazonRDS.
Returns:
A Java Future object containing the response from the RebootDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DBInstancerebootDBInstanceAsync(final RebootDBInstanceRequest rebootDBInstanceRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBInstance>() {
            public DBInstance call() throws Exception {
                return rebootDBInstance(rebootDBInstanceRequest);
        }
    });
    }

    

Rebooting a DB instance restarts the database engine service. A reboot also applies to the DB instance any modifications to the associated DB parameter group that were pending. Rebooting a DB instance results in a momentary outage of the instance, during which the DB instance status is set to rebooting. If the RDS instance is configured for MultiAZ, it is possible that the reboot will be conducted through a failover. An Amazon RDS event is created when the reboot is completed.

If your DB instance is deployed in multiple Availability Zones, you can force a failover from one AZ to the other during the reboot. You might force a failover to test the availability of your DB instance deployment or to restore operations to the original AZ after a failover occurs.

The time required to reboot is a function of the specific database engine's crash recovery process. To improve the reboot time, we recommend that you reduce database activities as much as possible during the reboot process to reduce rollback activity for in-transit transactions.

Parameters:
rebootDBInstanceRequest Container for the necessary parameters to execute the RebootDBInstance operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RebootDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final RebootDBInstanceRequest rebootDBInstanceRequest,
            final AsyncHandler<RebootDBInstanceRequestDBInstanceasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DBInstance>() {
            public DBInstance call() throws Exception {
              DBInstance result;
                try {
                result = rebootDBInstance(rebootDBInstanceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(rebootDBInstanceRequestresult);
                 return result;
        }
    });
    }
    
    

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

Parameters:
describeEventsRequest Container for the necessary parameters to execute the DescribeEvents operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribeEvents service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeEventsResultdescribeEventsAsync(final DescribeEventsRequest describeEventsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeEventsResult>() {
            public DescribeEventsResult call() throws Exception {
                return describeEvents(describeEventsRequest);
        }
    });
    }

    

Returns events related to DB instances, DB security groups, DB snapshots, and DB parameter groups for the past 14 days. Events specific to a particular DB instance, DB security group, database snapshot, or DB parameter group can be obtained by providing the name as a parameter. By default, the past hour of events are returned.

Parameters:
describeEventsRequest Container for the necessary parameters to execute the DescribeEvents operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeEvents service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DescribeEventsRequest describeEventsRequest,
            final AsyncHandler<DescribeEventsRequestDescribeEventsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeEventsResult>() {
            public DescribeEventsResult call() throws Exception {
              DescribeEventsResult result;
                try {
                result = describeEvents(describeEventsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeEventsRequestresult);
                 return result;
        }
    });
    }
    
    

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources .

Parameters:
listTagsForResourceRequest Container for the necessary parameters to execute the ListTagsForResource operation on AmazonRDS.
Returns:
A Java Future object containing the response from the ListTagsForResource service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<ListTagsForResourceResultlistTagsForResourceAsync(final ListTagsForResourceRequest listTagsForResourceRequest
            throws AmazonServiceExceptionAmazonClientException {
            public ListTagsForResourceResult call() throws Exception {
                return listTagsForResource(listTagsForResourceRequest);
        }
    });
    }

    

Lists all tags on an Amazon RDS resource.

For an overview on tagging an Amazon RDS resource, see Tagging Amazon RDS Resources .

Parameters:
listTagsForResourceRequest Container for the necessary parameters to execute the ListTagsForResource operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListTagsForResource service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final ListTagsForResourceRequest listTagsForResourceRequest,
            final AsyncHandler<ListTagsForResourceRequestListTagsForResourceResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public ListTagsForResourceResult call() throws Exception {
              ListTagsForResourceResult result;
                try {
                result = listTagsForResource(listTagsForResourceRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listTagsForResourceRequestresult);
                 return result;
        }
    });
    }
    
    

Describes all available options.

Parameters:
describeOptionGroupOptionsRequest Container for the necessary parameters to execute the DescribeOptionGroupOptions operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribeOptionGroupOptions service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeOptionGroupOptionsResult call() throws Exception {
                return describeOptionGroupOptions(describeOptionGroupOptionsRequest);
        }
    });
    }

    

Describes all available options.

Parameters:
describeOptionGroupOptionsRequest Container for the necessary parameters to execute the DescribeOptionGroupOptions operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeOptionGroupOptions service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DescribeOptionGroupOptionsRequest describeOptionGroupOptionsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeOptionGroupOptionsResult call() throws Exception {
              DescribeOptionGroupOptionsResult result;
                try {
                result = describeOptionGroupOptions(describeOptionGroupOptionsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeOptionGroupOptionsRequestresult);
                 return result;
        }
    });
    }
    
    

Returns the detailed parameter list for a particular DB parameter group.

Parameters:
describeDBParametersRequest Container for the necessary parameters to execute the DescribeDBParameters operation on AmazonRDS.
Returns:
A Java Future object containing the response from the DescribeDBParameters service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeDBParametersResultdescribeDBParametersAsync(final DescribeDBParametersRequest describeDBParametersRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeDBParametersResult call() throws Exception {
                return describeDBParameters(describeDBParametersRequest);
        }
    });
    }

    

Returns the detailed parameter list for a particular DB parameter group.

Parameters:
describeDBParametersRequest Container for the necessary parameters to execute the DescribeDBParameters operation on AmazonRDS.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeDBParameters service method, as returned by AmazonRDS.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonRDS indicating either a problem with the data in the request, or a server side issue.
            final DescribeDBParametersRequest describeDBParametersRequest,
            final AsyncHandler<DescribeDBParametersRequestDescribeDBParametersResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeDBParametersResult call() throws Exception {
              DescribeDBParametersResult result;
                try {
                result = describeDBParameters(describeDBParametersRequest);