blib/lib/Paws/CloudFront/GeoRestriction.pm untested

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::CloudFront::GeoRestriction;
3 use Moose;
4 has Items => (is => 'ro', isa => 'ArrayRef[Str|Undef]', request_name => 'Location', traits => ['NameInRequest']);
5 has Quantity => (is => 'ro', isa => 'Int', required => 1);
6 has RestrictionType => (is => 'ro', isa => 'Str', required => 1);
7  
8 1;
9  
10 ### main pod documentation begin ###
11  
12 =head1 NAME
13  
14 Paws::CloudFront::GeoRestriction
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::CloudFront::GeoRestriction object:
26  
27 $service_obj->Method(Att1 => { Items => $value, ..., RestrictionType => $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::CloudFront::GeoRestriction object:
32  
33 $result = $service_obj->Method(...);
34 $result->Att1->Items
35  
36 =head1 DESCRIPTION
37  
38 A complex type that controls the countries in which your content is
39 distributed. CloudFront determines the location of your users using
40 C<MaxMind> GeoIP databases.
41  
42 =head1 ATTRIBUTES
43  
44  
45 =head2 Items => ArrayRef[Str|Undef]
46  
47 A complex type that contains a C<Location> element for each country in
48 which you want CloudFront either to distribute your content
49 (C<whitelist>) or not distribute your content (C<blacklist>).
50  
51 The C<Location> element is a two-letter, uppercase country code for a
52 country that you want to include in your C<blacklist> or C<whitelist>.
53 Include one C<Location> element for each country.
54  
55 CloudFront and C<MaxMind> both use C<ISO 3166> country codes. For the
56 current list of countries and the corresponding codes, see C<ISO
57 3166-1-alpha-2> code on the I<International Organization for
58 Standardization> website. You can also refer to the country list on the
59 CloudFront console, which includes both country names and codes.
60  
61  
62 =head2 B<REQUIRED> Quantity => Int
63  
64 When geo restriction is C<enabled>, this is the number of countries in
65 your C<whitelist> or C<blacklist>. Otherwise, when it is not enabled,
66 C<Quantity> is C<0>, and you can omit C<Items>.
67  
68  
69 =head2 B<REQUIRED> RestrictionType => Str
70  
71 The method that you want to use to restrict distribution of your
72 content by country:
73  
74 =over
75  
76 =item *
77  
78 C<none>: No geo restriction is enabled, meaning access to content is
79 not restricted by client geo location.
80  
81 =item *
82  
83 C<blacklist>: The C<Location> elements specify the countries in which
84 you don't want CloudFront to distribute your content.
85  
86 =item *
87  
88 C<whitelist>: The C<Location> elements specify the countries in which
89 you want CloudFront to distribute your content.
90  
91 =back
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, describing an object used in L<Paws::CloudFront>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107