Net::A...nature(3pm)

✨ NAME ✨

So bestie, gather round πŸ’– β€” this is Net::Amazon::S3::Signature, and it's literally the S3 Signature implementation base class. That's the whole vibe. It's the blueprint that other signature classes get built on, no cap.


🌸 VERSION 🌸

This is version 0.992 β€” iconic behavior, periodt.


πŸ‘‘ METHODS πŸ‘‘

πŸ’… new

The signature class is supposed to accept an HTTPRequest instance and figure out every single required parameter straight from that instance. Like, it doesn't go hunting around elsewhere β€” the request itself is giving everything it needs. Main character energy fr fr.

πŸ¦‹ sign_request( $request )

The signature class should hand you back an authenticated request, based on the parameter you gave it.

Heads up bestie: the parameter can be modified. So don't clutch your original too hard, okay? πŸ™ˆ

πŸŽ€ sign_uri( $request, $expires_at?, $method? )

Same idea, different flavor β€” this one returns an authenticated URI based on the request you pass in. πŸ’–

Now for the deets:

  • $expires_at β€” this is the expiration time, and it's in seconds (epoch). The default value and the maximal allowed value may depend on which signature version you're working with. So like, don't assume, iykyk. 🌈
  • Default request date is the current time. But the signature class should accept a provided X-Amz-Date header instead β€” that's if you're signing a request β€” or a X-Amz-Date query parameter instead, if you're signing a uri. The way it switches up depending on the context? Obsessed. ⭐

🌟 AUTHOR 🌟

Branislav ZahradnΓ­k <barney@cpan.org> β€” put some respect on the name 🫢


This software is copyright (c) 2025 by Amazon Digital Services, Leon Brocard, Brad Fitzpatrick, Pedro Figueiredo, Rusty Conover, Branislav ZahradnΓ­k. A whole squad, honestly. πŸ‘‘

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Slay. πŸ’…


And that's the tea, bestie πŸ“ β€” this page came to you from perl v5.40.1, dated 2025-12-07, part of the User Contributed Perl Documentation collection. Go forth and sign those requests, you absolute icon. 🧚✨

πŸ“¦ where this page comes from