Skip to content

Use UpdateExpression instead of AttributeUpdates in StandardSessionConnection #3182

@gregtyler

Description

@gregtyler

Describe the feature

When StandardSessionConnection writes, it uses AttributeUpdates to determine which fields to update. According to the docs this is a legacy parameter and UpdateExpression should be used instead.

Use Case

This specifically came up because DynamoDB local v3 (incorrectly?) requires the Action to be set when updating an attribute that isn't yet on the item. It would be ideal to fix DynamoDB local instead, but I also imagine that aws-sdk-php would want to use non-legacy features of the API.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

SDK version used

3.356.8

Environment details (Version of PHP (php -v)? OS name and version, etc.)

PHP 8.3.25 on Alpine 3.22.1

Metadata

Metadata

Assignees

Labels

feature-requestA feature should be added or improved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions