You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(dynamodb): changing language for multi-attribute keys on GSI's (#36233)
### Issue # (if applicable)
No issue raised
### Reason for this change
Language around multi-attribute keys for global secondary indexes needed updating.
### Description of changes
Descriptions of attributes changed, no code changes.
### Describe any new or updated permissions being added
### Description of how you validated changes
### Checklist
- [X] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Global secondary indexes support compound keys, allowing you to specify multiple partition keys and/or multiple sort keys. This enables more flexible query patterns for complex data models.
409
+
Global secondary indexes support multi-attribute keys, allowing you to specify multiple partition keys and/or multiple sort keys. This enables more flexible query patterns for complex data models.
410
410
411
411
**Key Constraints:**
412
412
- You can specify up to **4 partition keys** per global secondary index
@@ -417,14 +417,14 @@ Global secondary indexes support compound keys, allowing you to specify multiple
417
417
- For multiple keys, you **must** use the plural parameters (`partitionKeys` and/or `sortKeys`)
418
418
-**Keys cannot be added or modified after index creation** - attempting to add additional keys to an existing index will result in an error
419
419
420
-
**Example with compound partition and sort keys:**
420
+
**Example with multi-attribute partition and sort keys:**
Note: `schema()` is deprecated for indexes with compound keys and will throw an error. Use `schemaV2()` instead, which always returns normalized arrays.
228
+
Note: `schema()` is deprecated for indexes with multi-attribute keys and will throw an error. Use `schemaV2()` instead, which always returns normalized arrays.
229
229
230
-
## Global Secondary Indexes with Compound Keys
230
+
## Global Secondary Indexes with multi-attribute Keys
231
231
232
-
Global secondary indexes support compound keys, allowing you to specify multiple partition keys and/or multiple sort keys. This enables more flexible query patterns for complex data models.
232
+
Global secondary indexes support multi-attribute keys, allowing you to specify multiple partition keys and/or multiple sort keys. This enables more flexible query patterns for complex data models.
233
233
234
234
**Key Constraints:**
235
235
- You can specify up to **4 partition keys** per global secondary index
0 commit comments