« Cfn/Resource/AWS/CloudFormation/StackSet.pm
↑ Summary
Cfn/Resource/AWS/CloudFront/CloudFrontOriginAccessIdentity.pm »
| 1 | # AWS::CloudFront::CachePolicy generated from spec 20.1.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 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 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::CloudFront::CachePolicy', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Id','LastModifiedTime' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ '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 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 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 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 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 | use Moose; | ||
| 82 | use MooseX::StrictConstructor; | ||
| 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 | use Moose; | ||
| 104 | use MooseX::StrictConstructor; | ||
| 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 | use Moose; | ||
| 129 | use MooseX::StrictConstructor; | ||
| 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 | use Moose; | ||
| 142 | use MooseX::StrictConstructor; | ||
| 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 |