blib/lib/Paws/Organizations/DisablePolicyType.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Organizations::DisablePolicyType;
3 use Moose;
4 has PolicyType => (is => 'ro', isa => 'Str', required => 1);
5 has RootId => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'DisablePolicyType');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Organizations::DisablePolicyTypeResponse');
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::DisablePolicyType - Arguments for method DisablePolicyType on L<Paws::Organizations>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method DisablePolicyType on the
23 L<AWS Organizations|Paws::Organizations> service. Use the attributes of this class
24 as arguments to method DisablePolicyType.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DisablePolicyType.
27  
28 =head1 SYNOPSIS
29  
30 my $organizations = Paws->service('Organizations');
31 # To disable a policy type in a root
32 # The following example shows how to disable the service control policy (SCP)
33 # policy type in a root. The response shows that the PolicyTypes response
34 # element no longer includes SERVICE_CONTROL_POLICY:/n/n
35 my $DisablePolicyTypeResponse = $organizations->DisablePolicyType(
36 'PolicyType' => 'SERVICE_CONTROL_POLICY',
37 'RootId' => 'r-examplerootid111'
38 );
39  
40 # Results:
41 my $Root = $DisablePolicyTypeResponse->Root;
42  
43 # Returns a L<Paws::Organizations::DisablePolicyTypeResponse> object.
44  
45 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.
46 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/organizations/DisablePolicyType>
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 B<REQUIRED> PolicyType => Str
52  
53 The policy type that you want to disable in this root. You can specify
54 one of the following values:
55  
56 =over
57  
58 =item *
59  
60 AISERVICES_OPT_OUT_POLICY
61 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html)
62  
63 =item *
64  
65 BACKUP_POLICY
66 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_backup.html)
67  
68 =item *
69  
70 SERVICE_CONTROL_POLICY
71 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scp.html)
72  
73 =item *
74  
75 TAG_POLICY
76 (https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_tag-policies.html)
77  
78 =back
79  
80  
81 Valid values are: C<"SERVICE_CONTROL_POLICY">, C<"TAG_POLICY">, C<"BACKUP_POLICY">, C<"AISERVICES_OPT_OUT_POLICY">
82  
83 =head2 B<REQUIRED> RootId => Str
84  
85 The unique identifier (ID) of the root in which you want to disable a
86 policy type. You can get the ID from the ListRoots operation.
87  
88 The regex pattern (http://wikipedia.org/wiki/regex) for a root ID
89 string requires "r-" followed by from 4 to 32 lowercase letters or
90 digits.
91  
92  
93  
94  
95 =head1 SEE ALSO
96  
97 This class forms part of L<Paws>, documenting arguments for method DisablePolicyType in L<Paws::Organizations>
98  
99 =head1 BUGS and CONTRIBUTIONS
100  
101 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
102  
103 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
104  
105 =cut
106