blib/lib/Paws/WAFV2/SizeConstraintStatement.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::WAFV2::SizeConstraintStatement;
3 use Moose;
4 has ComparisonOperator => (is => 'ro', isa => 'Str', required => 1);
5 has FieldToMatch => (is => 'ro', isa => 'Paws::WAFV2::FieldToMatch', required => 1);
6 has Size => (is => 'ro', isa => 'Int', required => 1);
7 has TextTransformations => (is => 'ro', isa => 'ArrayRef[Paws::WAFV2::TextTransformation]', required => 1);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::WAFV2::SizeConstraintStatement
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::WAFV2::SizeConstraintStatement object:
27  
28 $service_obj->Method(Att1 => { ComparisonOperator => $value, ..., TextTransformations => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::WAFV2::SizeConstraintStatement object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->ComparisonOperator
36  
37 =head1 DESCRIPTION
38  
39 A rule statement that compares a number of bytes against the size of a
40 request component, using a comparison operator, such as greater than
41 (E<gt>) or less than (E<lt>). For example, you can use a size
42 constraint statement to look for query strings that are longer than 100
43 bytes.
44  
45 If you configure WAF to inspect the request body, WAF inspects only the
46 first 8192 bytes (8 KB). If the request body for your web requests
47 never exceeds 8192 bytes, you can create a size constraint condition
48 and block requests that have a request body greater than 8192 bytes.
49  
50 If you choose URI for the value of Part of the request to filter on,
51 the slash (/) in the URI counts as one character. For example, the URI
52 C</logo.jpg> is nine characters long.
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 B<REQUIRED> ComparisonOperator => Str
58  
59 The operator to use to compare the request part to the size setting.
60  
61  
62 =head2 B<REQUIRED> FieldToMatch => L<Paws::WAFV2::FieldToMatch>
63  
64 The part of a web request that you want WAF to inspect. For more
65 information, see FieldToMatch.
66  
67  
68 =head2 B<REQUIRED> Size => Int
69  
70 The size, in byte, to compare to the request part, after any
71 transformations.
72  
73  
74 =head2 B<REQUIRED> TextTransformations => ArrayRef[L<Paws::WAFV2::TextTransformation>]
75  
76 Text transformations eliminate some of the unusual formatting that
77 attackers use in web requests in an effort to bypass detection. If you
78 specify one or more transformations in a rule statement, WAF performs
79 all transformations on the content of the request component identified
80 by C<FieldToMatch>, starting from the lowest priority setting, before
81 inspecting the content for a match.
82  
83  
84  
85 =head1 SEE ALSO
86  
87 This class forms part of L<Paws>, describing an object used in L<Paws::WAFV2>
88  
89 =head1 BUGS and CONTRIBUTIONS
90  
91 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
92  
93 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
94  
95 =cut
96