File Coverage

blib/lib/Paws/IAM/VirtualMFADevice.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::VirtualMFADevice;
2 1     1   537 use Moose;
  1     1   3  
  1         7  
  1         503  
  1         2  
  1         6  
3             has Base32StringSeed => (is => 'ro', isa => 'Str');
4             has EnableDate => (is => 'ro', isa => 'Str');
5             has QRCodePNG => (is => 'ro', isa => 'Str');
6             has SerialNumber => (is => 'ro', isa => 'Str', required => 1);
7             has User => (is => 'ro', isa => 'Paws::IAM::User');
8             1;
9              
10             ### main pod documentation begin ###
11              
12             =head1 NAME
13              
14             Paws::IAM::VirtualMFADevice
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::VirtualMFADevice object:
26              
27             $service_obj->Method(Att1 => { Base32StringSeed => $value, ..., User => $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::VirtualMFADevice object:
32              
33             $result = $service_obj->Method(...);
34             $result->Att1->Base32StringSeed
35              
36             =head1 DESCRIPTION
37              
38             Contains information about a virtual MFA device.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 Base32StringSeed => Str
44              
45             The Base32 seed defined as specified in RFC3548. The
46             C<Base32StringSeed> is Base64-encoded.
47              
48              
49             =head2 EnableDate => Str
50              
51             The date and time on which the virtual MFA device was enabled.
52              
53              
54             =head2 QRCodePNG => Str
55              
56             A QR code PNG image that encodes
57             C<otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String>
58             where C<$virtualMFADeviceName> is one of the create call arguments,
59             C<AccountName> is the user name if set (otherwise, the account ID
60             otherwise), and C<Base32String> is the seed in Base32 format. The
61             C<Base32String> value is Base64-encoded.
62              
63              
64             =head2 B<REQUIRED> SerialNumber => Str
65              
66             The serial number associated with C<VirtualMFADevice>.
67              
68              
69             =head2 User => L<Paws::IAM::User>
70              
71             The IAM user associated with this virtual MFA device.
72              
73              
74              
75             =head1 SEE ALSO
76              
77             This class forms part of L<Paws>, describing an object used in L<Paws::IAM>
78              
79             =head1 BUGS and CONTRIBUTIONS
80              
81             The source code is located here: https://github.com/pplu/aws-sdk-perl
82              
83             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
84              
85             =cut
86