1VM::EC2::Security::FedeUrsaetredCUosnetrr(i3b)uted PerlVDMo:c:uEmCe2n:t:aSteicounrity::FederatedUser(3)
2
3
4

NAME

6       VM::EC2::Security::FederatedUser -- Federated user object
7

SYNOPSIS

9        use VM::EC2;
10        use VM::EC2::Security::Policy;
11
12         # on your side of the connection
13        $ec2 = VM::EC2->new(...);  # as usual
14        my $policy = VM::EC2::Security::Policy->new;
15        $policy->allow('DescribeImages','RunInstances');
16
17        my $token = $ec2->get_federation_token(-name     => 'TemporaryUser',
18                                               -duration => 60*60*3, # 3 hrs, as seconds
19                                               -policy   => $policy);
20
21        my $user = $token->federated_user;
22        print $user->arn,"\n";
23        print $user->federated_user_id,"\n";
24

DESCRIPTION

26       This object forms part of the VM::EC2::Security::Token object, which is
27       created when you need to grant temporary access to some or all of your
28       AWS resources to someone who does not have an AWS account.
29

METHODS

31        arn()   --          Return the Amazon Resource Name unique identifier (ARN)
32                               associated with the temporary user, e.g.
33                               arn:aws:sts::123451234512345:federated-user/fred
34
35        federatedUserId() -- Return the user ID for this temporary user, e.g.
36                               123451234512345:fred
37

STRING OVERLOADING

39       When used in a string context, this object will interpolate as the ARN.
40

SEE ALSO

42       VM::EC2 VM::EC2::Generic
43

AUTHOR

45       Lincoln Stein <lincoln.stein@gmail.com>.
46
47       Copyright (c) 2011 Ontario Institute for Cancer Research
48
49       This package and its accompanying libraries is free software; you can
50       redistribute it and/or modify it under the terms of the GPL (either
51       version 1, or at your option, any later version) or the Artistic
52       License 2.0.  Refer to LICENSE for the full license text. In addition,
53       please see DISCLAIMER.txt for disclaimers of warranty.
54
55
56
57perl v5.32.0                      2020-07-28VM::EC2::Security::FederatedUser(3)
Impressum