| 1 | # AWS::ApplicationInsights::Application generated from spec 34.0.0 | ||
| 2 | use Moose::Util::TypeConstraints; | ||
| 3 | |||
| 4 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application', | ||
| 5 | from 'HashRef', | ||
| 6 | via { Cfn::Resource::Properties::AWS::ApplicationInsights::Application->new( %$_ ) }; | ||
| 7 | |||
| 8 | package Cfn::Resource::AWS::ApplicationInsights::Application { | ||
| 9 | use Moose; | ||
| 10 | extends 'Cfn::Resource'; | ||
| 11 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application', is => 'rw', coerce => 1); | ||
| 12 | |||
| 13 | sub AttributeList { | ||
| 14 | [ 'ApplicationARN' ] | ||
| 15 | } | ||
| 16 | sub supported_regions { | ||
| 17 | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||
| 18 | } | ||
| 19 | } | ||
| 20 | |||
| 21 | |||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::WindowsEvent', | ||
| 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::ApplicationInsights::Application::WindowsEvent', | ||
| 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::ApplicationInsights::Application::WindowsEvent')->coerce($_) | ||
| 41 | } @$_ | ||
| 42 | ]); | ||
| 43 | }; | ||
| 44 | |||
| 45 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::WindowsEvent', | ||
| 46 | as 'Cfn::Value'; | ||
| 47 | |||
| 48 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::WindowsEvent', | ||
| 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::ApplicationInsights::Application::WindowsEvent->new( %$_ ); | ||
| 55 | } | ||
| 56 | }; | ||
| 57 | |||
| 58 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::WindowsEvent { | ||
| 59 | use Moose; | ||
| 60 | use MooseX::StrictConstructor; | ||
| 61 | extends 'Cfn::Value::TypedValue'; | ||
| 62 | |||
| 63 | has EventLevels => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 64 | has EventName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 65 | has LogGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 66 | has PatternSet => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 67 | } | ||
| 68 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Log', | ||
| 69 | as 'Cfn::Value', | ||
| 70 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 71 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 72 | |||
| 73 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Log', | ||
| 74 | from 'HashRef', | ||
| 75 | via { | ||
| 76 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 77 | return $f | ||
| 78 | } else { | ||
| 79 | die 'Only accepts functions'; | ||
| 80 | } | ||
| 81 | }, | ||
| 82 | from 'ArrayRef', | ||
| 83 | via { | ||
| 84 | Cfn::Value::Array->new(Value => [ | ||
| 85 | map { | ||
| 86 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::Log')->coerce($_) | ||
| 87 | } @$_ | ||
| 88 | ]); | ||
| 89 | }; | ||
| 90 | |||
| 91 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::Log', | ||
| 92 | as 'Cfn::Value'; | ||
| 93 | |||
| 94 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::Log', | ||
| 95 | from 'HashRef', | ||
| 96 | via { | ||
| 97 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 98 | return $f | ||
| 99 | } else { | ||
| 100 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::Log->new( %$_ ); | ||
| 101 | } | ||
| 102 | }; | ||
| 103 | |||
| 104 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::Log { | ||
| 105 | use Moose; | ||
| 106 | use MooseX::StrictConstructor; | ||
| 107 | extends 'Cfn::Value::TypedValue'; | ||
| 108 | |||
| 109 | has Encoding => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 110 | has LogGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 111 | has LogPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 112 | has LogType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 113 | has PatternSet => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 114 | } | ||
| 115 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric', | ||
| 116 | as 'Cfn::Value', | ||
| 117 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 118 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 119 | |||
| 120 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric', | ||
| 121 | from 'HashRef', | ||
| 122 | via { | ||
| 123 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 124 | return $f | ||
| 125 | } else { | ||
| 126 | die 'Only accepts functions'; | ||
| 127 | } | ||
| 128 | }, | ||
| 129 | from 'ArrayRef', | ||
| 130 | via { | ||
| 131 | Cfn::Value::Array->new(Value => [ | ||
| 132 | map { | ||
| 133 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric')->coerce($_) | ||
| 134 | } @$_ | ||
| 135 | ]); | ||
| 136 | }; | ||
| 137 | |||
| 138 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric', | ||
| 139 | as 'Cfn::Value'; | ||
| 140 | |||
| 141 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric', | ||
| 142 | from 'HashRef', | ||
| 143 | via { | ||
| 144 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 145 | return $f | ||
| 146 | } else { | ||
| 147 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::AlarmMetric->new( %$_ ); | ||
| 148 | } | ||
| 149 | }; | ||
| 150 | |||
| 151 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::AlarmMetric { | ||
| 152 | use Moose; | ||
| 153 | use MooseX::StrictConstructor; | ||
| 154 | extends 'Cfn::Value::TypedValue'; | ||
| 155 | |||
| 156 | has AlarmMetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 157 | } | ||
| 158 | |||
| 159 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentConfigurationDetails', | ||
| 160 | as 'Cfn::Value'; | ||
| 161 | |||
| 162 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentConfigurationDetails', | ||
| 163 | from 'HashRef', | ||
| 164 | via { | ||
| 165 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 166 | return $f | ||
| 167 | } else { | ||
| 168 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::SubComponentConfigurationDetails->new( %$_ ); | ||
| 169 | } | ||
| 170 | }; | ||
| 171 | |||
| 172 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::SubComponentConfigurationDetails { | ||
| 173 | use Moose; | ||
| 174 | use MooseX::StrictConstructor; | ||
| 175 | extends 'Cfn::Value::TypedValue'; | ||
| 176 | |||
| 177 | has AlarmMetrics => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 178 | has Logs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Log', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 179 | has WindowsEvents => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::WindowsEvent', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 180 | } | ||
| 181 | |||
| 182 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::JMXPrometheusExporter', | ||
| 183 | as 'Cfn::Value'; | ||
| 184 | |||
| 185 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::JMXPrometheusExporter', | ||
| 186 | from 'HashRef', | ||
| 187 | via { | ||
| 188 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 189 | return $f | ||
| 190 | } else { | ||
| 191 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::JMXPrometheusExporter->new( %$_ ); | ||
| 192 | } | ||
| 193 | }; | ||
| 194 | |||
| 195 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::JMXPrometheusExporter { | ||
| 196 | use Moose; | ||
| 197 | use MooseX::StrictConstructor; | ||
| 198 | extends 'Cfn::Value::TypedValue'; | ||
| 199 | |||
| 200 | has HostPort => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 201 | has JMXURL => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 202 | has PrometheusPort => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 203 | } | ||
| 204 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Alarm', | ||
| 205 | as 'Cfn::Value', | ||
| 206 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 207 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 208 | |||
| 209 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Alarm', | ||
| 210 | from 'HashRef', | ||
| 211 | via { | ||
| 212 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 213 | return $f | ||
| 214 | } else { | ||
| 215 | die 'Only accepts functions'; | ||
| 216 | } | ||
| 217 | }, | ||
| 218 | from 'ArrayRef', | ||
| 219 | via { | ||
| 220 | Cfn::Value::Array->new(Value => [ | ||
| 221 | map { | ||
| 222 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::Alarm')->coerce($_) | ||
| 223 | } @$_ | ||
| 224 | ]); | ||
| 225 | }; | ||
| 226 | |||
| 227 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::Alarm', | ||
| 228 | as 'Cfn::Value'; | ||
| 229 | |||
| 230 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::Alarm', | ||
| 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::ApplicationInsights::Application::Alarm->new( %$_ ); | ||
| 237 | } | ||
| 238 | }; | ||
| 239 | |||
| 240 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::Alarm { | ||
| 241 | use Moose; | ||
| 242 | use MooseX::StrictConstructor; | ||
| 243 | extends 'Cfn::Value::TypedValue'; | ||
| 244 | |||
| 245 | has AlarmName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 246 | has Severity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 247 | } | ||
| 248 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration', | ||
| 249 | as 'Cfn::Value', | ||
| 250 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 251 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 252 | |||
| 253 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration', | ||
| 254 | from 'HashRef', | ||
| 255 | via { | ||
| 256 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 257 | return $f | ||
| 258 | } else { | ||
| 259 | die 'Only accepts functions'; | ||
| 260 | } | ||
| 261 | }, | ||
| 262 | from 'ArrayRef', | ||
| 263 | via { | ||
| 264 | Cfn::Value::Array->new(Value => [ | ||
| 265 | map { | ||
| 266 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration')->coerce($_) | ||
| 267 | } @$_ | ||
| 268 | ]); | ||
| 269 | }; | ||
| 270 | |||
| 271 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration', | ||
| 272 | as 'Cfn::Value'; | ||
| 273 | |||
| 274 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration', | ||
| 275 | from 'HashRef', | ||
| 276 | via { | ||
| 277 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 278 | return $f | ||
| 279 | } else { | ||
| 280 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration->new( %$_ ); | ||
| 281 | } | ||
| 282 | }; | ||
| 283 | |||
| 284 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration { | ||
| 285 | use Moose; | ||
| 286 | use MooseX::StrictConstructor; | ||
| 287 | extends 'Cfn::Value::TypedValue'; | ||
| 288 | |||
| 289 | has SubComponentConfigurationDetails => (isa => 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentConfigurationDetails', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 290 | has SubComponentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 291 | } | ||
| 292 | |||
| 293 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ConfigurationDetails', | ||
| 294 | as 'Cfn::Value'; | ||
| 295 | |||
| 296 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ConfigurationDetails', | ||
| 297 | from 'HashRef', | ||
| 298 | via { | ||
| 299 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 300 | return $f | ||
| 301 | } else { | ||
| 302 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::ConfigurationDetails->new( %$_ ); | ||
| 303 | } | ||
| 304 | }; | ||
| 305 | |||
| 306 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::ConfigurationDetails { | ||
| 307 | use Moose; | ||
| 308 | use MooseX::StrictConstructor; | ||
| 309 | extends 'Cfn::Value::TypedValue'; | ||
| 310 | |||
| 311 | has AlarmMetrics => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::AlarmMetric', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 312 | has Alarms => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Alarm', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 313 | has JMXPrometheusExporter => (isa => 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::JMXPrometheusExporter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 314 | has Logs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::Log', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 315 | has WindowsEvents => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::WindowsEvent', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 316 | } | ||
| 317 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPattern', | ||
| 318 | as 'Cfn::Value', | ||
| 319 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 320 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 321 | |||
| 322 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPattern', | ||
| 323 | from 'HashRef', | ||
| 324 | via { | ||
| 325 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 326 | return $f | ||
| 327 | } else { | ||
| 328 | die 'Only accepts functions'; | ||
| 329 | } | ||
| 330 | }, | ||
| 331 | from 'ArrayRef', | ||
| 332 | via { | ||
| 333 | Cfn::Value::Array->new(Value => [ | ||
| 334 | map { | ||
| 335 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPattern')->coerce($_) | ||
| 336 | } @$_ | ||
| 337 | ]); | ||
| 338 | }; | ||
| 339 | |||
| 340 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPattern', | ||
| 341 | as 'Cfn::Value'; | ||
| 342 | |||
| 343 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPattern', | ||
| 344 | from 'HashRef', | ||
| 345 | via { | ||
| 346 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 347 | return $f | ||
| 348 | } else { | ||
| 349 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::LogPattern->new( %$_ ); | ||
| 350 | } | ||
| 351 | }; | ||
| 352 | |||
| 353 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::LogPattern { | ||
| 354 | use Moose; | ||
| 355 | use MooseX::StrictConstructor; | ||
| 356 | extends 'Cfn::Value::TypedValue'; | ||
| 357 | |||
| 358 | has Pattern => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 359 | has PatternName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 360 | has Rank => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 361 | } | ||
| 362 | |||
| 363 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentConfiguration', | ||
| 364 | as 'Cfn::Value'; | ||
| 365 | |||
| 366 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentConfiguration', | ||
| 367 | from 'HashRef', | ||
| 368 | via { | ||
| 369 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 370 | return $f | ||
| 371 | } else { | ||
| 372 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::ComponentConfiguration->new( %$_ ); | ||
| 373 | } | ||
| 374 | }; | ||
| 375 | |||
| 376 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::ComponentConfiguration { | ||
| 377 | use Moose; | ||
| 378 | use MooseX::StrictConstructor; | ||
| 379 | extends 'Cfn::Value::TypedValue'; | ||
| 380 | |||
| 381 | has ConfigurationDetails => (isa => 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ConfigurationDetails', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 382 | has SubComponentTypeConfigurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::SubComponentTypeConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 383 | } | ||
| 384 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPatternSet', | ||
| 385 | as 'Cfn::Value', | ||
| 386 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 387 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 388 | |||
| 389 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPatternSet', | ||
| 390 | from 'HashRef', | ||
| 391 | via { | ||
| 392 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 393 | return $f | ||
| 394 | } else { | ||
| 395 | die 'Only accepts functions'; | ||
| 396 | } | ||
| 397 | }, | ||
| 398 | from 'ArrayRef', | ||
| 399 | via { | ||
| 400 | Cfn::Value::Array->new(Value => [ | ||
| 401 | map { | ||
| 402 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPatternSet')->coerce($_) | ||
| 403 | } @$_ | ||
| 404 | ]); | ||
| 405 | }; | ||
| 406 | |||
| 407 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPatternSet', | ||
| 408 | as 'Cfn::Value'; | ||
| 409 | |||
| 410 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPatternSet', | ||
| 411 | from 'HashRef', | ||
| 412 | via { | ||
| 413 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 414 | return $f | ||
| 415 | } else { | ||
| 416 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::LogPatternSet->new( %$_ ); | ||
| 417 | } | ||
| 418 | }; | ||
| 419 | |||
| 420 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::LogPatternSet { | ||
| 421 | use Moose; | ||
| 422 | use MooseX::StrictConstructor; | ||
| 423 | extends 'Cfn::Value::TypedValue'; | ||
| 424 | |||
| 425 | has LogPatterns => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPattern', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 426 | has PatternSetName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 427 | } | ||
| 428 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::CustomComponent', | ||
| 429 | as 'Cfn::Value', | ||
| 430 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 431 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 432 | |||
| 433 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::CustomComponent', | ||
| 434 | from 'HashRef', | ||
| 435 | via { | ||
| 436 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 437 | return $f | ||
| 438 | } else { | ||
| 439 | die 'Only accepts functions'; | ||
| 440 | } | ||
| 441 | }, | ||
| 442 | from 'ArrayRef', | ||
| 443 | via { | ||
| 444 | Cfn::Value::Array->new(Value => [ | ||
| 445 | map { | ||
| 446 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::CustomComponent')->coerce($_) | ||
| 447 | } @$_ | ||
| 448 | ]); | ||
| 449 | }; | ||
| 450 | |||
| 451 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::CustomComponent', | ||
| 452 | as 'Cfn::Value'; | ||
| 453 | |||
| 454 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::CustomComponent', | ||
| 455 | from 'HashRef', | ||
| 456 | via { | ||
| 457 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 458 | return $f | ||
| 459 | } else { | ||
| 460 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::CustomComponent->new( %$_ ); | ||
| 461 | } | ||
| 462 | }; | ||
| 463 | |||
| 464 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::CustomComponent { | ||
| 465 | use Moose; | ||
| 466 | use MooseX::StrictConstructor; | ||
| 467 | extends 'Cfn::Value::TypedValue'; | ||
| 468 | |||
| 469 | has ComponentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 470 | has ResourceList => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 471 | } | ||
| 472 | subtype 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentMonitoringSetting', | ||
| 473 | as 'Cfn::Value', | ||
| 474 | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||
| 475 | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||
| 476 | |||
| 477 | coerce 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentMonitoringSetting', | ||
| 478 | from 'HashRef', | ||
| 479 | via { | ||
| 480 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 481 | return $f | ||
| 482 | } else { | ||
| 483 | die 'Only accepts functions'; | ||
| 484 | } | ||
| 485 | }, | ||
| 486 | from 'ArrayRef', | ||
| 487 | via { | ||
| 488 | Cfn::Value::Array->new(Value => [ | ||
| 489 | map { | ||
| 490 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentMonitoringSetting')->coerce($_) | ||
| 491 | } @$_ | ||
| 492 | ]); | ||
| 493 | }; | ||
| 494 | |||
| 495 | subtype 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentMonitoringSetting', | ||
| 496 | as 'Cfn::Value'; | ||
| 497 | |||
| 498 | coerce 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentMonitoringSetting', | ||
| 499 | from 'HashRef', | ||
| 500 | via { | ||
| 501 | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||
| 502 | return $f | ||
| 503 | } else { | ||
| 504 | return Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::ComponentMonitoringSetting->new( %$_ ); | ||
| 505 | } | ||
| 506 | }; | ||
| 507 | |||
| 508 | package Cfn::Resource::Properties::Object::AWS::ApplicationInsights::Application::ComponentMonitoringSetting { | ||
| 509 | use Moose; | ||
| 510 | use MooseX::StrictConstructor; | ||
| 511 | extends 'Cfn::Value::TypedValue'; | ||
| 512 | |||
| 513 | has ComponentARN => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 514 | has ComponentConfigurationMode => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 515 | has ComponentName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 516 | has CustomComponentConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 517 | has DefaultOverwriteComponentConfiguration => (isa => 'Cfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 518 | has Tier => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 519 | } | ||
| 520 | |||
| 521 | package Cfn::Resource::Properties::AWS::ApplicationInsights::Application { | ||
| 522 | use Moose; | ||
| 523 | use MooseX::StrictConstructor; | ||
| 524 | extends 'Cfn::Resource::Properties'; | ||
| 525 | |||
| 526 | has AutoConfigurationEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 527 | has CWEMonitorEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 528 | has ComponentMonitoringSettings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::ComponentMonitoringSetting', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 529 | has CustomComponents => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::CustomComponent', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 530 | has LogPatternSets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::ApplicationInsights::Application::LogPatternSet', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 531 | has OpsCenterEnabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 532 | has OpsItemSNSTopicArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 533 | has ResourceGroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | ||
| 534 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | ||
| 535 | } | ||
| 536 | |||
| 537 | 1; | ||
| 538 | ### main pod documentation begin ### | ||
| 539 | |||
| 540 | =encoding UTF-8 | ||
| 541 | |||
| 542 | =head1 NAME | ||
| 543 | |||
| 544 | Cfn::Resource::AWS::ApplicationInsights::Application - Cfn resource for AWS::ApplicationInsights::Application | ||
| 545 | |||
| 546 | =head1 DESCRIPTION | ||
| 547 | |||
| 548 | This module implements a Perl module that represents the CloudFormation object AWS::ApplicationInsights::Application. | ||
| 549 | |||
| 550 | See L<Cfn> for more information on how to use it. | ||
| 551 | |||
| 552 | =head1 AUTHOR | ||
| 553 | |||
| 554 | Jose Luis Martinez | ||
| 555 | CAPSiDE | ||
| 556 | jlmartinez@capside.com | ||
| 557 | |||
| 558 | =head1 COPYRIGHT and LICENSE | ||
| 559 | |||
| 560 | Copyright (c) 2013 by CAPSiDE | ||
| 561 | This code is distributed under the Apache 2 License. The full text of the | ||
| 562 | license can be found in the LICENSE file included with this module. | ||
| 563 | |||
| 564 | =cut |