blib/lib/Paws/IAM/UpdateAccountPasswordPolicy.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::IAM::UpdateAccountPasswordPolicy;
3 use Moose;
4 has AllowUsersToChangePassword => (is => 'ro', isa => 'Bool');
5 has HardExpiry => (is => 'ro', isa => 'Bool');
6 has MaxPasswordAge => (is => 'ro', isa => 'Int');
7 has MinimumPasswordLength => (is => 'ro', isa => 'Int');
8 has PasswordReusePrevention => (is => 'ro', isa => 'Int');
9 has RequireLowercaseCharacters => (is => 'ro', isa => 'Bool');
10 has RequireNumbers => (is => 'ro', isa => 'Bool');
11 has RequireSymbols => (is => 'ro', isa => 'Bool');
12 has RequireUppercaseCharacters => (is => 'ro', isa => 'Bool');
13  
14 use MooseX::ClassAttribute;
15  
16 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateAccountPasswordPolicy');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
18 class_has _result_key => (isa => 'Str', is => 'ro');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::IAM::UpdateAccountPasswordPolicy - Arguments for method UpdateAccountPasswordPolicy on L<Paws::IAM>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method UpdateAccountPasswordPolicy on the
30 L<AWS Identity and Access Management|Paws::IAM> service. Use the attributes of this class
31 as arguments to method UpdateAccountPasswordPolicy.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateAccountPasswordPolicy.
34  
35 =head1 SYNOPSIS
36  
37 my $iam = Paws->service('IAM');
38 # To set or change the current account password policy
39 # The following command sets the password policy to require a minimum length of
40 # eight characters and to require one or more numbers in the password:
41 $iam->UpdateAccountPasswordPolicy(
42 'MinimumPasswordLength' => 8,
43 'RequireNumbers' => 1
44 );
45  
46  
47 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.
48 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iam/UpdateAccountPasswordPolicy>
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 AllowUsersToChangePassword => Bool
54  
55 Allows all IAM users in your account to use the AWS Management Console
56 to change their own passwords. For more information, see Letting IAM
57 users change their own passwords
58 (https://docs.aws.amazon.com/IAM/latest/UserGuide/HowToPwdIAMUser.html)
59 in the I<IAM User Guide>.
60  
61 If you do not specify a value for this parameter, then the operation
62 uses the default value of C<false>. The result is that IAM users in the
63 account do not automatically have permissions to change their own
64 password.
65  
66  
67  
68 =head2 HardExpiry => Bool
69  
70 Prevents IAM users from setting a new password after their password has
71 expired. The IAM user cannot be accessed until an administrator resets
72 the password.
73  
74 If you do not specify a value for this parameter, then the operation
75 uses the default value of C<false>. The result is that IAM users can
76 change their passwords after they expire and continue to sign in as the
77 user.
78  
79  
80  
81 =head2 MaxPasswordAge => Int
82  
83 The number of days that an IAM user password is valid.
84  
85 If you do not specify a value for this parameter, then the operation
86 uses the default value of C<0>. The result is that IAM user passwords
87 never expire.
88  
89  
90  
91 =head2 MinimumPasswordLength => Int
92  
93 The minimum number of characters allowed in an IAM user password.
94  
95 If you do not specify a value for this parameter, then the operation
96 uses the default value of C<6>.
97  
98  
99  
100 =head2 PasswordReusePrevention => Int
101  
102 Specifies the number of previous passwords that IAM users are prevented
103 from reusing.
104  
105 If you do not specify a value for this parameter, then the operation
106 uses the default value of C<0>. The result is that IAM users are not
107 prevented from reusing previous passwords.
108  
109  
110  
111 =head2 RequireLowercaseCharacters => Bool
112  
113 Specifies whether IAM user passwords must contain at least one
114 lowercase character from the ISO basic Latin alphabet (a to z).
115  
116 If you do not specify a value for this parameter, then the operation
117 uses the default value of C<false>. The result is that passwords do not
118 require at least one lowercase character.
119  
120  
121  
122 =head2 RequireNumbers => Bool
123  
124 Specifies whether IAM user passwords must contain at least one numeric
125 character (0 to 9).
126  
127 If you do not specify a value for this parameter, then the operation
128 uses the default value of C<false>. The result is that passwords do not
129 require at least one numeric character.
130  
131  
132  
133 =head2 RequireSymbols => Bool
134  
135 Specifies whether IAM user passwords must contain at least one of the
136 following non-alphanumeric characters:
137  
138 ! @ # $ % ^ & * ( ) _ + - = [ ] { } | '
139  
140 If you do not specify a value for this parameter, then the operation
141 uses the default value of C<false>. The result is that passwords do not
142 require at least one symbol character.
143  
144  
145  
146 =head2 RequireUppercaseCharacters => Bool
147  
148 Specifies whether IAM user passwords must contain at least one
149 uppercase character from the ISO basic Latin alphabet (A to Z).
150  
151 If you do not specify a value for this parameter, then the operation
152 uses the default value of C<false>. The result is that passwords do not
153 require at least one uppercase character.
154  
155  
156  
157  
158 =head1 SEE ALSO
159  
160 This class forms part of L<Paws>, documenting arguments for method UpdateAccountPasswordPolicy in L<Paws::IAM>
161  
162 =head1 BUGS and CONTRIBUTIONS
163  
164 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
165  
166 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
167  
168 =cut
169