Skip to content
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

Support Customization string array endpoint params for S3 access grants, until all SDKs add support for string array. #5137

Merged

Conversation

joviegas
Copy link
Contributor

Support Customization string array endpoint params for S3 access grants, until all SDKs add support for string array.

Motivation and Context

  • S3 Access will not do model changes until StringArray is supported for all the SDKs.
  • Thus we need to add Customization for S3

Modifications

  • Customization Config classes .

Testing

  • Added Junits

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

License

  • I confirm that this pull request can be released under the Apache 2 license

@joviegas joviegas requested a review from a team as a code owner April 23, 2024 03:48
…params because S3 Access grants will not update the models until all sdks support stringarray endpoint params
@joviegas joviegas force-pushed the joviegas/Customization_stringarray branch from b6b7037 to 2942f8b Compare April 23, 2024 15:14
"endpointParameters": {
"endpointId": {
"required": false,
"documentation": "Test to make sure exceptiion is thrown when there is already a paramater defined in model.",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: exceptiion an extra i

@joviegas joviegas merged commit 7886aaf into feature/StringArrayEndpointParams Apr 23, 2024
7 of 8 checks passed
Copy link

sonarcloud bot commented Apr 23, 2024

@@ -843,4 +850,12 @@ public void setUseMultiAuth(boolean useMultiAuth) {
public boolean useMultiAuth() {
return useMultiAuth;
}

public Map<String, ParameterModel> getEndpointParameters() {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this definition is enough as a criteria for triggering codegen of the JMESPath runtime helper. Endpoint parameters could in the future be present in the customization config without the need for that, since it's only operation context params with nested types that needs it. The ParameterModel does not currently contain information that lets you decide that either, but maybe when adding operation context params that can fit into ParameterModel.

cenedhryn added a commit that referenced this pull request May 13, 2024
* feat(StringArrayEndpointParams) Codegen String Array Enpoint params and Auth schemes params based on end-point-rule-set.json. (#5122)

* Support Customization string array endpoint params for S3 access grants, until all SDKs add support for string array. (#5137)

* new(StringArrayEndpointParams) Codegeneration of OperationContextParams defined for a Operation. (#5146)

* Extracting existing JMESPath runtime to a separate class (#5155)

* new(StringArrayEndpointParams) Customization of Operation Context params and adding customizations for S3 (#5159)

* Converts endpoint param list of string to list of value (#5169)

* Generates JmesPath expressions for operation context parameters (#5172)

* Supporting wildcard and keys fn in JmesPathRuntime (#5198)

* Adds functional tests for list of string auth params (#5216)

* Changelog

---------

Co-authored-by: John Viegas <70235430+joviegas@users.noreply.github.com>
Co-authored-by: John Viegas <joviegas@amazon.com>
akidambisrinivasan pushed a commit to akidambisrinivasan/aws-sdk-java-v2 that referenced this pull request Jun 28, 2024
* feat(StringArrayEndpointParams) Codegen String Array Enpoint params and Auth schemes params based on end-point-rule-set.json. (aws#5122)

* Support Customization string array endpoint params for S3 access grants, until all SDKs add support for string array. (aws#5137)

* new(StringArrayEndpointParams) Codegeneration of OperationContextParams defined for a Operation. (aws#5146)

* Extracting existing JMESPath runtime to a separate class (aws#5155)

* new(StringArrayEndpointParams) Customization of Operation Context params and adding customizations for S3 (aws#5159)

* Converts endpoint param list of string to list of value (aws#5169)

* Generates JmesPath expressions for operation context parameters (aws#5172)

* Supporting wildcard and keys fn in JmesPathRuntime (aws#5198)

* Adds functional tests for list of string auth params (aws#5216)

* Changelog

---------

Co-authored-by: John Viegas <70235430+joviegas@users.noreply.github.com>
Co-authored-by: John Viegas <joviegas@amazon.com>
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.

None yet

3 participants