File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
swift/example_code/s3-transfer-manager/upload-file/Sources Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,10 @@ import SmithyStreams
1919// snippet-end:[swift.s3tm.upload.imports]
2020
2121class Example {
22- let region : String
2322 let filePath : String
2423 let bucketName : String
2524
26- init ( region: String , path: String , bucket: String ) {
27- self . region = region
25+ init ( path: String , bucket: String ) {
2826 self . filePath = path
2927 self . bucketName = bucket
3028 }
Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ import ArgumentParser
55import Foundation
66
77struct ExampleCommand : ParsableCommand {
8- @Option ( help: " AWS Region name " )
9- var region = " us-east-1 "
108 @Argument ( help: " Path of the file to write to Amazon S3 " )
119 var filePath : String
1210 @Argument ( help: " Name of the Amazon S3 bucket to upload the file to " )
@@ -24,7 +22,7 @@ struct ExampleCommand: ParsableCommand {
2422 /// Called by ``main()`` to do the actual running of the AWS
2523 /// example.
2624 func runAsync( ) async throws {
27- let example = Example ( region : region , path: filePath, bucket: bucketName)
25+ let example = Example ( path: filePath, bucket: bucketName)
2826
2927 try await example. run ( )
3028 }
You can’t perform that action at this time.
0 commit comments