File Coverage

blib/lib/Cfn/Resource/AWS/CloudFront/OriginRequestPolicy.pm
Criterion Covered Total %
statement 38 38 100.0
branch n/a
condition n/a
subroutine 14 14 100.0
pod 0 2 0.0
total 52 54 96.3


line stmt bran cond sub pod time code
1             # AWS::CloudFront::OriginRequestPolicy generated from spec 20.1.0
2 1     1   679 use Moose::Util::TypeConstraints;
  1         3  
  1         10  
3              
4             coerce 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy',
5             from 'HashRef',
6             via { Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy->new( %$_ ) };
7              
8             package Cfn::Resource::AWS::CloudFront::OriginRequestPolicy {
9 1     1   2161 use Moose;
  1         2  
  1         9  
10             extends 'Cfn::Resource';
11             has Properties => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy', is => 'rw', coerce => 1);
12            
13             sub AttributeList {
14 1     1 0 5 [ 'Id','LastModifiedTime' ]
15             }
16             sub supported_regions {
17 1     1 0 1124 [ '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::OriginRequestPolicy::QueryStringsConfig',
24             as 'Cfn::Value';
25              
26             coerce 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::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::OriginRequestPolicy::QueryStringsConfig->new( %$_ );
33             }
34             };
35              
36             package Cfn::Resource::Properties::Object::AWS::CloudFront::OriginRequestPolicy::QueryStringsConfig {
37 1     1   7353 use Moose;
  1         2  
  1         6  
38 1     1   6593 use MooseX::StrictConstructor;
  1         2  
  1         10  
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::OriginRequestPolicy::HeadersConfig',
46             as 'Cfn::Value';
47              
48             coerce 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::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::OriginRequestPolicy::HeadersConfig->new( %$_ );
55             }
56             };
57              
58             package Cfn::Resource::Properties::Object::AWS::CloudFront::OriginRequestPolicy::HeadersConfig {
59 1     1   4224 use Moose;
  1         4  
  1         8  
60 1     1   6640 use MooseX::StrictConstructor;
  1         2  
  1         4  
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::OriginRequestPolicy::CookiesConfig',
68             as 'Cfn::Value';
69              
70             coerce 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::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::OriginRequestPolicy::CookiesConfig->new( %$_ );
77             }
78             };
79              
80             package Cfn::Resource::Properties::Object::AWS::CloudFront::OriginRequestPolicy::CookiesConfig {
81 1     1   3430 use Moose;
  1         4  
  1         6  
82 1     1   6592 use MooseX::StrictConstructor;
  1         7  
  1         12  
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::OriginRequestPolicy::OriginRequestPolicyConfig',
90             as 'Cfn::Value';
91              
92             coerce 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::OriginRequestPolicyConfig',
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::OriginRequestPolicy::OriginRequestPolicyConfig->new( %$_ );
99             }
100             };
101              
102             package Cfn::Resource::Properties::Object::AWS::CloudFront::OriginRequestPolicy::OriginRequestPolicyConfig {
103 1     1   3410 use Moose;
  1         6  
  1         5  
104 1     1   6628 use MooseX::StrictConstructor;
  1         9  
  1         4  
105             extends 'Cfn::Value::TypedValue';
106            
107             has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
108             has CookiesConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::CookiesConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
109             has HeadersConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::HeadersConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
110             has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
111             has QueryStringsConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::QueryStringsConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
112             }
113              
114             package Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy {
115 1     1   3372 use Moose;
  1         3  
  1         5  
116 1     1   6868 use MooseX::StrictConstructor;
  1         3  
  1         5  
117             extends 'Cfn::Resource::Properties';
118            
119             has OriginRequestPolicyConfig => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::OriginRequestPolicy::OriginRequestPolicyConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
120             }
121              
122             1;
123             ### main pod documentation begin ###
124              
125             =encoding UTF-8
126              
127             =head1 NAME
128              
129             Cfn::Resource::AWS::CloudFront::OriginRequestPolicy - Cfn resource for AWS::CloudFront::OriginRequestPolicy
130              
131             =head1 DESCRIPTION
132              
133             This module implements a Perl module that represents the CloudFormation object AWS::CloudFront::OriginRequestPolicy.
134              
135             See L<Cfn> for more information on how to use it.
136              
137             =head1 AUTHOR
138              
139             Jose Luis Martinez
140             CAPSiDE
141             jlmartinez@capside.com
142              
143             =head1 COPYRIGHT and LICENSE
144              
145             Copyright (c) 2013 by CAPSiDE
146             This code is distributed under the Apache 2 License. The full text of the
147             license can be found in the LICENSE file included with this module.
148              
149             =cut