From a66304642667049b723f37d814fd547d8852d031 Mon Sep 17 00:00:00 2001 From: Luc Talatinian <102624213+lucix-aws@users.noreply.github.com> Date: Mon, 4 Mar 2024 19:50:14 -0500 Subject: [PATCH] Restore 'AddAsIsPresigingMiddleware' (sic) for backwards compatibility (#2530) --- .changelog/2eb350eef6ec4e1fa0369acca133e260.json | 8 ++++++++ service/internal/presigned-url/context.go | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 .changelog/2eb350eef6ec4e1fa0369acca133e260.json diff --git a/.changelog/2eb350eef6ec4e1fa0369acca133e260.json b/.changelog/2eb350eef6ec4e1fa0369acca133e260.json new file mode 100644 index 00000000000..156072d941e --- /dev/null +++ b/.changelog/2eb350eef6ec4e1fa0369acca133e260.json @@ -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" + ] +} diff --git a/service/internal/presigned-url/context.go b/service/internal/presigned-url/context.go index b70c1e25a81..5d5286f92cc 100644 --- a/service/internal/presigned-url/context.go +++ b/service/internal/presigned-url/context.go @@ -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" }