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

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 12 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::FieldToMatch;
3 use Moose;
4 has AllQueryArguments => (is => 'ro', isa => 'Paws::WAFV2::AllQueryArguments');
5 has Body => (is => 'ro', isa => 'Paws::WAFV2::Body');
6 has JsonBody => (is => 'ro', isa => 'Paws::WAFV2::JsonBody');
7 has Method => (is => 'ro', isa => 'Paws::WAFV2::Method');
8 has QueryString => (is => 'ro', isa => 'Paws::WAFV2::QueryString');
9 has SingleHeader => (is => 'ro', isa => 'Paws::WAFV2::SingleHeader');
10 has SingleQueryArgument => (is => 'ro', isa => 'Paws::WAFV2::SingleQueryArgument');
11 has UriPath => (is => 'ro', isa => 'Paws::WAFV2::UriPath');
12  
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::WAFV2::FieldToMatch
20  
21 =head1 USAGE
22  
23 This class represents one of two things:
24  
25 =head3 Arguments in a call to a service
26  
27 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
28 Each attribute should be used as a named argument in the calls that expect this type of object.
29  
30 As an example, if Att1 is expected to be a Paws::WAFV2::FieldToMatch object:
31  
32 $service_obj->Method(Att1 => { AllQueryArguments => $value, ..., UriPath => $value });
33  
34 =head3 Results returned from an API call
35  
36 Use accessors for each attribute. If Att1 is expected to be an Paws::WAFV2::FieldToMatch object:
37  
38 $result = $service_obj->Method(...);
39 $result->Att1->AllQueryArguments
40  
41 =head1 DESCRIPTION
42  
43 The part of a web request that you want WAF to inspect. Include the
44 single C<FieldToMatch> type that you want to inspect, with additional
45 specifications as needed, according to the type. You specify a single
46 request component in C<FieldToMatch> for each rule statement that
47 requires it. To inspect more than one component of a web request,
48 create a separate rule statement for each component.
49  
50 =head1 ATTRIBUTES
51  
52  
53 =head2 AllQueryArguments => L<Paws::WAFV2::AllQueryArguments>
54  
55 Inspect all query arguments.
56  
57  
58 =head2 Body => L<Paws::WAFV2::Body>
59  
60 Inspect the request body as plain text. The request body immediately
61 follows the request headers. This is the part of a request that
62 contains any additional data that you want to send to your web server
63 as the HTTP request body, such as data from a form.
64  
65 Note that only the first 8 KB (8192 bytes) of the request body are
66 forwarded to WAF for inspection by the underlying host service. If you
67 don't need to inspect more than 8 KB, you can guarantee that you don't
68 allow additional bytes in by combining a statement that inspects the
69 body of the web request, such as ByteMatchStatement or
70 RegexPatternSetReferenceStatement, with a SizeConstraintStatement that
71 enforces an 8 KB size limit on the body of the request. WAF doesn't
72 support inspecting the entire contents of web requests whose bodies
73 exceed the 8 KB limit.
74  
75  
76 =head2 JsonBody => L<Paws::WAFV2::JsonBody>
77  
78 Inspect the request body as JSON. The request body immediately follows
79 the request headers. This is the part of a request that contains any
80 additional data that you want to send to your web server as the HTTP
81 request body, such as data from a form.
82  
83 Note that only the first 8 KB (8192 bytes) of the request body are
84 forwarded to WAF for inspection by the underlying host service. If you
85 don't need to inspect more than 8 KB, you can guarantee that you don't
86 allow additional bytes in by combining a statement that inspects the
87 body of the web request, such as ByteMatchStatement or
88 RegexPatternSetReferenceStatement, with a SizeConstraintStatement that
89 enforces an 8 KB size limit on the body of the request. WAF doesn't
90 support inspecting the entire contents of web requests whose bodies
91 exceed the 8 KB limit.
92  
93  
94 =head2 Method => L<Paws::WAFV2::Method>
95  
96 Inspect the HTTP method. The method indicates the type of operation
97 that the request is asking the origin to perform.
98  
99  
100 =head2 QueryString => L<Paws::WAFV2::QueryString>
101  
102 Inspect the query string. This is the part of a URL that appears after
103 a C<?> character, if any.
104  
105  
106 =head2 SingleHeader => L<Paws::WAFV2::SingleHeader>
107  
108 Inspect a single header. Provide the name of the header to inspect, for
109 example, C<User-Agent> or C<Referer>. This setting isn't case
110 sensitive.
111  
112 Example JSON: C<"SingleHeader": { "Name": "haystack" }>
113  
114  
115 =head2 SingleQueryArgument => L<Paws::WAFV2::SingleQueryArgument>
116  
117 Inspect a single query argument. Provide the name of the query argument
118 to inspect, such as I<UserName> or I<SalesRegion>. The name can be up
119 to 30 characters long and isn't case sensitive.
120  
121 This is used only to indicate the web request component for WAF to
122 inspect, in the FieldToMatch specification.
123  
124 Example JSON: C<"SingleQueryArgument": { "Name": "myArgument" }>
125  
126  
127 =head2 UriPath => L<Paws::WAFV2::UriPath>
128  
129 Inspect the request URI path. This is the part of a web request that
130 identifies a resource, for example, C</images/daily-ad.jpg>.
131  
132  
133  
134 =head1 SEE ALSO
135  
136 This class forms part of L<Paws>, describing an object used in L<Paws::WAFV2>
137  
138 =head1 BUGS and CONTRIBUTIONS
139  
140 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
141  
142 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
143  
144 =cut
145