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

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 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::AllowedMethods;
3 use Moose;
4 has CachedMethods => (is => 'ro', isa => 'Paws::CloudFront::CachedMethods');
5 has Items => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'Method', traits => ['NameInRequest'], required => 1);
6 has Quantity => (is => 'ro', isa => 'Int', required => 1);
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::CloudFront::AllowedMethods
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::AllowedMethods object:
26  
27 $service_obj->Method(Att1 => { CachedMethods => $value, ..., Quantity => $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::AllowedMethods object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->CachedMethods
35  
36 =head1 DESCRIPTION
37  
38 A complex type that controls which HTTP methods CloudFront processes
39 and forwards to your Amazon S3 bucket or your custom origin. There are
40 three choices:
41  
42 =over
43  
44 =item *
45  
46 CloudFront forwards only C<GET> and C<HEAD> requests.
47  
48 =item *
49  
50 CloudFront forwards only C<GET>, C<HEAD>, and C<OPTIONS> requests.
51  
52 =item *
53  
54 CloudFront forwards C<GET, HEAD, OPTIONS, PUT, PATCH, POST>, and
55 C<DELETE> requests.
56  
57 =back
58  
59 If you pick the third choice, you may need to restrict access to your
60 Amazon S3 bucket or to your custom origin so users can't perform
61 operations that you don't want them to. For example, you might not want
62 users to have permissions to delete objects from your origin.
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 CachedMethods => L<Paws::CloudFront::CachedMethods>
68  
69  
70  
71  
72 =head2 B<REQUIRED> Items => ArrayRef[Str|Undef]
73  
74 A complex type that contains the HTTP methods that you want CloudFront
75 to process and forward to your origin.
76  
77  
78 =head2 B<REQUIRED> Quantity => Int
79  
80 The number of HTTP methods that you want CloudFront to forward to your
81 origin. Valid values are 2 (for C<GET> and C<HEAD> requests), 3 (for
82 C<GET>, C<HEAD>, and C<OPTIONS> requests) and 7 (for C<GET, HEAD,
83 OPTIONS, PUT, PATCH, POST>, and C<DELETE> requests).
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut
98