File Coverage

blib/lib/Paws/CloudFront/S3Origin.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::S3Origin;
2 1     1   281 use Moose;
  1         2  
  1         5  
3             has DomainName => (is => 'ro', isa => 'Str', required => 1);
4             has OriginAccessIdentity => (is => 'ro', isa => 'Str', required => 1);
5             1;
6              
7             ### main pod documentation begin ###
8              
9             =head1 NAME
10              
11             Paws::CloudFront::S3Origin
12              
13             =head1 USAGE
14              
15             This class represents one of two things:
16              
17             =head3 Arguments in a call to a service
18              
19             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
20             Each attribute should be used as a named argument in the calls that expect this type of object.
21              
22             As an example, if Att1 is expected to be a Paws::CloudFront::S3Origin object:
23              
24             $service_obj->Method(Att1 => { DomainName => $value, ..., OriginAccessIdentity => $value });
25              
26             =head3 Results returned from an API call
27              
28             Use accessors for each attribute. If Att1 is expected to be an Paws::CloudFront::S3Origin object:
29              
30             $result = $service_obj->Method(...);
31             $result->Att1->DomainName
32              
33             =head1 DESCRIPTION
34              
35             A complex type that contains information about the Amazon S3 bucket
36             from which you want CloudFront to get your media files for
37             distribution.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 B<REQUIRED> DomainName => Str
43              
44             The DNS name of the Amazon S3 origin.
45              
46              
47             =head2 B<REQUIRED> OriginAccessIdentity => Str
48              
49             The CloudFront origin access identity to associate with the RTMP
50             distribution. Use an origin access identity to configure the
51             distribution so that end users can only access objects in an Amazon S3
52             bucket through CloudFront.
53              
54             If you want end users to be able to access objects using either the
55             CloudFront URL or the Amazon S3 URL, specify an empty
56             C<OriginAccessIdentity> element.
57              
58             To delete the origin access identity from an existing distribution,
59             update the distribution configuration and include an empty
60             C<OriginAccessIdentity> element.
61              
62             To replace the origin access identity, update the distribution
63             configuration and specify the new origin access identity.
64              
65             For more information, see Using an Origin Access Identity to Restrict
66             Access to Your Amazon S3 Content in the I<Amazon Amazon CloudFront
67             Developer Guide>.
68              
69              
70              
71             =head1 SEE ALSO
72              
73             This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
74              
75             =head1 BUGS and CONTRIBUTIONS
76              
77             The source code is located here: https://github.com/pplu/aws-sdk-perl
78              
79             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
80              
81             =cut
82