Skip to content

Add configurable s3Key as an optional parameter #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2021

Conversation

ahmedhammad97
Copy link
Contributor

Contributes to issue #11

Description of changes:
In this pull request, I added an optional parameter to the PayloadStore.storeOriginalPayload() function, that is to allow consumers to pass custom value for the s3Key.

While Java does not support optional parameters, some workarounds are suggested by the community here, from which I have chosen to use Varargs to maintain backward compatibility.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

adam-aws
adam-aws previously approved these changes Feb 23, 2021
* @return a pointer that must be used to retrieve the original payload later.
* @throws SdkClientException If any internal errors are encountered on the client side while
* attempting to make the request or handle the response. For example
* if a network connection is not available.
* @throws S3Exception If an error response is returned by actual PayloadStore indicating
* either a problem with the data in the request, or a server side issue.
*/
String storeOriginalPayload(String payload);
String storeOriginalPayload(String payload, String... optional);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create a new method that takes a custom s3Key parameter.

@adam-aws adam-aws merged commit 5f81524 into awslabs:master Feb 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants