blib/lib/Paws/S3/CORSRule.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/S3/CORSConfiguration.pm ↑ Summary blib/lib/Paws/S3/CommonPrefix.pm »
1 # Generated by default/object.tt
2 package Paws::S3::CORSRule;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has AllowedHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AllowedHeader', traits => ['NameInRequest']);
5 1 has AllowedMethods => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AllowedMethod', traits => ['NameInRequest'], required => 1);
6 1 has AllowedOrigins => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AllowedOrigin', traits => ['NameInRequest'], required => 1);
7 1 has ExposeHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'ExposeHeader', traits => ['NameInRequest']);
8 1 has ID => (is => 'ro', isa => 'Str');
9 1 has MaxAgeSeconds => (is => 'ro', isa => 'Int');
10  
11 1 1;
12  
13 ### main pod documentation begin ###
14  
15 =head1 NAME
16  
17 Paws::S3::CORSRule
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::S3::CORSRule object:
29  
30 $service_obj->Method(Att1 => { AllowedHeaders => $value, ..., MaxAgeSeconds => $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::S3::CORSRule object:
35  
36 $result = $service_obj->Method(...);
37 $result->Att1->AllowedHeaders
38  
39 =head1 DESCRIPTION
40  
41 Specifies a cross-origin access rule for an Amazon S3 bucket.
42  
43 =head1 ATTRIBUTES
44  
45  
46 =head2 AllowedHeaders => ArrayRef[Str|Undef]
47  
48 Headers that are specified in the C<Access-Control-Request-Headers>
49 header. These headers are allowed in a preflight OPTIONS request. In
50 response to any preflight OPTIONS request, Amazon S3 returns any
51 requested headers that are allowed.
52  
53  
54 =head2 B<REQUIRED> AllowedMethods => ArrayRef[Str|Undef]
55  
56 An HTTP method that you allow the origin to execute. Valid values are
57 C<GET>, C<PUT>, C<HEAD>, C<POST>, and C<DELETE>.
58  
59  
60 =head2 B<REQUIRED> AllowedOrigins => ArrayRef[Str|Undef]
61  
62 One or more origins you want customers to be able to access the bucket
63 from.
64  
65  
66 =head2 ExposeHeaders => ArrayRef[Str|Undef]
67  
68 One or more headers in the response that you want customers to be able
69 to access from their applications (for example, from a JavaScript
70 C<XMLHttpRequest> object).
71  
72  
73 =head2 ID => Str
74  
75 Unique identifier for the rule. The value cannot be longer than 255
76 characters.
77  
78  
79 =head2 MaxAgeSeconds => Int
80  
81 The time in seconds that your browser is to cache the preflight
82 response for the specified resource.
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, describing an object used in L<Paws::S3>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97  
« blib/lib/Paws/S3/CORSConfiguration.pm ↑ Summary blib/lib/Paws/S3/CommonPrefix.pm »