File Coverage

blib/lib/Paws/Organizations/CreateAccount.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::Organizations::CreateAccount;
3 1     1   386 use Moose;
  1         3  
  1         6  
4             has AccountName => (is => 'ro', isa => 'Str', required => 1);
5             has Email => (is => 'ro', isa => 'Str', required => 1);
6             has IamUserAccessToBilling => (is => 'ro', isa => 'Str');
7             has RoleName => (is => 'ro', isa => 'Str');
8              
9 1     1   6013 use MooseX::ClassAttribute;
  1         4  
  1         10  
10              
11             class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAccount');
12             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Organizations::CreateAccountResponse');
13             class_has _result_key => (isa => 'Str', is => 'ro');
14             1;
15              
16             ### main pod documentation begin ###
17              
18             =head1 NAME
19              
20             Paws::Organizations::CreateAccount - Arguments for method CreateAccount on Paws::Organizations
21              
22             =head1 DESCRIPTION
23              
24             This class represents the parameters used for calling the method CreateAccount on the
25             AWS Organizations service. Use the attributes of this class
26             as arguments to method CreateAccount.
27              
28             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAccount.
29              
30             As an example:
31              
32             $service_obj->CreateAccount(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> AccountName => Str
40              
41             The friendly name of the member account.
42              
43              
44              
45             =head2 B<REQUIRED> Email => Str
46              
47             The email address of the owner to assign to the new member account.
48             This email address must not already be associated with another AWS
49             account. You must use a valid email address to complete account
50             creation. You cannot access the root user of the account or remove an
51             account that was created with an invalid email address.
52              
53              
54              
55             =head2 IamUserAccessToBilling => Str
56              
57             If set to C<ALLOW>, the new account enables IAM users to access account
58             billing information I<if> they have the required permissions. If set to
59             C<DENY>, then only the root user of the new account can access account
60             billing information. For more information, see Activating Access to the
61             Billing and Cost Management Console in the I<AWS Billing and Cost
62             Management User Guide>.
63              
64             If you do not specify this parameter, the value defaults to ALLOW, and
65             IAM users and roles with the required permissions can access billing
66             information for the new account.
67              
68             Valid values are: C<"ALLOW">, C<"DENY">
69              
70             =head2 RoleName => Str
71              
72             (Optional)
73              
74             The name of an IAM role that Organizations automatically preconfigures
75             in the new member account. This role trusts the master account,
76             allowing users in the master account to assume the role, as permitted
77             by the master account administrator. The role has administrator
78             permissions in the new member account.
79              
80             If you do not specify this parameter, the role name defaults to
81             C<OrganizationAccountAccessRole>.
82              
83             For more information about how to use this role to access the member
84             account, see Accessing and Administering the Member Accounts in Your
85             Organization in the I<AWS Organizations User Guide>, and steps 2 and 3
86             in Tutorial: Delegate Access Across AWS Accounts Using IAM Roles in the
87             I<IAM User Guide>.
88              
89             The regex pattern that is used to validate this parameter is a string
90             of characters that can consist of uppercase letters, lowercase letters,
91             digits with no spaces, and any of the following characters: =,.@-
92              
93              
94              
95              
96             =head1 SEE ALSO
97              
98             This class forms part of L<Paws>, documenting arguments for method CreateAccount in L<Paws::Organizations>
99              
100             =head1 BUGS and CONTRIBUTIONS
101              
102             The source code is located here: https://github.com/pplu/aws-sdk-perl
103              
104             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
105              
106             =cut
107