File Coverage

blib/lib/Paws/Organizations/AttachPolicy.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::AttachPolicy;
3 1     1   529 use Moose;
  1         5  
  1         11  
4             has PolicyId => (is => 'ro', isa => 'Str', required => 1);
5             has TargetId => (is => 'ro', isa => 'Str', required => 1);
6              
7 1     1   9616 use MooseX::ClassAttribute;
  1         3  
  1         10  
8              
9             class_has _api_call => (isa => 'Str', is => 'ro', default => 'AttachPolicy');
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::AttachPolicy - Arguments for method AttachPolicy on Paws::Organizations
19              
20             =head1 DESCRIPTION
21              
22             This class represents the parameters used for calling the method AttachPolicy on the
23             AWS Organizations service. Use the attributes of this class
24             as arguments to method AttachPolicy.
25              
26             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to AttachPolicy.
27              
28             As an example:
29              
30             $service_obj->AttachPolicy(Att1 => $value1, Att2 => $value2, ...);
31              
32             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.
33              
34             =head1 ATTRIBUTES
35              
36              
37             =head2 B<REQUIRED> PolicyId => Str
38              
39             The unique identifier (ID) of the policy that you want to attach to the
40             target. You can get the ID for the policy by calling the ListPolicies
41             operation.
42              
43             The regex pattern for a policy ID string requires "p-" followed by from
44             8 to 128 lower-case letters or digits.
45              
46              
47              
48             =head2 B<REQUIRED> TargetId => Str
49              
50             The unique identifier (ID) of the root, OU, or account that you want to
51             attach the policy to. You can get the ID by calling the ListRoots,
52             ListOrganizationalUnitsForParent, or ListAccounts operations.
53              
54             The regex pattern for a target ID string requires one of the following:
55              
56             =over
57              
58             =item *
59              
60             Root: a string that begins with "r-" followed by from 4 to 32
61             lower-case letters or digits.
62              
63             =item *
64              
65             Account: a string that consists of exactly 12 digits.
66              
67             =item *
68              
69             Organizational unit (OU): a string that begins with "ou-" followed by
70             from 4 to 32 lower-case letters or digits (the ID of the root that the
71             OU is in) followed by a second "-" dash and from 8 to 32 additional
72             lower-case letters or digits.
73              
74             =back
75              
76              
77              
78              
79              
80             =head1 SEE ALSO
81              
82             This class forms part of L<Paws>, documenting arguments for method AttachPolicy in L<Paws::Organizations>
83              
84             =head1 BUGS and CONTRIBUTIONS
85              
86             The source code is located here: https://github.com/pplu/aws-sdk-perl
87              
88             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
89              
90             =cut
91