File Coverage

blib/lib/Paws/IAM/AccessKey.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::IAM::AccessKey;
2 1     1   303 use Moose;
  1         3  
  1         5  
3             has AccessKeyId => (is => 'ro', isa => 'Str', required => 1);
4             has CreateDate => (is => 'ro', isa => 'Str');
5             has SecretAccessKey => (is => 'ro', isa => 'Str', required => 1);
6             has Status => (is => 'ro', isa => 'Str', required => 1);
7             has UserName => (is => 'ro', isa => 'Str', required => 1);
8             1;
9              
10             ### main pod documentation begin ###
11              
12             =head1 NAME
13              
14             Paws::IAM::AccessKey
15              
16             =head1 USAGE
17              
18             This class represents one of two things:
19              
20             =head3 Arguments in a call to a service
21              
22             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23             Each attribute should be used as a named argument in the calls that expect this type of object.
24              
25             As an example, if Att1 is expected to be a Paws::IAM::AccessKey object:
26              
27             $service_obj->Method(Att1 => { AccessKeyId => $value, ..., UserName => $value });
28              
29             =head3 Results returned from an API call
30              
31             Use accessors for each attribute. If Att1 is expected to be an Paws::IAM::AccessKey object:
32              
33             $result = $service_obj->Method(...);
34             $result->Att1->AccessKeyId
35              
36             =head1 DESCRIPTION
37              
38             Contains information about an AWS access key.
39              
40             This data type is used as a response element in the CreateAccessKey and
41             ListAccessKeys actions.
42              
43             The C<SecretAccessKey> value is returned only in response to
44             CreateAccessKey. You can get a secret access key only when you first
45             create an access key; you cannot recover the secret access key later.
46             If you lose a secret access key, you must create a new access key.
47              
48             =head1 ATTRIBUTES
49              
50              
51             =head2 B<REQUIRED> AccessKeyId => Str
52              
53             The ID for this access key.
54              
55              
56             =head2 CreateDate => Str
57              
58             The date when the access key was created.
59              
60              
61             =head2 B<REQUIRED> SecretAccessKey => Str
62              
63             The secret key used to sign requests.
64              
65              
66             =head2 B<REQUIRED> Status => Str
67              
68             The status of the access key. C<Active> means the key is valid for API
69             calls, while C<Inactive> means it is not.
70              
71              
72             =head2 B<REQUIRED> UserName => Str
73              
74             The name of the IAM user that the access key is associated with.
75              
76              
77              
78             =head1 SEE ALSO
79              
80             This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
81              
82             =head1 BUGS and CONTRIBUTIONS
83              
84             The source code is located here: https://github.com/pplu/aws-sdk-perl
85              
86             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
87              
88             =cut
89