| 1 | # AWS::QuickSight::Template generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Template', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::QuickSight::Template->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::QuickSight::Template { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Template', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Arn','CreatedTime','LastUpdatedTime' ] | ||
| 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::Template::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::Template::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::Template::DataSetReference')->coerce($_) | ||
| 41 | } @$_ | ||
| 42 | ]); | ||
| 43 | }; | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Template::DataSetReference', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Template::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::Template::DataSetReference->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Template::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 | |||
| 67 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceTemplate', | ||
| 68 | as 'Cfn::Value'; | ||
| 69 | |||
| 70 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceTemplate', | ||
| 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::QuickSight::Template::TemplateSourceTemplate->new( %$_ ); | ||
| 77 | } | ||
| 78 | }; | ||
| 79 | |||
| 80 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Template::TemplateSourceTemplate { | ||
| 81 | use Moose; | ||
| 82 | use MooseX::StrictConstructor; | ||
| 83 | extends 'Cfn::Value::TypedValue'; | ||
| 84 | |||
| 85 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 86 | } | ||
| 87 | |||
| 88 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceAnalysis', | ||
| 89 | as 'Cfn::Value'; | ||
| 90 | |||
| 91 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceAnalysis', | ||
| 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::QuickSight::Template::TemplateSourceAnalysis->new( %$_ ); | ||
| 98 | } | ||
| 99 | }; | ||
| 100 | |||
| 101 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Template::TemplateSourceAnalysis { | ||
| 102 | use Moose; | ||
| 103 | use MooseX::StrictConstructor; | ||
| 104 | extends 'Cfn::Value::TypedValue'; | ||
| 105 | |||
| 106 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 107 | has DataSetReferences => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Template::DataSetReference', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 108 | } | ||
| 109 | |||
| 110 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceEntity', | ||
| 111 | as 'Cfn::Value'; | ||
| 112 | |||
| 113 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceEntity', | ||
| 114 | from 'HashRef', | ||
| 115 | via { | ||
| 116 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 117 | return $f | ||
| 118 | } else { | ||
| 119 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Template::TemplateSourceEntity->new( %$_ ); | ||
| 120 | } | ||
| 121 | }; | ||
| 122 | |||
| 123 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Template::TemplateSourceEntity { | ||
| 124 | use Moose; | ||
| 125 | use MooseX::StrictConstructor; | ||
| 126 | extends 'Cfn::Value::TypedValue'; | ||
| 127 | |||
| 128 | has SourceAnalysis => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceAnalysis', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 129 | has SourceTemplate => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceTemplate', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 130 | } | ||
| 131 | subtype 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Template::ResourcePermission', | ||
| 132 | as 'Cfn::Value', | ||
| 133 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 134 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 135 | |||
| 136 | coerce 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Template::ResourcePermission', | ||
| 137 | from 'HashRef', | ||
| 138 | via { | ||
| 139 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 140 | return $f | ||
| 141 | } else { | ||
| 142 | die 'Only accepts functions'; | ||
| 143 | } | ||
| 144 | }, | ||
| 145 | from 'ArrayRef', | ||
| 146 | via { | ||
| 147 | Cfn::Value::Array->new(Value => [ | ||
| 148 | map { | ||
| 149 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::QuickSight::Template::ResourcePermission')->coerce($_) | ||
| 150 | } @$_ | ||
| 151 | ]); | ||
| 152 | }; | ||
| 153 | |||
| 154 | subtype 'Cfn::Resource::Properties::AWS::QuickSight::Template::ResourcePermission', | ||
| 155 | as 'Cfn::Value'; | ||
| 156 | |||
| 157 | coerce 'Cfn::Resource::Properties::AWS::QuickSight::Template::ResourcePermission', | ||
| 158 | from 'HashRef', | ||
| 159 | via { | ||
| 160 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 161 | return $f | ||
| 162 | } else { | ||
| 163 | return Cfn::Resource::Properties::Object::AWS::QuickSight::Template::ResourcePermission->new( %$_ ); | ||
| 164 | } | ||
| 165 | }; | ||
| 166 | |||
| 167 | package Cfn::Resource::Properties::Object::AWS::QuickSight::Template::ResourcePermission { | ||
| 168 | use Moose; | ||
| 169 | use MooseX::StrictConstructor; | ||
| 170 | extends 'Cfn::Value::TypedValue'; | ||
| 171 | |||
| 172 | has Actions => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 173 | has Principal => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 174 | } | ||
| 175 | |||
| 176 | package Cfn::Resource::Properties::AWS::QuickSight::Template { | ||
| 177 | use Moose; | ||
| 178 | use MooseX::StrictConstructor; | ||
| 179 | extends 'Cfn::Resource::Properties'; | ||
| 180 | |||
| 181 | has AwsAccountId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 182 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 183 | has Permissions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::QuickSight::Template::ResourcePermission', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 184 | has SourceEntity => (isa => 'Cfn::Resource::Properties::AWS::QuickSight::Template::TemplateSourceEntity', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 185 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 186 | has TemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 187 | has VersionDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 188 | } | ||
| 189 | |||
| 190 | 1; | ||
| 191 | ### main pod documentation begin ### | ||
| 192 | |||
| 193 | =encoding UTF-8 | ||
| 194 | |||
| 195 | =head1 NAME | ||
| 196 | |||
| 197 | Cfn::Resource::AWS::QuickSight::Template - Cfn resource for AWS::QuickSight::Template | ||
| 198 | |||
| 199 | =head1 DESCRIPTION | ||
| 200 | |||
| 201 | This module implements a Perl module that represents the CloudFormation object AWS::QuickSight::Template. | ||
| 202 | |||
| 203 | See L<Cfn> for more information on how to use it. | ||
| 204 | |||
| 205 | =head1 AUTHOR | ||
| 206 | |||
| 207 | Jose Luis Martinez | ||
| 208 | CAPSiDE | ||
| 209 | jlmartinez@capside.com | ||
| 210 | |||
| 211 | =head1 COPYRIGHT and LICENSE | ||
| 212 | |||
| 213 | Copyright (c) 2013 by CAPSiDE | ||
| 214 | This code is distributed under the Apache 2 License. The full text of the | ||
| 215 | license can be found in the LICENSE file included with this module. | ||
| 216 | |||
| 217 | =cut |