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;
  
  import org.w3c.dom.*;
  
  import java.net.*;
  import java.util.*;
  
  import com.amazonaws.*;
  
Client for accessing AmazonRDS. All service calls made using this client are blocking, and will not return until the service call completes.

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 AmazonRDSClient extends AmazonWebServiceClient implements AmazonRDS {

    
Provider for AWS credentials.
  
      private AWSCredentialsProvider awsCredentialsProvider;

    
List of exception unmarshallers for all AmazonRDS exceptions.
  
              = new ArrayList<Unmarshaller<AmazonServiceExceptionNode>>();

    
Constructs a new 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 AmazonRDSClient() {
         this(new DefaultAWSCredentialsProviderChain(), new ClientConfiguration());
     }

    
Constructs a new 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 AmazonRDSClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration);
     }

    
Constructs a new client to invoke service methods on AmazonRDS using the specified AWS account credentials.

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

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonRDSClient(AWSCredentials awsCredentials) {
         this(awsCredentialsnew ClientConfiguration());
     }

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

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

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonRDS (ex: proxy settings, retry counts, etc.).
 
     public AmazonRDSClient(AWSCredentials awsCredentialsClientConfiguration clientConfiguration) {
         super(clientConfiguration);
         this. = new StaticCredentialsProvider(awsCredentials);
         init();
     }

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

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonRDSClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvidernew ClientConfiguration());
     }

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

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonRDS (ex: proxy settings, retry counts, etc.).
 
     public AmazonRDSClient(AWSCredentialsProvider awsCredentialsProviderClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfigurationnull);
     }

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

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

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration The client configuration options controlling how this client connects to AmazonRDS (ex: proxy settings, retry counts, etc.).
requestMetricCollector optional request metric collector
 
     public AmazonRDSClient(AWSCredentialsProvider awsCredentialsProvider,
             ClientConfiguration clientConfiguration,
             RequestMetricCollector requestMetricCollector) {
         super(clientConfigurationrequestMetricCollector);
         this. = awsCredentialsProvider;
         init();
     }
 
     private void init() {
         
         
         // calling this.setEndPoint(...) will also modify the signer accordingly
         this.setEndpoint("rds.amazonaws.com");
         
         HandlerChainFactory chainFactory = new HandlerChainFactory();
         .addAll(chainFactory.newRequestHandlerChain(
                 "/com/amazonaws/services/rds/request.handlers"));
         .addAll(chainFactory.newRequestHandler2Chain(
                 "/com/amazonaws/services/rds/request.handler2s"));
     }

    

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 service method on AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBSubnetGroupNotFoundException
com.amazonaws.services.rds.model.InvalidDBSubnetGroupStateException
com.amazonaws.services.rds.model.InvalidDBSubnetStateException
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 void deleteDBSubnetGroup(DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteDBSubnetGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         Request<DeleteDBSubnetGroupRequestrequest = null;
         awsRequestMetrics.startEvent(.);
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteDBSubnetGroupRequestMarshaller().marshall(super.beforeMarshalling(deleteDBSubnetGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             invoke(requestnullexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

Copies the specified option group.

Parameters:
copyOptionGroupRequest Container for the necessary parameters to execute the CopyOptionGroup service method on AmazonRDS.
Returns:
The response from the CopyOptionGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.OptionGroupAlreadyExistsException
com.amazonaws.services.rds.model.OptionGroupNotFoundException
com.amazonaws.services.rds.model.OptionGroupQuotaExceededException
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 OptionGroup copyOptionGroup(CopyOptionGroupRequest copyOptionGroupRequest) {
         ExecutionContext executionContext = createExecutionContext(copyOptionGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CopyOptionGroupRequestrequest = null;
         Response<OptionGroupresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CopyOptionGroupRequestMarshaller().marshall(super.beforeMarshalling(copyOptionGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew OptionGroupStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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 service method on AmazonRDS.
Returns:
The response from the RestoreDBInstanceToPointInTime service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.PointInTimeRestoreNotEnabledException
com.amazonaws.services.rds.model.DBSubnetGroupNotFoundException
com.amazonaws.services.rds.model.DBInstanceAlreadyExistsException
com.amazonaws.services.rds.model.DBInstanceNotFoundException
com.amazonaws.services.rds.model.InvalidVPCNetworkStateException
com.amazonaws.services.rds.model.StorageTypeNotSupportedException
com.amazonaws.services.rds.model.InvalidSubnetException
com.amazonaws.services.rds.model.AuthorizationNotFoundException
com.amazonaws.services.rds.model.KMSKeyNotAccessibleException
com.amazonaws.services.rds.model.InvalidRestoreException
com.amazonaws.services.rds.model.InstanceQuotaExceededException
com.amazonaws.services.rds.model.StorageQuotaExceededException
com.amazonaws.services.rds.model.InvalidDBInstanceStateException
com.amazonaws.services.rds.model.DBSubnetGroupDoesNotCoverEnoughAZsException
com.amazonaws.services.rds.model.InsufficientDBInstanceCapacityException
com.amazonaws.services.rds.model.OptionGroupNotFoundException
com.amazonaws.services.rds.model.ProvisionedIopsNotAvailableInAZException
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 DBInstance restoreDBInstanceToPointInTime(RestoreDBInstanceToPointInTimeRequest restoreDBInstanceToPointInTimeRequest) {
         ExecutionContext executionContext = createExecutionContext(restoreDBInstanceToPointInTimeRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<RestoreDBInstanceToPointInTimeRequestrequest = null;
         Response<DBInstanceresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new RestoreDBInstanceToPointInTimeRequestMarshaller().marshall(super.beforeMarshalling(restoreDBInstanceToPointInTimeRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DBInstanceStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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

Parameters:
copyDBSnapshotRequest Container for the necessary parameters to execute the CopyDBSnapshot service method on AmazonRDS.
Returns:
The response from the CopyDBSnapshot service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.InvalidDBSnapshotStateException
com.amazonaws.services.rds.model.SnapshotQuotaExceededException
com.amazonaws.services.rds.model.DBSnapshotAlreadyExistsException
com.amazonaws.services.rds.model.DBSnapshotNotFoundException
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 DBSnapshot copyDBSnapshot(CopyDBSnapshotRequest copyDBSnapshotRequest) {
         ExecutionContext executionContext = createExecutionContext(copyDBSnapshotRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CopyDBSnapshotRequestrequest = null;
         Response<DBSnapshotresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CopyDBSnapshotRequestMarshaller().marshall(super.beforeMarshalling(copyDBSnapshotRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DBSnapshotStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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 service method on AmazonRDS.
Returns:
The response from the DescribePendingMaintenanceActions service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.ResourceNotFoundException
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.
 
         ExecutionContext executionContext = createExecutionContext(describePendingMaintenanceActionsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribePendingMaintenanceActionsRequestrequest = null;
         Response<DescribePendingMaintenanceActionsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribePendingMaintenanceActionsRequestMarshaller().marshall(super.beforeMarshalling(describePendingMaintenanceActionsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DescribePendingMaintenanceActionsResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Creates a new DB instance.

Parameters:
createDBInstanceRequest Container for the necessary parameters to execute the CreateDBInstance service method on AmazonRDS.
Returns:
The response from the CreateDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBParameterGroupNotFoundException
com.amazonaws.services.rds.model.DBSubnetGroupNotFoundException
com.amazonaws.services.rds.model.DBInstanceAlreadyExistsException
com.amazonaws.services.rds.model.InvalidVPCNetworkStateException
com.amazonaws.services.rds.model.StorageTypeNotSupportedException
com.amazonaws.services.rds.model.DBSecurityGroupNotFoundException
com.amazonaws.services.rds.model.InvalidSubnetException
com.amazonaws.services.rds.model.AuthorizationNotFoundException
com.amazonaws.services.rds.model.KMSKeyNotAccessibleException
com.amazonaws.services.rds.model.InstanceQuotaExceededException
com.amazonaws.services.rds.model.StorageQuotaExceededException
com.amazonaws.services.rds.model.InsufficientDBInstanceCapacityException
com.amazonaws.services.rds.model.DBSubnetGroupDoesNotCoverEnoughAZsException
com.amazonaws.services.rds.model.OptionGroupNotFoundException
com.amazonaws.services.rds.model.ProvisionedIopsNotAvailableInAZException
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 DBInstance createDBInstance(CreateDBInstanceRequest createDBInstanceRequest) {
         ExecutionContext executionContext = createExecutionContext(createDBInstanceRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateDBInstanceRequestrequest = null;
         Response<DBInstanceresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateDBInstanceRequestMarshaller().marshall(super.beforeMarshalling(createDBInstanceRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DBInstanceStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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 service method on AmazonRDS.
Returns:
The response from the CreateDBSecurityGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBSecurityGroupQuotaExceededException
com.amazonaws.services.rds.model.DBSecurityGroupNotSupportedException
com.amazonaws.services.rds.model.DBSecurityGroupAlreadyExistsException
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 DBSecurityGroup createDBSecurityGroup(CreateDBSecurityGroupRequest createDBSecurityGroupRequest) {
         ExecutionContext executionContext = createExecutionContext(createDBSecurityGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<CreateDBSecurityGroupRequestrequest = null;
         Response<DBSecurityGroupresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new CreateDBSecurityGroupRequestMarshaller().marshall(super.beforeMarshalling(createDBSecurityGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DBSecurityGroupStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

Describes the available option groups.

Parameters:
describeOptionGroupsRequest Container for the necessary parameters to execute the DescribeOptionGroups service method on AmazonRDS.
Returns:
The response from the DescribeOptionGroups service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.OptionGroupNotFoundException
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 DescribeOptionGroupsResult describeOptionGroups(DescribeOptionGroupsRequest describeOptionGroupsRequest) {
         ExecutionContext executionContext = createExecutionContext(describeOptionGroupsRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeOptionGroupsRequestrequest = null;
         Response<DescribeOptionGroupsResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeOptionGroupsRequestMarshaller().marshall(super.beforeMarshalling(describeOptionGroupsRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DescribeOptionGroupsResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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

Parameters:
describeDBInstancesRequest Container for the necessary parameters to execute the DescribeDBInstances service method on AmazonRDS.
Returns:
The response from the DescribeDBInstances service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBInstanceNotFoundException
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 DescribeDBInstancesResult describeDBInstances(DescribeDBInstancesRequest describeDBInstancesRequest) {
         ExecutionContext executionContext = createExecutionContext(describeDBInstancesRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<DescribeDBInstancesRequestrequest = null;
         Response<DescribeDBInstancesResultresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DescribeDBInstancesRequestMarshaller().marshall(super.beforeMarshalling(describeDBInstancesRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DescribeDBInstancesResultStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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

Parameters:
removeSourceIdentifierFromSubscriptionRequest Container for the necessary parameters to execute the RemoveSourceIdentifierFromSubscription service method on AmazonRDS.
Returns:
The response from the RemoveSourceIdentifierFromSubscription service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.SourceNotFoundException
com.amazonaws.services.rds.model.SubscriptionNotFoundException
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 EventSubscription removeSourceIdentifierFromSubscription(RemoveSourceIdentifierFromSubscriptionRequest removeSourceIdentifierFromSubscriptionRequest) {
         ExecutionContext executionContext = createExecutionContext(removeSourceIdentifierFromSubscriptionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<RemoveSourceIdentifierFromSubscriptionRequestrequest = null;
         Response<EventSubscriptionresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new RemoveSourceIdentifierFromSubscriptionRequestMarshaller().marshall(super.beforeMarshalling(removeSourceIdentifierFromSubscriptionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew EventSubscriptionStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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 service method on AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBSecurityGroupNotFoundException
com.amazonaws.services.rds.model.InvalidDBSecurityGroupStateException
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 void deleteDBSecurityGroup(DeleteDBSecurityGroupRequest deleteDBSecurityGroupRequest) {
         ExecutionContext executionContext = createExecutionContext(deleteDBSecurityGroupRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         Request<DeleteDBSecurityGroupRequestrequest = null;
         awsRequestMetrics.startEvent(.);
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new DeleteDBSecurityGroupRequestMarshaller().marshall(super.beforeMarshalling(deleteDBSecurityGroupRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             invoke(requestnullexecutionContext);
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestnull);
         }
     }
    
    

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 service method on AmazonRDS.
Returns:
The response from the AuthorizeDBSecurityGroupIngress service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBSecurityGroupNotFoundException
com.amazonaws.services.rds.model.InvalidDBSecurityGroupStateException
com.amazonaws.services.rds.model.AuthorizationAlreadyExistsException
com.amazonaws.services.rds.model.AuthorizationQuotaExceededException
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 DBSecurityGroup authorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest authorizeDBSecurityGroupIngressRequest) {
         ExecutionContext executionContext = createExecutionContext(authorizeDBSecurityGroupIngressRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<AuthorizeDBSecurityGroupIngressRequestrequest = null;
         Response<DBSecurityGroupresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new AuthorizeDBSecurityGroupIngressRequestMarshaller().marshall(super.beforeMarshalling(authorizeDBSecurityGroupIngressRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew DBSecurityGroupStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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

Parameters:
applyPendingMaintenanceActionRequest Container for the necessary parameters to execute the ApplyPendingMaintenanceAction service method on AmazonRDS.
Returns:
The response from the ApplyPendingMaintenanceAction service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.ResourceNotFoundException
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.
 
         ExecutionContext executionContext = createExecutionContext(applyPendingMaintenanceActionRequest);
         AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
         awsRequestMetrics.startEvent(.);
         Request<ApplyPendingMaintenanceActionRequestrequest = null;
         Response<ResourcePendingMaintenanceActionsresponse = null;
         
         try {
             awsRequestMetrics.startEvent(.);
             try {
                 request = new ApplyPendingMaintenanceActionRequestMarshaller().marshall(super.beforeMarshalling(applyPendingMaintenanceActionRequest));
                 // Binds the request metrics to the current request.
                 request.setAWSRequestMetrics(awsRequestMetrics);
             } finally {
                 awsRequestMetrics.endEvent(.);
             }
 
             response = invoke(requestnew ResourcePendingMaintenanceActionsStaxUnmarshaller(), executionContext);
             return response.getAwsResponse();
 
         } finally {
             
             endClientExecution(awsRequestMetricsrequestresponse);
         }
     }
    
    

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 service method on AmazonRDS.
Returns:
The response from the ModifyDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBParameterGroupNotFoundException
com.amazonaws.services.rds.model.CertificateNotFoundException
com.amazonaws.services.rds.model.DBInstanceAlreadyExistsException
com.amazonaws.services.rds.model.DBInstanceNotFoundException
com.amazonaws.services.rds.model.InvalidVPCNetworkStateException
com.amazonaws.services.rds.model.StorageTypeNotSupportedException
com.amazonaws.services.rds.model.DBSecurityGroupNotFoundException
com.amazonaws.services.rds.model.DBUpgradeDependencyFailureException
com.amazonaws.services.rds.model.AuthorizationNotFoundException
com.amazonaws.services.rds.model.StorageQuotaExceededException
com.amazonaws.services.rds.model.InvalidDBInstanceStateException
com.amazonaws.services.rds.model.InvalidDBSecurityGroupStateException
com.amazonaws.services.rds.model.InsufficientDBInstanceCapacityException
com.amazonaws.services.rds.model.OptionGroupNotFoundException
com.amazonaws.services.rds.model.ProvisionedIopsNotAvailableInAZException
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 DBInstance modifyDBInstance(ModifyDBInstanceRequest modifyDBInstanceRequest) {
        ExecutionContext executionContext = createExecutionContext(modifyDBInstanceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ModifyDBInstanceRequestrequest = null;
        Response<DBInstanceresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ModifyDBInstanceRequestMarshaller().marshall(super.beforeMarshalling(modifyDBInstanceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DBInstanceStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Deletes an RDS event notification subscription.

Parameters:
deleteEventSubscriptionRequest Container for the necessary parameters to execute the DeleteEventSubscription service method on AmazonRDS.
Returns:
The response from the DeleteEventSubscription service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.SubscriptionNotFoundException
com.amazonaws.services.rds.model.InvalidEventSubscriptionStateException
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 EventSubscription deleteEventSubscription(DeleteEventSubscriptionRequest deleteEventSubscriptionRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteEventSubscriptionRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DeleteEventSubscriptionRequestrequest = null;
        Response<EventSubscriptionresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteEventSubscriptionRequestMarshaller().marshall(super.beforeMarshalling(deleteEventSubscriptionRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew EventSubscriptionStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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 service method on AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBInstanceNotFoundException
com.amazonaws.services.rds.model.DBSnapshotNotFoundException
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 void removeTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest) {
        ExecutionContext executionContext = createExecutionContext(removeTagsFromResourceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        Request<RemoveTagsFromResourceRequestrequest = null;
        awsRequestMetrics.startEvent(.);
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RemoveTagsFromResourceRequestMarshaller().marshall(super.beforeMarshalling(removeTagsFromResourceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            invoke(requestnullexecutionContext);
        } finally {
            
            endClientExecution(awsRequestMetricsrequestnull);
        }
    }
    
    

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 service method on AmazonRDS.
Returns:
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.
        ExecutionContext executionContext = createExecutionContext(describeEventCategoriesRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeEventCategoriesRequestrequest = null;
        Response<DescribeEventCategoriesResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeEventCategoriesRequestMarshaller().marshall(super.beforeMarshalling(describeEventCategoriesRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DescribeEventCategoriesResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Copies the specified DB parameter group.

Parameters:
copyDBParameterGroupRequest Container for the necessary parameters to execute the CopyDBParameterGroup service method on AmazonRDS.
Returns:
The response from the CopyDBParameterGroup service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBParameterGroupNotFoundException
com.amazonaws.services.rds.model.DBParameterGroupQuotaExceededException
com.amazonaws.services.rds.model.DBParameterGroupAlreadyExistsException
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 DBParameterGroup copyDBParameterGroup(CopyDBParameterGroupRequest copyDBParameterGroupRequest) {
        ExecutionContext executionContext = createExecutionContext(copyDBParameterGroupRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CopyDBParameterGroupRequestrequest = null;
        Response<DBParameterGroupresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CopyDBParameterGroupRequestMarshaller().marshall(super.beforeMarshalling(copyDBParameterGroupRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DBParameterGroupStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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 service method on AmazonRDS.
Returns:
The response from the CreateDBInstanceReadReplica service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBParameterGroupNotFoundException
com.amazonaws.services.rds.model.DBSubnetGroupNotFoundException
com.amazonaws.services.rds.model.DBInstanceAlreadyExistsException
com.amazonaws.services.rds.model.DBInstanceNotFoundException
com.amazonaws.services.rds.model.InvalidVPCNetworkStateException
com.amazonaws.services.rds.model.StorageTypeNotSupportedException
com.amazonaws.services.rds.model.InvalidDBSubnetGroupException
com.amazonaws.services.rds.model.DBSecurityGroupNotFoundException
com.amazonaws.services.rds.model.InvalidSubnetException
com.amazonaws.services.rds.model.KMSKeyNotAccessibleException
com.amazonaws.services.rds.model.InstanceQuotaExceededException
com.amazonaws.services.rds.model.DBSubnetGroupNotAllowedException
com.amazonaws.services.rds.model.StorageQuotaExceededException
com.amazonaws.services.rds.model.InvalidDBInstanceStateException
com.amazonaws.services.rds.model.DBSubnetGroupDoesNotCoverEnoughAZsException
com.amazonaws.services.rds.model.InsufficientDBInstanceCapacityException
com.amazonaws.services.rds.model.OptionGroupNotFoundException
com.amazonaws.services.rds.model.ProvisionedIopsNotAvailableInAZException
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 DBInstance createDBInstanceReadReplica(CreateDBInstanceReadReplicaRequest createDBInstanceReadReplicaRequest) {
        ExecutionContext executionContext = createExecutionContext(createDBInstanceReadReplicaRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<CreateDBInstanceReadReplicaRequestrequest = null;
        Response<DBInstanceresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new CreateDBInstanceReadReplicaRequestMarshaller().marshall(super.beforeMarshalling(createDBInstanceReadReplicaRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DBInstanceStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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 service method on AmazonRDS.
Returns:
The response from the DeleteDBSnapshot service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.InvalidDBSnapshotStateException
com.amazonaws.services.rds.model.DBSnapshotNotFoundException
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 DBSnapshot deleteDBSnapshot(DeleteDBSnapshotRequest deleteDBSnapshotRequest) {
        ExecutionContext executionContext = createExecutionContext(deleteDBSnapshotRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DeleteDBSnapshotRequestrequest = null;
        Response<DBSnapshotresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DeleteDBSnapshotRequestMarshaller().marshall(super.beforeMarshalling(deleteDBSnapshotRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DBSnapshotStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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 service method on AmazonRDS.
Returns:
The response from the RebootDBInstance service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBInstanceNotFoundException
com.amazonaws.services.rds.model.InvalidDBInstanceStateException
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 DBInstance rebootDBInstance(RebootDBInstanceRequest rebootDBInstanceRequest) {
        ExecutionContext executionContext = createExecutionContext(rebootDBInstanceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<RebootDBInstanceRequestrequest = null;
        Response<DBInstanceresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new RebootDBInstanceRequestMarshaller().marshall(super.beforeMarshalling(rebootDBInstanceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DBInstanceStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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 service method on AmazonRDS.
Returns:
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 DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest) {
        ExecutionContext executionContext = createExecutionContext(describeEventsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeEventsRequestrequest = null;
        Response<DescribeEventsResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeEventsRequestMarshaller().marshall(super.beforeMarshalling(describeEventsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DescribeEventsResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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 service method on AmazonRDS.
Returns:
The response from the ListTagsForResource service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBInstanceNotFoundException
com.amazonaws.services.rds.model.DBSnapshotNotFoundException
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 ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {
        ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<ListTagsForResourceRequestrequest = null;
        Response<ListTagsForResourceResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new ListTagsForResourceRequestMarshaller().marshall(super.beforeMarshalling(listTagsForResourceRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew ListTagsForResourceResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Describes all available options.

Parameters:
describeOptionGroupOptionsRequest Container for the necessary parameters to execute the DescribeOptionGroupOptions service method on AmazonRDS.
Returns:
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.
        ExecutionContext executionContext = createExecutionContext(describeOptionGroupOptionsRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeOptionGroupOptionsRequestrequest = null;
        Response<DescribeOptionGroupOptionsResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeOptionGroupOptionsRequestMarshaller().marshall(super.beforeMarshalling(describeOptionGroupOptionsRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DescribeOptionGroupOptionsResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

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

Parameters:
describeDBParametersRequest Container for the necessary parameters to execute the DescribeDBParameters service method on AmazonRDS.
Returns:
The response from the DescribeDBParameters service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.DBParameterGroupNotFoundException
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 DescribeDBParametersResult describeDBParameters(DescribeDBParametersRequest describeDBParametersRequest) {
        ExecutionContext executionContext = createExecutionContext(describeDBParametersRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<DescribeDBParametersRequestrequest = null;
        Response<DescribeDBParametersResultresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {
                request = new DescribeDBParametersRequestMarshaller().marshall(super.beforeMarshalling(describeDBParametersRequest));
                // Binds the request metrics to the current request.
                request.setAWSRequestMetrics(awsRequestMetrics);
            } finally {
                awsRequestMetrics.endEvent(.);
            }
            response = invoke(requestnew DescribeDBParametersResultStaxUnmarshaller(), executionContext);
            return response.getAwsResponse();
        } finally {
            
            endClientExecution(awsRequestMetricsrequestresponse);
        }
    }
    
    

Purchases a reserved DB instance offering.

Parameters:
purchaseReservedDBInstancesOfferingRequest Container for the necessary parameters to execute the PurchaseReservedDBInstancesOffering service method on AmazonRDS.
Returns:
The response from the PurchaseReservedDBInstancesOffering service method, as returned by AmazonRDS.
Throws:
com.amazonaws.services.rds.model.ReservedDBInstancesOfferingNotFoundException
com.amazonaws.services.rds.model.ReservedDBInstanceQuotaExceededException
com.amazonaws.services.rds.model.ReservedDBInstanceAlreadyExistsException
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 ReservedDBInstance purchaseReservedDBInstancesOffering(PurchaseReservedDBInstancesOfferingRequest purchaseReservedDBInstancesOfferingRequest) {
        ExecutionContext executionContext = createExecutionContext(purchaseReservedDBInstancesOfferingRequest);
        AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
        awsRequestMetrics.startEvent(.);
        Request<PurchaseReservedDBInstancesOfferingRequestrequest = null;
        Response<ReservedDBInstanceresponse = null;
        
        try {
            awsRequestMetrics.startEvent(.);
            try {