File Coverage

blib/lib/Paws/WAF/WafAction.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::WAF::WafAction;
2 1     1   505 use Moose;
  1         3  
  1         8  
3             has Type => (is => 'ro', isa => 'Str', required => 1);
4             1;
5              
6             ### main pod documentation begin ###
7              
8             =head1 NAME
9              
10             Paws::WAF::WafAction
11              
12             =head1 USAGE
13              
14             This class represents one of two things:
15              
16             =head3 Arguments in a call to a service
17              
18             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
19             Each attribute should be used as a named argument in the calls that expect this type of object.
20              
21             As an example, if Att1 is expected to be a Paws::WAF::WafAction object:
22              
23             $service_obj->Method(Att1 => { Type => $value, ..., Type => $value });
24              
25             =head3 Results returned from an API call
26              
27             Use accessors for each attribute. If Att1 is expected to be an Paws::WAF::WafAction object:
28              
29             $result = $service_obj->Method(...);
30             $result->Att1->Type
31              
32             =head1 DESCRIPTION
33              
34             For the action that is associated with a rule in a C<WebACL>, specifies
35             the action that you want AWS WAF to perform when a web request matches
36             all of the conditions in a rule. For the default action in a C<WebACL>,
37             specifies the action that you want AWS WAF to take when a web request
38             doesn't match all of the conditions in any of the rules in a C<WebACL>.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 B<REQUIRED> Type => Str
44              
45             Specifies how you want AWS WAF to respond to requests that match the
46             settings in a C<Rule>. Valid settings include the following:
47              
48             =over
49              
50             =item *
51              
52             C<ALLOW>: AWS WAF allows requests
53              
54             =item *
55              
56             C<BLOCK>: AWS WAF blocks requests
57              
58             =item *
59              
60             C<COUNT>: AWS WAF increments a counter of the requests that match all
61             of the conditions in the rule. AWS WAF then continues to inspect the
62             web request based on the remaining rules in the web ACL. You can't
63             specify C<COUNT> for the default action for a C<WebACL>.
64              
65             =back
66              
67              
68              
69              
70             =head1 SEE ALSO
71              
72             This class forms part of L<Paws>, describing an object used in L<Paws::WAF>
73              
74             =head1 BUGS and CONTRIBUTIONS
75              
76             The source code is located here: https://github.com/pplu/aws-sdk-perl
77              
78             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
79              
80             =cut
81