AWS code-library documentation change
Summary
Updated method signatures in Java code examples to include bucketName and key parameters
Security assessment
Changes are routine code example updates adding required parameters. No security vulnerabilities or weaknesses are addressed. Checksum functionality remains unchanged.
Diff
diff --git a/code-library/latest/ug/s3_example_s3_Scenario_UseChecksums_section.md b/code-library/latest/ug/s3_example_s3_Scenario_UseChecksums_section.md index f1a7af4b1..2dfe1b8a6 100644 --- a//code-library/latest/ug/s3_example_s3_Scenario_UseChecksums_section.md +++ b//code-library/latest/ug/s3_example_s3_Scenario_UseChecksums_section.md @@ -65 +65 @@ Specify a checksum algorithm for the `putObject` method when you [build the `Put - public void putObjectWithChecksum() { + public void putObjectWithChecksum(String bucketName, String key) { @@ -78 +78 @@ Verify the checksum for the `getObject` method when you [build the GetObjectRequ - public GetObjectResponse getObjectWithChecksum() { + public GetObjectResponse getObjectWithChecksum(String bucketName, String key) { @@ -91 +91 @@ Pre-calculate a checksum for the `putObject` method when you [build the `PutObje - public void putObjectWithPrecalculatedChecksum(String filePath) { + public void putObjectWithPrecalculatedChecksum(String bucketName, String key, String filePath) { @@ -108 +108 @@ You can specify a checksum algorithm for the SDK to use. By default, the SDK use - public void multipartUploadWithChecksumTm(String filePath) { + public void multipartUploadWithChecksumTm(String bucketName, String key, String filePath) { @@ -127 +127 @@ Use the [S3Client API](https://sdk.amazonaws.com/java/api/latest/software/amazon - public void multipartUploadWithChecksumS3Client(String filePath) { + public void multipartUploadWithChecksumS3Client(String bucketName, String key, String filePath) {