aws docdb55 CLI commands available for Amazon DocumentDB.
| Command | API Operation | Sample |
|---|---|---|
add-source-identifier-to-subscriptionAdds a source identifier to an existing event notification subscription. | AddSourceIdentifierToSubscription | |
add-tags-to-resourceAdds 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 Identity and Access Management (IAM) policy for Amazon DocumentDB. | AddTagsToResource | |
apply-pending-maintenance-actionApplies a pending maintenance action to a resource (for example, to an Amazon DocumentDB instance). | ApplyPendingMaintenanceAction | |
copy-db-cluster-parameter-groupCopies the specified cluster parameter group. | CopyDBClusterParameterGroup | |
copy-db-cluster-snapshotCopies a snapshot of a cluster. To copy a cluster snapshot from a shared manual cluster snapshot, SourceDBClusterSnapshotIdentifier must be the Amazon Resource Name (ARN) of the shared cluster snapshot. You can only copy a shared DB cluster snapshot, whether encrypted or not, in the same Amazon Web | CopyDBClusterSnapshot | |
create-db-clusterCreates a new Amazon DocumentDB cluster. | CreateDBCluster | |
create-db-cluster-parameter-groupCreates a new cluster parameter group. Parameters in a cluster parameter group apply to all of the instances in a cluster. A cluster parameter group is initially created with the default parameters for the database engine used by instances in the cluster. In Amazon DocumentDB, you cannot make modifi | CreateDBClusterParameterGroup | |
create-db-cluster-snapshotCreates a snapshot of a cluster. | CreateDBClusterSnapshot | |
create-db-instanceCreates a new instance. | CreateDBInstance | |
create-db-subnet-groupCreates a new subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the Amazon Web Services Region. | CreateDBSubnetGroup | |
create-event-subscriptionCreates an Amazon DocumentDB event notification subscription. This action requires a topic Amazon Resource Name (ARN) created by using the Amazon DocumentDB console, the Amazon SNS console, or the Amazon SNS API. To obtain an ARN with Amazon SNS, you must create a topic in Amazon SNS and subscribe t | CreateEventSubscription | |
create-global-clusterCreates an Amazon DocumentDB global cluster that can span multiple multiple Amazon Web Services Regions. The global cluster contains one primary cluster with read-write capability, and up-to 10 read-only secondary clusters. Global clusters uses storage-based fast replication across regions with late | CreateGlobalCluster | |
delete-db-clusterDeletes 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. | DeleteDBCluster | |
delete-db-cluster-parameter-groupDeletes a specified cluster parameter group. The cluster parameter group to be deleted can't be associated with any clusters. | DeleteDBClusterParameterGroup | |
delete-db-cluster-snapshotDeletes a cluster snapshot. If the snapshot is being copied, the copy operation is terminated. The cluster snapshot must be in the available state to be deleted. | DeleteDBClusterSnapshot | |
delete-db-instanceDeletes a previously provisioned instance. | DeleteDBInstance | |
delete-db-subnet-groupDeletes a subnet group. The specified database subnet group must not be associated with any DB instances. | DeleteDBSubnetGroup | |
delete-event-subscriptionDeletes an Amazon DocumentDB event notification subscription. | DeleteEventSubscription | |
delete-global-clusterDeletes a global cluster. The primary and secondary clusters must already be detached or deleted before attempting to delete a global cluster. This action only applies to Amazon DocumentDB clusters. | DeleteGlobalCluster | |
describe-certificatesReturns a list of certificate authority (CA) certificates provided by Amazon DocumentDB for this Amazon Web Services account. | DescribeCertificates | |
describe-db-cluster-parameter-groupsReturns a list of DBClusterParameterGroup descriptions. If a DBClusterParameterGroupName parameter is specified, the list contains only the description of the specified cluster parameter group. | DescribeDBClusterParameterGroups | |
describe-db-cluster-parametersReturns the detailed parameter list for a particular cluster parameter group. | DescribeDBClusterParameters | |
describe-db-cluster-snapshot-attributesReturns a list of cluster snapshot attribute names and values for a manual DB cluster snapshot. When you share snapshots with other Amazon Web Services accounts, DescribeDBClusterSnapshotAttributes returns the restore attribute and a list of IDs for the Amazon Web Services accounts that are authoriz | DescribeDBClusterSnapshotAttributes | |
describe-db-cluster-snapshotsReturns information about cluster snapshots. This API operation supports pagination. | DescribeDBClusterSnapshots | |
describe-db-clustersReturns 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 f | DescribeDBClusters | |
describe-db-engine-versionsReturns a list of the available engines. | DescribeDBEngineVersions | |
describe-db-instancesReturns information about provisioned Amazon DocumentDB instances. This API supports pagination. | DescribeDBInstances | |
describe-db-subnet-groupsReturns a list of DBSubnetGroup descriptions. If a DBSubnetGroupName is specified, the list will contain only the descriptions of the specified DBSubnetGroup. | DescribeDBSubnetGroups | |
describe-engine-default-cluster-parametersReturns the default engine and system parameter information for the cluster database engine. | DescribeEngineDefaultClusterParameters | |
describe-event-categoriesDisplays a list of categories for all event source types, or, if specified, for a specified source type. | DescribeEventCategories | |
describe-event-subscriptionsLists all the subscription descriptions for a customer account. The description for a subscription includes SubscriptionName, SNSTopicARN, CustomerID, SourceType, SourceID, CreationTime, and Status. If you specify a SubscriptionName, lists the description for that subscription. | DescribeEventSubscriptions | |
describe-eventsReturns 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 re | DescribeEvents | |
describe-global-clustersReturns information about Amazon DocumentDB global clusters. This API supports pagination. This action only applies to Amazon DocumentDB clusters. | DescribeGlobalClusters | |
describe-orderable-db-instance-optionsReturns a list of orderable instance options for the specified engine. | DescribeOrderableDBInstanceOptions | |
describe-pending-maintenance-actionsReturns a list of resources (for example, instances) that have at least one pending maintenance action. | DescribePendingMaintenanceActions | |
failover-db-clusterForces a failover for a cluster. A failover for a cluster promotes one of the Amazon DocumentDB replicas (read-only instances) in the 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 | FailoverDBCluster | |
failover-global-clusterPromotes the specified secondary DB cluster to be the primary DB cluster in the global cluster when failing over a global cluster occurs. Use this operation to respond to an unplanned event, such as a regional disaster in the primary region. Failing over can result in a loss of write transaction dat | FailoverGlobalCluster | |
list-tags-for-resourceLists all tags on an Amazon DocumentDB resource. | ListTagsForResource | |
modify-db-clusterModifies 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. | ModifyDBCluster | |
modify-db-cluster-parameter-groupModifies the parameters of a 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 t | ModifyDBClusterParameterGroup | |
modify-db-cluster-snapshot-attributeAdds an attribute and values to, or removes an attribute and values from, a manual cluster snapshot. To share a manual cluster snapshot with other Amazon Web Services accounts, specify restore as the AttributeName, and use the ValuesToAdd parameter to add a list of IDs of the Amazon Web Services acc | ModifyDBClusterSnapshotAttribute | |
modify-db-instanceModifies settings for an instance. You can change one or more database configuration parameters by specifying these parameters and the new values in the request. | ModifyDBInstance | |
modify-db-subnet-groupModifies an existing subnet group. subnet groups must contain at least one subnet in at least two Availability Zones in the Amazon Web Services Region. | ModifyDBSubnetGroup | |
modify-event-subscriptionModifies an existing Amazon DocumentDB event notification subscription. | ModifyEventSubscription | |
modify-global-clusterModify a setting for an Amazon DocumentDB global cluster. You can change one or more configuration parameters (for example: deletion protection), or the global cluster identifier by specifying these parameters and the new values in the request. This action only applies to Amazon DocumentDB clusters | ModifyGlobalCluster | |
reboot-db-instanceYou 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. Rebooting an instance restarts the datab | RebootDBInstance | |
remove-from-global-clusterDetaches an Amazon DocumentDB secondary cluster from a global cluster. The cluster becomes a standalone cluster with read-write capability instead of being read-only and receiving data from a primary in a different region. This action only applies to Amazon DocumentDB clusters. | RemoveFromGlobalCluster | |
remove-source-identifier-from-subscriptionRemoves a source identifier from an existing Amazon DocumentDB event notification subscription. | RemoveSourceIdentifierFromSubscription | |
remove-tags-from-resourceRemoves metadata tags from an Amazon DocumentDB resource. | RemoveTagsFromResource | |
reset-db-cluster-parameter-groupModifies the parameters of a cluster parameter group to the default value. To reset specific parameters, submit a list of the following: ParameterName and ApplyMethod. To reset the entire cluster parameter group, specify the DBClusterParameterGroupName and ResetAllParameters parameters. When you | ResetDBClusterParameterGroup | |
restore-db-cluster-from-snapshotCreates a new cluster from a snapshot or cluster snapshot. If a snapshot is specified, the target cluster is created from the source DB snapshot with a default configuration and default security group. If a cluster snapshot is specified, the target cluster is created from the source cluster restore | RestoreDBClusterFromSnapshot | |
restore-db-cluster-to-point-in-timeRestores a cluster to an arbitrary point in time. Users can restore to any point in time before LatestRestorableTime for up to BackupRetentionPeriod 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 | RestoreDBClusterToPointInTime | |
start-db-clusterRestarts the stopped cluster that is specified by DBClusterIdentifier. For more information, see Stopping and Starting an Amazon DocumentDB Cluster. | StartDBCluster | |
stop-db-clusterStops 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. | StopDBCluster | |
switchover-global-clusterSwitches over the specified secondary Amazon DocumentDB cluster to be the new primary Amazon DocumentDB cluster in the global database cluster. | SwitchoverGlobalCluster |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterDocDB