blib/lib/Paws/Config/PutOrganizationConfigRule.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Config::PutOrganizationConfigRule;
3 use Moose;
4 has ExcludedAccounts => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
5 has OrganizationConfigRuleName => (is => 'ro', isa => 'Str', required => 1);
6 has OrganizationCustomRuleMetadata => (is => 'ro', isa => 'Paws::Config::OrganizationCustomRuleMetadata');
7 has OrganizationManagedRuleMetadata => (is => 'ro', isa => 'Paws::Config::OrganizationManagedRuleMetadata');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutOrganizationConfigRule');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Config::PutOrganizationConfigRuleResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Config::PutOrganizationConfigRule - Arguments for method PutOrganizationConfigRule on L<Paws::Config>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method PutOrganizationConfigRule on the
25 L<AWS Config|Paws::Config> service. Use the attributes of this class
26 as arguments to method PutOrganizationConfigRule.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutOrganizationConfigRule.
29  
30 =head1 SYNOPSIS
31  
32 my $config = Paws->service('Config');
33 my $PutOrganizationConfigRuleResponse = $config->PutOrganizationConfigRule(
34 OrganizationConfigRuleName => 'MyOrganizationConfigRuleName',
35 ExcludedAccounts => [ 'MyAccountId', ... ], # OPTIONAL
36 OrganizationCustomRuleMetadata => {
37 LambdaFunctionArn => 'MyStringWithCharLimit256', # min: 1, max: 256
38 OrganizationConfigRuleTriggerTypes => [
39 'ConfigurationItemChangeNotification',
40 ... # values: ConfigurationItemChangeNotification, OversizedConfigurationItemChangeNotification, ScheduledNotification
41 ],
42 Description => 'MyStringWithCharLimit256Min0', # max: 256; OPTIONAL
43 InputParameters =>
44 'MyStringWithCharLimit2048', # min: 1, max: 2048; OPTIONAL
45 MaximumExecutionFrequency => 'One_Hour'
46 , # values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours; OPTIONAL
47 ResourceIdScope =>
48 'MyStringWithCharLimit768', # min: 1, max: 768; OPTIONAL
49 ResourceTypesScope => [
50 'MyStringWithCharLimit256', ... # min: 1, max: 256
51 ], # max: 100; OPTIONAL
52 TagKeyScope => 'MyStringWithCharLimit128', # min: 1, max: 128; OPTIONAL
53 TagValueScope => 'MyStringWithCharLimit256', # min: 1, max: 256
54 }, # OPTIONAL
55 OrganizationManagedRuleMetadata => {
56 RuleIdentifier => 'MyStringWithCharLimit256', # min: 1, max: 256
57 Description => 'MyStringWithCharLimit256Min0', # max: 256; OPTIONAL
58 InputParameters =>
59 'MyStringWithCharLimit2048', # min: 1, max: 2048; OPTIONAL
60 MaximumExecutionFrequency => 'One_Hour'
61 , # values: One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours; OPTIONAL
62 ResourceIdScope =>
63 'MyStringWithCharLimit768', # min: 1, max: 768; OPTIONAL
64 ResourceTypesScope => [
65 'MyStringWithCharLimit256', ... # min: 1, max: 256
66 ], # max: 100; OPTIONAL
67 TagKeyScope => 'MyStringWithCharLimit128', # min: 1, max: 128; OPTIONAL
68 TagValueScope => 'MyStringWithCharLimit256', # min: 1, max: 256
69 }, # OPTIONAL
70 );
71  
72 # Results:
73 my $OrganizationConfigRuleArn =
74 $PutOrganizationConfigRuleResponse->OrganizationConfigRuleArn;
75  
76 # Returns a L<Paws::Config::PutOrganizationConfigRuleResponse> object.
77  
78 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.
79 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/config/PutOrganizationConfigRule>
80  
81 =head1 ATTRIBUTES
82  
83  
84 =head2 ExcludedAccounts => ArrayRef[Str|Undef]
85  
86 A comma-separated list of accounts that you want to exclude from an
87 organization config rule.
88  
89  
90  
91 =head2 B<REQUIRED> OrganizationConfigRuleName => Str
92  
93 The name that you assign to an organization config rule.
94  
95  
96  
97 =head2 OrganizationCustomRuleMetadata => L<Paws::Config::OrganizationCustomRuleMetadata>
98  
99 An C<OrganizationCustomRuleMetadata> object.
100  
101  
102  
103 =head2 OrganizationManagedRuleMetadata => L<Paws::Config::OrganizationManagedRuleMetadata>
104  
105 An C<OrganizationManagedRuleMetadata> object.
106  
107  
108  
109  
110 =head1 SEE ALSO
111  
112 This class forms part of L<Paws>, documenting arguments for method PutOrganizationConfigRule in L<Paws::Config>
113  
114 =head1 BUGS and CONTRIBUTIONS
115  
116 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
117  
118 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
119  
120 =cut
121