| 1 | package Net::Amazon::IAM::User; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | =head1 NAME | ||
| 5 | |||
| 6 | Net::Amazon::IAM::User | ||
| 7 | |||
| 8 | =head1 DESCRIPTION | ||
| 9 | |||
| 10 | A class representing a IAM User | ||
| 11 | |||
| 12 | =head1 ATTRIBUTES | ||
| 13 | |||
| 14 | =over | ||
| 15 | |||
| 16 | =item Arn (optional) | ||
| 17 | |||
| 18 | The Amazon Resource Name (ARN) that identifies the user. | ||
| 19 | See http://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html | ||
| 20 | |||
| 21 | =item CreateDate (optional) | ||
| 22 | |||
| 23 | User creation date and time | ||
| 24 | |||
| 25 | =item PasswordLastUsed (optional) | ||
| 26 | |||
| 27 | When user last time used his password (if used). | ||
| 28 | |||
| 29 | =item Path (optional) | ||
| 30 | |||
| 31 | Where User was placed. | ||
| 32 | |||
| 33 | =item UserId (optional) | ||
| 34 | |||
| 35 | IAM user ID. | ||
| 36 | |||
| 37 | =item UserName (required) | ||
| 38 | |||
| 39 | Just a user name. | ||
| 40 | |||
| 41 | =back | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | 1 | has 'Arn' => ( | |
| 46 | is => 'ro', | ||
| 47 | isa => 'Str', | ||
| 48 | required => 0, | ||
| 49 | ); | ||
| 50 | |||
| 51 | 1 | has 'CreateDate' => ( | |
| 52 | is => 'ro', | ||
| 53 | isa => 'Str', | ||
| 54 | required => 0, | ||
| 55 | ); | ||
| 56 | |||
| 57 | 1 | has 'PasswordLastUsed' => ( | |
| 58 | is => 'ro', | ||
| 59 | isa => 'Maybe[Str]', | ||
| 60 | required => 0, | ||
| 61 | ); | ||
| 62 | |||
| 63 | 1 | has 'Path' => ( | |
| 64 | is => 'ro', | ||
| 65 | isa => 'Str', | ||
| 66 | required => 0, | ||
| 67 | ); | ||
| 68 | |||
| 69 | 1 | has 'UserId' => ( | |
| 70 | is => 'ro', | ||
| 71 | isa => 'Str', | ||
| 72 | required => 0, | ||
| 73 | ); | ||
| 74 | |||
| 75 | 1 | has 'UserName' => ( | |
| 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; | |