blib/lib/Paws/WAFRegional/WafAction.pm untested

filter: Statementstmt 0.0% 0 / 4 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 5 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::WAFRegional::WafAction;
3 use Moose;
4 has Type => (is => 'ro', isa => 'Str', required => 1);
5  
6 1;
7  
8 ### main pod documentation begin ###
9  
10 =head1 NAME
11  
12 Paws::WAFRegional::WafAction
13  
14 =head1 USAGE
15  
16 This class represents one of two things:
17  
18 =head3 Arguments in a call to a service
19  
20 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
21 Each attribute should be used as a named argument in the calls that expect this type of object.
22  
23 As an example, if Att1 is expected to be a Paws::WAFRegional::WafAction object:
24  
25 $service_obj->Method(Att1 => { Type => $value, ..., Type => $value });
26  
27 =head3 Results returned from an API call
28  
29 Use accessors for each attribute. If Att1 is expected to be an Paws::WAFRegional::WafAction object:
30  
31 $result = $service_obj->Method(...);
32 $result->Att1->Type
33  
34 =head1 DESCRIPTION
35  
36 This is B<AWS WAF Classic> documentation. For more information, see AWS
37 WAF Classic
38 (https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html)
39 in the developer guide.
40  
41 B<For the latest version of AWS WAF>, use the AWS WAFV2 API and see the
42 AWS WAF Developer Guide
43 (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html).
44 With the latest version, AWS WAF has a single set of endpoints for
45 regional and global use.
46  
47 For the action that is associated with a rule in a C<WebACL>, specifies
48 the action that you want AWS WAF to perform when a web request matches
49 all of the conditions in a rule. For the default action in a C<WebACL>,
50 specifies the action that you want AWS WAF to take when a web request
51 doesn't match all of the conditions in any of the rules in a C<WebACL>.
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 B<REQUIRED> Type => Str
57  
58 Specifies how you want AWS WAF to respond to requests that match the
59 settings in a C<Rule>. Valid settings include the following:
60  
61 =over
62  
63 =item *
64  
65 C<ALLOW>: AWS WAF allows requests
66  
67 =item *
68  
69 C<BLOCK>: AWS WAF blocks requests
70  
71 =item *
72  
73 C<COUNT>: AWS WAF increments a counter of the requests that match all
74 of the conditions in the rule. AWS WAF then continues to inspect the
75 web request based on the remaining rules in the web ACL. You can't
76 specify C<COUNT> for the default action for a C<WebACL>.
77  
78 =back
79  
80  
81  
82  
83 =head1 SEE ALSO
84  
85 This class forms part of L<Paws>, describing an object used in L<Paws::WAFRegional>
86  
87 =head1 BUGS and CONTRIBUTIONS
88  
89 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
90  
91 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
92  
93 =cut
94