« blib/lib/Paws/Organizations/ListTargetsForPolicyResponse.pm
↑ Summary
blib/lib/Paws/Organizations/Organization.pm »
| 1 | |||
| 2 | package Paws::Organizations::MoveAccount; | ||
| 3 | use Moose; | ||
| 4 | has AccountId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has DestinationParentId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has SourceParentId => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'MoveAccount'); | ||
| 11 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 12 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 13 | 1; | ||
| 14 | |||
| 15 | ### main pod documentation begin ### | ||
| 16 | |||
| 17 | =head1 NAME | ||
| 18 | |||
| 19 | Paws::Organizations::MoveAccount - Arguments for method MoveAccount on L<Paws::Organizations> | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | This class represents the parameters used for calling the method MoveAccount on the | ||
| 24 | L<AWS Organizations|Paws::Organizations> service. Use the attributes of this class | ||
| 25 | as arguments to method MoveAccount. | ||
| 26 | |||
| 27 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to MoveAccount. | ||
| 28 | |||
| 29 | =head1 SYNOPSIS | ||
| 30 | |||
| 31 | my $organizations = Paws->service('Organizations'); | ||
| 32 | # To move an OU or account to another OU or the root | ||
| 33 | # The following example shows how to move a member account from the root to an | ||
| 34 | # OU:/n/n | ||
| 35 | $organizations->MoveAccount( | ||
| 36 | 'AccountId' => 333333333333, | ||
| 37 | 'DestinationParentId' => 'ou-examplerootid111-exampleouid111', | ||
| 38 | 'SourceParentId' => 'r-examplerootid111' | ||
| 39 | ); | ||
| 40 | |||
| 41 | |||
| 42 | 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. | ||
| 43 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/organizations/MoveAccount> | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | |||
| 48 | =head2 B<REQUIRED> AccountId => Str | ||
| 49 | |||
| 50 | The unique identifier (ID) of the account that you want to move. | ||
| 51 | |||
| 52 | The regex pattern (http://wikipedia.org/wiki/regex) for an account ID | ||
| 53 | string requires exactly 12 digits. | ||
| 54 | |||
| 55 | |||
| 56 | |||
| 57 | =head2 B<REQUIRED> DestinationParentId => Str | ||
| 58 | |||
| 59 | The unique identifier (ID) of the root or organizational unit that you | ||
| 60 | want to move the account to. | ||
| 61 | |||
| 62 | The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID | ||
| 63 | string requires one of the following: | ||
| 64 | |||
| 65 | =over | ||
| 66 | |||
| 67 | =item * | ||
| 68 | |||
| 69 | B<Root> - A string that begins with "r-" followed by from 4 to 32 | ||
| 70 | lowercase letters or digits. | ||
| 71 | |||
| 72 | =item * | ||
| 73 | |||
| 74 | B<Organizational unit (OU)> - A string that begins with "ou-" followed | ||
| 75 | by from 4 to 32 lowercase letters or digits (the ID of the root that | ||
| 76 | the OU is in). This string is followed by a second "-" dash and from 8 | ||
| 77 | to 32 additional lowercase letters or digits. | ||
| 78 | |||
| 79 | =back | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head2 B<REQUIRED> SourceParentId => Str | ||
| 85 | |||
| 86 | The unique identifier (ID) of the root or organizational unit that you | ||
| 87 | want to move the account from. | ||
| 88 | |||
| 89 | The regex pattern (http://wikipedia.org/wiki/regex) for a parent ID | ||
| 90 | string requires one of the following: | ||
| 91 | |||
| 92 | =over | ||
| 93 | |||
| 94 | =item * | ||
| 95 | |||
| 96 | B<Root> - A string that begins with "r-" followed by from 4 to 32 | ||
| 97 | lowercase letters or digits. | ||
| 98 | |||
| 99 | =item * | ||
| 100 | |||
| 101 | B<Organizational unit (OU)> - A string that begins with "ou-" followed | ||
| 102 | by from 4 to 32 lowercase letters or digits (the ID of the root that | ||
| 103 | the OU is in). This string is followed by a second "-" dash and from 8 | ||
| 104 | to 32 additional lowercase letters or digits. | ||
| 105 | |||
| 106 | =back | ||
| 107 | |||
| 108 | |||
| 109 | |||
| 110 | |||
| 111 | |||
| 112 | =head1 SEE ALSO | ||
| 113 | |||
| 114 | This class forms part of L<Paws>, documenting arguments for method MoveAccount in L<Paws::Organizations> | ||
| 115 | |||
| 116 | =head1 BUGS and CONTRIBUTIONS | ||
| 117 | |||
| 118 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 119 | |||
| 120 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 121 | |||
| 122 | =cut | ||
| 123 |