File Coverage

blib/lib/Paws/IAM/EnableMFADevice.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              
2             package Paws::IAM::EnableMFADevice;
3 1     1   643 use Moose;
  1         3  
  1         10  
4             has AuthenticationCode1 => (is => 'ro', isa => 'Str', required => 1);
5             has AuthenticationCode2 => (is => 'ro', isa => 'Str', required => 1);
6             has SerialNumber => (is => 'ro', isa => 'Str', required => 1);
7             has UserName => (is => 'ro', isa => 'Str', required => 1);
8              
9 1     1   6882 use MooseX::ClassAttribute;
  1         3  
  1         12  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'EnableMFADevice');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::IAM::EnableMFADevice - Arguments for method EnableMFADevice on Paws::IAM
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method EnableMFADevice on the
25             AWS Identity and Access Management service. Use the attributes of this class
26             as arguments to method EnableMFADevice.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to EnableMFADevice.
29              
30             As an example:
31              
32             $service_obj->EnableMFADevice(Att1 => $value1, Att2 => $value2, ...);
33              
34             Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
35              
36             =head1 ATTRIBUTES
37              
38              
39             =head2 B<REQUIRED> AuthenticationCode1 => Str
40              
41             An authentication code emitted by the device.
42              
43             The format for this parameter is a string of 6 digits.
44              
45             Submit your request immediately after generating the authentication
46             codes. If you generate the codes and then wait too long to submit the
47             request, the MFA device successfully associates with the user but the
48             MFA device becomes out of sync. This happens because time-based
49             one-time passwords (TOTP) expire after a short period of time. If this
50             happens, you can resync the device.
51              
52              
53              
54             =head2 B<REQUIRED> AuthenticationCode2 => Str
55              
56             A subsequent authentication code emitted by the device.
57              
58             The format for this parameter is a string of 6 digits.
59              
60             Submit your request immediately after generating the authentication
61             codes. If you generate the codes and then wait too long to submit the
62             request, the MFA device successfully associates with the user but the
63             MFA device becomes out of sync. This happens because time-based
64             one-time passwords (TOTP) expire after a short period of time. If this
65             happens, you can resync the device.
66              
67              
68              
69             =head2 B<REQUIRED> SerialNumber => Str
70              
71             The serial number that uniquely identifies the MFA device. For virtual
72             MFA devices, the serial number is the device ARN.
73              
74             This parameter allows (per its regex pattern) a string of characters
75             consisting of upper and lowercase alphanumeric characters with no
76             spaces. You can also include any of the following characters: =,.@:/-
77              
78              
79              
80             =head2 B<REQUIRED> UserName => Str
81              
82             The name of the IAM user for whom you want to enable the MFA device.
83              
84             This parameter allows (per its regex pattern) a string of characters
85             consisting of upper and lowercase alphanumeric characters with no
86             spaces. You can also include any of the following characters: =,.@-
87              
88              
89              
90              
91             =head1 SEE ALSO
92              
93             This class forms part of L<Paws>, documenting arguments for method EnableMFADevice in L<Paws::IAM>
94              
95             =head1 BUGS and CONTRIBUTIONS
96              
97             The source code is located here: https://github.com/pplu/aws-sdk-perl
98              
99             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
100              
101             =cut
102