blib/lib/Paws/IAM/RoleLastUsed.pm

filter: Statementstmt 100% 6 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 7 / 7 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/IAM/Role.pm ↑ Summary blib/lib/Paws/IAM/ServerCertificateMetadata.pm »
1 # Generated by default/object.tt
2 package Paws::IAM::RoleLastUsed;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has LastUsedDate => (is => 'ro', isa => 'Str');
5 1 has Region => (is => 'ro', isa => 'Str');
6  
7 1 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::IAM::RoleLastUsed
14  
15 =head1 USAGE
16  
17 This class represents one of two things:
18  
19 =head3 Arguments in a call to a service
20  
21 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22 Each attribute should be used as a named argument in the calls that expect this type of object.
23  
24 As an example, if Att1 is expected to be a Paws::IAM::RoleLastUsed object:
25  
26 $service_obj->Method(Att1 => { LastUsedDate => $value, ..., Region => $value });
27  
28 =head3 Results returned from an API call
29  
30 Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::RoleLastUsed object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->LastUsedDate
34  
35 =head1 DESCRIPTION
36  
37 Contains information about the last time that an IAM role was used.
38 This includes the date and time and the Region in which the role was
39 last used. Activity is only reported for the trailing 400 days. This
40 period can be shorter if your Region began supporting these features
41 within the last year. The role might have been used more than 400 days
42 ago. For more information, see Regions where data is tracked
43 (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period)
44 in the I<IAM User Guide>.
45  
46 This data type is returned as a response element in the GetRole and
47 GetAccountAuthorizationDetails operations.
48  
49 =head1 ATTRIBUTES
50  
51  
52 =head2 LastUsedDate => Str
53  
54 The date and time, in ISO 8601 date-time format
55 (http://www.iso.org/iso/iso8601) that the role was last used.
56  
57 This field is null if the role has not been used within the IAM
58 tracking period. For more information about the tracking period, see
59 Regions where data is tracked
60 (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_access-advisor.html#access-advisor_tracking-period)
61 in the I<IAM User Guide>.
62  
63  
64 =head2 Region => Str
65  
66 The name of the AWS Region in which the role was last used.
67  
68  
69  
70 =head1 SEE ALSO
71  
72 This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
73  
74 =head1 BUGS and CONTRIBUTIONS
75  
76 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
77  
78 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
79  
80 =cut
81  
« blib/lib/Paws/IAM/Role.pm ↑ Summary blib/lib/Paws/IAM/ServerCertificateMetadata.pm »