File Coverage

blib/lib/Cfn/Resource/AWS/CloudFront/CachePolicy.pm
Criterion Covered Total %
statement 44 44 100.0
branch n/a
condition n/a
subroutine 16 16 100.0
pod 0 2 0.0
total 60 62 96.7


line stmt bran cond sub pod time code
1             # AWS::CloudFront::CachePolicy generated from spec 20.1.0
2 1     1   534 use Moose::Util::TypeConstraints;
  1         3  
  1         8  
3              
4             coerce 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::CloudFront::CachePolicy->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::CloudFront::CachePolicy {
9 1     1   1994 use Moose;
  1         2  
  1         7  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Id','LastModifiedTime' ]
15             }
16             sub supported_regions {
17 1     1 0 1096 [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-west-1','us-west-2' ]
18             }
19             }
20              
21              
22              
23             subtype 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::QueryStringsConfig',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::QueryStringsConfig',
27             from 'HashRef',
28             via {
29             if (my $f = Cfn::TypeLibrary::try_function($_)) {
30             return $f
31             } else {
32             return Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::QueryStringsConfig->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::QueryStringsConfig {
37 1     1   6887 use Moose;
  1         11  
  1         8  
38 1     1   6667 use MooseX::StrictConstructor;
  1         2  
  1         8  
39             extends 'Cfn::Value::TypedValue';
40            
41             has QueryStringBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42             has QueryStrings => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43             }
44              
45             subtype 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::HeadersConfig',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::HeadersConfig',
49             from 'HashRef',
50             via {
51             if (my $f = Cfn::TypeLibrary::try_function($_)) {
52             return $f
53             } else {
54             return Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::HeadersConfig->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::HeadersConfig {
59 1     1   3647 use Moose;
  1         2  
  1         5  
60 1     1   6569 use MooseX::StrictConstructor;
  1         3  
  1         6  
61             extends 'Cfn::Value::TypedValue';
62            
63             has HeaderBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
64             has Headers => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
65             }
66              
67             subtype 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::CookiesConfig',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::CookiesConfig',
71             from 'HashRef',
72             via {
73             if (my $f = Cfn::TypeLibrary::try_function($_)) {
74             return $f
75             } else {
76             return Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::CookiesConfig->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::CookiesConfig {
81 1     1   3495 use Moose;
  1         2  
  1         5  
82 1     1   6582 use MooseX::StrictConstructor;
  1         3  
  1         6  
83             extends 'Cfn::Value::TypedValue';
84            
85             has CookieBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
86             has Cookies => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
87             }
88              
89             subtype 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::ParametersInCacheKeyAndForwardedToOrigin',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::ParametersInCacheKeyAndForwardedToOrigin',
93             from 'HashRef',
94             via {
95             if (my $f = Cfn::TypeLibrary::try_function($_)) {
96             return $f
97             } else {
98             return Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::ParametersInCacheKeyAndForwardedToOrigin->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::ParametersInCacheKeyAndForwardedToOrigin {
103 1     1   3440 use Moose;
  1         3  
  1         5  
104 1     1   6678 use MooseX::StrictConstructor;
  1         3  
  1         40  
105             extends 'Cfn::Value::TypedValue';
106            
107             has CookiesConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::CookiesConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has EnableAcceptEncodingBrotli => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has EnableAcceptEncodingGzip => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has HeadersConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::HeadersConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has QueryStringsConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::QueryStringsConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             }
113              
114             subtype 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::CachePolicyConfig',
115             as 'Cfn::Value';
116              
117             coerce 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::CachePolicyConfig',
118             from 'HashRef',
119             via {
120             if (my $f = Cfn::TypeLibrary::try_function($_)) {
121             return $f
122             } else {
123             return Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::CachePolicyConfig->new( %$_ );
124             }
125             };
126              
127             package Cfn::Resource::Properties::Object::AWS::CloudFront::CachePolicy::CachePolicyConfig {
128 1     1   3786 use Moose;
  1         3  
  1         5  
129 1     1   6625 use MooseX::StrictConstructor;
  1         3  
  1         5  
130             extends 'Cfn::Value::TypedValue';
131            
132             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
133             has DefaultTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134             has MaxTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135             has MinTTL => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
137             has ParametersInCacheKeyAndForwardedToOrigin => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::ParametersInCacheKeyAndForwardedToOrigin', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138             }
139              
140             package Cfn::Resource::Properties::AWS::CloudFront::CachePolicy {
141 1     1   3394 use Moose;
  1         4  
  1         6  
142 1     1   6570 use MooseX::StrictConstructor;
  1         3  
  1         5  
143             extends 'Cfn::Resource::Properties';
144            
145             has CachePolicyConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy::CachePolicyConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
146             }
147              
148             1;
149             ### main pod documentation begin ###
150              
151             =encoding UTF-8
152              
153             =head1 NAME
154              
155             Cfn::Resource::AWS::CloudFront::CachePolicy - Cfn resource for AWS::CloudFront::CachePolicy
156              
157             =head1 DESCRIPTION
158              
159             This module implements a Perl module that represents the CloudFormation object AWS::CloudFront::CachePolicy.
160              
161             See L<Cfn> for more information on how to use it.
162              
163             =head1 AUTHOR
164              
165             Jose Luis Martinez
166             CAPSiDE
167             jlmartinez@capside.com
168              
169             =head1 COPYRIGHT and LICENSE
170              
171             Copyright (c) 2013 by CAPSiDE
172             This code is distributed under the Apache 2 License. The full text of the
173             license can be found in the LICENSE file included with this module.
174              
175             =cut