File Coverage

blib/lib/Paws/S3/CORSRule.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::S3::CORSRule;
2 1     1   282 use Moose;
  1         2  
  1         6  
3             has AllowedHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AllowedHeader', traits => ['NameInRequest']);
4             has AllowedMethods => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AllowedMethod', traits => ['NameInRequest'], required => 1);
5             has AllowedOrigins => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AllowedOrigin', traits => ['NameInRequest'], required => 1);
6             has ExposeHeaders => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'ExposeHeader', traits => ['NameInRequest']);
7             has MaxAgeSeconds => (is => 'ro', isa => 'Int');
8             1;
9              
10             ### main pod documentation begin ###
11              
12             =head1 NAME
13              
14             Paws::S3::CORSRule
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::S3::CORSRule object:
26              
27             $service_obj->Method(Att1 => { AllowedHeaders => $value, ..., MaxAgeSeconds => $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::S3::CORSRule object:
32              
33             $result = $service_obj->Method(...);
34             $result->Att1->AllowedHeaders
35              
36             =head1 DESCRIPTION
37              
38             This class has no description
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 AllowedHeaders => ArrayRef[Str|Undef]
44              
45             Specifies which headers are allowed in a pre-flight OPTIONS request.
46              
47              
48             =head2 B<REQUIRED> AllowedMethods => ArrayRef[Str|Undef]
49              
50             Identifies HTTP methods that the domain/origin specified in the rule is
51             allowed to execute.
52              
53              
54             =head2 B<REQUIRED> AllowedOrigins => ArrayRef[Str|Undef]
55              
56             One or more origins you want customers to be able to access the bucket
57             from.
58              
59              
60             =head2 ExposeHeaders => ArrayRef[Str|Undef]
61              
62             One or more headers in the response that you want customers to be able
63             to access from their applications (for example, from a JavaScript
64             XMLHttpRequest object).
65              
66              
67             =head2 MaxAgeSeconds => Int
68              
69             The time in seconds that your browser is to cache the preflight
70             response for the specified resource.
71              
72              
73              
74             =head1 SEE ALSO
75              
76             This class forms part of L<Paws>, describing an object used in L<Paws::S3>
77              
78             =head1 BUGS and CONTRIBUTIONS
79              
80             The source code is located here: https://github.com/pplu/aws-sdk-perl
81              
82             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
83              
84             =cut
85