Skip to content

Commit aee887d

Browse files
committed
Implementing reviewer suggestions.
1 parent c284ae1 commit aee887d

File tree

6 files changed

+12
-16
lines changed

6 files changed

+12
-16
lines changed

dotnetv3/S3/AbortMPUExample/AbortMPUExample/AbortMPU.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static async Task Main()
2121
string bucketName = "doc-example-bucket";
2222

2323
// If the AWS Region defined for your default user is different
24-
// from the Regsion where your Amazon S3 bucket is located,
24+
// from the Region where your Amazon S3 bucket is located,
2525
// pass the Region name to the S3 client object's constructor.
2626
// For example: RegionEndpoint.USWest2.
2727
IAmazonS3 client = new AmazonS3Client();
@@ -30,19 +30,19 @@ public static async Task Main()
3030
}
3131

3232
/// <summary>
33-
/// Aborts the multi-part copy process.
33+
/// Cancels the multi-part copy process.
3434
/// </summary>
3535
/// <param name="client">The initialized client object used to create
3636
/// the TransferUtility object.</param>
37-
/// <param name="bucketName">The name of the multi-part copy operation
38-
/// that is in progress.</param>
37+
/// <param name="bucketName">The name of the S3 bucket where the
38+
/// multi-part copy operation is in progress.</param>
3939
public static async Task AbortMPUAsync(IAmazonS3 client, string bucketName)
4040
{
4141
try
4242
{
4343
var transferUtility = new TransferUtility(client);
4444

45-
// Abort all in-progress uploads initiated before the specified date.
45+
// Cancel all in-progress uploads initiated before the specified date.
4646
await transferUtility.AbortMultipartUploadsAsync(
4747
bucketName, DateTime.Now.AddDays(-7));
4848
}

dotnetv3/S3/SSECLowLevelMPUcopyObjectExample/SSECLowLevelMPUcopyObjectExample/SSECLowLevelMPUcopyObject.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static async Task Main()
2626
string filePath = $"sample\\{targetKeyName}";
2727

2828
// If the AWS Region defined for your default user is different
29-
// from the Regsion where your Amazon S3 bucket is located,
29+
// from the Region where your Amazon S3 bucket is located,
3030
// pass the Region name to the S3 client object's constructor.
3131
// For example: RegionEndpoint.USWest2.
3232
IAmazonS3 client = new AmazonS3Client();
@@ -42,8 +42,8 @@ await CreateSampleObjUsingClientEncryptionKeyAsync(
4242
/// <summary>
4343
/// Creates the encryption key to use with the multi-part upload.
4444
/// </summary>
45-
/// <returns>A string containing the base64 key for encrypting the
46-
/// multi-part upload.</returns>
45+
/// <returns>A string containing the base64-encoded key for encrypting
46+
/// the multi-part upload.</returns>
4747
public static string CreateEncryptionKey()
4848
{
4949
Aes aesEncryption = Aes.Create();

dotnetv3/S3/SSEClientEncryptionExample/SSEClientEncryptionExample/SSEClientEncryption.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static async Task Main()
2424
string copyTargetKeyName = "examplecopy.txt";
2525

2626
// If the AWS Region defined for your default user is different
27-
// from the Regsion where your Amazon S3 bucket is located,
27+
// from the Region where your Amazon S3 bucket is located,
2828
// pass the Region name to the S3 client object's constructor.
2929
// For example: RegionEndpoint.USWest2.
3030
IAmazonS3 client = new AmazonS3Client();
@@ -135,9 +135,6 @@ public static async Task DownloadObjectAsync(
135135
{
136136
Console.WriteLine("Error...Object encryption method is not the same as AES256 we set");
137137
}
138-
139-
// Assert.AreEqual(putObjectRequest.ContentBody, content);
140-
// Assert.AreEqual(ServerSideEncryptionCustomerMethod.AES256, getResponse.ServerSideEncryptionCustomerMethod);
141138
}
142139
}
143140

@@ -170,7 +167,6 @@ public static async Task GetObjectMetadataAsync(
170167

171168
GetObjectMetadataResponse getObjectMetadataResponse = await client.GetObjectMetadataAsync(getObjectMetadataRequest);
172169
Console.WriteLine("The object metadata show encryption method used is: {0}", getObjectMetadataResponse.ServerSideEncryptionCustomerMethod);
173-
// Assert.AreEqual(ServerSideEncryptionCustomerMethod.AES256, getObjectMetadataResponse.ServerSideEncryptionCustomerMethod);
174170
}
175171

176172
/// <summary>

dotnetv3/S3/ServerAccessLoggingExample/ServerAccessLoggingExample/ServerAccessLogging.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static async Task Main()
2626
string logObjectKeyPrefix = "Logs";
2727

2828
// If the AWS Region defined for your default user is different
29-
// from the Regsion where your Amazon S3 bucket is located,
29+
// from the Region where your Amazon S3 bucket is located,
3030
// pass the Region name to the S3 client object's constructor.
3131
// For example: RegionEndpoint.USWest2 or RegionEndpoint.USEast2.
3232
IAmazonS3 client = new AmazonS3Client();

dotnetv3/S3/ServerSideEncryptionExample/ServerSideEncryptionExample/ServerSideEncryption.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static async Task Main()
2222
string keyName = "samplefile.txt";
2323

2424
// If the AWS Region defined for your default user is different
25-
// from the Regsion where your Amazon S3 bucket is located,
25+
// from the Region where your Amazon S3 bucket is located,
2626
// pass the Region name to the S3 client object's constructor.
2727
// For example: RegionEndpoint.USWest2.
2828
IAmazonS3 client = new AmazonS3Client();

dotnetv3/S3/UploadUsingPresignedURLExample/UploadUsingPresignedURLExample/UploadUsingPresignedURL.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static void Main()
2929
double timeoutDuration = 12;
3030

3131
// If the AWS Region defined for your default user is different
32-
// from the Regsion where your Amazon S3 bucket is located,
32+
// from the Region where your Amazon S3 bucket is located,
3333
// pass the Region name to the S3 client object's constructor.
3434
// For example: RegionEndpoint.USWest2.
3535
IAmazonS3 client = new AmazonS3Client();

0 commit comments

Comments
 (0)