AWS Security ChangesHomeSearch

AWS documentdb documentation change

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

File: documentdb/latest/developerguide/bitsAllSet.md

Summary

Entire documentation page for the $bitsAllSet operator has been removed, including all examples and usage instructions.

Security assessment

The change removes documentation for a specific MongoDB operator ($bitsAllSet) but provides no evidence of security vulnerability, incident, or security-related context. This appears to be routine documentation cleanup or reorganization without security implications.

Diff

diff --git a/documentdb/latest/developerguide/bitsAllSet.md b/documentdb/latest/developerguide/bitsAllSet.md
index cac6a8dad..8b1378917 100644
--- a//documentdb/latest/developerguide/bitsAllSet.md
+++ b//documentdb/latest/developerguide/bitsAllSet.md
@@ -1 +0,0 @@
-[](/pdfs/documentdb/latest/developerguide/developerguide.pdf#bitsAllSet "Open PDF")
@@ -3,105 +1,0 @@
-[Documentation](/index.html)[Amazon DocumentDB](/documentdb/index.html)[Developer Guide](what-is.html)
-
-Example (MongoDB Shell)Code examples
-
-# $bitsAllSet
-
-The `$bitsAllSet` operator in Amazon DocumentDB is used to query for documents where a specific set of bits are all set to 1 in a field. This operator allows you to perform bitwise operations on field values and can be useful when you need to check the state of individual bits within a numeric value.
-
-**Parameters**
-
-  * `field`: The name of the numeric field to perform the bitwise operation on.
-
-  * `value`: The numeric bitmask that specifies which bits should be checked, or a list of bits positions to be checked. A numeric bitmask can be a binary (0b...), decimal, hexadecimal (0x...), octal (0o...), or binary (BinData) form. In a list of bits positions, the position of the least significant bit is 0.
-
-
-
-
-## Example (MongoDB Shell)
-
-The following example demonstrates how to use the `$bitsAllSet` operator to find documents where the `flags` field has all the bits set that are specified by the bitmask.
-
-**Create sample documents**
-    
-    
-    db.collection.insert([
-      { _id: 1, flags: 0b1010 },
-      { _id: 2, flags: 0b1100 },
-      { _id: 3, flags: 0b1110 }
-    ])
-
-**Query example**
-    
-    
-    db.collection.find({ flags: { $bitsAllSet: 0b1100 } })
-
-**Output**
-    
-    
-    { "_id": 2, "flags": 12 },
-    { "_id": 3, "flags": 14 }
-
-In this example, the query checks for documents where the `flags` field has all the bits set that are specified by the bitmask `0b1100` (which represents the decimal value 12). The documents with `_id` 2 and 3 match this criteria, as their `flags` field values have all the required bits set (the 3rd and 4th least significant bits).
-
-## Code examples
-
-To view a code example for using the `$bitsAllSet` command, choose the tab for the language that you want to use:
-
-Node.js
-    
-    
-    
-    const { MongoClient } = require('mongodb');
-    
-    async function findWithBitsAllSet() {
-      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('test');
-      const collection = db.collection('collection');
-    
-      const result = await collection.find({ flags: { $bitsAllSet: 0b1100 } }).toArray();
-      console.log(result);
-    
-      await client.close();
-    }
-    
-    findWithBitsAllSet();
-
-Python
-    
-    
-    
-    from pymongo import MongoClient
-    
-    def find_with_bits_all_set():
-        client = MongoClient('mongodb://<username>:<password>@<cluster-endpoint>:27017/?tls=true&tlsCAFile=global-bundle.pem&replicaSet=rs0&readPreference=secondaryPreferred&retryWrites=false')
-        db = client.test
-        collection = db.collection
-    
-        result = list(collection.find({ 'flags': { '$bitsAllSet': 0b1100 } }))
-        print(result)
-    
-        client.close()
-    
-    find_with_bits_all_set()
-
-![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)
-
-$bitsAllClear
-
-$bitsAnyClear
-
-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.