DocDB class
Amazon DocumentDB API documentation
Constructors
- DocDB({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
Methods
-
addTagsToResource(
{required String resourceName, required List< Tag> tags}) → Future<void> -
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. -
applyPendingMaintenanceAction(
{required String applyAction, required String optInType, required String resourceIdentifier}) → Future< ApplyPendingMaintenanceActionResult> - Applies a pending maintenance action to a resource (for example, to an Amazon DocumentDB instance).
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
copyDBClusterParameterGroup(
{required String sourceDBClusterParameterGroupIdentifier, required String targetDBClusterParameterGroupDescription, required String targetDBClusterParameterGroupIdentifier, List< Tag> ? tags}) → Future<CopyDBClusterParameterGroupResult> - Copies the specified cluster parameter group.
-
copyDBClusterSnapshot(
{required String sourceDBClusterSnapshotIdentifier, required String targetDBClusterSnapshotIdentifier, bool? copyTags, String? kmsKeyId, String? preSignedUrl, List< Tag> ? tags}) → Future<CopyDBClusterSnapshotResult> - Copies a snapshot of a cluster.
-
createDBCluster(
{required String dBClusterIdentifier, required String engine, required String masterUserPassword, required String masterUsername, List< String> ? availabilityZones, int? backupRetentionPeriod, String? dBClusterParameterGroupName, String? dBSubnetGroupName, bool? deletionProtection, List<String> ? enableCloudwatchLogsExports, String? engineVersion, String? kmsKeyId, int? port, String? preSignedUrl, String? preferredBackupWindow, String? preferredMaintenanceWindow, bool? storageEncrypted, List<Tag> ? tags, List<String> ? vpcSecurityGroupIds}) → Future<CreateDBClusterResult> - Creates a new Amazon DocumentDB cluster.
-
createDBClusterParameterGroup(
{required String dBClusterParameterGroupName, required String dBParameterGroupFamily, required String description, List< Tag> ? tags}) → Future<CreateDBClusterParameterGroupResult> - Creates a new cluster parameter group.
-
createDBClusterSnapshot(
{required String dBClusterIdentifier, required String dBClusterSnapshotIdentifier, List< Tag> ? tags}) → Future<CreateDBClusterSnapshotResult> - Creates a snapshot of a cluster.
-
createDBInstance(
{required String dBClusterIdentifier, required String dBInstanceClass, required String dBInstanceIdentifier, required String engine, bool? autoMinorVersionUpgrade, String? availabilityZone, String? preferredMaintenanceWindow, int? promotionTier, List< Tag> ? tags}) → Future<CreateDBInstanceResult> - Creates a new instance.
-
createDBSubnetGroup(
{required String dBSubnetGroupDescription, required String dBSubnetGroupName, required List< String> subnetIds, List<Tag> ? tags}) → Future<CreateDBSubnetGroupResult> - Creates a new subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the AWS Region.
-
deleteDBCluster(
{required String dBClusterIdentifier, String? finalDBSnapshotIdentifier, bool? skipFinalSnapshot}) → Future< DeleteDBClusterResult> - Deletes a previously provisioned cluster. When you delete a cluster, all automated backups for that cluster are deleted and can't be recovered. Manual DB cluster snapshots of the specified cluster are not deleted.
-
deleteDBClusterParameterGroup(
{required String dBClusterParameterGroupName}) → Future< void> - Deletes a specified cluster parameter group. The cluster parameter group to be deleted can't be associated with any clusters.
-
deleteDBClusterSnapshot(
{required String dBClusterSnapshotIdentifier}) → Future< DeleteDBClusterSnapshotResult> - Deletes a cluster snapshot. If the snapshot is being copied, the copy operation is terminated.
-
deleteDBInstance(
{required String dBInstanceIdentifier}) → Future< DeleteDBInstanceResult> - Deletes a previously provisioned instance.
-
deleteDBSubnetGroup(
{required String dBSubnetGroupName}) → Future< void> - Deletes a subnet group.
-
describeCertificates(
{String? certificateIdentifier, List< Filter> ? filters, String? marker, int? maxRecords}) → Future<CertificateMessage> - Returns a list of certificate authority (CA) certificates provided by Amazon DocumentDB for this AWS account.
-
describeDBClusterParameterGroups(
{String? dBClusterParameterGroupName, List< Filter> ? filters, String? marker, int? maxRecords}) → Future<DBClusterParameterGroupsMessage> -
Returns a list of
DBClusterParameterGroup
descriptions. If aDBClusterParameterGroupName
parameter is specified, the list contains only the description of the specified cluster parameter group. -
describeDBClusterParameters(
{required String dBClusterParameterGroupName, List< Filter> ? filters, String? marker, int? maxRecords, String? source}) → Future<DBClusterParameterGroupDetails> - Returns the detailed parameter list for a particular cluster parameter group.
-
describeDBClusters(
{String? dBClusterIdentifier, List< Filter> ? filters, String? marker, int? maxRecords}) → Future<DBClusterMessage> -
Returns information about provisioned Amazon DocumentDB clusters. This API
operation supports pagination. For certain management features such as
cluster and instance lifecycle management, Amazon DocumentDB leverages
operational technology that is shared with Amazon RDS and Amazon Neptune.
Use the
filterName=engine,Values=docdb
filter parameter to return only Amazon DocumentDB clusters. -
describeDBClusterSnapshotAttributes(
{required String dBClusterSnapshotIdentifier}) → Future< DescribeDBClusterSnapshotAttributesResult> - Returns a list of cluster snapshot attribute names and values for a manual DB cluster snapshot.
-
describeDBClusterSnapshots(
{String? dBClusterIdentifier, String? dBClusterSnapshotIdentifier, List< Filter> ? filters, bool? includePublic, String? marker, int? maxRecords, String? snapshotType}) → Future<DBClusterSnapshotMessage> - Returns information about cluster snapshots. This API operation supports pagination.
-
describeDBEngineVersions(
{String? dBParameterGroupFamily, bool? defaultOnly, String? engine, String? engineVersion, List< Filter> ? filters, bool? listSupportedCharacterSets, bool? listSupportedTimezones, String? marker, int? maxRecords}) → Future<DBEngineVersionMessage> - Returns a list of the available engines.
-
describeDBInstances(
{String? dBInstanceIdentifier, List< Filter> ? filters, String? marker, int? maxRecords}) → Future<DBInstanceMessage> - Returns information about provisioned Amazon DocumentDB instances. This API supports pagination.
-
describeDBSubnetGroups(
{String? dBSubnetGroupName, List< Filter> ? filters, String? marker, int? maxRecords}) → Future<DBSubnetGroupMessage> -
Returns a list of
DBSubnetGroup
descriptions. If aDBSubnetGroupName
is specified, the list will contain only the descriptions of the specifiedDBSubnetGroup
. -
describeEngineDefaultClusterParameters(
{required String dBParameterGroupFamily, List< Filter> ? filters, String? marker, int? maxRecords}) → Future<DescribeEngineDefaultClusterParametersResult> - Returns the default engine and system parameter information for the cluster database engine.
-
describeEventCategories(
{List< Filter> ? filters, String? sourceType}) → Future<EventCategoriesMessage> - Displays a list of categories for all event source types, or, if specified, for a specified source type.
-
describeEvents(
{int? duration, DateTime? endTime, List< String> ? eventCategories, List<Filter> ? filters, String? marker, int? maxRecords, String? sourceIdentifier, SourceType? sourceType, DateTime? startTime}) → Future<EventsMessage> - Returns events related to instances, security groups, snapshots, and DB parameter groups for the past 14 days. You can obtain events specific to a particular DB instance, security group, snapshot, or parameter group by providing the name as a parameter. By default, the events of the past hour are returned.
-
describeOrderableDBInstanceOptions(
{required String engine, String? dBInstanceClass, String? engineVersion, List< Filter> ? filters, String? licenseModel, String? marker, int? maxRecords, bool? vpc}) → Future<OrderableDBInstanceOptionsMessage> - Returns a list of orderable instance options for the specified engine.
-
describePendingMaintenanceActions(
{List< Filter> ? filters, String? marker, int? maxRecords, String? resourceIdentifier}) → Future<PendingMaintenanceActionsMessage> - Returns a list of resources (for example, instances) that have at least one pending maintenance action.
-
failoverDBCluster(
{String? dBClusterIdentifier, String? targetDBInstanceIdentifier}) → Future< FailoverDBClusterResult> - Forces a failover for a cluster.
-
listTagsForResource(
{required String resourceName, List< Filter> ? filters}) → Future<TagListMessage> - Lists all tags on an Amazon DocumentDB resource.
-
modifyDBCluster(
{required String dBClusterIdentifier, bool? applyImmediately, int? backupRetentionPeriod, CloudwatchLogsExportConfiguration? cloudwatchLogsExportConfiguration, String? dBClusterParameterGroupName, bool? deletionProtection, String? engineVersion, String? masterUserPassword, String? newDBClusterIdentifier, int? port, String? preferredBackupWindow, String? preferredMaintenanceWindow, List< String> ? vpcSecurityGroupIds}) → Future<ModifyDBClusterResult> - Modifies a setting for an Amazon DocumentDB cluster. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
-
modifyDBClusterParameterGroup(
{required String dBClusterParameterGroupName, required List< Parameter> parameters}) → Future<DBClusterParameterGroupNameMessage> -
Modifies the parameters of a cluster parameter group. To modify more than
one parameter, submit a list of the following:
ParameterName
,ParameterValue
, andApplyMethod
. A maximum of 20 parameters can be modified in a single request. -
modifyDBClusterSnapshotAttribute(
{required String attributeName, required String dBClusterSnapshotIdentifier, List< String> ? valuesToAdd, List<String> ? valuesToRemove}) → Future<ModifyDBClusterSnapshotAttributeResult> - Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot.
-
modifyDBInstance(
{required String dBInstanceIdentifier, bool? applyImmediately, bool? autoMinorVersionUpgrade, String? cACertificateIdentifier, String? dBInstanceClass, String? newDBInstanceIdentifier, String? preferredMaintenanceWindow, int? promotionTier}) → Future< ModifyDBInstanceResult> - Modifies settings for an instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request.
-
modifyDBSubnetGroup(
{required String dBSubnetGroupName, required List< String> subnetIds, String? dBSubnetGroupDescription}) → Future<ModifyDBSubnetGroupResult> - Modifies an existing subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the AWS Region.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebootDBInstance(
{required String dBInstanceIdentifier, bool? forceFailover}) → Future< RebootDBInstanceResult> - You might need to reboot your instance, usually for maintenance reasons. For example, if you make certain changes, or if you change the cluster parameter group that is associated with the instance, you must reboot the instance for the changes to take effect.
-
removeTagsFromResource(
{required String resourceName, required List< String> tagKeys}) → Future<void> - Removes metadata tags from an Amazon DocumentDB resource.
-
resetDBClusterParameterGroup(
{required String dBClusterParameterGroupName, List< Parameter> ? parameters, bool? resetAllParameters}) → Future<DBClusterParameterGroupNameMessage> -
Modifies the parameters of a cluster parameter group to the default value.
To reset specific parameters, submit a list of the following:
ParameterName
andApplyMethod
. To reset the entire cluster parameter group, specify theDBClusterParameterGroupName
andResetAllParameters
parameters. -
restoreDBClusterFromSnapshot(
{required String dBClusterIdentifier, required String engine, required String snapshotIdentifier, List< String> ? availabilityZones, String? dBSubnetGroupName, bool? deletionProtection, List<String> ? enableCloudwatchLogsExports, String? engineVersion, String? kmsKeyId, int? port, List<Tag> ? tags, List<String> ? vpcSecurityGroupIds}) → Future<RestoreDBClusterFromSnapshotResult> - Creates a new cluster from a snapshot or cluster snapshot.
-
restoreDBClusterToPointInTime(
{required String dBClusterIdentifier, required String sourceDBClusterIdentifier, String? dBSubnetGroupName, bool? deletionProtection, List< String> ? enableCloudwatchLogsExports, String? kmsKeyId, int? port, DateTime? restoreToTime, List<Tag> ? tags, bool? useLatestRestorableTime, List<String> ? vpcSecurityGroupIds}) → Future<RestoreDBClusterToPointInTimeResult> -
Restores a cluster to an arbitrary point in time. Users can restore to any
point in time before
LatestRestorableTime
for up toBackupRetentionPeriod
days. The target cluster is created from the source cluster with the same configuration as the original cluster, except that the new cluster is created with the default security group. -
startDBCluster(
{required String dBClusterIdentifier}) → Future< StartDBClusterResult> -
Restarts the stopped cluster that is specified by
DBClusterIdentifier
. For more information, see Stopping and Starting an Amazon DocumentDB Cluster. -
stopDBCluster(
{required String dBClusterIdentifier}) → Future< StopDBClusterResult> -
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. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited