| 1 | # AWS::Glue::Table generated from spec 22.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::Glue::Table->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::Glue::Table { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ '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' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::SchemaId', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::SchemaId', | ||
| 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::Glue::Table::SchemaId->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::SchemaId { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has RegistryName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has SchemaArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | has SchemaName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 44 | } | ||
| 45 | |||
| 46 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfo', | ||
| 47 | as 'Cfn::Value'; | ||
| 48 | |||
| 49 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfo', | ||
| 50 | from 'HashRef', | ||
| 51 | via { | ||
| 52 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 53 | return $f | ||
| 54 | } else { | ||
| 55 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::SkewedInfo->new( %$_ ); | ||
| 56 | } | ||
| 57 | }; | ||
| 58 | |||
| 59 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::SkewedInfo { | ||
| 60 | use Moose; | ||
| 61 | use MooseX::StrictConstructor; | ||
| 62 | extends 'Cfn::Value::TypedValue'; | ||
| 63 | |||
| 64 | has SkewedColumnNames => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has SkewedColumnValueLocationMaps => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | has SkewedColumnValues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 67 | } | ||
| 68 | |||
| 69 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfo', | ||
| 70 | as 'Cfn::Value'; | ||
| 71 | |||
| 72 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfo', | ||
| 73 | from 'HashRef', | ||
| 74 | via { | ||
| 75 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 76 | return $f | ||
| 77 | } else { | ||
| 78 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::SerdeInfo->new( %$_ ); | ||
| 79 | } | ||
| 80 | }; | ||
| 81 | |||
| 82 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::SerdeInfo { | ||
| 83 | use Moose; | ||
| 84 | use MooseX::StrictConstructor; | ||
| 85 | extends 'Cfn::Value::TypedValue'; | ||
| 86 | |||
| 87 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 89 | has SerializationLibrary => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 90 | } | ||
| 91 | |||
| 92 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::SchemaReference', | ||
| 93 | as 'Cfn::Value'; | ||
| 94 | |||
| 95 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::SchemaReference', | ||
| 96 | from 'HashRef', | ||
| 97 | via { | ||
| 98 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 99 | return $f | ||
| 100 | } else { | ||
| 101 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::SchemaReference->new( %$_ ); | ||
| 102 | } | ||
| 103 | }; | ||
| 104 | |||
| 105 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::SchemaReference { | ||
| 106 | use Moose; | ||
| 107 | use MooseX::StrictConstructor; | ||
| 108 | extends 'Cfn::Value::TypedValue'; | ||
| 109 | |||
| 110 | has SchameVersionId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 111 | has SchemaId => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::SchemaId', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 112 | has SchemaVersionNumber => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 113 | } | ||
| 114 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Order', | ||
| 115 | as 'Cfn::Value', | ||
| 116 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 117 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 118 | |||
| 119 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Order', | ||
| 120 | from 'HashRef', | ||
| 121 | via { | ||
| 122 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 123 | return $f | ||
| 124 | } else { | ||
| 125 | die 'Only accepts functions'; | ||
| 126 | } | ||
| 127 | }, | ||
| 128 | from 'ArrayRef', | ||
| 129 | via { | ||
| 130 | Cfn::Value::Array->new(Value => [ | ||
| 131 | map { | ||
| 132 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Table::Order')->coerce($_) | ||
| 133 | } @$_ | ||
| 134 | ]); | ||
| 135 | }; | ||
| 136 | |||
| 137 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::Order', | ||
| 138 | as 'Cfn::Value'; | ||
| 139 | |||
| 140 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::Order', | ||
| 141 | from 'HashRef', | ||
| 142 | via { | ||
| 143 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 144 | return $f | ||
| 145 | } else { | ||
| 146 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::Order->new( %$_ ); | ||
| 147 | } | ||
| 148 | }; | ||
| 149 | |||
| 150 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::Order { | ||
| 151 | use Moose; | ||
| 152 | use MooseX::StrictConstructor; | ||
| 153 | extends 'Cfn::Value::TypedValue'; | ||
| 154 | |||
| 155 | has Column => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 156 | has SortOrder => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 157 | } | ||
| 158 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column', | ||
| 159 | as 'Cfn::Value', | ||
| 160 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 161 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 162 | |||
| 163 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column', | ||
| 164 | from 'HashRef', | ||
| 165 | via { | ||
| 166 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 167 | return $f | ||
| 168 | } else { | ||
| 169 | die 'Only accepts functions'; | ||
| 170 | } | ||
| 171 | }, | ||
| 172 | from 'ArrayRef', | ||
| 173 | via { | ||
| 174 | Cfn::Value::Array->new(Value => [ | ||
| 175 | map { | ||
| 176 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Glue::Table::Column')->coerce($_) | ||
| 177 | } @$_ | ||
| 178 | ]); | ||
| 179 | }; | ||
| 180 | |||
| 181 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::Column', | ||
| 182 | as 'Cfn::Value'; | ||
| 183 | |||
| 184 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::Column', | ||
| 185 | from 'HashRef', | ||
| 186 | via { | ||
| 187 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 188 | return $f | ||
| 189 | } else { | ||
| 190 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::Column->new( %$_ ); | ||
| 191 | } | ||
| 192 | }; | ||
| 193 | |||
| 194 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::Column { | ||
| 195 | use Moose; | ||
| 196 | use MooseX::StrictConstructor; | ||
| 197 | extends 'Cfn::Value::TypedValue'; | ||
| 198 | |||
| 199 | has Comment => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 200 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 201 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 202 | } | ||
| 203 | |||
| 204 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::TableIdentifier', | ||
| 205 | as 'Cfn::Value'; | ||
| 206 | |||
| 207 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::TableIdentifier', | ||
| 208 | from 'HashRef', | ||
| 209 | via { | ||
| 210 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 211 | return $f | ||
| 212 | } else { | ||
| 213 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::TableIdentifier->new( %$_ ); | ||
| 214 | } | ||
| 215 | }; | ||
| 216 | |||
| 217 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::TableIdentifier { | ||
| 218 | use Moose; | ||
| 219 | use MooseX::StrictConstructor; | ||
| 220 | extends 'Cfn::Value::TypedValue'; | ||
| 221 | |||
| 222 | has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 223 | has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 224 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 225 | } | ||
| 226 | |||
| 227 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptor', | ||
| 228 | as 'Cfn::Value'; | ||
| 229 | |||
| 230 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptor', | ||
| 231 | from 'HashRef', | ||
| 232 | via { | ||
| 233 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 234 | return $f | ||
| 235 | } else { | ||
| 236 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::StorageDescriptor->new( %$_ ); | ||
| 237 | } | ||
| 238 | }; | ||
| 239 | |||
| 240 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::StorageDescriptor { | ||
| 241 | use Moose; | ||
| 242 | use MooseX::StrictConstructor; | ||
| 243 | extends 'Cfn::Value::TypedValue'; | ||
| 244 | |||
| 245 | has BucketColumns => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 246 | has Columns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 247 | has Compressed => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 248 | has InputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 249 | has Location => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 250 | has NumberOfBuckets => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 251 | has OutputFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 252 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 253 | has SchemaReference => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::SchemaReference', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 254 | has SerdeInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::SerdeInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 255 | has SkewedInfo => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::SkewedInfo', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 256 | has SortColumns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Order', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 257 | has StoredAsSubDirectories => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 258 | } | ||
| 259 | |||
| 260 | subtype 'Cfn::Resource::Properties::AWS::Glue::Table::TableInput', | ||
| 261 | as 'Cfn::Value'; | ||
| 262 | |||
| 263 | coerce 'Cfn::Resource::Properties::AWS::Glue::Table::TableInput', | ||
| 264 | from 'HashRef', | ||
| 265 | via { | ||
| 266 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 267 | return $f | ||
| 268 | } else { | ||
| 269 | return Cfn::Resource::Properties::Object::AWS::Glue::Table::TableInput->new( %$_ ); | ||
| 270 | } | ||
| 271 | }; | ||
| 272 | |||
| 273 | package Cfn::Resource::Properties::Object::AWS::Glue::Table::TableInput { | ||
| 274 | use Moose; | ||
| 275 | use MooseX::StrictConstructor; | ||
| 276 | extends 'Cfn::Value::TypedValue'; | ||
| 277 | |||
| 278 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 279 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 280 | has Owner => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 281 | has Parameters => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 282 | has PartitionKeys => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Glue::Table::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 283 | has Retention => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 284 | has StorageDescriptor => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::StorageDescriptor', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 285 | has TableType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 286 | has TargetTable => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::TableIdentifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 287 | has ViewExpandedText => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 288 | has ViewOriginalText => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 289 | } | ||
| 290 | |||
| 291 | package Cfn::Resource::Properties::AWS::Glue::Table { | ||
| 292 | use Moose; | ||
| 293 | use MooseX::StrictConstructor; | ||
| 294 | extends 'Cfn::Resource::Properties'; | ||
| 295 | |||
| 296 | has CatalogId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 297 | has DatabaseName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 298 | has TableInput => (isa => 'Cfn::Resource::Properties::AWS::Glue::Table::TableInput', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 299 | } | ||
| 300 | |||
| 301 | 1; | ||
| 302 | ### main pod documentation begin ### | ||
| 303 | |||
| 304 | =encoding UTF-8 | ||
| 305 | |||
| 306 | =head1 NAME | ||
| 307 | |||
| 308 | Cfn::Resource::AWS::Glue::Table - Cfn resource for AWS::Glue::Table | ||
| 309 | |||
| 310 | =head1 DESCRIPTION | ||
| 311 | |||
| 312 | This module implements a Perl module that represents the CloudFormation object AWS::Glue::Table. | ||
| 313 | |||
| 314 | See L<Cfn> for more information on how to use it. | ||
| 315 | |||
| 316 | =head1 AUTHOR | ||
| 317 | |||
| 318 | Jose Luis Martinez | ||
| 319 | CAPSiDE | ||
| 320 | jlmartinez@capside.com | ||
| 321 | |||
| 322 | =head1 COPYRIGHT and LICENSE | ||
| 323 | |||
| 324 | Copyright (c) 2013 by CAPSiDE | ||
| 325 | This code is distributed under the Apache 2 License. The full text of the | ||
| 326 | license can be found in the LICENSE file included with this module. | ||
| 327 | |||
| 328 | =cut |