File Coverage

blib/lib/Paws/CloudFront/AllowedMethods.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::CloudFront::AllowedMethods;
2 1     1   380 use Moose;
  1         2  
  1         6  
3             has CachedMethods => (is => 'ro', isa => 'Paws::CloudFront::CachedMethods');
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             1;
7              
8             ### main pod documentation begin ###
9              
10             =head1 NAME
11              
12             Paws::CloudFront::AllowedMethods
13              
14             =head1 USAGE
15              
16             This class represents one of two things:
17              
18             =head3 Arguments in a call to a service
19              
20             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
21             Each attribute should be used as a named argument in the calls that expect this type of object.
22              
23             As an example, if Att1 is expected to be a Paws::CloudFront::AllowedMethods object:
24              
25             $service_obj->Method(Att1 => { CachedMethods => $value, ..., Quantity => $value });
26              
27             =head3 Results returned from an API call
28              
29             Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::AllowedMethods object:
30              
31             $result = $service_obj->Method(...);
32             $result->Att1->CachedMethods
33              
34             =head1 DESCRIPTION
35              
36             A complex type that controls which HTTP methods CloudFront processes
37             and forwards to your Amazon S3 bucket or your custom origin. There are
38             three choices:
39              
40             =over
41              
42             =item *
43              
44             CloudFront forwards only C<GET> and C<HEAD> requests.
45              
46             =item *
47              
48             CloudFront forwards only C<GET>, C<HEAD>, and C<OPTIONS> requests.
49              
50             =item *
51              
52             CloudFront forwards C<GET, HEAD, OPTIONS, PUT, PATCH, POST>, and
53             C<DELETE> requests.
54              
55             =back
56              
57             If you pick the third choice, you may need to restrict access to your
58             Amazon S3 bucket or to your custom origin so users can't perform
59             operations that you don't want them to. For example, you might not want
60             users to have permissions to delete objects from your origin.
61              
62             =head1 ATTRIBUTES
63              
64              
65             =head2 CachedMethods => L<Paws::CloudFront::CachedMethods>
66              
67            
68              
69              
70             =head2 B<REQUIRED> Items => ArrayRef[Str|Undef]
71              
72             A complex type that contains the HTTP methods that you want CloudFront
73             to process and forward to your origin.
74              
75              
76             =head2 B<REQUIRED> Quantity => Int
77              
78             The number of HTTP methods that you want CloudFront to forward to your
79             origin. Valid values are 2 (for C<GET> and C<HEAD> requests), 3 (for
80             C<GET>, C<HEAD>, and C<OPTIONS> requests) and 7 (for C<GET, HEAD,
81             OPTIONS, PUT, PATCH, POST>, and C<DELETE> requests).
82              
83              
84              
85             =head1 SEE ALSO
86              
87             This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
88              
89             =head1 BUGS and CONTRIBUTIONS
90              
91             The source code is located here: https://github.com/pplu/aws-sdk-perl
92              
93             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
94              
95             =cut
96