File Coverage

blib/lib/Paws/WAF/SampledHTTPRequest.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::SampledHTTPRequest;
2 1     1   450 use Moose;
  1         3  
  1         7  
3             has Action => (is => 'ro', isa => 'Str');
4             has Request => (is => 'ro', isa => 'Paws::WAF::HTTPRequest', required => 1);
5             has Timestamp => (is => 'ro', isa => 'Str');
6             has Weight => (is => 'ro', isa => 'Int', required => 1);
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::WAF::SampledHTTPRequest
14              
15             =head1 USAGE
16              
17             This class represents one of two things:
18              
19             =head3 Arguments in a call to a service
20              
21             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22             Each attribute should be used as a named argument in the calls that expect this type of object.
23              
24             As an example, if Att1 is expected to be a Paws::WAF::SampledHTTPRequest object:
25              
26             $service_obj->Method(Att1 => { Action => $value, ..., Weight => $value });
27              
28             =head3 Results returned from an API call
29              
30             Use accessors for each attribute. If Att1 is expected to be an Paws::WAF::SampledHTTPRequest object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->Action
34              
35             =head1 DESCRIPTION
36              
37             The response from a GetSampledRequests request includes a
38             C<SampledHTTPRequests> complex type that appears as C<SampledRequests>
39             in the response syntax. C<SampledHTTPRequests> contains one
40             C<SampledHTTPRequest> object for each web request that is returned by
41             C<GetSampledRequests>.
42              
43             =head1 ATTRIBUTES
44              
45              
46             =head2 Action => Str
47              
48             The action for the C<Rule> that the request matched: C<ALLOW>,
49             C<BLOCK>, or C<COUNT>.
50              
51              
52             =head2 B<REQUIRED> Request => L<Paws::WAF::HTTPRequest>
53              
54             A complex type that contains detailed information about the request.
55              
56              
57             =head2 Timestamp => Str
58              
59             The time at which AWS WAF received the request from your AWS resource,
60             in Unix time format (in seconds).
61              
62              
63             =head2 B<REQUIRED> Weight => Int
64              
65             A value that indicates how one result in the response relates
66             proportionally to other results in the response. A result that has a
67             weight of C<2> represents roughly twice as many CloudFront web requests
68             as a result that has a weight of C<1>.
69              
70              
71              
72             =head1 SEE ALSO
73              
74             This class forms part of L<Paws>, describing an object used in L<Paws::WAF>
75              
76             =head1 BUGS and CONTRIBUTIONS
77              
78             The source code is located here: https://github.com/pplu/aws-sdk-perl
79              
80             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
81              
82             =cut
83