Skip to content

Commit

Permalink
Restore 'AddAsIsPresigingMiddleware' (sic) for backwards compatibility (
Browse files Browse the repository at this point in the history
  • Loading branch information
lucix-aws authored Mar 5, 2024
1 parent ec41b9f commit a663046
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .changelog/2eb350eef6ec4e1fa0369acca133e260.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "2eb350ee-f6ec-4e1f-a036-9acca133e260",
"type": "bugfix",
"description": "Restore typo'd API `AddAsIsInternalPresigingMiddleware` as an alias for backwards compatibility.",
"modules": [
"service/internal/presigned-url"
]
}
8 changes: 8 additions & 0 deletions service/internal/presigned-url/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ func AddAsIsPresigningMiddleware(stack *middleware.Stack) error {
return stack.Initialize.Add(asIsPresigningMiddleware{}, middleware.Before)
}

// AddAsIsPresigingMiddleware is an alias for backwards compatibility.
//
// Deprecated: This API was released with a typo. Use
// [AddAsIsPresigningMiddleware] instead.
func AddAsIsPresigingMiddleware(stack *middleware.Stack) error {
return AddAsIsPresigningMiddleware(stack)
}

type asIsPresigningMiddleware struct{}

func (asIsPresigningMiddleware) ID() string { return "AsIsPresigningMiddleware" }
Expand Down

0 comments on commit a663046

Please sign in to comment.