File Coverage

blib/lib/Paws/CloudFront/StreamingLoggingConfig.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::StreamingLoggingConfig;
2 1     1   636 use Moose;
  1         4  
  1         7  
3             has Bucket => (is => 'ro', isa => 'Str', required => 1);
4             has Enabled => (is => 'ro', isa => 'Bool', required => 1);
5             has Prefix => (is => 'ro', isa => 'Str', required => 1);
6             1;
7              
8             ### main pod documentation begin ###
9              
10             =head1 NAME
11              
12             Paws::CloudFront::StreamingLoggingConfig
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::StreamingLoggingConfig object:
24              
25             $service_obj->Method(Att1 => { Bucket => $value, ..., Prefix => $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::StreamingLoggingConfig object:
30              
31             $result = $service_obj->Method(...);
32             $result->Att1->Bucket
33              
34             =head1 DESCRIPTION
35              
36             A complex type that controls whether access logs are written for this
37             streaming distribution.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 B<REQUIRED> Bucket => Str
43              
44             The Amazon S3 bucket to store the access logs in, for example,
45             C<myawslogbucket.s3.amazonaws.com>.
46              
47              
48             =head2 B<REQUIRED> Enabled => Bool
49              
50             Specifies whether you want CloudFront to save access logs to an Amazon
51             S3 bucket. If you do not want to enable logging when you create a
52             streaming distribution or if you want to disable logging for an
53             existing streaming distribution, specify C<false> for C<Enabled>, and
54             specify C<empty Bucket> and C<Prefix> elements. If you specify C<false>
55             for C<Enabled> but you specify values for C<Bucket> and C<Prefix>, the
56             values are automatically deleted.
57              
58              
59             =head2 B<REQUIRED> Prefix => Str
60              
61             An optional string that you want CloudFront to prefix to the access log
62             C<filenames> for this streaming distribution, for example,
63             C<myprefix/>. If you want to enable logging, but you do not want to
64             specify a prefix, you still must include an empty C<Prefix> element in
65             the C<Logging> element.
66              
67              
68              
69             =head1 SEE ALSO
70              
71             This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
72              
73             =head1 BUGS and CONTRIBUTIONS
74              
75             The source code is located here: https://github.com/pplu/aws-sdk-perl
76              
77             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
78              
79             =cut
80