Skip to content

Commit

Permalink
Add another set of SoS tags to Swift example (awsdocs#7064)
Browse files Browse the repository at this point in the history
Add another set of SoS tags
  • Loading branch information
shepazon authored Nov 14, 2024
1 parent d1e71f3 commit c49f896
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions swift/example_code/s3/presigned-urls/Sources/entry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ struct ExampleCommand: ParsableCommand {

// Create a presigned URLRequest with the `GetObject` action.

// snippet-start:[swift.s3.presigned.getobject]
let getInput = GetObjectInput(
bucket: bucket,
key: key
Expand All @@ -392,6 +393,7 @@ struct ExampleCommand: ParsableCommand {
} catch {
throw TransferError.signingError
}
// snippet-end:[swift.s3.presigned.getobject]

// Use the presigned request to fetch the file from Amazon S3 and
// store it at the location given by the `destPath` parameter.
Expand Down

0 comments on commit c49f896

Please sign in to comment.