@@ -237,21 +237,32 @@ func (m *contentSHA256Header) HandleFinalize(
237
237
return next .HandleFinalize (ctx , in )
238
238
}
239
239
240
- // SignHTTPRequestMiddlewareOptions is the configuration options for the SignHTTPRequestMiddleware middleware.
240
+ // SignHTTPRequestMiddlewareOptions is the configuration options for
241
+ // [SignHTTPRequestMiddleware].
242
+ //
243
+ // Deprecated: [SignHTTPRequestMiddleware] is deprecated.
241
244
type SignHTTPRequestMiddlewareOptions struct {
242
245
CredentialsProvider aws.CredentialsProvider
243
246
Signer HTTPSigner
244
247
LogSigning bool
245
248
}
246
249
247
- // SignHTTPRequestMiddleware is a `FinalizeMiddleware` implementation for SigV4 HTTP Signing
250
+ // SignHTTPRequestMiddleware is a `FinalizeMiddleware` implementation for SigV4
251
+ // HTTP Signing.
252
+ //
253
+ // Deprecated: AWS service clients no longer use this middleware. Signing as an
254
+ // SDK operation is now performed through an internal per-service middleware
255
+ // which opaquely selects and uses the signer from the resolved auth scheme.
248
256
type SignHTTPRequestMiddleware struct {
249
257
credentialsProvider aws.CredentialsProvider
250
258
signer HTTPSigner
251
259
logSigning bool
252
260
}
253
261
254
- // NewSignHTTPRequestMiddleware constructs a SignHTTPRequestMiddleware using the given Signer for signing requests
262
+ // NewSignHTTPRequestMiddleware constructs a [SignHTTPRequestMiddleware] using
263
+ // the given [Signer] for signing requests.
264
+ //
265
+ // Deprecated: SignHTTPRequestMiddleware is deprecated.
255
266
func NewSignHTTPRequestMiddleware (options SignHTTPRequestMiddlewareOptions ) * SignHTTPRequestMiddleware {
256
267
return & SignHTTPRequestMiddleware {
257
268
credentialsProvider : options .CredentialsProvider ,
@@ -260,12 +271,17 @@ func NewSignHTTPRequestMiddleware(options SignHTTPRequestMiddlewareOptions) *Sig
260
271
}
261
272
}
262
273
263
- // ID is the SignHTTPRequestMiddleware identifier
274
+ // ID is the SignHTTPRequestMiddleware identifier.
275
+ //
276
+ // Deprecated: SignHTTPRequestMiddleware is deprecated.
264
277
func (s * SignHTTPRequestMiddleware ) ID () string {
265
278
return "Signing"
266
279
}
267
280
268
- // HandleFinalize will take the provided input and sign the request using the SigV4 authentication scheme
281
+ // HandleFinalize will take the provided input and sign the request using the
282
+ // SigV4 authentication scheme.
283
+ //
284
+ // Deprecated: SignHTTPRequestMiddleware is deprecated.
269
285
func (s * SignHTTPRequestMiddleware ) HandleFinalize (ctx context.Context , in middleware.FinalizeInput , next middleware.FinalizeHandler ) (
270
286
out middleware.FinalizeOutput , metadata middleware.Metadata , err error ,
271
287
) {
0 commit comments