Skip to content

Commit 19c2b57

Browse files
committed
Improve names of SoS tags
1 parent 7462dc7 commit 19c2b57

File tree

1 file changed

+11
-13
lines changed
  • swift/example_code/s3/multipart-upload/Sources

1 file changed

+11
-13
lines changed

swift/example_code/s3/multipart-upload/Sources/entry.swift

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
/// An example demonstrating how to perform multi-part uploads to Amazon S3
55
/// using the AWS SDK for Swift.
66

7-
// snippet-start:[swift.s3.multipart-upload-upload.imports]
7+
// snippet-start:[swift.s3.multipart-upload.imports]
88
import ArgumentParser
99
import AsyncHTTPClient
1010
import AWSClientRuntime
1111
import AWSS3
1212
import Foundation
1313
import Smithy
14-
// snippet-end:[swift.s3.multipart-upload-upload.imports]
14+
// snippet-end:[swift.s3.multipart-upload.imports]
1515

1616
// -MARK: - Async command line tool
1717

@@ -113,7 +113,7 @@ struct ExampleCommand: ParsableCommand {
113113
print("Done. Uploaded as \(fileName) in bucket \(bucket).")
114114
}
115115

116-
// snippet-start:[swift.s3.multipart-upload.create]
116+
// snippet-start:[swift.s3.multipart-upload.CreateMultipartUpload]
117117
/// Start a multi-part upload to Amazon S3.
118118
/// - Parameters:
119119
/// - bucket: The name of the bucket to upload into.
@@ -147,9 +147,9 @@ struct ExampleCommand: ParsableCommand {
147147

148148
return uploadID
149149
}
150-
// snippet-end:[swift.s3.multipart-upload.create]
150+
// snippet-end:[swift.s3.multipart-upload.CreateMultipartUpload]
151151

152-
// snippet-start:[swift.s3.multipart-upload.upload-part]
152+
// snippet-start:[swift.s3.multipart-upload.UploadPart]
153153
/// Upload the specified data as part of an Amazon S3 multi-part upload.
154154
///
155155
/// - Parameters:
@@ -160,7 +160,7 @@ struct ExampleCommand: ParsableCommand {
160160
/// - partNumber: The part number within the file that the specified data represents.
161161
/// - data: The data to send as the specified object part number in the object.
162162
///
163-
/// - Throws: `TransferError.signingError`, `TransferError.uploadError`
163+
/// - Throws: `TransferError.uploadError`
164164
///
165165
/// - Returns: A `CompletedPart` object describing the part that was uploaded.
166166
/// contains the part number as well as the ETag returned by Amazon S3.
@@ -186,13 +186,11 @@ struct ExampleCommand: ParsableCommand {
186186
throw TransferError.uploadError(error.localizedDescription)
187187
}
188188
}
189-
// snippet-end:[swift.s3.multipart-upload.upload-part]
189+
// snippet-end:[swift.s3.multipart-upload.UploadPart]
190190

191-
// snippet-start:[swift.s3.multipart-upload.upload-complete]
192-
/// Complete a multi-part upload by creating a `CompletedMultipartUpload`
193-
/// with the array of completed part descriptions. This is used as the
194-
/// value of the `multipartUpload` property when calling
195-
/// `completeMultipartUpload(input:)`.
191+
// snippet-start:[swift.s3.multipart-upload.CompleteMultipartUpload]
192+
/// Complete a multi-part upload using an array of `CompletedMultipartUpload`
193+
/// objects describing the completed parts.
196194
///
197195
/// - Parameters:
198196
/// - client: The S3Client to finish uploading with.
@@ -219,7 +217,7 @@ struct ExampleCommand: ParsableCommand {
219217
throw TransferError.multipartFinishError(error.localizedDescription)
220218
}
221219
}
222-
// snippet-end:[swift.s3.multipart-upload.upload-complete]
220+
// snippet-end:[swift.s3.multipart-upload.CompleteMultipartUpload]
223221

224222
// -MARK: - File access
225223

0 commit comments

Comments
 (0)