File Coverage

blib/lib/Paws/CloudFront/TrustedSigners.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::TrustedSigners;
2 1     1   289 use Moose;
  1         2  
  1         6  
3             has Enabled => (is => 'ro', isa => 'Bool', required => 1);
4             has Items => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'AwsAccountNumber', traits => ['NameInRequest']);
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::TrustedSigners
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::TrustedSigners object:
24              
25             $service_obj->Method(Att1 => { Enabled => $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::TrustedSigners object:
30              
31             $result = $service_obj->Method(...);
32             $result->Att1->Enabled
33              
34             =head1 DESCRIPTION
35              
36             A complex type that specifies the AWS accounts, if any, that you want
37             to allow to create signed URLs for private content.
38              
39             If you want to require signed URLs in requests for objects in the
40             target origin that match the C<PathPattern> for this cache behavior,
41             specify C<true> for C<Enabled>, and specify the applicable values for
42             C<Quantity> and C<Items>. For more information, see Serving Private
43             Content through CloudFront in the I<Amazon Amazon CloudFront Developer
44             Guide>.
45              
46             If you don't want to require signed URLs in requests for objects that
47             match C<PathPattern>, specify C<false> for C<Enabled> and C<0> for
48             C<Quantity>. Omit C<Items>.
49              
50             To add, change, or remove one or more trusted signers, change
51             C<Enabled> to C<true> (if it's currently C<false>), change C<Quantity>
52             as applicable, and specify all of the trusted signers that you want to
53             include in the updated distribution.
54              
55             For more information about updating the distribution configuration, see
56             DistributionConfig .
57              
58             =head1 ATTRIBUTES
59              
60              
61             =head2 B<REQUIRED> Enabled => Bool
62              
63             Specifies whether you want to require viewers to use signed URLs to
64             access the files specified by C<PathPattern> and C<TargetOriginId>.
65              
66              
67             =head2 Items => ArrayRef[Str|Undef]
68              
69             B<Optional>: A complex type that contains trusted signers for this
70             cache behavior. If C<Quantity> is C<0>, you can omit C<Items>.
71              
72              
73             =head2 B<REQUIRED> Quantity => Int
74              
75             The number of trusted signers for this cache behavior.
76              
77              
78              
79             =head1 SEE ALSO
80              
81             This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
82              
83             =head1 BUGS and CONTRIBUTIONS
84              
85             The source code is located here: https://github.com/pplu/aws-sdk-perl
86              
87             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
88              
89             =cut
90