« blib/lib/Paws/Organizations/DescribePolicyResponse.pm
↑ Summary
blib/lib/Paws/Organizations/DisableAWSServiceAccess.pm »
| 1 | |||
| 2 | package Paws::Organizations::DetachPolicy; | ||
| 3 | use Moose; | ||
| 4 | has PolicyId => (is => 'ro', isa => 'Str', required => 1); | ||
| 5 | has TargetId => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | |||
| 7 | use MooseX::ClassAttribute; | ||
| 8 | |||
| 9 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'DetachPolicy'); | ||
| 10 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); | ||
| 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::DetachPolicy - Arguments for method DetachPolicy on L<Paws::Organizations> | ||
| 19 | |||
| 20 | =head1 DESCRIPTION | ||
| 21 | |||
| 22 | This class represents the parameters used for calling the method DetachPolicy on the | ||
| 23 | L<AWS Organizations|Paws::Organizations> service. Use the attributes of this class | ||
| 24 | as arguments to method DetachPolicy. | ||
| 25 | |||
| 26 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DetachPolicy. | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my $organizations = Paws->service('Organizations'); | ||
| 31 | # To detach a policy from a root, OU, or account | ||
| 32 | # The following example shows how to detach a policy from an OU:/n/n | ||
| 33 | $organizations->DetachPolicy( | ||
| 34 | 'PolicyId' => 'p-examplepolicyid111', | ||
| 35 | 'TargetId' => 'ou-examplerootid111-exampleouid111' | ||
| 36 | ); | ||
| 37 | |||
| 38 | |||
| 39 | 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. | ||
| 40 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/organizations/DetachPolicy> | ||
| 41 | |||
| 42 | =head1 ATTRIBUTES | ||
| 43 | |||
| 44 | |||
| 45 | =head2 B<REQUIRED> PolicyId => Str | ||
| 46 | |||
| 47 | The unique identifier (ID) of the policy you want to detach. You can | ||
| 48 | get the ID from the ListPolicies or ListPoliciesForTarget operations. | ||
| 49 | |||
| 50 | The regex pattern (http://wikipedia.org/wiki/regex) for a policy ID | ||
| 51 | string requires "p-" followed by from 8 to 128 lowercase or uppercase | ||
| 52 | letters, digits, or the underscore character (_). | ||
| 53 | |||
| 54 | |||
| 55 | |||
| 56 | =head2 B<REQUIRED> TargetId => Str | ||
| 57 | |||
| 58 | The unique identifier (ID) of the root, OU, or account that you want to | ||
| 59 | detach the policy from. You can get the ID from the ListRoots, | ||
| 60 | ListOrganizationalUnitsForParent, or ListAccounts operations. | ||
| 61 | |||
| 62 | The regex pattern (http://wikipedia.org/wiki/regex) for a target 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<Account> - A string that consists of exactly 12 digits. | ||
| 75 | |||
| 76 | =item * | ||
| 77 | |||
| 78 | B<Organizational unit (OU)> - A string that begins with "ou-" followed | ||
| 79 | by from 4 to 32 lowercase letters or digits (the ID of the root that | ||
| 80 | the OU is in). This string is followed by a second "-" dash and from 8 | ||
| 81 | to 32 additional lowercase letters or digits. | ||
| 82 | |||
| 83 | =back | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head1 SEE ALSO | ||
| 90 | |||
| 91 | This class forms part of L<Paws>, documenting arguments for method DetachPolicy in L<Paws::Organizations> | ||
| 92 | |||
| 93 | =head1 BUGS and CONTRIBUTIONS | ||
| 94 | |||
| 95 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 96 | |||
| 97 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 98 | |||
| 99 | =cut | ||
| 100 |