| 1 | # AWS::Glue::Partition generated from spec 18.4.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::Glue::Partition->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::Glue::Partition { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','us-east-1','us-east-2','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::SkewedInfo', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::SkewedInfo', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | via { | ||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Partition::SkewedInfo->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Partition::SkewedInfo { | |||||||||
| 37 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 1 | has SkewedColumnNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 1 | has SkewedColumnValueLocationMaps => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | 1 | has SkewedColumnValues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 44 | } | ||||||||||
| 45 | |||||||||||
| 46 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::SerdeInfo', | |||||||||
| 47 | as 'Cfn::Value'; | ||||||||||
| 48 | |||||||||||
| 49 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::SerdeInfo', | ||||||||||
| 50 | from 'HashRef', | ||||||||||
| 51 | via { | ||||||||||
| 52 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 53 | 0 | return $f | |||||||||
| 54 | } else { | ||||||||||
| 55 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Partition::SerdeInfo->new( %$_ ); | |||||||||
| 56 | } | ||||||||||
| 57 | 1 | }; | |||||||||
| 58 | |||||||||||
| 59 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Partition::SerdeInfo { | |||||||||
| 60 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 62 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 63 | |||||||||||
| 64 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | 1 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | 1 | has SerializationLibrary => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 67 | } | ||||||||||
| 68 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Order', | ||||||||||
| 69 | as 'Cfn::Value', | ||||||||||
| 70 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 71 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 72 | |||||||||||
| 73 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Order', | ||||||||||
| 74 | from 'HashRef', | ||||||||||
| 75 | via { | ||||||||||
| 76 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 77 | 0 | return $f | |||||||||
| 78 | } else { | ||||||||||
| 79 | 0 | die 'Only accepts functions'; | |||||||||
| 80 | } | ||||||||||
| 81 | }, | ||||||||||
| 82 | from 'ArrayRef', | ||||||||||
| 83 | via { | ||||||||||
| 84 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 85 | map { | ||||||||||
| 86 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Partition::Order')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 87 | } @$_ | ||||||||||
| 88 | ]); | ||||||||||
| 89 | 1 | }; | |||||||||
| 90 | |||||||||||
| 91 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::Order', | |||||||||
| 92 | as 'Cfn::Value'; | ||||||||||
| 93 | |||||||||||
| 94 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::Order', | ||||||||||
| 95 | from 'HashRef', | ||||||||||
| 96 | via { | ||||||||||
| 97 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 98 | 0 | return $f | |||||||||
| 99 | } else { | ||||||||||
| 100 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Partition::Order->new( %$_ ); | |||||||||
| 101 | } | ||||||||||
| 102 | 1 | }; | |||||||||
| 103 | |||||||||||
| 104 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Partition::Order { | |||||||||
| 105 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 107 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 108 | |||||||||||
| 109 | 1 | has Column => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 1 | has SortOrder => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | } | ||||||||||
| 112 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Column', | ||||||||||
| 113 | as 'Cfn::Value', | ||||||||||
| 114 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 115 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 116 | |||||||||||
| 117 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Column', | ||||||||||
| 118 | from 'HashRef', | ||||||||||
| 119 | via { | ||||||||||
| 120 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 121 | 0 | return $f | |||||||||
| 122 | } else { | ||||||||||
| 123 | 0 | die 'Only accepts functions'; | |||||||||
| 124 | } | ||||||||||
| 125 | }, | ||||||||||
| 126 | from 'ArrayRef', | ||||||||||
| 127 | via { | ||||||||||
| 128 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 129 | map { | ||||||||||
| 130 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Partition::Column')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 131 | } @$_ | ||||||||||
| 132 | ]); | ||||||||||
| 133 | 1 | }; | |||||||||
| 134 | |||||||||||
| 135 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::Column', | |||||||||
| 136 | as 'Cfn::Value'; | ||||||||||
| 137 | |||||||||||
| 138 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::Column', | ||||||||||
| 139 | from 'HashRef', | ||||||||||
| 140 | via { | ||||||||||
| 141 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 142 | 0 | return $f | |||||||||
| 143 | } else { | ||||||||||
| 144 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Partition::Column->new( %$_ ); | |||||||||
| 145 | } | ||||||||||
| 146 | 1 | }; | |||||||||
| 147 | |||||||||||
| 148 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Partition::Column { | |||||||||
| 149 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 150 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 151 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 152 | |||||||||||
| 153 | 1 | has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 154 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 155 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 156 | } | ||||||||||
| 157 | |||||||||||
| 158 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::StorageDescriptor', | |||||||||
| 159 | as 'Cfn::Value'; | ||||||||||
| 160 | |||||||||||
| 161 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::StorageDescriptor', | ||||||||||
| 162 | from 'HashRef', | ||||||||||
| 163 | via { | ||||||||||
| 164 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 165 | 0 | return $f | |||||||||
| 166 | } else { | ||||||||||
| 167 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Partition::StorageDescriptor->new( %$_ ); | |||||||||
| 168 | } | ||||||||||
| 169 | 1 | }; | |||||||||
| 170 | |||||||||||
| 171 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Partition::StorageDescriptor { | |||||||||
| 172 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 173 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 174 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 175 | |||||||||||
| 176 | 1 | has BucketColumns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 177 | 1 | has Columns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 178 | 1 | has Compressed => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 179 | 1 | has InputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 180 | 1 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 181 | 1 | has NumberOfBuckets => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 1 | has OutputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | 1 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 184 | 1 | has SerdeInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::SerdeInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 185 | 1 | has SkewedInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::SkewedInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 186 | 1 | has SortColumns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Partition::Order', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 187 | 1 | has StoredAsSubDirectories => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 188 | } | ||||||||||
| 189 | |||||||||||
| 190 | 1 | subtype 'Cfn::Resource::Properties::AWS::Glue::Partition::PartitionInput', | |||||||||
| 191 | as 'Cfn::Value'; | ||||||||||
| 192 | |||||||||||
| 193 | coerce 'Cfn::Resource::Properties::AWS::Glue::Partition::PartitionInput', | ||||||||||
| 194 | from 'HashRef', | ||||||||||
| 195 | via { | ||||||||||
| 196 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 197 | 0 | return $f | |||||||||
| 198 | } else { | ||||||||||
| 199 | 0 | return Cfn::Resource::Properties::Object::AWS::Glue::Partition::PartitionInput->new( %$_ ); | |||||||||
| 200 | } | ||||||||||
| 201 | 1 | }; | |||||||||
| 202 | |||||||||||
| 203 | 1 | package Cfn::Resource::Properties::Object::AWS::Glue::Partition::PartitionInput { | |||||||||
| 204 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 205 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 206 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 207 | |||||||||||
| 208 | 1 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 209 | 1 | has StorageDescriptor => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::StorageDescriptor', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 210 | 1 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 211 | } | ||||||||||
| 212 | |||||||||||
| 213 | 1 | package Cfn::Resource::Properties::AWS::Glue::Partition { | |||||||||
| 214 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 215 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 216 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 217 | |||||||||||
| 218 | 1 | has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 219 | 1 | has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 220 | 1 | has PartitionInput => (isa => 'Cfn::Resource::Properties::AWS::Glue::Partition::PartitionInput', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 221 | 1 | has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 222 | } | ||||||||||
| 223 | |||||||||||
| 224 | 1 | 1; | |||||||||
| 225 | ### main pod documentation begin ### | ||||||||||
| 226 | |||||||||||
| 227 | =encoding UTF-8 | ||||||||||
| 228 | |||||||||||
| 229 | =head1 NAME | ||||||||||
| 230 | |||||||||||
| 231 | Cfn::Resource::AWS::Glue::Partition - Cfn resource for AWS::Glue::Partition | ||||||||||
| 232 | |||||||||||
| 233 | =head1 DESCRIPTION | ||||||||||
| 234 | |||||||||||
| 235 | This module implements a Perl module that represents the CloudFormation object AWS::Glue::Partition. | ||||||||||
| 236 | |||||||||||
| 237 | See L<Cfn> for more information on how to use it. | ||||||||||
| 238 | |||||||||||
| 239 | =head1 AUTHOR | ||||||||||
| 240 | |||||||||||
| 241 | Jose Luis Martinez | ||||||||||
| 242 | CAPSiDE | ||||||||||
| 243 | jlmartinez@capside.com | ||||||||||
| 244 | |||||||||||
| 245 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 246 | |||||||||||
| 247 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 248 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 249 | license can be found in the LICENSE file included with this module. | ||||||||||
| 250 | |||||||||||
| 251 | =cut | ||||||||||