IAM/VirtualMFADevice.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« IAM/Users.pm ↑ Summary IAM/VirtualMFADevices.pm »
1 package Net::Amazon::IAM::VirtualMFADevice;
2 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 =head1 NAME
5  
6 Net::Amazon::IAM::VirtualMFADevice
7  
8 =head1 DESCRIPTION
9  
10 Contains information about a virtual MFA device.
11  
12 =head1 ATTRIBUTES
13  
14 =over
15  
16 =item Base32StringSeed (optional)
17  
18 The Base32 seed defined as specified in RFC3548. The Base32StringSeed is Base64-encoded.
19  
20 =item EnableDate (optional)
21  
22 The date and time on which the virtual MFA device was enabled.
23  
24 =item QRCodePNG (optional)
25  
26 A QR code PNG image that encodes
27 otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String
28 where $virtualMFADeviceName is one of the create call arguments,
29 AccountName is the user name if set (otherwise, the account ID otherwise),
30 and Base32String is the seed in Base32 format. The Base32String value is Base64-encoded.
31  
32 =item SerialNumber (required)
33  
34 The serial number associated with VirtualMFADevice.
35  
36 =item User (required)
37  
38 Contains information about an IAM user entity.
39  
40 =back
41  
42 =cut
43  
44 1 has 'Base32StringSeed' => (
45 is => 'ro',
46 isa => 'Str',
47 required => 0,
48 );
49  
50 1 has 'EnableDate' => (
51 is => 'ro',
52 isa => 'Str',
53 required => 0,
54 );
55  
56 1 has 'QRCodePNG' => (
57 is => 'ro',
58 isa => 'Str',
59 required => 0,
60 );
61  
62 1 has 'SerialNumber' => (
63 is => 'ro',
64 isa => 'Str',
65 required => 1,
66 );
67  
68 1 has 'User' => (
69 is => 'ro',
70 isa => 'Maybe[Net::Amazon::IAM::User]',
71 required => 0,
72 );
73  
74 1 __PACKAGE__->meta->make_immutable();
75  
76 =head1 AUTHOR
77  
78 Igor Tsigankov <tsiganenok@gmail.com>
79  
80 =head1 COPYRIGHT
81  
82 Copyright (c) 2015 Igor Tsigankov . This program is free software; you can redistribute it and/or modify it
83 under the same terms as Perl itself.
84  
85 =cut
86  
87 1 ▶no Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
88 1 1;
« IAM/Users.pm ↑ Summary IAM/VirtualMFADevices.pm »