blib/lib/Paws/STS/GetCallerIdentity.pm untested

filter: Statementstmt 0.0% 0 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 11 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::STS::GetCallerIdentity;
3 use Moose;
4  
5 use MooseX::ClassAttribute;
6  
7 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetCallerIdentity');
8 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::STS::GetCallerIdentityResponse');
9 class_has _result_key => (isa => 'Str', is => 'ro', default => 'GetCallerIdentityResult');
10 1;
11  
12 ### main pod documentation begin ###
13  
14 =head1 NAME
15  
16 Paws::STS::GetCallerIdentity - Arguments for method GetCallerIdentity on L<Paws::STS>
17  
18 =head1 DESCRIPTION
19  
20 This class represents the parameters used for calling the method GetCallerIdentity on the
21 L<AWS Security Token Service|Paws::STS> service. Use the attributes of this class
22 as arguments to method GetCallerIdentity.
23  
24 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetCallerIdentity.
25  
26 =head1 SYNOPSIS
27  
28 my $sts = Paws->service('STS');
29 # To get details about a calling IAM user
30 # This example shows a request and response made with the credentials for a user
31 # named Alice in the AWS account 123456789012.
32 my $GetCallerIdentityResponse = $sts->GetCallerIdentity();
33  
34 # Results:
35 my $Account = $GetCallerIdentityResponse->Account;
36 my $Arn = $GetCallerIdentityResponse->Arn;
37 my $UserId = $GetCallerIdentityResponse->UserId;
38  
39 # Returns a L<Paws::STS::GetCallerIdentityResponse> object.
40 # To get details about a calling user federated with AssumeRole
41 # This example shows a request and response made with temporary credentials
42 # created by AssumeRole. The name of the assumed role is my-role-name, and the
43 # RoleSessionName is set to my-role-session-name.
44 my $GetCallerIdentityResponse = $sts->GetCallerIdentity();
45  
46 # Results:
47 my $Account = $GetCallerIdentityResponse->Account;
48 my $Arn = $GetCallerIdentityResponse->Arn;
49 my $UserId = $GetCallerIdentityResponse->UserId;
50  
51 # Returns a L<Paws::STS::GetCallerIdentityResponse> object.
52 # To get details about a calling user federated with GetFederationToken
53 # This example shows a request and response made with temporary credentials
54 # created by using GetFederationToken. The Name parameter is set to
55 # my-federated-user-name.
56 my $GetCallerIdentityResponse = $sts->GetCallerIdentity();
57  
58 # Results:
59 my $Account = $GetCallerIdentityResponse->Account;
60 my $Arn = $GetCallerIdentityResponse->Arn;
61 my $UserId = $GetCallerIdentityResponse->UserId;
62  
63 # Returns a L<Paws::STS::GetCallerIdentityResponse> object.
64  
65 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
66 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sts/GetCallerIdentity>
67  
68 =head1 ATTRIBUTES
69  
70  
71  
72 =head1 SEE ALSO
73  
74 This class forms part of L<Paws>, documenting arguments for method GetCallerIdentity in L<Paws::STS>
75  
76 =head1 BUGS and CONTRIBUTIONS
77  
78 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
79  
80 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
81  
82 =cut
83