line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::Organizations::CreatePolicy; |
3
|
1
|
|
|
1
|
|
710
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
4
|
|
|
|
|
|
|
has Content => (is => 'ro', isa => 'Str', required => 1); |
5
|
|
|
|
|
|
|
has Description => (is => 'ro', isa => 'Str', required => 1); |
6
|
|
|
|
|
|
|
has Name => (is => 'ro', isa => 'Str', required => 1); |
7
|
|
|
|
|
|
|
has Type => (is => 'ro', isa => 'Str', required => 1); |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
8265
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
16
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePolicy'); |
12
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Organizations::CreatePolicyResponse'); |
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::CreatePolicy - Arguments for method CreatePolicy on Paws::Organizations |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreatePolicy on the |
25
|
|
|
|
|
|
|
AWS Organizations service. Use the attributes of this class |
26
|
|
|
|
|
|
|
as arguments to method CreatePolicy. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePolicy. |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
As an example: |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
$service_obj->CreatePolicy(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> Content => Str |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
The policy content to add to the new policy. For example, if you create |
42
|
|
|
|
|
|
|
a service control policy (SCP), this string must be JSON text that |
43
|
|
|
|
|
|
|
specifies the permissions that admins in attached accounts can delegate |
44
|
|
|
|
|
|
|
to their users, groups, and roles. For more information about the SCP |
45
|
|
|
|
|
|
|
syntax, see Service Control Policy Syntax in the I<AWS Organizations |
46
|
|
|
|
|
|
|
User Guide>. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 B<REQUIRED> Description => Str |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
An optional description to assign to the policy. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 B<REQUIRED> Name => Str |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
The friendly name to assign to the policy. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
The regex pattern that is used to validate this parameter is a string |
61
|
|
|
|
|
|
|
of any of the characters in the ASCII character range. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head2 B<REQUIRED> Type => Str |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The type of policy to create. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
In the current release, the only type of policy that you can create is |
70
|
|
|
|
|
|
|
a service control policy (SCP). |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Valid values are: C<"SERVICE_CONTROL_POLICY"> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 SEE ALSO |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreatePolicy in L<Paws::Organizations> |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=cut |
86
|
|
|
|
|
|
|
|