blib/lib/Paws/WAF/UpdateRule.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 14 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::WAF::UpdateRule;
3 use Moose;
4 has ChangeToken => (is => 'ro', isa => 'Str', required => 1);
5 has RuleId => (is => 'ro', isa => 'Str', required => 1);
6 has Updates => (is => 'ro', isa => 'ArrayRef[Paws::WAF::RuleUpdate]', required => 1);
7  
8 use MooseX::ClassAttribute;
9  
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateRule');
11 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::WAF::UpdateRuleResponse');
12 class_has _result_key => (isa => 'Str', is => 'ro');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::WAF::UpdateRule - Arguments for method UpdateRule on L<Paws::WAF>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method UpdateRule on the
24 L<AWS WAF|Paws::WAF> service. Use the attributes of this class
25 as arguments to method UpdateRule.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateRule.
28  
29 =head1 SYNOPSIS
30  
31 my $waf = Paws->service('WAF');
32 # To update a rule
33 # The following example deletes a Predicate object in a rule with the ID
34 # example1ds3t-46da-4fdb-b8d5-abc321j569j5.
35 my $UpdateRuleResponse = $waf->UpdateRule(
36 'ChangeToken' => 'abcd12f2-46da-4fdb-b8d5-fbd4c466928f',
37 'RuleId' => 'example1ds3t-46da-4fdb-b8d5-abc321j569j5',
38 'Updates' => [
39  
40 {
41 'Action' => 'DELETE',
42 'Predicate' => {
43 'DataId' => 'MyByteMatchSetID',
44 'Negated' => 0,
45 'Type' => 'ByteMatch'
46 }
47 }
48 ]
49 );
50  
51 # Results:
52 my $ChangeToken = $UpdateRuleResponse->ChangeToken;
53  
54 # Returns a L<Paws::WAF::UpdateRuleResponse> object.
55  
56 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.
57 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/waf/UpdateRule>
58  
59 =head1 ATTRIBUTES
60  
61  
62 =head2 B<REQUIRED> ChangeToken => Str
63  
64 The value returned by the most recent call to GetChangeToken.
65  
66  
67  
68 =head2 B<REQUIRED> RuleId => Str
69  
70 The C<RuleId> of the C<Rule> that you want to update. C<RuleId> is
71 returned by C<CreateRule> and by ListRules.
72  
73  
74  
75 =head2 B<REQUIRED> Updates => ArrayRef[L<Paws::WAF::RuleUpdate>]
76  
77 An array of C<RuleUpdate> objects that you want to insert into or
78 delete from a Rule. For more information, see the applicable data
79 types:
80  
81 =over
82  
83 =item *
84  
85 RuleUpdate: Contains C<Action> and C<Predicate>
86  
87 =item *
88  
89 Predicate: Contains C<DataId>, C<Negated>, and C<Type>
90  
91 =item *
92  
93 FieldToMatch: Contains C<Data> and C<Type>
94  
95 =back
96  
97  
98  
99  
100  
101 =head1 SEE ALSO
102  
103 This class forms part of L<Paws>, documenting arguments for method UpdateRule in L<Paws::WAF>
104  
105 =head1 BUGS and CONTRIBUTIONS
106  
107 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
108  
109 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
110  
111 =cut
112