All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.docdb.AmazonDocDB Maven / Gradle / Ivy

/*
 * Copyright 2014-2019 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.docdb;

import javax.annotation.Generated;

import com.amazonaws.*;
import com.amazonaws.regions.*;

import com.amazonaws.services.docdb.model.*;
import com.amazonaws.services.docdb.waiters.AmazonDocDBWaiters;

/**
 * Interface for accessing Amazon DocDB.
 * 

* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.docdb.AbstractAmazonDocDB} instead. *

*

*

* Amazon DocumentDB API documentation *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonDocDB { /** * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata * (such as supported regions) of the service. * * @see RegionUtils#getRegionsForService(String) */ String ENDPOINT_PREFIX = "rds"; /** *

* Adds metadata tags to an Amazon DocumentDB resource. You can use these tags with cost allocation reporting to * track costs that are associated with Amazon DocumentDB resources. or in a Condition statement in an * AWS Identity and Access Management (IAM) policy for Amazon DocumentDB. *

* * @param addTagsToResourceRequest * Represents the input to AddTagsToResource. * @return Result of the AddTagsToResource operation returned by the service. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @throws DBSnapshotNotFoundException * DBSnapshotIdentifier doesn't refer to an existing DB snapshot. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @sample AmazonDocDB.AddTagsToResource * @see AWS API * Documentation */ AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest addTagsToResourceRequest); /** *

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

* * @param applyPendingMaintenanceActionRequest * Represents the input to ApplyPendingMaintenanceAction. * @return Result of the ApplyPendingMaintenanceAction operation returned by the service. * @throws ResourceNotFoundException * The specified resource ID was not found. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @sample AmazonDocDB.ApplyPendingMaintenanceAction * @see AWS API Documentation */ ResourcePendingMaintenanceActions applyPendingMaintenanceAction(ApplyPendingMaintenanceActionRequest applyPendingMaintenanceActionRequest); /** *

* Copies the specified DB cluster parameter group. *

* * @param copyDBClusterParameterGroupRequest * Represents the input to CopyDBClusterParameterGroup. * @return Result of the CopyDBClusterParameterGroup operation returned by the service. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @throws DBParameterGroupQuotaExceededException * This request would cause you to exceed the allowed number of DB parameter groups. * @throws DBParameterGroupAlreadyExistsException * A DB parameter group with the same name already exists. * @sample AmazonDocDB.CopyDBClusterParameterGroup * @see AWS API Documentation */ DBClusterParameterGroup copyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest copyDBClusterParameterGroupRequest); /** *

* Copies a snapshot of a DB cluster. *

*

* To copy a DB cluster snapshot from a shared manual DB cluster snapshot, * SourceDBClusterSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared DB cluster * snapshot. *

*

* To cancel the copy operation after it is in progress, delete the target DB cluster snapshot identified by * TargetDBClusterSnapshotIdentifier while that DB cluster snapshot is in the copying status. *

* * @param copyDBClusterSnapshotRequest * Represents the input to CopyDBClusterSnapshot. * @return Result of the CopyDBClusterSnapshot operation returned by the service. * @throws DBClusterSnapshotAlreadyExistsException * You already have a DB cluster snapshot with the given identifier. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @throws SnapshotQuotaExceededException * The request would cause you to exceed the allowed number of DB snapshots. * @throws KMSKeyNotAccessibleException * An error occurred when accessing an AWS KMS key. * @sample AmazonDocDB.CopyDBClusterSnapshot * @see AWS * API Documentation */ DBClusterSnapshot copyDBClusterSnapshot(CopyDBClusterSnapshotRequest copyDBClusterSnapshotRequest); /** *

* Creates a new Amazon DocumentDB DB cluster. *

* * @param createDBClusterRequest * Represents the input to CreateDBCluster. * @return Result of the CreateDBCluster operation returned by the service. * @throws DBClusterAlreadyExistsException * You already have a DB cluster with the given identifier. * @throws InsufficientStorageClusterCapacityException * There is not enough storage available for the current action. You might be able to resolve this error by * updating your subnet group to use different Availability Zones that have more storage available. * @throws DBClusterQuotaExceededException * The DB cluster can't be created because you have reached the maximum allowed quota of DB clusters. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws InvalidVPCNetworkStateException * The DB subnet group doesn't cover all Availability Zones after it is created because of changes that were * made. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBSubnetGroupStateException * The DB subnet group can't be deleted because it's in use. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @throws DBClusterParameterGroupNotFoundException * DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter group. * @throws KMSKeyNotAccessibleException * An error occurred when accessing an AWS KMS key. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @throws DBSubnetGroupDoesNotCoverEnoughAZsException * Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one * Availability Zone. * @sample AmazonDocDB.CreateDBCluster * @see AWS API * Documentation */ DBCluster createDBCluster(CreateDBClusterRequest createDBClusterRequest); /** *

* Creates a new DB cluster parameter group. *

*

* Parameters in a DB cluster parameter group apply to all of the instances in a DB cluster. *

*

* A DB cluster parameter group is initially created with the default parameters for the database engine used by * instances in the DB cluster. To provide custom values for any of the parameters, you must modify the group after * you create it. After you create a DB cluster parameter group, you must associate it with your DB cluster. For the * new DB cluster parameter group and associated settings to take effect, you must then reboot the DB instances in * the DB cluster without failover. *

* *

* After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB * cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon DocumentDB * to fully complete the create action before the DB cluster parameter group is used as the default for a new DB * cluster. This step is especially important for parameters that are critical when creating the default database * for a DB cluster, such as the character set for the default database defined by the * character_set_database parameter. *

*
* * @param createDBClusterParameterGroupRequest * Represents the input of CreateDBClusterParameterGroup. * @return Result of the CreateDBClusterParameterGroup operation returned by the service. * @throws DBParameterGroupQuotaExceededException * This request would cause you to exceed the allowed number of DB parameter groups. * @throws DBParameterGroupAlreadyExistsException * A DB parameter group with the same name already exists. * @sample AmazonDocDB.CreateDBClusterParameterGroup * @see AWS API Documentation */ DBClusterParameterGroup createDBClusterParameterGroup(CreateDBClusterParameterGroupRequest createDBClusterParameterGroupRequest); /** *

* Creates a snapshot of a DB cluster. *

* * @param createDBClusterSnapshotRequest * Represents the input of CreateDBClusterSnapshot. * @return Result of the CreateDBClusterSnapshot operation returned by the service. * @throws DBClusterSnapshotAlreadyExistsException * You already have a DB cluster snapshot with the given identifier. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws SnapshotQuotaExceededException * The request would cause you to exceed the allowed number of DB snapshots. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @sample AmazonDocDB.CreateDBClusterSnapshot * @see AWS * API Documentation */ DBClusterSnapshot createDBClusterSnapshot(CreateDBClusterSnapshotRequest createDBClusterSnapshotRequest); /** *

* Creates a new DB instance. *

* * @param createDBInstanceRequest * Represents the input to CreateDBInstance. * @return Result of the CreateDBInstance operation returned by the service. * @throws DBInstanceAlreadyExistsException * You already have a DB instance with the given identifier. * @throws InsufficientDBInstanceCapacityException * The specified DB instance class isn't available in the specified Availability Zone. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @throws DBSecurityGroupNotFoundException * DBSecurityGroupName doesn't refer to an existing DB security group. * @throws InstanceQuotaExceededException * The request would cause you to exceed the allowed number of DB instances. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws DBSubnetGroupDoesNotCoverEnoughAZsException * Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one * Availability Zone. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @throws InvalidVPCNetworkStateException * The DB subnet group doesn't cover all Availability Zones after it is created because of changes that were * made. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws StorageTypeNotSupportedException * Storage of the specified StorageType can't be associated with the DB instance. * @throws AuthorizationNotFoundException * The specified CIDR IP or Amazon EC2 security group isn't authorized for the specified DB security * group.

*

* Amazon DocumentDB also might not be authorized to perform necessary actions on your behalf using IAM. * @throws KMSKeyNotAccessibleException * An error occurred when accessing an AWS KMS key. * @sample AmazonDocDB.CreateDBInstance * @see AWS API * Documentation */ DBInstance createDBInstance(CreateDBInstanceRequest createDBInstanceRequest); /** *

* Creates a new DB subnet group. DB subnet groups must contain at least one subnet in at least two Availability * Zones in the AWS Region. *

* * @param createDBSubnetGroupRequest * Represents the input to CreateDBSubnetGroup. * @return Result of the CreateDBSubnetGroup operation returned by the service. * @throws DBSubnetGroupAlreadyExistsException * DBSubnetGroupName is already being used by an existing DB subnet group. * @throws DBSubnetGroupQuotaExceededException * The request would cause you to exceed the allowed number of DB subnet groups. * @throws DBSubnetQuotaExceededException * The request would cause you to exceed the allowed number of subnets in a DB subnet group. * @throws DBSubnetGroupDoesNotCoverEnoughAZsException * Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one * Availability Zone. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @sample AmazonDocDB.CreateDBSubnetGroup * @see AWS API * Documentation */ DBSubnetGroup createDBSubnetGroup(CreateDBSubnetGroupRequest createDBSubnetGroupRequest); /** *

* Deletes a previously provisioned DB cluster. When you delete a DB cluster, all automated backups for that DB * cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified DB cluster are not * deleted. *

*

* * @param deleteDBClusterRequest * Represents the input to DeleteDBCluster. * @return Result of the DeleteDBCluster operation returned by the service. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws DBClusterSnapshotAlreadyExistsException * You already have a DB cluster snapshot with the given identifier. * @throws SnapshotQuotaExceededException * The request would cause you to exceed the allowed number of DB snapshots. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @sample AmazonDocDB.DeleteDBCluster * @see AWS API * Documentation */ DBCluster deleteDBCluster(DeleteDBClusterRequest deleteDBClusterRequest); /** *

* Deletes a specified DB cluster parameter group. The DB cluster parameter group to be deleted can't be associated * with any DB clusters. *

* * @param deleteDBClusterParameterGroupRequest * Represents the input to DeleteDBClusterParameterGroup. * @return Result of the DeleteDBClusterParameterGroup operation returned by the service. * @throws InvalidDBParameterGroupStateException * The DB parameter group is in use, or it is in a state that is not valid. If you are trying to delete the * parameter group, you can't delete it when the parameter group is in this state. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @sample AmazonDocDB.DeleteDBClusterParameterGroup * @see AWS API Documentation */ DeleteDBClusterParameterGroupResult deleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest deleteDBClusterParameterGroupRequest); /** *

* Deletes a DB cluster snapshot. If the snapshot is being copied, the copy operation is terminated. *

* *

* The DB cluster snapshot must be in the available state to be deleted. *

*
* * @param deleteDBClusterSnapshotRequest * Represents the input to DeleteDBClusterSnapshot. * @return Result of the DeleteDBClusterSnapshot operation returned by the service. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @sample AmazonDocDB.DeleteDBClusterSnapshot * @see AWS * API Documentation */ DBClusterSnapshot deleteDBClusterSnapshot(DeleteDBClusterSnapshotRequest deleteDBClusterSnapshotRequest); /** *

* Deletes a previously provisioned DB instance. *

* * @param deleteDBInstanceRequest * Represents the input to DeleteDBInstance. * @return Result of the DeleteDBInstance operation returned by the service. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @throws DBSnapshotAlreadyExistsException * DBSnapshotIdentifier is already being used by an existing snapshot. * @throws SnapshotQuotaExceededException * The request would cause you to exceed the allowed number of DB snapshots. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @sample AmazonDocDB.DeleteDBInstance * @see AWS API * Documentation */ DBInstance deleteDBInstance(DeleteDBInstanceRequest deleteDBInstanceRequest); /** *

* Deletes a DB subnet group. *

* *

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

*
* * @param deleteDBSubnetGroupRequest * Represents the input to DeleteDBSubnetGroup. * @return Result of the DeleteDBSubnetGroup operation returned by the service. * @throws InvalidDBSubnetGroupStateException * The DB subnet group can't be deleted because it's in use. * @throws InvalidDBSubnetStateException * The DB subnet isn't in the available state. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @sample AmazonDocDB.DeleteDBSubnetGroup * @see AWS API * Documentation */ DeleteDBSubnetGroupResult deleteDBSubnetGroup(DeleteDBSubnetGroupRequest deleteDBSubnetGroupRequest); /** *

* Returns a list of DBClusterParameterGroup descriptions. If a * DBClusterParameterGroupName parameter is specified, the list contains only the description of the * specified DB cluster parameter group. *

* * @param describeDBClusterParameterGroupsRequest * Represents the input to DescribeDBClusterParameterGroups. * @return Result of the DescribeDBClusterParameterGroups operation returned by the service. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @sample AmazonDocDB.DescribeDBClusterParameterGroups * @see AWS API Documentation */ DescribeDBClusterParameterGroupsResult describeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest describeDBClusterParameterGroupsRequest); /** *

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

* * @param describeDBClusterParametersRequest * Represents the input to DescribeDBClusterParameters. * @return Result of the DescribeDBClusterParameters operation returned by the service. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @sample AmazonDocDB.DescribeDBClusterParameters * @see AWS API Documentation */ DescribeDBClusterParametersResult describeDBClusterParameters(DescribeDBClusterParametersRequest describeDBClusterParametersRequest); /** *

* Returns a list of DB cluster snapshot attribute names and values for a manual DB cluster snapshot. *

*

* When you share snapshots with other AWS accounts, DescribeDBClusterSnapshotAttributes returns the * restore attribute and a list of IDs for the AWS accounts that are authorized to copy or restore the * manual DB cluster snapshot. If all is included in the list of values for the restore * attribute, then the manual DB cluster snapshot is public and can be copied or restored by all AWS accounts. *

* * @param describeDBClusterSnapshotAttributesRequest * Represents the input to DescribeDBClusterSnapshotAttributes. * @return Result of the DescribeDBClusterSnapshotAttributes operation returned by the service. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @sample AmazonDocDB.DescribeDBClusterSnapshotAttributes * @see AWS API Documentation */ DBClusterSnapshotAttributesResult describeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest describeDBClusterSnapshotAttributesRequest); /** *

* Returns information about DB cluster snapshots. This API operation supports pagination. *

* * @param describeDBClusterSnapshotsRequest * Represents the input to DescribeDBClusterSnapshots. * @return Result of the DescribeDBClusterSnapshots operation returned by the service. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @sample AmazonDocDB.DescribeDBClusterSnapshots * @see AWS API Documentation */ DescribeDBClusterSnapshotsResult describeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest describeDBClusterSnapshotsRequest); /** *

* Returns information about provisioned Amazon DocumentDB DB clusters. This API operation supports pagination. *

* * @param describeDBClustersRequest * Represents the input to DescribeDBClusters. * @return Result of the DescribeDBClusters operation returned by the service. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @sample AmazonDocDB.DescribeDBClusters * @see AWS API * Documentation */ DescribeDBClustersResult describeDBClusters(DescribeDBClustersRequest describeDBClustersRequest); /** *

* Returns a list of the available DB engines. *

* * @param describeDBEngineVersionsRequest * Represents the input to DescribeDBEngineVersions. * @return Result of the DescribeDBEngineVersions operation returned by the service. * @sample AmazonDocDB.DescribeDBEngineVersions * @see AWS * API Documentation */ DescribeDBEngineVersionsResult describeDBEngineVersions(DescribeDBEngineVersionsRequest describeDBEngineVersionsRequest); /** *

* Returns information about provisioned Amazon DocumentDB instances. This API supports pagination. *

* * @param describeDBInstancesRequest * Represents the input to DescribeDBInstances. * @return Result of the DescribeDBInstances operation returned by the service. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @sample AmazonDocDB.DescribeDBInstances * @see AWS API * Documentation */ DescribeDBInstancesResult describeDBInstances(DescribeDBInstancesRequest describeDBInstancesRequest); /** *

* Returns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the * list will contain only the descriptions of the specified DBSubnetGroup. *

* * @param describeDBSubnetGroupsRequest * Represents the input to DescribeDBSubnetGroups. * @return Result of the DescribeDBSubnetGroups operation returned by the service. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @sample AmazonDocDB.DescribeDBSubnetGroups * @see AWS * API Documentation */ DescribeDBSubnetGroupsResult describeDBSubnetGroups(DescribeDBSubnetGroupsRequest describeDBSubnetGroupsRequest); /** *

* Returns the default engine and system parameter information for the cluster database engine. *

* * @param describeEngineDefaultClusterParametersRequest * Represents the input to DescribeEngineDefaultClusterParameters. * @return Result of the DescribeEngineDefaultClusterParameters operation returned by the service. * @sample AmazonDocDB.DescribeEngineDefaultClusterParameters * @see AWS API Documentation */ EngineDefaults describeEngineDefaultClusterParameters(DescribeEngineDefaultClusterParametersRequest describeEngineDefaultClusterParametersRequest); /** *

* Displays a list of categories for all event source types, or, if specified, for a specified source type. *

* * @param describeEventCategoriesRequest * Represents the input to DescribeEventCategories. * @return Result of the DescribeEventCategories operation returned by the service. * @sample AmazonDocDB.DescribeEventCategories * @see AWS * API Documentation */ DescribeEventCategoriesResult describeEventCategories(DescribeEventCategoriesRequest describeEventCategoriesRequest); /** *

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

* * @param describeEventsRequest * Represents the input to DescribeEvents. * @return Result of the DescribeEvents operation returned by the service. * @sample AmazonDocDB.DescribeEvents * @see AWS API * Documentation */ DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest); /** *

* Returns a list of orderable DB instance options for the specified engine. *

* * @param describeOrderableDBInstanceOptionsRequest * Represents the input to DescribeOrderableDBInstanceOptions. * @return Result of the DescribeOrderableDBInstanceOptions operation returned by the service. * @sample AmazonDocDB.DescribeOrderableDBInstanceOptions * @see AWS API Documentation */ DescribeOrderableDBInstanceOptionsResult describeOrderableDBInstanceOptions( DescribeOrderableDBInstanceOptionsRequest describeOrderableDBInstanceOptionsRequest); /** *

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

* * @param describePendingMaintenanceActionsRequest * Represents the input to DescribePendingMaintenanceActions. * @return Result of the DescribePendingMaintenanceActions operation returned by the service. * @throws ResourceNotFoundException * The specified resource ID was not found. * @sample AmazonDocDB.DescribePendingMaintenanceActions * @see AWS API Documentation */ DescribePendingMaintenanceActionsResult describePendingMaintenanceActions(DescribePendingMaintenanceActionsRequest describePendingMaintenanceActionsRequest); /** *

* Forces a failover for a DB cluster. *

*

* A failover for a DB cluster promotes one of the Amazon DocumentDB replicas (read-only instances) in the DB * cluster to be the primary instance (the cluster writer). *

*

* If the primary instance fails, Amazon DocumentDB automatically fails over to an Amazon DocumentDB replica, if one * exists. You can force a failover when you want to simulate a failure of a primary instance for testing. *

* * @param failoverDBClusterRequest * Represents the input to FailoverDBCluster. * @return Result of the FailoverDBCluster operation returned by the service. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @sample AmazonDocDB.FailoverDBCluster * @see AWS API * Documentation */ DBCluster failoverDBCluster(FailoverDBClusterRequest failoverDBClusterRequest); /** *

* Lists all tags on an Amazon DocumentDB resource. *

* * @param listTagsForResourceRequest * Represents the input to ListTagsForResource. * @return Result of the ListTagsForResource operation returned by the service. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @throws DBSnapshotNotFoundException * DBSnapshotIdentifier doesn't refer to an existing DB snapshot. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @sample AmazonDocDB.ListTagsForResource * @see AWS API * Documentation */ ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest); /** *

* Modifies a setting for an Amazon DocumentDB DB cluster. You can change one or more database configuration * parameters by specifying these parameters and the new values in the request. *

* * @param modifyDBClusterRequest * Represents the input to ModifyDBCluster. * @return Result of the ModifyDBCluster operation returned by the service. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws InvalidVPCNetworkStateException * The DB subnet group doesn't cover all Availability Zones after it is created because of changes that were * made. * @throws InvalidDBSubnetGroupStateException * The DB subnet group can't be deleted because it's in use. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @throws DBClusterParameterGroupNotFoundException * DBClusterParameterGroupName doesn't refer to an existing DB cluster parameter group. * @throws InvalidDBSecurityGroupStateException * The state of the DB security group doesn't allow deletion. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @throws DBClusterAlreadyExistsException * You already have a DB cluster with the given identifier. * @sample AmazonDocDB.ModifyDBCluster * @see AWS API * Documentation */ DBCluster modifyDBCluster(ModifyDBClusterRequest modifyDBClusterRequest); /** *

* Modifies the parameters of a DB cluster parameter group. To modify more than one parameter, submit a list of the * following: ParameterName, ParameterValue, and ApplyMethod. A maximum of 20 * parameters can be modified in a single request. *

* *

* Changes to dynamic parameters are applied immediately. Changes to static parameters require a reboot or * maintenance window before the change can take effect. *

*
*

* After you create a DB cluster parameter group, you should wait at least 5 minutes before creating your first DB * cluster that uses that DB cluster parameter group as the default parameter group. This allows Amazon DocumentDB * to fully complete the create action before the parameter group is used as the default for a new DB cluster. This * step is especially important for parameters that are critical when creating the default database for a DB * cluster, such as the character set for the default database defined by the character_set_database * parameter. *

*
* * @param modifyDBClusterParameterGroupRequest * Represents the input to ModifyDBClusterParameterGroup. * @return Result of the ModifyDBClusterParameterGroup operation returned by the service. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @throws InvalidDBParameterGroupStateException * The DB parameter group is in use, or it is in a state that is not valid. If you are trying to delete the * parameter group, you can't delete it when the parameter group is in this state. * @sample AmazonDocDB.ModifyDBClusterParameterGroup * @see AWS API Documentation */ ModifyDBClusterParameterGroupResult modifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest modifyDBClusterParameterGroupRequest); /** *

* Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot. *

*

* To share a manual DB cluster snapshot with other AWS accounts, specify restore as the * AttributeName, and use the ValuesToAdd parameter to add a list of IDs of the AWS * accounts that are authorized to restore the manual DB cluster snapshot. Use the value all to make * the manual DB cluster snapshot public, which means that it can be copied or restored by all AWS accounts. Do not * add the all value for any manual DB cluster snapshots that contain private information that you * don't want available to all AWS accounts. If a manual DB cluster snapshot is encrypted, it can be shared, but * only by specifying a list of authorized AWS account IDs for the ValuesToAdd parameter. You can't use * all as a value for that parameter in this case. *

* * @param modifyDBClusterSnapshotAttributeRequest * Represents the input to ModifyDBClusterSnapshotAttribute. * @return Result of the ModifyDBClusterSnapshotAttribute operation returned by the service. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @throws SharedSnapshotQuotaExceededException * You have exceeded the maximum number of accounts that you can share a manual DB snapshot with. * @sample AmazonDocDB.ModifyDBClusterSnapshotAttribute * @see AWS API Documentation */ DBClusterSnapshotAttributesResult modifyDBClusterSnapshotAttribute(ModifyDBClusterSnapshotAttributeRequest modifyDBClusterSnapshotAttributeRequest); /** *

* Modifies 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. *

* * @param modifyDBInstanceRequest * Represents the input to ModifyDBInstance. * @return Result of the ModifyDBInstance operation returned by the service. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @throws InvalidDBSecurityGroupStateException * The state of the DB security group doesn't allow deletion. * @throws DBInstanceAlreadyExistsException * You already have a DB instance with the given identifier. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @throws DBSecurityGroupNotFoundException * DBSecurityGroupName doesn't refer to an existing DB security group. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @throws InsufficientDBInstanceCapacityException * The specified DB instance class isn't available in the specified Availability Zone. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @throws InvalidVPCNetworkStateException * The DB subnet group doesn't cover all Availability Zones after it is created because of changes that were * made. * @throws DBUpgradeDependencyFailureException * The DB upgrade failed because a resource that the DB depends on can't be modified. * @throws StorageTypeNotSupportedException * Storage of the specified StorageType can't be associated with the DB instance. * @throws AuthorizationNotFoundException * The specified CIDR IP or Amazon EC2 security group isn't authorized for the specified DB security * group.

*

* Amazon DocumentDB also might not be authorized to perform necessary actions on your behalf using IAM. * @throws CertificateNotFoundException * CertificateIdentifier doesn't refer to an existing certificate. * @sample AmazonDocDB.ModifyDBInstance * @see AWS API * Documentation */ DBInstance modifyDBInstance(ModifyDBInstanceRequest modifyDBInstanceRequest); /** *

* Modifies an existing DB subnet group. DB subnet groups must contain at least one subnet in at least two * Availability Zones in the AWS Region. *

* * @param modifyDBSubnetGroupRequest * Represents the input to ModifyDBSubnetGroup. * @return Result of the ModifyDBSubnetGroup operation returned by the service. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws DBSubnetQuotaExceededException * The request would cause you to exceed the allowed number of subnets in a DB subnet group. * @throws SubnetAlreadyInUseException * The DB subnet is already in use in the Availability Zone. * @throws DBSubnetGroupDoesNotCoverEnoughAZsException * Subnets in the DB subnet group should cover at least two Availability Zones unless there is only one * Availability Zone. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @sample AmazonDocDB.ModifyDBSubnetGroup * @see AWS API * Documentation */ DBSubnetGroup modifyDBSubnetGroup(ModifyDBSubnetGroupRequest modifyDBSubnetGroupRequest); /** *

* You might need to reboot your DB instance, usually for maintenance reasons. For example, if you make certain * changes, or if you change the DB cluster parameter group that is associated with the DB instance, you must reboot * the instance for the changes to take effect. *

*

* Rebooting a DB instance restarts the database engine service. Rebooting a DB instance results in a momentary * outage, during which the DB instance status is set to rebooting. *

* * @param rebootDBInstanceRequest * Represents the input to RebootDBInstance. * @return Result of the RebootDBInstance operation returned by the service. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @sample AmazonDocDB.RebootDBInstance * @see AWS API * Documentation */ DBInstance rebootDBInstance(RebootDBInstanceRequest rebootDBInstanceRequest); /** *

* Removes metadata tags from an Amazon DocumentDB resource. *

* * @param removeTagsFromResourceRequest * Represents the input to RemoveTagsFromResource. * @return Result of the RemoveTagsFromResource operation returned by the service. * @throws DBInstanceNotFoundException * DBInstanceIdentifier doesn't refer to an existing DB instance. * @throws DBSnapshotNotFoundException * DBSnapshotIdentifier doesn't refer to an existing DB snapshot. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @sample AmazonDocDB.RemoveTagsFromResource * @see AWS * API Documentation */ RemoveTagsFromResourceResult removeTagsFromResource(RemoveTagsFromResourceRequest removeTagsFromResourceRequest); /** *

* Modifies the parameters of a DB cluster parameter group to the default value. To reset specific parameters, * submit a list of the following: ParameterName and ApplyMethod. To reset the entire DB * cluster parameter group, specify the DBClusterParameterGroupName and ResetAllParameters * parameters. *

*

* When you reset the entire group, dynamic parameters are updated immediately and static parameters are set to * pending-reboot to take effect on the next DB instance reboot. *

* * @param resetDBClusterParameterGroupRequest * Represents the input to ResetDBClusterParameterGroup. * @return Result of the ResetDBClusterParameterGroup operation returned by the service. * @throws InvalidDBParameterGroupStateException * The DB parameter group is in use, or it is in a state that is not valid. If you are trying to delete the * parameter group, you can't delete it when the parameter group is in this state. * @throws DBParameterGroupNotFoundException * DBParameterGroupName doesn't refer to an existing DB parameter group. * @sample AmazonDocDB.ResetDBClusterParameterGroup * @see AWS API Documentation */ ResetDBClusterParameterGroupResult resetDBClusterParameterGroup(ResetDBClusterParameterGroupRequest resetDBClusterParameterGroupRequest); /** *

* Creates a new DB cluster from a DB snapshot or DB cluster snapshot. *

*

* If a DB snapshot is specified, the target DB cluster is created from the source DB snapshot with a default * configuration and default security group. *

*

* If a DB cluster snapshot is specified, the target DB cluster is created from the source DB cluster restore point * with the same configuration as the original source DB cluster, except that the new DB cluster is created with the * default security group. *

* * @param restoreDBClusterFromSnapshotRequest * Represents the input to RestoreDBClusterFromSnapshot. * @return Result of the RestoreDBClusterFromSnapshot operation returned by the service. * @throws DBClusterAlreadyExistsException * You already have a DB cluster with the given identifier. * @throws DBClusterQuotaExceededException * The DB cluster can't be created because you have reached the maximum allowed quota of DB clusters. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws DBSnapshotNotFoundException * DBSnapshotIdentifier doesn't refer to an existing DB snapshot. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @throws InsufficientDBClusterCapacityException * The DB cluster doesn't have enough capacity for the current operation. * @throws InsufficientStorageClusterCapacityException * There is not enough storage available for the current action. You might be able to resolve this error by * updating your subnet group to use different Availability Zones that have more storage available. * @throws InvalidDBSnapshotStateException * The state of the DB snapshot doesn't allow deletion. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @throws InvalidVPCNetworkStateException * The DB subnet group doesn't cover all Availability Zones after it is created because of changes that were * made. * @throws InvalidRestoreException * You cannot restore from a virtual private cloud (VPC) backup to a non-VPC DB instance. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @throws KMSKeyNotAccessibleException * An error occurred when accessing an AWS KMS key. * @sample AmazonDocDB.RestoreDBClusterFromSnapshot * @see AWS API Documentation */ DBCluster restoreDBClusterFromSnapshot(RestoreDBClusterFromSnapshotRequest restoreDBClusterFromSnapshotRequest); /** *

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

* * @param restoreDBClusterToPointInTimeRequest * Represents the input to RestoreDBClusterToPointInTime. * @return Result of the RestoreDBClusterToPointInTime operation returned by the service. * @throws DBClusterAlreadyExistsException * You already have a DB cluster with the given identifier. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws DBClusterQuotaExceededException * The DB cluster can't be created because you have reached the maximum allowed quota of DB clusters. * @throws DBClusterSnapshotNotFoundException * DBClusterSnapshotIdentifier doesn't refer to an existing DB cluster snapshot. * @throws DBSubnetGroupNotFoundException * DBSubnetGroupName doesn't refer to an existing DB subnet group. * @throws InsufficientDBClusterCapacityException * The DB cluster doesn't have enough capacity for the current operation. * @throws InsufficientStorageClusterCapacityException * There is not enough storage available for the current action. You might be able to resolve this error by * updating your subnet group to use different Availability Zones that have more storage available. * @throws InvalidDBClusterSnapshotStateException * The provided value isn't a valid DB cluster snapshot state. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBSnapshotStateException * The state of the DB snapshot doesn't allow deletion. * @throws InvalidRestoreException * You cannot restore from a virtual private cloud (VPC) backup to a non-VPC DB instance. * @throws InvalidSubnetException * The requested subnet is not valid, or multiple subnets were requested that are not all in a common * virtual private cloud (VPC). * @throws InvalidVPCNetworkStateException * The DB subnet group doesn't cover all Availability Zones after it is created because of changes that were * made. * @throws KMSKeyNotAccessibleException * An error occurred when accessing an AWS KMS key. * @throws StorageQuotaExceededException * The request would cause you to exceed the allowed amount of storage available across all DB instances. * @sample AmazonDocDB.RestoreDBClusterToPointInTime * @see AWS API Documentation */ DBCluster restoreDBClusterToPointInTime(RestoreDBClusterToPointInTimeRequest restoreDBClusterToPointInTimeRequest); /** *

* Restarts the stopped cluster that is specified by DBClusterIdentifier. For more information, see Stopping and * Starting an Amazon DocumentDB Cluster. *

* * @param startDBClusterRequest * @return Result of the StartDBCluster operation returned by the service. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @sample AmazonDocDB.StartDBCluster * @see AWS API * Documentation */ DBCluster startDBCluster(StartDBClusterRequest startDBClusterRequest); /** *

* Stops the running cluster that is specified by DBClusterIdentifier. The cluster must be in the * available state. For more information, see Stopping and * Starting an Amazon DocumentDB Cluster. *

* * @param stopDBClusterRequest * @return Result of the StopDBCluster operation returned by the service. * @throws DBClusterNotFoundException * DBClusterIdentifier doesn't refer to an existing DB cluster. * @throws InvalidDBClusterStateException * The DB cluster isn't in a valid state. * @throws InvalidDBInstanceStateException * The specified DB instance isn't in the available state. * @sample AmazonDocDB.StopDBCluster * @see AWS API * Documentation */ DBCluster stopDBCluster(StopDBClusterRequest stopDBClusterRequest); /** * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client * has been shutdown, it should not be used to make any more requests. */ void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. *

* Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none is available. */ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); AmazonDocDBWaiters waiters(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy