aws / aws-sdk-java-v2

The official AWS SDK for Java - Version 2
Apache License 2.0
2.16k stars 840 forks source link

Implement return values for enhanced UpdateItem #5311

Closed shetsa-amzn closed 3 months ago

shetsa-amzn commented 3 months ago

Adds support for specifying ReturnValues in UpdateItemEnhancedRequest. Defaults to the current behavior ALL_NEW.

Motivation and Context

https://github.com/aws/aws-sdk-java-v2/issues/4247

Testing

Adding Units to Cover all the options of ReturnValue including validating the behavior when its not set.

Screenshots (if appropriate)

Types of changes

Checklist

License

davidh44 commented 3 months ago

Can we add end-to-end tests as well? https://github.com/aws/aws-sdk-java-v2/tree/master/services-custom/dynamodb-enhanced/src/it/java/software/ama

shetsa-amzn commented 3 months ago

Can we add end-to-end tests as well? https://github.com/aws/aws-sdk-java-v2/tree/master/services-custom/dynamodb-enhanced/src/it/java/software/ama

Added Integration tests to the second revision.

davidh44 commented 3 months ago

Looks good, approved, can we add a changelog entry? https://github.com/aws/aws-sdk-java-v2/blob/master/CONTRIBUTING.md#pull-request-readiness

shetsa-amzn commented 3 months ago

Looks good, approved, can we add a changelog entry? https://github.com/aws/aws-sdk-java-v2/blob/master/CONTRIBUTING.md#pull-request-readiness

Added. Thanks

sonarcloud[bot] commented 3 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
11.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud