VM::EC...edUser(3pm)
π 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/fredfederatedUserId()β 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::EC2VM::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. readLICENSE, readDISCLAIMER.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
- debian trixie: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu resolute: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- ubuntu stonking: libvm-ec2-perl 1.28-5 Β· Artistic-2.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms