blib/lib/Paws/CloudFront/OriginRequestPolicy.pm untested

filter: Statementstmt 0.0% 0 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 7 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::CloudFront::OriginRequestPolicy;
3 use Moose;
4 has Id => (is => 'ro', isa => 'Str', required => 1);
5 has LastModifiedTime => (is => 'ro', isa => 'Str', required => 1);
6 has OriginRequestPolicyConfig => (is => 'ro', isa => 'Paws::CloudFront::OriginRequestPolicyConfig', required => 1);
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::CloudFront::OriginRequestPolicy
15  
16 =head1 USAGE
17  
18 This class represents one of two things:
19  
20 =head3 Arguments in a call to a service
21  
22 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23 Each attribute should be used as a named argument in the calls that expect this type of object.
24  
25 As an example, if Att1 is expected to be a Paws::CloudFront::OriginRequestPolicy object:
26  
27 $service_obj->Method(Att1 => { Id => $value, ..., OriginRequestPolicyConfig => $value });
28  
29 =head3 Results returned from an API call
30  
31 Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::OriginRequestPolicy object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->Id
35  
36 =head1 DESCRIPTION
37  
38 An origin request policy.
39  
40 When itE<rsquo>s attached to a cache behavior, the origin request
41 policy determines the values that CloudFront includes in requests that
42 it sends to the origin. Each request that CloudFront sends to the
43 origin includes the following:
44  
45 =over
46  
47 =item *
48  
49 The request body and the URL path (without the domain name) from the
50 viewer request.
51  
52 =item *
53  
54 The headers that CloudFront automatically includes in every origin
55 request, including C<Host>, C<User-Agent>, and C<X-Amz-Cf-Id>.
56  
57 =item *
58  
59 All HTTP headers, cookies, and URL query strings that are specified in
60 the cache policy or the origin request policy. These can include items
61 from the viewer request and, in the case of headers, additional ones
62 that are added by CloudFront.
63  
64 =back
65  
66 CloudFront sends a request when it canE<rsquo>t find an object in its
67 cache that matches the request. If you want to send values to the
68 origin and also include them in the cache key, use C<CachePolicy>.
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 B<REQUIRED> Id => Str
74  
75 The unique identifier for the origin request policy.
76  
77  
78 =head2 B<REQUIRED> LastModifiedTime => Str
79  
80 The date and time when the origin request policy was last modified.
81  
82  
83 =head2 B<REQUIRED> OriginRequestPolicyConfig => L<Paws::CloudFront::OriginRequestPolicyConfig>
84  
85 The origin request policy configuration.
86  
87  
88  
89 =head1 SEE ALSO
90  
91 This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
92  
93 =head1 BUGS and CONTRIBUTIONS
94  
95 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
96  
97 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
98  
99 =cut
100