Skip to content

Commit

Permalink
non-required for now
Browse files Browse the repository at this point in the history
  • Loading branch information
graebm committed Jun 21, 2024
1 parent c60d2e9 commit 814ea9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/main/java/software/amazon/awssdk/crt/s3/S3Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,6 @@ public S3MetaRequest makeMetaRequest(S3MetaRequestOptions options) {
throw new IllegalArgumentException("S3Client.makeMetaRequest has invalid options; Response Handler cannot be null.");
}

String operationName = options.getOperationName();
if (options.getMetaRequestType() == S3MetaRequestOptions.MetaRequestType.DEFAULT && operationName == null) {
Log.log(Log.LogLevel.Error, Log.LogSubject.S3Client,
"S3Client.makeMetaRequest has invalid options; Operation name must be set for MetaRequestType.DEFAULT.");
throw new IllegalArgumentException("S3Client.makeMetaRequest has invalid options; Operation name must be set for MetaRequestType.DEFAULT.");
}

S3MetaRequest metaRequest = new S3MetaRequest();
S3MetaRequestResponseHandlerNativeAdapter responseHandlerNativeAdapter = new S3MetaRequestResponseHandlerNativeAdapter(
options.getResponseHandler());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ public MetaRequestType getMetaRequestType() {

/**
* The S3 operation name (eg: "CreateBucket"),
* this MUST be set for {@link MetaRequestType#DEFAULT},
* it is not necessary for other meta request types.
* this should be set for {@link MetaRequestType#DEFAULT},
* it is ignored for other meta request types since the operation is implicit.
*
* See <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_Operations_Amazon_Simple_Storage_Service.html">
* S3 API documentation</a> for the canonical list of names.
Expand Down

0 comments on commit 814ea9d

Please sign in to comment.