« blib/lib/Paws/Organizations/UntagResource.pm
↑ Summary
blib/lib/Paws/Organizations/UpdateOrganizationalUnitResponse.pm »
| 1 | |||
| 2 | package Paws::Organizations::UpdateOrganizationalUnit; | ||
| 3 | use Moose; | ||
| 4 | has Name => (is => 'ro', isa => 'Str'); | ||
| 5 | has OrganizationalUnitId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateOrganizationalUnit'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Organizations::UpdateOrganizationalUnitResponse'); | ||
| 11 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 12 | 1; | ||
| 13 | |||
| 14 | ### main pod documentation begin ### | ||
| 15 | |||
| 16 | =head1 NAME | ||
| 17 | |||
| 18 | Paws::Organizations::UpdateOrganizationalUnit - Arguments for method UpdateOrganizationalUnit on L<Paws::Organizations> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method UpdateOrganizationalUnit on the | ||
| 23 | L<AWS Organizations|Paws::Organizations> service. Use the attributes of this class | ||
| 24 | as arguments to method UpdateOrganizationalUnit. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateOrganizationalUnit. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $organizations = Paws->service('Organizations'); | ||
| 31 | # To rename an organizational unit | ||
| 32 | # The following example shows how to rename an OU. The output confirms the new | ||
| 33 | # name:/n/n | ||
| 34 | my $UpdateOrganizationalUnitResponse = | ||
| 35 | $organizations->UpdateOrganizationalUnit( | ||
| 36 | 'Name' => 'AccountingOU', | ||
| 37 | 'OrganizationalUnitId' => 'ou-examplerootid111-exampleouid111' | ||
| 38 | ); | ||
| 39 | |||
| 40 | # Results: | ||
| 41 | my $OrganizationalUnit = | ||
| 42 | $UpdateOrganizationalUnitResponse->OrganizationalUnit; | ||
| 43 | |||
| 44 | # Returns a L<Paws::Organizations::UpdateOrganizationalUnitResponse> object. | ||
| 45 | |||
| 46 | 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. | ||
| 47 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/organizations/UpdateOrganizationalUnit> | ||
| 48 | |||
| 49 | =head1 ATTRIBUTES | ||
| 50 | |||
| 51 | |||
| 52 | =head2 Name => Str | ||
| 53 | |||
| 54 | The new name that you want to assign to the OU. | ||
| 55 | |||
| 56 | The regex pattern (http://wikipedia.org/wiki/regex) that is used to | ||
| 57 | validate this parameter is a string of any of the characters in the | ||
| 58 | ASCII character range. | ||
| 59 | |||
| 60 | |||
| 61 | |||
| 62 | =head2 B<REQUIRED> OrganizationalUnitId => Str | ||
| 63 | |||
| 64 | The unique identifier (ID) of the OU that you want to rename. You can | ||
| 65 | get the ID from the ListOrganizationalUnitsForParent operation. | ||
| 66 | |||
| 67 | The regex pattern (http://wikipedia.org/wiki/regex) for an | ||
| 68 | organizational unit ID string requires "ou-" followed by from 4 to 32 | ||
| 69 | lowercase letters or digits (the ID of the root that contains the OU). | ||
| 70 | This string is followed by a second "-" dash and from 8 to 32 | ||
| 71 | additional lowercase letters or digits. | ||
| 72 | |||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head1 SEE ALSO | ||
| 77 | |||
| 78 | This class forms part of L<Paws>, documenting arguments for method UpdateOrganizationalUnit in L<Paws::Organizations> | ||
| 79 | |||
| 80 | =head1 BUGS and CONTRIBUTIONS | ||
| 81 | |||
| 82 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 83 | |||
| 84 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 85 | |||
| 86 | =cut | ||
| 87 |