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