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

Added support for IamPolicy in new module software.amazon.awssdk:iam-… #4185

Merged
merged 2 commits into from
Jul 18, 2023

Conversation

millems
Copy link
Contributor

@millems millems commented Jul 13, 2023

…policy-builder, a class to simplify the use of AWS policies.

See IamPolicy for usage examples.

Implements #39

@millems millems requested a review from a team as a code owner July 13, 2023 22:49
…policy-builder, a class to simplify the use of AWS policies.
ElementType.PARAMETER})
@Retention(RetentionPolicy.CLASS)
@SdkProtectedApi
public @interface NotNull {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this because EqualsVerifier will use it to detect which fields are considered not-null. It allows me to test all of the equals/hashcode methods in the package at once from a single test (EqualsHashCodeTest).

*
* <p>Setting this value will also override any values set via {@link #jsonFactory}.
*/
public JsonWriter.Builder jsonGeneratorFactory(JsonGeneratorFactory jsonGeneratorFactory) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this to allow me to configure the underlying JSON generator to pretty-print the JSON.

@millems millems mentioned this pull request Jul 13, 2023
@sonarcloud
Copy link

sonarcloud bot commented Jul 18, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 4 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 70 Code Smells

20.5% 20.5% Coverage
1.1% 1.1% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@millems millems merged commit 59e64a2 into master Jul 18, 2023
@millems millems deleted the millem/policy-builder branch July 18, 2023 17:40
L-Applin pushed a commit that referenced this pull request Jul 24, 2023
#4185)

* Added support for IamPolicy in new module software.amazon.awssdk:iam-policy-builder, a class to simplify the use of AWS policies.

* Addressed comments.
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.

2 participants