blib/lib/Paws/IAM/CreateUser.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/IAM/CreateRole.pm ↑ Summary blib/lib/Paws/IAM/CreateVirtualMFADevice.pm »
1  
2 package Paws::IAM::CreateUser;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has Path => (is => 'ro', isa => 'Str');
5 1 has PermissionsBoundary => (is => 'ro', isa => 'Str');
6 1 has Tags => (is => 'ro', isa => 'ArrayRef[Paws::IAM::Tag]');
7 1 has UserName => (is => 'ro', isa => 'Str', required => 1);
8  
9 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateUser');
12 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::IAM::CreateUserResponse');
13 1 class_has _result_key => (isa => 'Str', is => 'ro', default => 'CreateUserResult');
14 1 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::IAM::CreateUser - Arguments for method CreateUser on L<Paws::IAM>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method CreateUser on the
25 L<AWS Identity and Access Management|Paws::IAM> service. Use the attributes of this class
26 as arguments to method CreateUser.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateUser.
29  
30 =head1 SYNOPSIS
31  
32 my $iam = Paws->service('IAM');
33 # To create an IAM user
34 # The following create-user command creates an IAM user named Bob in the current
35 # account.
36 my $CreateUserResponse = $iam->CreateUser( 'UserName' => 'Bob' );
37  
38 # Results:
39 my $User = $CreateUserResponse->User;
40  
41 # Returns a L<Paws::IAM::CreateUserResponse> object.
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/iam/CreateUser>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 Path => Str
50  
51 The path for the user name. For more information about paths, see IAM
52 identifiers
53 (https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html)
54 in the I<IAM User Guide>.
55  
56 This parameter is optional. If it is not included, it defaults to a
57 slash (/).
58  
59 This parameter allows (through its regex pattern
60 (http://wikipedia.org/wiki/regex)) a string of characters consisting of
61 either a forward slash (/) by itself or a string that must begin and
62 end with forward slashes. In addition, it can contain any ASCII
63 character from the ! (C<\u0021>) through the DEL character (C<\u007F>),
64 including most punctuation characters, digits, and upper and lowercased
65 letters.
66  
67  
68  
69 =head2 PermissionsBoundary => Str
70  
71 The ARN of the policy that is used to set the permissions boundary for
72 the user.
73  
74  
75  
76 =head2 Tags => ArrayRef[L<Paws::IAM::Tag>]
77  
78 A list of tags that you want to attach to the new user. Each tag
79 consists of a key name and an associated value. For more information
80 about tagging, see Tagging IAM resources
81 (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_tags.html) in the
82 I<IAM User Guide>.
83  
84 If any one of the tags is invalid or if you exceed the allowed maximum
85 number of tags, then the entire request fails and the resource is not
86 created.
87  
88  
89  
90 =head2 B<REQUIRED> UserName => Str
91  
92 The name of the user to create.
93  
94 IAM user, group, role, and policy names must be unique within the
95 account. Names are not distinguished by case. For example, you cannot
96 create resources named both "MyResource" and "myresource".
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method CreateUser in L<Paws::IAM>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112  
« blib/lib/Paws/IAM/CreateRole.pm ↑ Summary blib/lib/Paws/IAM/CreateVirtualMFADevice.pm »