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   442 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   5809 use MooseX::ClassAttribute;
  1         2  
  1         8  
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.
50              
51              
52              
53             =head2 IamUserAccessToBilling => Str
54              
55             If set to C<ALLOW>, the new account enables IAM users to access account
56             billing information I<if> they have the required permissions. If set to
57             C<DENY>, then only the root user of the new account can access account
58             billing information. For more information, see Activating Access to the
59             Billing and Cost Management Console in the I<AWS Billing and Cost
60             Management User Guide>.
61              
62             If you do not specify this parameter, the value defaults to ALLOW, and
63             IAM users and roles with the required permissions can access billing
64             information for the new account.
65              
66             Valid values are: C<"ALLOW">, C<"DENY">
67              
68             =head2 RoleName => Str
69              
70             (Optional)
71              
72             The name of an IAM role that Organizations automatically preconfigures
73             in the new member account. This role trusts the master account,
74             allowing users in the master account to assume the role, as permitted
75             by the master account administrator. The role has administrator
76             permissions in the new member account.
77              
78             If you do not specify this parameter, the role name defaults to
79             C<OrganizationAccountAccessRole>.
80              
81             For more information about how to use this role to access the member
82             account, see Accessing and Administering the Member Accounts in Your
83             Organization in the I<AWS Organizations User Guide>, and steps 2 and 3
84             in Tutorial: Delegate Access Across AWS Accounts Using IAM Roles in the
85             I<IAM User Guide>.
86              
87             The regex pattern that is used to validate this parameter is a string
88             of characters that can consist of uppercase letters, lowercase letters,
89             digits with no spaces, and any of the following characters: =,.@-
90              
91              
92              
93              
94             =head1 SEE ALSO
95              
96             This class forms part of L<Paws>, documenting arguments for method CreateAccount in L<Paws::Organizations>
97              
98             =head1 BUGS and CONTRIBUTIONS
99              
100             The source code is located here: https://github.com/pplu/aws-sdk-perl
101              
102             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
103              
104             =cut
105