VM::EC...edUser(3pm)

πŸ“¦
version 1.28 Β· 7 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– VM::EC2::Security::FederatedUser β€” the federated user object bestie πŸ’–

okay so real quick, this page is from the User Contributed Perl Documentation collection, and it's giving temporary-access realness. sit down, hydrate, let's go 🫢


✨ NAME ✨

VM::EC2::Security::FederatedUser β€” it's a Federated user object. that's it, that's the name, she's simple and she knows it πŸ’…


🌸 SYNOPSIS 🌸

here's the whole vibe in code, no notes:

 use VM::EC2;
 use VM::EC2::Security::Policy;

  # on your side of the connection
 $ec2 = VM::EC2->new(...);  # as usual
 my $policy = VM::EC2::Security::Policy->new;
 $policy->allow('DescribeImages','RunInstances');

 my $token = $ec2->get_federation_token(-name     => 'TemporaryUser',
                                        -duration => 60*60*3, # 3 hrs, as seconds
                                        -policy   => $policy);

 my $user = $token->federated_user;
 print $user->arn,"\n";
 print $user->federated_user_id,"\n";

like. she's handing out temporary keys to the kingdom and printing the receipts. iconic behavior honestly πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so this object is literally a piece of the VM::EC2::Security::Token object. and what's the Token for? it gets created when you wanna grant temporary access to some or all of your AWS resources to a person who does not have an AWS account. yeah. no account, no problem, we're just vibing them in the door temporarily ✨


πŸŽ€ METHODS πŸŽ€

  • arn() β€” returns the Amazon Resource Name unique identifier (ARN) that's associated with the temporary user. example vibe: arn:aws:sts::123451234512345:federated-user/fred
  • federatedUserId() β€” returns the user ID for this temporary user. example vibe: 123451234512345:fred

two methods. both slay. both return strings. periodt πŸ’œ


🌈 STRING OVERLOADING 🌈

when you use this object in a string context, it will interpolate as the ARN. so like, just drop it in a string and she shows up as the ARN. no extra steps, no ->arn needed, she's got main character energy like that πŸ’…βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘

  • VM::EC2
  • VM::EC2::Generic

go read those too, they're the family, iykyk 🫢


πŸ’– AUTHOR πŸ’–

Lincoln Stein <lincoln.stein@gmail.com> β€” absolute legend, we stan 🌟

Copyright (c) 2011 Ontario Institute for Cancer Research

This package and its accompanying libraries is free software; you can redistribute it and/or modify it under the terms of the GPL (either version 1, or at your option, any later version) or the Artistic License 2.0. Refer to LICENSE for the full license text. In addition, please see DISCLAIMER.txt for disclaimers of warranty.

not me making you read the license section but like. bestie. legal stuff matters and also it's literally required. read LICENSE, read DISCLAIMER.txt, protect yourself πŸ’€πŸ’–

aaaaand that's the whole page!! this one came from perl v5.38.2, dated 2024-08-10, and it lives in the User Contributed Perl Documentation collection. bye bestie, go federate responsibly πŸŒΈπŸ¦‹βœ¨

πŸ“¦ where this page comes from