File Coverage

blib/lib/Paws/IAM/Role.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Paws::IAM::Role;
2 1     1   630 use Moose;
  1     1   3  
  1         8  
  1         709  
  1         2  
  1         10  
3             has Arn => (is => 'ro', isa => 'Str', required => 1);
4             has AssumeRolePolicyDocument => (is => 'ro', isa => 'Str', decode_as => 'URLJSON', method => 'Policy', traits => ['JSONAttribute']);
5             has CreateDate => (is => 'ro', isa => 'Str', required => 1);
6             has Description => (is => 'ro', isa => 'Str');
7             has Path => (is => 'ro', isa => 'Str', required => 1);
8             has RoleId => (is => 'ro', isa => 'Str', required => 1);
9             has RoleName => (is => 'ro', isa => 'Str', required => 1);
10             1;
11              
12             ### main pod documentation begin ###
13              
14             =head1 NAME
15              
16             Paws::IAM::Role
17              
18             =head1 USAGE
19              
20             This class represents one of two things:
21              
22             =head3 Arguments in a call to a service
23              
24             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
25             Each attribute should be used as a named argument in the calls that expect this type of object.
26              
27             As an example, if Att1 is expected to be a Paws::IAM::Role object:
28              
29             $service_obj->Method(Att1 => { Arn => $value, ..., RoleName => $value });
30              
31             =head3 Results returned from an API call
32              
33             Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::Role object:
34              
35             $result = $service_obj->Method(...);
36             $result->Att1->Arn
37              
38             =head1 DESCRIPTION
39              
40             Contains information about an IAM role. This structure is returned as a
41             response element in several APIs that interact with roles.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 B<REQUIRED> Arn => Str
47              
48             The Amazon Resource Name (ARN) specifying the role. For more
49             information about ARNs and how to use them in policies, see IAM
50             Identifiers in the I<IAM User Guide> guide.
51              
52              
53             =head2 AssumeRolePolicyDocument => Str
54              
55             The policy that grants an entity permission to assume the role.
56              
57              
58             =head2 B<REQUIRED> CreateDate => Str
59              
60             The date and time, in ISO 8601 date-time format, when the role was
61             created.
62              
63              
64             =head2 Description => Str
65              
66             A description of the role that you provide.
67              
68              
69             =head2 B<REQUIRED> Path => Str
70              
71             The path to the role. For more information about paths, see IAM
72             Identifiers in the I<Using IAM> guide.
73              
74              
75             =head2 B<REQUIRED> RoleId => Str
76              
77             The stable and unique string identifying the role. For more information
78             about IDs, see IAM Identifiers in the I<Using IAM> guide.
79              
80              
81             =head2 B<REQUIRED> RoleName => Str
82              
83             The friendly name that identifies the role.
84              
85              
86              
87             =head1 SEE ALSO
88              
89             This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
90              
91             =head1 BUGS and CONTRIBUTIONS
92              
93             The source code is located here: https://github.com/pplu/aws-sdk-perl
94              
95             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
96              
97             =cut
98