| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::WAFV2::HTTPRequest; | ||
| 3 | use Moose; | ||
| 4 | has ClientIP => (is => 'ro', isa => 'Str'); | ||
| 5 | has Country => (is => 'ro', isa => 'Str'); | ||
| 6 | has Headers => (is => 'ro', isa => 'ArrayRef[Paws::WAFV2::HTTPHeader]'); | ||
| 7 | has HTTPVersion => (is => 'ro', isa => 'Str'); | ||
| 8 | has Method => (is => 'ro', isa => 'Str'); | ||
| 9 | has URI => (is => 'ro', isa => 'Str'); | ||
| 10 | |||
| 11 | 1; | ||
| 12 | |||
| 13 | ### main pod documentation begin ### | ||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | Paws::WAFV2::HTTPRequest | ||
| 18 | |||
| 19 | =head1 USAGE | ||
| 20 | |||
| 21 | This class represents one of two things: | ||
| 22 | |||
| 23 | =head3 Arguments in a call to a service | ||
| 24 | |||
| 25 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 26 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 27 | |||
| 28 | As an example, if Att1 is expected to be a Paws::WAFV2::HTTPRequest object: | ||
| 29 | |||
| 30 | $service_obj->Method(Att1 => { ClientIP => $value, ..., URI => $value }); | ||
| 31 | |||
| 32 | =head3 Results returned from an API call | ||
| 33 | |||
| 34 | Use accessors for each attribute. If Att1 is expected to be an Paws::WAFV2::HTTPRequest object: | ||
| 35 | |||
| 36 | $result = $service_obj->Method(...); | ||
| 37 | $result->Att1->ClientIP | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | Part of the response from GetSampledRequests. This is a complex type | ||
| 42 | that appears as C<Request> in the response syntax. C<HTTPRequest> | ||
| 43 | contains information about one of the web requests. | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | |||
| 48 | =head2 ClientIP => Str | ||
| 49 | |||
| 50 | The IP address that the request originated from. If the web ACL is | ||
| 51 | associated with a CloudFront distribution, this is the value of one of | ||
| 52 | the following fields in CloudFront access logs: | ||
| 53 | |||
| 54 | =over | ||
| 55 | |||
| 56 | =item * | ||
| 57 | |||
| 58 | C<c-ip>, if the viewer did not use an HTTP proxy or a load balancer to | ||
| 59 | send the request | ||
| 60 | |||
| 61 | =item * | ||
| 62 | |||
| 63 | C<x-forwarded-for>, if the viewer did use an HTTP proxy or a load | ||
| 64 | balancer to send the request | ||
| 65 | |||
| 66 | =back | ||
| 67 | |||
| 68 | |||
| 69 | |||
| 70 | =head2 Country => Str | ||
| 71 | |||
| 72 | The two-letter country code for the country that the request originated | ||
| 73 | from. For a current list of country codes, see the Wikipedia entry ISO | ||
| 74 | 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). | ||
| 75 | |||
| 76 | |||
| 77 | =head2 Headers => ArrayRef[L<Paws::WAFV2::HTTPHeader>] | ||
| 78 | |||
| 79 | A complex type that contains the name and value for each header in the | ||
| 80 | sampled web request. | ||
| 81 | |||
| 82 | |||
| 83 | =head2 HTTPVersion => Str | ||
| 84 | |||
| 85 | The HTTP version specified in the sampled web request, for example, | ||
| 86 | C<HTTP/1.1>. | ||
| 87 | |||
| 88 | |||
| 89 | =head2 Method => Str | ||
| 90 | |||
| 91 | The HTTP method specified in the sampled web request. | ||
| 92 | |||
| 93 | |||
| 94 | =head2 URI => Str | ||
| 95 | |||
| 96 | The URI path of the request, which identifies the resource, for | ||
| 97 | example, C</images/daily-ad.jpg>. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head1 SEE ALSO | ||
| 102 | |||
| 103 | This class forms part of L<Paws>, describing an object used in L<Paws::WAFV2> | ||
| 104 | |||
| 105 | =head1 BUGS and CONTRIBUTIONS | ||
| 106 | |||
| 107 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 108 | |||
| 109 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 110 | |||
| 111 | =cut | ||
| 112 |