| 1 | # AWS::QuickSight::Analysis generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::QuickSight::Analysis->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::QuickSight::Analysis { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Analysis', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Arn','CreatedTime','DataSetArns','LastUpdatedTime','Sheets','Status' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-west-1','eu-west-2','sa-east-1','us-east-1','us-east-2','us-gov-west-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DataSetReference', | ||
| 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::QuickSight::Analysis::DataSetReference', | ||
| 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::QuickSight::Analysis::DataSetReference')->coerce($_) | ||
| 41 | } @$_ | ||
| 42 | ]); | ||
| 43 | }; | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::DataSetReference', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::DataSetReference', | ||
| 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::QuickSight::Analysis::DataSetReference->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::DataSetReference { | ||
| 59 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 61 | extends 'Cfn::Value::TypedValue'; | ||
| 62 | |||
| 63 | has DataSetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | has DataSetPlaceholder => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | } | ||
| 66 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::StringParameter', | ||
| 67 | as 'Cfn::Value', | ||
| 68 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 69 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 70 | |||
| 71 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::StringParameter', | ||
| 72 | from 'HashRef', | ||
| 73 | via { | ||
| 74 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 75 | return $f | ||
| 76 | } else { | ||
| 77 | die 'Only accepts functions'; | ||
| 78 | } | ||
| 79 | }, | ||
| 80 | from 'ArrayRef', | ||
| 81 | via { | ||
| 82 | Cfn::Value::Array->new(Value => [ | ||
| 83 | map { | ||
| 84 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Analysis::StringParameter')->coerce($_) | ||
| 85 | } @$_ | ||
| 86 | ]); | ||
| 87 | }; | ||
| 88 | |||
| 89 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::StringParameter', | ||
| 90 | as 'Cfn::Value'; | ||
| 91 | |||
| 92 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::StringParameter', | ||
| 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::QuickSight::Analysis::StringParameter->new( %$_ ); | ||
| 99 | } | ||
| 100 | }; | ||
| 101 | |||
| 102 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::StringParameter { | ||
| 103 | use Moose; | ||
| 104 | use MooseX::StrictConstructor; | ||
| 105 | extends 'Cfn::Value::TypedValue'; | ||
| 106 | |||
| 107 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 108 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 109 | } | ||
| 110 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::IntegerParameter', | ||
| 111 | as 'Cfn::Value', | ||
| 112 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 113 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 114 | |||
| 115 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::IntegerParameter', | ||
| 116 | from 'HashRef', | ||
| 117 | via { | ||
| 118 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 119 | return $f | ||
| 120 | } else { | ||
| 121 | die 'Only accepts functions'; | ||
| 122 | } | ||
| 123 | }, | ||
| 124 | from 'ArrayRef', | ||
| 125 | via { | ||
| 126 | Cfn::Value::Array->new(Value => [ | ||
| 127 | map { | ||
| 128 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Analysis::IntegerParameter')->coerce($_) | ||
| 129 | } @$_ | ||
| 130 | ]); | ||
| 131 | }; | ||
| 132 | |||
| 133 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::IntegerParameter', | ||
| 134 | as 'Cfn::Value'; | ||
| 135 | |||
| 136 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::IntegerParameter', | ||
| 137 | from 'HashRef', | ||
| 138 | via { | ||
| 139 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 140 | return $f | ||
| 141 | } else { | ||
| 142 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::IntegerParameter->new( %$_ ); | ||
| 143 | } | ||
| 144 | }; | ||
| 145 | |||
| 146 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::IntegerParameter { | ||
| 147 | use Moose; | ||
| 148 | use MooseX::StrictConstructor; | ||
| 149 | extends 'Cfn::Value::TypedValue'; | ||
| 150 | |||
| 151 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 152 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 153 | } | ||
| 154 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DecimalParameter', | ||
| 155 | as 'Cfn::Value', | ||
| 156 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 157 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 158 | |||
| 159 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DecimalParameter', | ||
| 160 | from 'HashRef', | ||
| 161 | via { | ||
| 162 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 163 | return $f | ||
| 164 | } else { | ||
| 165 | die 'Only accepts functions'; | ||
| 166 | } | ||
| 167 | }, | ||
| 168 | from 'ArrayRef', | ||
| 169 | via { | ||
| 170 | Cfn::Value::Array->new(Value => [ | ||
| 171 | map { | ||
| 172 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Analysis::DecimalParameter')->coerce($_) | ||
| 173 | } @$_ | ||
| 174 | ]); | ||
| 175 | }; | ||
| 176 | |||
| 177 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::DecimalParameter', | ||
| 178 | as 'Cfn::Value'; | ||
| 179 | |||
| 180 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::DecimalParameter', | ||
| 181 | from 'HashRef', | ||
| 182 | via { | ||
| 183 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 184 | return $f | ||
| 185 | } else { | ||
| 186 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::DecimalParameter->new( %$_ ); | ||
| 187 | } | ||
| 188 | }; | ||
| 189 | |||
| 190 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::DecimalParameter { | ||
| 191 | use Moose; | ||
| 192 | use MooseX::StrictConstructor; | ||
| 193 | extends 'Cfn::Value::TypedValue'; | ||
| 194 | |||
| 195 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 196 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 197 | } | ||
| 198 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DateTimeParameter', | ||
| 199 | as 'Cfn::Value', | ||
| 200 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 201 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 202 | |||
| 203 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DateTimeParameter', | ||
| 204 | from 'HashRef', | ||
| 205 | via { | ||
| 206 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 207 | return $f | ||
| 208 | } else { | ||
| 209 | die 'Only accepts functions'; | ||
| 210 | } | ||
| 211 | }, | ||
| 212 | from 'ArrayRef', | ||
| 213 | via { | ||
| 214 | Cfn::Value::Array->new(Value => [ | ||
| 215 | map { | ||
| 216 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Analysis::DateTimeParameter')->coerce($_) | ||
| 217 | } @$_ | ||
| 218 | ]); | ||
| 219 | }; | ||
| 220 | |||
| 221 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::DateTimeParameter', | ||
| 222 | as 'Cfn::Value'; | ||
| 223 | |||
| 224 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::DateTimeParameter', | ||
| 225 | from 'HashRef', | ||
| 226 | via { | ||
| 227 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 228 | return $f | ||
| 229 | } else { | ||
| 230 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::DateTimeParameter->new( %$_ ); | ||
| 231 | } | ||
| 232 | }; | ||
| 233 | |||
| 234 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::DateTimeParameter { | ||
| 235 | use Moose; | ||
| 236 | use MooseX::StrictConstructor; | ||
| 237 | extends 'Cfn::Value::TypedValue'; | ||
| 238 | |||
| 239 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 240 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 241 | } | ||
| 242 | |||
| 243 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisSourceTemplate', | ||
| 244 | as 'Cfn::Value'; | ||
| 245 | |||
| 246 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisSourceTemplate', | ||
| 247 | from 'HashRef', | ||
| 248 | via { | ||
| 249 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 250 | return $f | ||
| 251 | } else { | ||
| 252 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::AnalysisSourceTemplate->new( %$_ ); | ||
| 253 | } | ||
| 254 | }; | ||
| 255 | |||
| 256 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::AnalysisSourceTemplate { | ||
| 257 | use Moose; | ||
| 258 | use MooseX::StrictConstructor; | ||
| 259 | extends 'Cfn::Value::TypedValue'; | ||
| 260 | |||
| 261 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 262 | has DataSetReferences => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DataSetReference', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 263 | } | ||
| 264 | |||
| 265 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::Sheet', | ||
| 266 | as 'Cfn::Value'; | ||
| 267 | |||
| 268 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::Sheet', | ||
| 269 | from 'HashRef', | ||
| 270 | via { | ||
| 271 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 272 | return $f | ||
| 273 | } else { | ||
| 274 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::Sheet->new( %$_ ); | ||
| 275 | } | ||
| 276 | }; | ||
| 277 | |||
| 278 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::Sheet { | ||
| 279 | use Moose; | ||
| 280 | use MooseX::StrictConstructor; | ||
| 281 | extends 'Cfn::Value::TypedValue'; | ||
| 282 | |||
| 283 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 284 | has SheetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 285 | } | ||
| 286 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::ResourcePermission', | ||
| 287 | as 'Cfn::Value', | ||
| 288 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 289 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 290 | |||
| 291 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::ResourcePermission', | ||
| 292 | from 'HashRef', | ||
| 293 | via { | ||
| 294 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 295 | return $f | ||
| 296 | } else { | ||
| 297 | die 'Only accepts functions'; | ||
| 298 | } | ||
| 299 | }, | ||
| 300 | from 'ArrayRef', | ||
| 301 | via { | ||
| 302 | Cfn::Value::Array->new(Value => [ | ||
| 303 | map { | ||
| 304 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Analysis::ResourcePermission')->coerce($_) | ||
| 305 | } @$_ | ||
| 306 | ]); | ||
| 307 | }; | ||
| 308 | |||
| 309 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::ResourcePermission', | ||
| 310 | as 'Cfn::Value'; | ||
| 311 | |||
| 312 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::ResourcePermission', | ||
| 313 | from 'HashRef', | ||
| 314 | via { | ||
| 315 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 316 | return $f | ||
| 317 | } else { | ||
| 318 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::ResourcePermission->new( %$_ ); | ||
| 319 | } | ||
| 320 | }; | ||
| 321 | |||
| 322 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::ResourcePermission { | ||
| 323 | use Moose; | ||
| 324 | use MooseX::StrictConstructor; | ||
| 325 | extends 'Cfn::Value::TypedValue'; | ||
| 326 | |||
| 327 | has Actions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 328 | has Principal => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 329 | } | ||
| 330 | |||
| 331 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::Parameters', | ||
| 332 | as 'Cfn::Value'; | ||
| 333 | |||
| 334 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::Parameters', | ||
| 335 | from 'HashRef', | ||
| 336 | via { | ||
| 337 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 338 | return $f | ||
| 339 | } else { | ||
| 340 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::Parameters->new( %$_ ); | ||
| 341 | } | ||
| 342 | }; | ||
| 343 | |||
| 344 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::Parameters { | ||
| 345 | use Moose; | ||
| 346 | use MooseX::StrictConstructor; | ||
| 347 | extends 'Cfn::Value::TypedValue'; | ||
| 348 | |||
| 349 | has DateTimeParameters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DateTimeParameter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 350 | has DecimalParameters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::DecimalParameter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 351 | has IntegerParameters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::IntegerParameter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 352 | has StringParameters => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::StringParameter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 353 | } | ||
| 354 | |||
| 355 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisSourceEntity', | ||
| 356 | as 'Cfn::Value'; | ||
| 357 | |||
| 358 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisSourceEntity', | ||
| 359 | from 'HashRef', | ||
| 360 | via { | ||
| 361 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 362 | return $f | ||
| 363 | } else { | ||
| 364 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::AnalysisSourceEntity->new( %$_ ); | ||
| 365 | } | ||
| 366 | }; | ||
| 367 | |||
| 368 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::AnalysisSourceEntity { | ||
| 369 | use Moose; | ||
| 370 | use MooseX::StrictConstructor; | ||
| 371 | extends 'Cfn::Value::TypedValue'; | ||
| 372 | |||
| 373 | has SourceTemplate => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisSourceTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 374 | } | ||
| 375 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisError', | ||
| 376 | as 'Cfn::Value', | ||
| 377 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 378 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 379 | |||
| 380 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisError', | ||
| 381 | from 'HashRef', | ||
| 382 | via { | ||
| 383 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 384 | return $f | ||
| 385 | } else { | ||
| 386 | die 'Only accepts functions'; | ||
| 387 | } | ||
| 388 | }, | ||
| 389 | from 'ArrayRef', | ||
| 390 | via { | ||
| 391 | Cfn::Value::Array->new(Value => [ | ||
| 392 | map { | ||
| 393 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisError')->coerce($_) | ||
| 394 | } @$_ | ||
| 395 | ]); | ||
| 396 | }; | ||
| 397 | |||
| 398 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisError', | ||
| 399 | as 'Cfn::Value'; | ||
| 400 | |||
| 401 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisError', | ||
| 402 | from 'HashRef', | ||
| 403 | via { | ||
| 404 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 405 | return $f | ||
| 406 | } else { | ||
| 407 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::AnalysisError->new( %$_ ); | ||
| 408 | } | ||
| 409 | }; | ||
| 410 | |||
| 411 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Analysis::AnalysisError { | ||
| 412 | use Moose; | ||
| 413 | use MooseX::StrictConstructor; | ||
| 414 | extends 'Cfn::Value::TypedValue'; | ||
| 415 | |||
| 416 | has Message => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 417 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 418 | } | ||
| 419 | |||
| 420 | package Cfn::Resource::Properties::AWS::QuickSight::Analysis { | ||
| 421 | use Moose; | ||
| 422 | use MooseX::StrictConstructor; | ||
| 423 | extends 'Cfn::Resource::Properties'; | ||
| 424 | |||
| 425 | has AnalysisId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 426 | has AwsAccountId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 427 | has Errors => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisError', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 428 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 429 | has Parameters => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::Parameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 430 | has Permissions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Analysis::ResourcePermission', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 431 | has SourceEntity => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Analysis::AnalysisSourceEntity', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 432 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 433 | has ThemeArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 434 | } | ||
| 435 | |||
| 436 | 1; | ||
| 437 | ### main pod documentation begin ### | ||
| 438 | |||
| 439 | =encoding UTF-8 | ||
| 440 | |||
| 441 | =head1 NAME | ||
| 442 | |||
| 443 | Cfn::Resource::AWS::QuickSight::Analysis - Cfn resource for AWS::QuickSight::Analysis | ||
| 444 | |||
| 445 | =head1 DESCRIPTION | ||
| 446 | |||
| 447 | This module implements a Perl module that represents the CloudFormation object AWS::QuickSight::Analysis. | ||
| 448 | |||
| 449 | See L<Cfn> for more information on how to use it. | ||
| 450 | |||
| 451 | =head1 AUTHOR | ||
| 452 | |||
| 453 | Jose Luis Martinez | ||
| 454 | CAPSiDE | ||
| 455 | jlmartinez@capside.com | ||
| 456 | |||
| 457 | =head1 COPYRIGHT and LICENSE | ||
| 458 | |||
| 459 | Copyright (c) 2013 by CAPSiDE | ||
| 460 | This code is distributed under the Apache 2 License. The full text of the | ||
| 461 | license can be found in the LICENSE file included with this module. | ||
| 462 | |||
| 463 | =cut |