| 1 | # AWS::IoTAnalytics::Datastore generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::IoTAnalytics::Datastore { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-northeast-1','ap-southeast-2','cn-north-1','eu-central-1','eu-west-1','us-east-1','us-east-2','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Datastore::Column', | ||
| 23 | as 'Cfn::Value', | ||
| 24 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 25 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 26 | |||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Datastore::Column', | ||
| 28 | from 'HashRef', | ||
| 29 | via { | ||
| 30 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 31 | return $f | ||
| 32 | } else { | ||
| 33 | die 'Only accepts functions'; | ||
| 34 | } | ||
| 35 | }, | ||
| 36 | from 'ArrayRef', | ||
| 37 | via { | ||
| 38 | Cfn::Value::Array->new(Value => [ | ||
| 39 | map { | ||
| 40 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::Column')->coerce($_) | ||
| 41 | } @$_ | ||
| 42 | ]); | ||
| 43 | }; | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::Column', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::Column', | ||
| 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::IoTAnalytics::Datastore::Column->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::Column { | ||
| 59 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 61 | extends 'Cfn::Value::TypedValue'; | ||
| 62 | |||
| 63 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | } | ||
| 66 | |||
| 67 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::SchemaDefinition', | ||
| 68 | as 'Cfn::Value'; | ||
| 69 | |||
| 70 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::SchemaDefinition', | ||
| 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::IoTAnalytics::Datastore::SchemaDefinition->new( %$_ ); | ||
| 77 | } | ||
| 78 | }; | ||
| 79 | |||
| 80 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::SchemaDefinition { | ||
| 81 | use Moose; | ||
| 82 | use MooseX::StrictConstructor; | ||
| 83 | extends 'Cfn::Value::TypedValue'; | ||
| 84 | |||
| 85 | has Columns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTAnalytics::Datastore::Column', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 86 | } | ||
| 87 | |||
| 88 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3', | ||
| 89 | as 'Cfn::Value'; | ||
| 90 | |||
| 91 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3', | ||
| 92 | from 'HashRef', | ||
| 93 | via { | ||
| 94 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 95 | return $f | ||
| 96 | } else { | ||
| 97 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::ServiceManagedS3->new( %$_ ); | ||
| 98 | } | ||
| 99 | }; | ||
| 100 | |||
| 101 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::ServiceManagedS3 { | ||
| 102 | use Moose; | ||
| 103 | use MooseX::StrictConstructor; | ||
| 104 | extends 'Cfn::Value::TypedValue'; | ||
| 105 | |||
| 106 | } | ||
| 107 | |||
| 108 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ParquetConfiguration', | ||
| 109 | as 'Cfn::Value'; | ||
| 110 | |||
| 111 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ParquetConfiguration', | ||
| 112 | from 'HashRef', | ||
| 113 | via { | ||
| 114 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 115 | return $f | ||
| 116 | } else { | ||
| 117 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::ParquetConfiguration->new( %$_ ); | ||
| 118 | } | ||
| 119 | }; | ||
| 120 | |||
| 121 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::ParquetConfiguration { | ||
| 122 | use Moose; | ||
| 123 | use MooseX::StrictConstructor; | ||
| 124 | extends 'Cfn::Value::TypedValue'; | ||
| 125 | |||
| 126 | has SchemaDefinition => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::SchemaDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 127 | } | ||
| 128 | |||
| 129 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::JsonConfiguration', | ||
| 130 | as 'Cfn::Value'; | ||
| 131 | |||
| 132 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::JsonConfiguration', | ||
| 133 | from 'HashRef', | ||
| 134 | via { | ||
| 135 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 136 | return $f | ||
| 137 | } else { | ||
| 138 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::JsonConfiguration->new( %$_ ); | ||
| 139 | } | ||
| 140 | }; | ||
| 141 | |||
| 142 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::JsonConfiguration { | ||
| 143 | use Moose; | ||
| 144 | use MooseX::StrictConstructor; | ||
| 145 | extends 'Cfn::Value::TypedValue'; | ||
| 146 | |||
| 147 | } | ||
| 148 | |||
| 149 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3', | ||
| 150 | as 'Cfn::Value'; | ||
| 151 | |||
| 152 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3', | ||
| 153 | from 'HashRef', | ||
| 154 | via { | ||
| 155 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 156 | return $f | ||
| 157 | } else { | ||
| 158 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::CustomerManagedS3->new( %$_ ); | ||
| 159 | } | ||
| 160 | }; | ||
| 161 | |||
| 162 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::CustomerManagedS3 { | ||
| 163 | use Moose; | ||
| 164 | use MooseX::StrictConstructor; | ||
| 165 | extends 'Cfn::Value::TypedValue'; | ||
| 166 | |||
| 167 | has Bucket => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 168 | has KeyPrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 169 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 170 | } | ||
| 171 | |||
| 172 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriod', | ||
| 173 | as 'Cfn::Value'; | ||
| 174 | |||
| 175 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriod', | ||
| 176 | from 'HashRef', | ||
| 177 | via { | ||
| 178 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 179 | return $f | ||
| 180 | } else { | ||
| 181 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::RetentionPeriod->new( %$_ ); | ||
| 182 | } | ||
| 183 | }; | ||
| 184 | |||
| 185 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::RetentionPeriod { | ||
| 186 | use Moose; | ||
| 187 | use MooseX::StrictConstructor; | ||
| 188 | extends 'Cfn::Value::TypedValue'; | ||
| 189 | |||
| 190 | has NumberOfDays => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 191 | has Unlimited => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 192 | } | ||
| 193 | |||
| 194 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::FileFormatConfiguration', | ||
| 195 | as 'Cfn::Value'; | ||
| 196 | |||
| 197 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::FileFormatConfiguration', | ||
| 198 | from 'HashRef', | ||
| 199 | via { | ||
| 200 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 201 | return $f | ||
| 202 | } else { | ||
| 203 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::FileFormatConfiguration->new( %$_ ); | ||
| 204 | } | ||
| 205 | }; | ||
| 206 | |||
| 207 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::FileFormatConfiguration { | ||
| 208 | use Moose; | ||
| 209 | use MooseX::StrictConstructor; | ||
| 210 | extends 'Cfn::Value::TypedValue'; | ||
| 211 | |||
| 212 | has JsonConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::JsonConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 213 | has ParquetConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ParquetConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 214 | } | ||
| 215 | |||
| 216 | subtype 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorage', | ||
| 217 | as 'Cfn::Value'; | ||
| 218 | |||
| 219 | coerce 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorage', | ||
| 220 | from 'HashRef', | ||
| 221 | via { | ||
| 222 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 223 | return $f | ||
| 224 | } else { | ||
| 225 | return Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::DatastoreStorage->new( %$_ ); | ||
| 226 | } | ||
| 227 | }; | ||
| 228 | |||
| 229 | package Cfn::Resource::Properties::Object::AWS::IoTAnalytics::Datastore::DatastoreStorage { | ||
| 230 | use Moose; | ||
| 231 | use MooseX::StrictConstructor; | ||
| 232 | extends 'Cfn::Value::TypedValue'; | ||
| 233 | |||
| 234 | has CustomerManagedS3 => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::CustomerManagedS3', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 235 | has ServiceManagedS3 => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::ServiceManagedS3', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 236 | } | ||
| 237 | |||
| 238 | package Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore { | ||
| 239 | use Moose; | ||
| 240 | use MooseX::StrictConstructor; | ||
| 241 | extends 'Cfn::Resource::Properties'; | ||
| 242 | |||
| 243 | has DatastoreName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 244 | has DatastoreStorage => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::DatastoreStorage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 245 | has FileFormatConfiguration => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::FileFormatConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 246 | has RetentionPeriod => (isa => 'Cfn::Resource::Properties::AWS::IoTAnalytics::Datastore::RetentionPeriod', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 247 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 248 | } | ||
| 249 | |||
| 250 | 1; | ||
| 251 | ### main pod documentation begin ### | ||
| 252 | |||
| 253 | =encoding UTF-8 | ||
| 254 | |||
| 255 | =head1 NAME | ||
| 256 | |||
| 257 | Cfn::Resource::AWS::IoTAnalytics::Datastore - Cfn resource for AWS::IoTAnalytics::Datastore | ||
| 258 | |||
| 259 | =head1 DESCRIPTION | ||
| 260 | |||
| 261 | This module implements a Perl module that represents the CloudFormation object AWS::IoTAnalytics::Datastore. | ||
| 262 | |||
| 263 | See L<Cfn> for more information on how to use it. | ||
| 264 | |||
| 265 | =head1 AUTHOR | ||
| 266 | |||
| 267 | Jose Luis Martinez | ||
| 268 | CAPSiDE | ||
| 269 | jlmartinez@capside.com | ||
| 270 | |||
| 271 | =head1 COPYRIGHT and LICENSE | ||
| 272 | |||
| 273 | Copyright (c) 2013 by CAPSiDE | ||
| 274 | This code is distributed under the Apache 2 License. The full text of the | ||
| 275 | license can be found in the LICENSE file included with this module. | ||
| 276 | |||
| 277 | =cut |