AWS Security ChangesHomeSearch

AWS documentdb documentation change

Service: documentdb · 2026-03-28 · Documentation low

File: documentdb/latest/developerguide/currentOp.md

Summary

Entire documentation page for the $currentOp aggregation stage was removed, including all content, examples, and code snippets.

Security assessment

The change removes the entire documentation page without adding any new content or providing context. There is no concrete evidence in the diff that this removal is directly related to a security vulnerability, weakness, or incident. It appears to be a routine documentation cleanup or restructuring, possibly due to deprecation or relocation of the content. No security implications are mentioned or evident from the removed content itself.

Diff

diff --git a/documentdb/latest/developerguide/currentOp.md b/documentdb/latest/developerguide/currentOp.md
index eff501053..8b1378917 100644
--- a//documentdb/latest/developerguide/currentOp.md
+++ b//documentdb/latest/developerguide/currentOp.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#currentOp "Open PDF")
@@ -3,114 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $currentOp
-
-The `$currentOp` aggregation stage returns information about currently running operations in the database. This stage is useful for monitoring active queries and operations in an aggregation pipeline.
-
-**Parameters**
-
-  * `allUsers` (optional): When set to `true`, returns operations for all users. Default is `false`.
-
-  * `idleConnections` (optional): When set to `true`, includes idle connections. Default is `false`.
-
-  * `idleCursors` (optional): When set to `true`, includes information about idle cursors. Default is `false`.
-
-  * `idleSessions` (optional): When set to `true`, includes information about idle sessions. Default is `true`.
-
-  * `localOps` (optional): When set to `true`, includes local operations. Default is `false`.
-
-
-
-
-## Example (MongoDB Shell)
-
-The following example demonstrates using the `$currentOp` aggregation stage to retrieve information about active read operations.
-
-**Query example**
-    
-    
-    db.aggregate([
-      { $currentOp: { allUsers: true, idleConnections: false } },
-      { $match: { op: "query" } }
-    ])
-
-**Output**
-    
-    
-    [
-      {
-        "opid": "12345",
-        "active": true,
-        "op": "query",
-        "ns": "test.users",
-        "secs_running": 2
-      }
-    ]
-
-## Code examples
-
-To view a code example for using the `$currentOp` command, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function example() {
-      const client = await MongoClient.connect('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false');
-      const db = client.db('admin');
-    
-      const result = await db.aggregate([
-        { $currentOp: { allUsers: true, idleConnections: false } },
-        { $match: { op: "query" } }
-      ]).toArray();
-    
-      console.log(result);
-      await client.close();
-    }
-    
-    example();
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def example():
-        client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-        db = client['admin']
-    
-        result = list(db.aggregate([
-            { '$currentOp': { 'allUsers': True, 'idleConnections': False } },
-            { '$match': { 'op': 'query' } }
-        ]))
-    
-        print(result)
-        client.close()
-    
-    example()
-
-![Warning](https://d1ge0kk1l5kms0.cloudfront.net/images/G/01/webservices/console/warning.png) **Javascript is disabled or is unavailable in your browser.**
-
-To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.
-
-[Document Conventions](/general/latest/gr/docconventions.html)
-
-$count
-
-$dateAdd
-
-Did this page help you? - Yes
-
-Thanks for letting us know we're doing a good job!
-
-If you've got a moment, please tell us what we did right so we can do more of it.
-
-Did this page help you? - No
-
-Thanks for letting us know this page needs work. We're sorry we let you down.
-
-If you've got a moment, please tell us how we can make the documentation better.