blib/lib/Paws/CloudFront/CachedMethods.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::CachedMethods;
3 use Moose;
4 has Items => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'Method', traits => ['NameInRequest'], required => 1);
5 has Quantity => (is => 'ro', isa => 'Int', required => 1);
6  
7 1;
8  
9 ### main pod documentation begin ###
10  
11 =head1 NAME
12  
13 Paws::CloudFront::CachedMethods
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::CloudFront::CachedMethods object:
25  
26 $service_obj->Method(Att1 => { Items => $value, ..., Quantity => $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::CloudFront::CachedMethods object:
31  
32 $result = $service_obj->Method(...);
33 $result->Att1->Items
34  
35 =head1 DESCRIPTION
36  
37 A complex type that controls whether CloudFront caches the response to
38 requests using the specified HTTP methods. There are two choices:
39  
40 =over
41  
42 =item *
43  
44 CloudFront caches responses to C<GET> and C<HEAD> requests.
45  
46 =item *
47  
48 CloudFront caches responses to C<GET>, C<HEAD>, and C<OPTIONS>
49 requests.
50  
51 =back
52  
53 If you pick the second choice for your Amazon S3 Origin, you may need
54 to forward Access-Control-Request-Method,
55 Access-Control-Request-Headers, and Origin headers for the responses to
56 be cached correctly.
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> Items => ArrayRef[Str|Undef]
62  
63 A complex type that contains the HTTP methods that you want CloudFront
64 to cache responses to.
65  
66  
67 =head2 B<REQUIRED> Quantity => Int
68  
69 The number of HTTP methods for which you want CloudFront to cache
70 responses. Valid values are C<2> (for caching responses to C<GET> and
71 C<HEAD> requests) and C<3> (for caching responses to C<GET>, C<HEAD>,
72 and C<OPTIONS> requests).
73  
74  
75  
76 =head1 SEE ALSO
77  
78 This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
79  
80 =head1 BUGS and CONTRIBUTIONS
81  
82 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
83  
84 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
85  
86 =cut
87