| 1 | package Net::Amazon::IAM::Role; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | Net::Amazon::IAM::Role | ||
| 7 | |||
| 8 | =head1 DESCRIPTION | ||
| 9 | |||
| 10 | A class representing a IAM role. | ||
| 11 | |||
| 12 | =head1 ATTRIBUTES | ||
| 13 | |||
| 14 | =over | ||
| 15 | |||
| 16 | =item Arn (required) | ||
| 17 | |||
| 18 | The Amazon Resource Name (ARN) specifying the role. | ||
| 19 | |||
| 20 | =item AssumeRolePolicyDocument (optional) | ||
| 21 | |||
| 22 | The policy that grants an entity permission to assume the role | ||
| 23 | Will be decoded to Hash from json. | ||
| 24 | |||
| 25 | =item CreateDate (required) | ||
| 26 | |||
| 27 | The date and time, in ISO 8601 date-time format, when the role was created. | ||
| 28 | |||
| 29 | =item RoleId (required) | ||
| 30 | |||
| 31 | The stable and unique string identifying the role. | ||
| 32 | |||
| 33 | =item RoleName (required) | ||
| 34 | |||
| 35 | The friendly name that identifies the role. | ||
| 36 | |||
| 37 | =item Path (required) | ||
| 38 | |||
| 39 | The path to the role. | ||
| 40 | |||
| 41 | =back | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 1 | has 'Arn' => ( | |
| 46 | is => 'ro', | ||
| 47 | isa => 'Str', | ||
| 48 | required => 1, | ||
| 49 | ); | ||
| 50 | |||
| 51 | 1 | has 'AssumeRolePolicyDocument' => ( | |
| 52 | is => 'ro', | ||
| 53 | isa => 'Str', | ||
| 54 | required => 0, | ||
| 55 | ); | ||
| 56 | |||
| 57 | 1 | has 'CreateDate' => ( | |
| 58 | is => 'ro', | ||
| 59 | isa => 'Str', | ||
| 60 | required => 1, | ||
| 61 | ); | ||
| 62 | |||
| 63 | 1 | has 'RoleId' => ( | |
| 64 | is => 'ro', | ||
| 65 | isa => 'Str', | ||
| 66 | required => 1, | ||
| 67 | ); | ||
| 68 | |||
| 69 | 1 | has 'RoleName' => ( | |
| 70 | is => 'ro', | ||
| 71 | isa => 'Str', | ||
| 72 | required => 1, | ||
| 73 | ); | ||
| 74 | |||
| 75 | 1 | has 'Path' => ( | |
| 76 | is => 'ro', | ||
| 77 | isa => 'Str', | ||
| 78 | required => 1, | ||
| 79 | ); | ||
| 80 | |||
| 81 | 1 | __PACKAGE__->meta->make_immutable(); | |
| 82 | |||
| 83 | =head1 AUTHOR | ||
| 84 | |||
| 85 | Igor Tsigankov <tsiganenok@gmail.com> | ||
| 86 | |||
| 87 | =head1 COPYRIGHT | ||
| 88 | |||
| 89 | Copyright (c) 2015 Igor Tsigankov . This program is free software; you can redistribute it and/or modify it | ||
| 90 | under the same terms as Perl itself. | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | 1 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 95 | 1 | 1; | |