| 1 | # AWS::Pinpoint::Campaign generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::Pinpoint::Campaign->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::Pinpoint::Campaign { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'Arn','CampaignId' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'ap-south-1','ap-southeast-2','eu-central-1','eu-west-1','us-east-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::SetDimension', | ||
| 24 | as 'Cfn::Value'; | ||
| 25 | |||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::SetDimension', | ||
| 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::Pinpoint::Campaign::SetDimension->new( %$_ ); | ||
| 33 | } | ||
| 34 | }; | ||
| 35 | |||
| 36 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::SetDimension { | ||
| 37 | use Moose; | ||
| 38 | use MooseX::StrictConstructor; | ||
| 39 | extends 'Cfn::Value::TypedValue'; | ||
| 40 | |||
| 41 | has DimensionType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 42 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 43 | } | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::EventDimensions', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::EventDimensions', | ||
| 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::Pinpoint::Campaign::EventDimensions->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::EventDimensions { | ||
| 59 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 61 | extends 'Cfn::Value::TypedValue'; | ||
| 62 | |||
| 63 | has Attributes => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | has EventType => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::SetDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has Metrics => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | } | ||
| 67 | |||
| 68 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::QuietTime', | ||
| 69 | as 'Cfn::Value'; | ||
| 70 | |||
| 71 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::QuietTime', | ||
| 72 | from 'HashRef', | ||
| 73 | via { | ||
| 74 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 75 | return $f | ||
| 76 | } else { | ||
| 77 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::QuietTime->new( %$_ ); | ||
| 78 | } | ||
| 79 | }; | ||
| 80 | |||
| 81 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::QuietTime { | ||
| 82 | use Moose; | ||
| 83 | use MooseX::StrictConstructor; | ||
| 84 | extends 'Cfn::Value::TypedValue'; | ||
| 85 | |||
| 86 | has End => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 87 | has Start => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 88 | } | ||
| 89 | |||
| 90 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', | ||
| 91 | as 'Cfn::Value'; | ||
| 92 | |||
| 93 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', | ||
| 94 | from 'HashRef', | ||
| 95 | via { | ||
| 96 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 97 | return $f | ||
| 98 | } else { | ||
| 99 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Message->new( %$_ ); | ||
| 100 | } | ||
| 101 | }; | ||
| 102 | |||
| 103 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Message { | ||
| 104 | use Moose; | ||
| 105 | use MooseX::StrictConstructor; | ||
| 106 | extends 'Cfn::Value::TypedValue'; | ||
| 107 | |||
| 108 | has Action => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 109 | has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 110 | has ImageIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 111 | has ImageSmallIconUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 112 | has ImageUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 113 | has JsonBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 114 | has MediaUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 115 | has RawContent => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 116 | has SilentPush => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 117 | has TimeToLive => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 118 | has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 119 | has Url => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 120 | } | ||
| 121 | |||
| 122 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignSmsMessage', | ||
| 123 | as 'Cfn::Value'; | ||
| 124 | |||
| 125 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignSmsMessage', | ||
| 126 | from 'HashRef', | ||
| 127 | via { | ||
| 128 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 129 | return $f | ||
| 130 | } else { | ||
| 131 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignSmsMessage->new( %$_ ); | ||
| 132 | } | ||
| 133 | }; | ||
| 134 | |||
| 135 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignSmsMessage { | ||
| 136 | use Moose; | ||
| 137 | use MooseX::StrictConstructor; | ||
| 138 | extends 'Cfn::Value::TypedValue'; | ||
| 139 | |||
| 140 | has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 141 | has EntityId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 142 | has MessageType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 143 | has OriginationNumber => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 144 | has SenderId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 145 | has TemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 146 | } | ||
| 147 | |||
| 148 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEventFilter', | ||
| 149 | as 'Cfn::Value'; | ||
| 150 | |||
| 151 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEventFilter', | ||
| 152 | from 'HashRef', | ||
| 153 | via { | ||
| 154 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 155 | return $f | ||
| 156 | } else { | ||
| 157 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEventFilter->new( %$_ ); | ||
| 158 | } | ||
| 159 | }; | ||
| 160 | |||
| 161 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEventFilter { | ||
| 162 | use Moose; | ||
| 163 | use MooseX::StrictConstructor; | ||
| 164 | extends 'Cfn::Value::TypedValue'; | ||
| 165 | |||
| 166 | has Dimensions => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::EventDimensions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 167 | has FilterType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 168 | } | ||
| 169 | |||
| 170 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEmailMessage', | ||
| 171 | as 'Cfn::Value'; | ||
| 172 | |||
| 173 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEmailMessage', | ||
| 174 | from 'HashRef', | ||
| 175 | via { | ||
| 176 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 177 | return $f | ||
| 178 | } else { | ||
| 179 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEmailMessage->new( %$_ ); | ||
| 180 | } | ||
| 181 | }; | ||
| 182 | |||
| 183 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignEmailMessage { | ||
| 184 | use Moose; | ||
| 185 | use MooseX::StrictConstructor; | ||
| 186 | extends 'Cfn::Value::TypedValue'; | ||
| 187 | |||
| 188 | has Body => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 189 | has FromAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 190 | has HtmlBody => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 191 | has Title => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 192 | } | ||
| 193 | |||
| 194 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule', | ||
| 195 | as 'Cfn::Value'; | ||
| 196 | |||
| 197 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule', | ||
| 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::Pinpoint::Campaign::Schedule->new( %$_ ); | ||
| 204 | } | ||
| 205 | }; | ||
| 206 | |||
| 207 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Schedule { | ||
| 208 | use Moose; | ||
| 209 | use MooseX::StrictConstructor; | ||
| 210 | extends 'Cfn::Value::TypedValue'; | ||
| 211 | |||
| 212 | has EndTime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 213 | has EventFilter => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEventFilter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 214 | has Frequency => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 215 | has IsLocalTime => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 216 | has QuietTime => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::QuietTime', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 217 | has StartTime => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 218 | has TimeZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 219 | } | ||
| 220 | |||
| 221 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration', | ||
| 222 | as 'Cfn::Value'; | ||
| 223 | |||
| 224 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration', | ||
| 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::Pinpoint::Campaign::MessageConfiguration->new( %$_ ); | ||
| 231 | } | ||
| 232 | }; | ||
| 233 | |||
| 234 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MessageConfiguration { | ||
| 235 | use Moose; | ||
| 236 | use MooseX::StrictConstructor; | ||
| 237 | extends 'Cfn::Value::TypedValue'; | ||
| 238 | |||
| 239 | has ADMMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 240 | has APNSMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 241 | has BaiduMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 242 | has DefaultMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 243 | has EmailMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignEmailMessage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 244 | has GCMMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Message', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 245 | has SMSMessage => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignSmsMessage', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 246 | } | ||
| 247 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource', | ||
| 248 | as 'Cfn::Value', | ||
| 249 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 250 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 251 | |||
| 252 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource', | ||
| 253 | from 'HashRef', | ||
| 254 | via { | ||
| 255 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 256 | return $f | ||
| 257 | } else { | ||
| 258 | die 'Only accepts functions'; | ||
| 259 | } | ||
| 260 | }, | ||
| 261 | from 'ArrayRef', | ||
| 262 | via { | ||
| 263 | Cfn::Value::Array->new(Value => [ | ||
| 264 | map { | ||
| 265 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource')->coerce($_) | ||
| 266 | } @$_ | ||
| 267 | ]); | ||
| 268 | }; | ||
| 269 | |||
| 270 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource', | ||
| 271 | as 'Cfn::Value'; | ||
| 272 | |||
| 273 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource', | ||
| 274 | from 'HashRef', | ||
| 275 | via { | ||
| 276 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 277 | return $f | ||
| 278 | } else { | ||
| 279 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::WriteTreatmentResource->new( %$_ ); | ||
| 280 | } | ||
| 281 | }; | ||
| 282 | |||
| 283 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::WriteTreatmentResource { | ||
| 284 | use Moose; | ||
| 285 | use MooseX::StrictConstructor; | ||
| 286 | extends 'Cfn::Value::TypedValue'; | ||
| 287 | |||
| 288 | has MessageConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 289 | has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 290 | has SizePercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 291 | has TreatmentDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 292 | has TreatmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 293 | } | ||
| 294 | |||
| 295 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MetricDimension', | ||
| 296 | as 'Cfn::Value'; | ||
| 297 | |||
| 298 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MetricDimension', | ||
| 299 | from 'HashRef', | ||
| 300 | via { | ||
| 301 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 302 | return $f | ||
| 303 | } else { | ||
| 304 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MetricDimension->new( %$_ ); | ||
| 305 | } | ||
| 306 | }; | ||
| 307 | |||
| 308 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::MetricDimension { | ||
| 309 | use Moose; | ||
| 310 | use MooseX::StrictConstructor; | ||
| 311 | extends 'Cfn::Value::TypedValue'; | ||
| 312 | |||
| 313 | has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 314 | has Value => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 315 | } | ||
| 316 | |||
| 317 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Limits', | ||
| 318 | as 'Cfn::Value'; | ||
| 319 | |||
| 320 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Limits', | ||
| 321 | from 'HashRef', | ||
| 322 | via { | ||
| 323 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 324 | return $f | ||
| 325 | } else { | ||
| 326 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Limits->new( %$_ ); | ||
| 327 | } | ||
| 328 | }; | ||
| 329 | |||
| 330 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::Limits { | ||
| 331 | use Moose; | ||
| 332 | use MooseX::StrictConstructor; | ||
| 333 | extends 'Cfn::Value::TypedValue'; | ||
| 334 | |||
| 335 | has Daily => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 336 | has MaximumDuration => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 337 | has MessagesPerSecond => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 338 | has Total => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 339 | } | ||
| 340 | |||
| 341 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignHook', | ||
| 342 | as 'Cfn::Value'; | ||
| 343 | |||
| 344 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignHook', | ||
| 345 | from 'HashRef', | ||
| 346 | via { | ||
| 347 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 348 | return $f | ||
| 349 | } else { | ||
| 350 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignHook->new( %$_ ); | ||
| 351 | } | ||
| 352 | }; | ||
| 353 | |||
| 354 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::CampaignHook { | ||
| 355 | use Moose; | ||
| 356 | use MooseX::StrictConstructor; | ||
| 357 | extends 'Cfn::Value::TypedValue'; | ||
| 358 | |||
| 359 | has LambdaFunctionName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 360 | has Mode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 361 | has WebUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 362 | } | ||
| 363 | |||
| 364 | subtype 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::AttributeDimension', | ||
| 365 | as 'Cfn::Value'; | ||
| 366 | |||
| 367 | coerce 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::AttributeDimension', | ||
| 368 | from 'HashRef', | ||
| 369 | via { | ||
| 370 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 371 | return $f | ||
| 372 | } else { | ||
| 373 | return Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::AttributeDimension->new( %$_ ); | ||
| 374 | } | ||
| 375 | }; | ||
| 376 | |||
| 377 | package Cfn::Resource::Properties::Object::AWS::Pinpoint::Campaign::AttributeDimension { | ||
| 378 | use Moose; | ||
| 379 | use MooseX::StrictConstructor; | ||
| 380 | extends 'Cfn::Value::TypedValue'; | ||
| 381 | |||
| 382 | has AttributeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 383 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 384 | } | ||
| 385 | |||
| 386 | package Cfn::Resource::Properties::AWS::Pinpoint::Campaign { | ||
| 387 | use Moose; | ||
| 388 | use MooseX::StrictConstructor; | ||
| 389 | extends 'Cfn::Resource::Properties'; | ||
| 390 | |||
| 391 | has AdditionalTreatments => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Pinpoint::Campaign::WriteTreatmentResource', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 392 | has ApplicationId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 393 | has CampaignHook => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::CampaignHook', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 394 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 395 | has HoldoutPercent => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 396 | has IsPaused => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 397 | has Limits => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Limits', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 398 | has MessageConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::MessageConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 399 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 400 | has Schedule => (isa => 'Cfn::Resource::Properties::AWS::Pinpoint::Campaign::Schedule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 401 | has SegmentId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 402 | has SegmentVersion => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 403 | has Tags => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 404 | has TreatmentDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 405 | has TreatmentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 406 | } | ||
| 407 | |||
| 408 | 1; | ||
| 409 | ### main pod documentation begin ### | ||
| 410 | |||
| 411 | =encoding UTF-8 | ||
| 412 | |||
| 413 | =head1 NAME | ||
| 414 | |||
| 415 | Cfn::Resource::AWS::Pinpoint::Campaign - Cfn resource for AWS::Pinpoint::Campaign | ||
| 416 | |||
| 417 | =head1 DESCRIPTION | ||
| 418 | |||
| 419 | This module implements a Perl module that represents the CloudFormation object AWS::Pinpoint::Campaign. | ||
| 420 | |||
| 421 | See L<Cfn> for more information on how to use it. | ||
| 422 | |||
| 423 | =head1 AUTHOR | ||
| 424 | |||
| 425 | Jose Luis Martinez | ||
| 426 | CAPSiDE | ||
| 427 | jlmartinez@capside.com | ||
| 428 | |||
| 429 | =head1 COPYRIGHT and LICENSE | ||
| 430 | |||
| 431 | Copyright (c) 2013 by CAPSiDE | ||
| 432 | This code is distributed under the Apache 2 License. The full text of the | ||
| 433 | license can be found in the LICENSE file included with this module. | ||
| 434 | |||
| 435 | =cut |