-
Notifications
You must be signed in to change notification settings - Fork 910
Adding support for S3 Control #1449
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
Conversation
bom/pom.xml
Outdated
@@ -820,6 +820,11 @@ | |||
<artifactId>s3</artifactId> | |||
<version>${awsjavasdk.version}</version> | |||
</dependency> | |||
<dependency> | |||
<groupId>software.amazon.awssdk</groupId> | |||
<artifactId>s3-control</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we verify this matches the one generated by the release automation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, will verify.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appears that we remove spaces rather than replace with a dash looking at other services. Updated.
80de25e
to
06f9d7c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1449 +/- ##
============================================
+ Coverage 73.7% 73.79% +0.09%
- Complexity 660 684 +24
============================================
Files 844 847 +3
Lines 25886 25990 +104
Branches 1970 1992 +22
============================================
+ Hits 19078 19179 +101
- Misses 5947 5951 +4
+ Partials 861 860 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments.
try { | ||
client.getPublicAccessBlock(r -> r.accountId(INVALID_ACCOUNT_ID)); | ||
fail("Expected exception"); | ||
} catch (S3ControlException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use ExpectedException instead of all this boilerplate try/catch/fail stuff.
return dualstackEnabled; | ||
} | ||
|
||
private boolean resolveBoolean(Boolean customerSuppliedValue, boolean defaultValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider renaming customerSuppliedValue to builderSuppliedValue or even just suppliedValue.
} | ||
|
||
@NotThreadSafe | ||
public interface Builder extends CopyableBuilder<Builder, S3ControlConfiguration> { // (8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this comment mean?
@SdkPublicApi | ||
@Immutable | ||
@ThreadSafe | ||
public final class S3ControlConfiguration implements ServiceConfiguration, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we have a toBuilder method?
06f9d7c
to
f922815
Compare
f922815
to
027b02a
Compare
Adds support for S3 Control
Testing
Unit and integration tests added.
Types of changes
Checklist
mvn install
succeedsLicense