| 1 | # AWS::IoTEvents::DetectorModel generated from spec 18.4.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::IoTEvents::DetectorModel { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'ap-northeast-1','ap-northeast-2','ap-southeast-1','ap-southeast-2','eu-central-1','eu-west-1','eu-west-2','us-east-1','us-east-2','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyVariant', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyVariant', | ||||||||||
| 27 | from 'HashRef', | ||||||||||
| 28 | via { | ||||||||||
| 29 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 30 | 0 | return $f | |||||||||
| 31 | } else { | ||||||||||
| 32 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyVariant->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyVariant { | |||||||||
| 37 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 1 | has BooleanValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 1 | has DoubleValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | 1 | has IntegerValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 44 | 1 | has StringValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp', | |||||||||
| 48 | as 'Cfn::Value'; | ||||||||||
| 49 | |||||||||||
| 50 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp', | ||||||||||
| 51 | from 'HashRef', | ||||||||||
| 52 | via { | ||||||||||
| 53 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 54 | 0 | return $f | |||||||||
| 55 | } else { | ||||||||||
| 56 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp->new( %$_ ); | |||||||||
| 57 | } | ||||||||||
| 58 | 1 | }; | |||||||||
| 59 | |||||||||||
| 60 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp { | |||||||||
| 61 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 62 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 63 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 64 | |||||||||||
| 65 | 1 | has OffsetInNanos => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 66 | 1 | has TimeInSeconds => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 67 | } | ||||||||||
| 68 | |||||||||||
| 69 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', | |||||||||
| 70 | as 'Cfn::Value'; | ||||||||||
| 71 | |||||||||||
| 72 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', | ||||||||||
| 73 | from 'HashRef', | ||||||||||
| 74 | via { | ||||||||||
| 75 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 76 | 0 | return $f | |||||||||
| 77 | } else { | ||||||||||
| 78 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Payload->new( %$_ ); | |||||||||
| 79 | } | ||||||||||
| 80 | 1 | }; | |||||||||
| 81 | |||||||||||
| 82 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Payload { | |||||||||
| 83 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 84 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 85 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 86 | |||||||||||
| 87 | 1 | has ContentExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 89 | } | ||||||||||
| 90 | |||||||||||
| 91 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyValue', | |||||||||
| 92 | as 'Cfn::Value'; | ||||||||||
| 93 | |||||||||||
| 94 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyValue', | ||||||||||
| 95 | from 'HashRef', | ||||||||||
| 96 | via { | ||||||||||
| 97 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 98 | 0 | return $f | |||||||||
| 99 | } else { | ||||||||||
| 100 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyValue->new( %$_ ); | |||||||||
| 101 | } | ||||||||||
| 102 | 1 | }; | |||||||||
| 103 | |||||||||||
| 104 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::AssetPropertyValue { | |||||||||
| 105 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 107 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 108 | |||||||||||
| 109 | 1 | has Quality => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 1 | has Timestamp => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyTimestamp', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 1 | has Value => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyVariant', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | } | ||||||||||
| 113 | |||||||||||
| 114 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sqs', | |||||||||
| 115 | as 'Cfn::Value'; | ||||||||||
| 116 | |||||||||||
| 117 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sqs', | ||||||||||
| 118 | from 'HashRef', | ||||||||||
| 119 | via { | ||||||||||
| 120 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 121 | 0 | return $f | |||||||||
| 122 | } else { | ||||||||||
| 123 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sqs->new( %$_ ); | |||||||||
| 124 | } | ||||||||||
| 125 | 1 | }; | |||||||||
| 126 | |||||||||||
| 127 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sqs { | |||||||||
| 128 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 129 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 130 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 131 | |||||||||||
| 132 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 1 | has QueueUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | 1 | has UseBase64 => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 135 | } | ||||||||||
| 136 | |||||||||||
| 137 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sns', | |||||||||
| 138 | as 'Cfn::Value'; | ||||||||||
| 139 | |||||||||||
| 140 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sns', | ||||||||||
| 141 | from 'HashRef', | ||||||||||
| 142 | via { | ||||||||||
| 143 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 144 | 0 | return $f | |||||||||
| 145 | } else { | ||||||||||
| 146 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sns->new( %$_ ); | |||||||||
| 147 | } | ||||||||||
| 148 | 1 | }; | |||||||||
| 149 | |||||||||||
| 150 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Sns { | |||||||||
| 151 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 152 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 153 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 154 | |||||||||||
| 155 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 156 | 1 | has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 157 | } | ||||||||||
| 158 | |||||||||||
| 159 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetVariable', | |||||||||
| 160 | as 'Cfn::Value'; | ||||||||||
| 161 | |||||||||||
| 162 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetVariable', | ||||||||||
| 163 | from 'HashRef', | ||||||||||
| 164 | via { | ||||||||||
| 165 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 166 | 0 | return $f | |||||||||
| 167 | } else { | ||||||||||
| 168 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetVariable->new( %$_ ); | |||||||||
| 169 | } | ||||||||||
| 170 | 1 | }; | |||||||||
| 171 | |||||||||||
| 172 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetVariable { | |||||||||
| 173 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 174 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 175 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 176 | |||||||||||
| 177 | 1 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 178 | 1 | has VariableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 179 | } | ||||||||||
| 180 | |||||||||||
| 181 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetTimer', | |||||||||
| 182 | as 'Cfn::Value'; | ||||||||||
| 183 | |||||||||||
| 184 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetTimer', | ||||||||||
| 185 | from 'HashRef', | ||||||||||
| 186 | via { | ||||||||||
| 187 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 188 | 0 | return $f | |||||||||
| 189 | } else { | ||||||||||
| 190 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetTimer->new( %$_ ); | |||||||||
| 191 | } | ||||||||||
| 192 | 1 | }; | |||||||||
| 193 | |||||||||||
| 194 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::SetTimer { | |||||||||
| 195 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 196 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 197 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 198 | |||||||||||
| 199 | 1 | has DurationExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 200 | 1 | has Seconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 201 | 1 | has TimerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 202 | } | ||||||||||
| 203 | |||||||||||
| 204 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ResetTimer', | |||||||||
| 205 | as 'Cfn::Value'; | ||||||||||
| 206 | |||||||||||
| 207 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ResetTimer', | ||||||||||
| 208 | from 'HashRef', | ||||||||||
| 209 | via { | ||||||||||
| 210 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 211 | 0 | return $f | |||||||||
| 212 | } else { | ||||||||||
| 213 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ResetTimer->new( %$_ ); | |||||||||
| 214 | } | ||||||||||
| 215 | 1 | }; | |||||||||
| 216 | |||||||||||
| 217 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ResetTimer { | |||||||||
| 218 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 219 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 220 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 221 | |||||||||||
| 222 | 1 | has TimerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 223 | } | ||||||||||
| 224 | |||||||||||
| 225 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Lambda', | |||||||||
| 226 | as 'Cfn::Value'; | ||||||||||
| 227 | |||||||||||
| 228 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Lambda', | ||||||||||
| 229 | from 'HashRef', | ||||||||||
| 230 | via { | ||||||||||
| 231 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 232 | 0 | return $f | |||||||||
| 233 | } else { | ||||||||||
| 234 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Lambda->new( %$_ ); | |||||||||
| 235 | } | ||||||||||
| 236 | 1 | }; | |||||||||
| 237 | |||||||||||
| 238 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Lambda { | |||||||||
| 239 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 240 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 241 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 242 | |||||||||||
| 243 | 1 | has FunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 244 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 245 | } | ||||||||||
| 246 | |||||||||||
| 247 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotTopicPublish', | |||||||||
| 248 | as 'Cfn::Value'; | ||||||||||
| 249 | |||||||||||
| 250 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotTopicPublish', | ||||||||||
| 251 | from 'HashRef', | ||||||||||
| 252 | via { | ||||||||||
| 253 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 254 | 0 | return $f | |||||||||
| 255 | } else { | ||||||||||
| 256 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotTopicPublish->new( %$_ ); | |||||||||
| 257 | } | ||||||||||
| 258 | 1 | }; | |||||||||
| 259 | |||||||||||
| 260 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotTopicPublish { | |||||||||
| 261 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 262 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 263 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 264 | |||||||||||
| 265 | 1 | has MqttTopic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 266 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 267 | } | ||||||||||
| 268 | |||||||||||
| 269 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotSiteWise', | |||||||||
| 270 | as 'Cfn::Value'; | ||||||||||
| 271 | |||||||||||
| 272 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotSiteWise', | ||||||||||
| 273 | from 'HashRef', | ||||||||||
| 274 | via { | ||||||||||
| 275 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 276 | 0 | return $f | |||||||||
| 277 | } else { | ||||||||||
| 278 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotSiteWise->new( %$_ ); | |||||||||
| 279 | } | ||||||||||
| 280 | 1 | }; | |||||||||
| 281 | |||||||||||
| 282 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotSiteWise { | |||||||||
| 283 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 284 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 285 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 286 | |||||||||||
| 287 | 1 | has AssetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 288 | 1 | has EntryId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 289 | 1 | has PropertyAlias => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 290 | 1 | has PropertyId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 291 | 1 | has PropertyValue => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::AssetPropertyValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 292 | } | ||||||||||
| 293 | |||||||||||
| 294 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotEvents', | |||||||||
| 295 | as 'Cfn::Value'; | ||||||||||
| 296 | |||||||||||
| 297 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotEvents', | ||||||||||
| 298 | from 'HashRef', | ||||||||||
| 299 | via { | ||||||||||
| 300 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 301 | 0 | return $f | |||||||||
| 302 | } else { | ||||||||||
| 303 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotEvents->new( %$_ ); | |||||||||
| 304 | } | ||||||||||
| 305 | 1 | }; | |||||||||
| 306 | |||||||||||
| 307 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::IotEvents { | |||||||||
| 308 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 309 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 310 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 311 | |||||||||||
| 312 | 1 | has InputName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 314 | } | ||||||||||
| 315 | |||||||||||
| 316 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Firehose', | |||||||||
| 317 | as 'Cfn::Value'; | ||||||||||
| 318 | |||||||||||
| 319 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Firehose', | ||||||||||
| 320 | from 'HashRef', | ||||||||||
| 321 | via { | ||||||||||
| 322 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 323 | 0 | return $f | |||||||||
| 324 | } else { | ||||||||||
| 325 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Firehose->new( %$_ ); | |||||||||
| 326 | } | ||||||||||
| 327 | 1 | }; | |||||||||
| 328 | |||||||||||
| 329 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Firehose { | |||||||||
| 330 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 331 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 332 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 333 | |||||||||||
| 334 | 1 | has DeliveryStreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 335 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 336 | 1 | has Separator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 337 | } | ||||||||||
| 338 | |||||||||||
| 339 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDBv2', | |||||||||
| 340 | as 'Cfn::Value'; | ||||||||||
| 341 | |||||||||||
| 342 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDBv2', | ||||||||||
| 343 | from 'HashRef', | ||||||||||
| 344 | via { | ||||||||||
| 345 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 346 | 0 | return $f | |||||||||
| 347 | } else { | ||||||||||
| 348 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDBv2->new( %$_ ); | |||||||||
| 349 | } | ||||||||||
| 350 | 1 | }; | |||||||||
| 351 | |||||||||||
| 352 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDBv2 { | |||||||||
| 353 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 354 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 355 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 356 | |||||||||||
| 357 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 358 | 1 | has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 359 | } | ||||||||||
| 360 | |||||||||||
| 361 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDB', | |||||||||
| 362 | as 'Cfn::Value'; | ||||||||||
| 363 | |||||||||||
| 364 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDB', | ||||||||||
| 365 | from 'HashRef', | ||||||||||
| 366 | via { | ||||||||||
| 367 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 368 | 0 | return $f | |||||||||
| 369 | } else { | ||||||||||
| 370 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDB->new( %$_ ); | |||||||||
| 371 | } | ||||||||||
| 372 | 1 | }; | |||||||||
| 373 | |||||||||||
| 374 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DynamoDB { | |||||||||
| 375 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 376 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 377 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 378 | |||||||||||
| 379 | 1 | has HashKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 380 | 1 | has HashKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 381 | 1 | has HashKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 382 | 1 | has Operation => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 383 | 1 | has Payload => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Payload', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 384 | 1 | has PayloadField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 385 | 1 | has RangeKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 386 | 1 | has RangeKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 387 | 1 | has RangeKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 388 | 1 | has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 389 | } | ||||||||||
| 390 | |||||||||||
| 391 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ClearTimer', | |||||||||
| 392 | as 'Cfn::Value'; | ||||||||||
| 393 | |||||||||||
| 394 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ClearTimer', | ||||||||||
| 395 | from 'HashRef', | ||||||||||
| 396 | via { | ||||||||||
| 397 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 398 | 0 | return $f | |||||||||
| 399 | } else { | ||||||||||
| 400 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ClearTimer->new( %$_ ); | |||||||||
| 401 | } | ||||||||||
| 402 | 1 | }; | |||||||||
| 403 | |||||||||||
| 404 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::ClearTimer { | |||||||||
| 405 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 406 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 407 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 408 | |||||||||||
| 409 | 1 | has TimerName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 410 | } | ||||||||||
| 411 | subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', | ||||||||||
| 412 | as 'Cfn::Value', | ||||||||||
| 413 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 414 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 415 | |||||||||||
| 416 | coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', | ||||||||||
| 417 | from 'HashRef', | ||||||||||
| 418 | via { | ||||||||||
| 419 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 420 | 0 | return $f | |||||||||
| 421 | } else { | ||||||||||
| 422 | 0 | die 'Only accepts functions'; | |||||||||
| 423 | } | ||||||||||
| 424 | }, | ||||||||||
| 425 | from 'ArrayRef', | ||||||||||
| 426 | via { | ||||||||||
| 427 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 428 | map { | ||||||||||
| 429 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 430 | } @$_ | ||||||||||
| 431 | ]); | ||||||||||
| 432 | 1 | }; | |||||||||
| 433 | |||||||||||
| 434 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', | |||||||||
| 435 | as 'Cfn::Value'; | ||||||||||
| 436 | |||||||||||
| 437 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', | ||||||||||
| 438 | from 'HashRef', | ||||||||||
| 439 | via { | ||||||||||
| 440 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 441 | 0 | return $f | |||||||||
| 442 | } else { | ||||||||||
| 443 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Action->new( %$_ ); | |||||||||
| 444 | } | ||||||||||
| 445 | 1 | }; | |||||||||
| 446 | |||||||||||
| 447 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Action { | |||||||||
| 448 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 449 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 450 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 451 | |||||||||||
| 452 | 1 | has ClearTimer => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ClearTimer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 453 | 1 | has DynamoDB => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDB', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 454 | 1 | has DynamoDBv2 => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DynamoDBv2', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 455 | 1 | has Firehose => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Firehose', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 456 | 1 | has IotEvents => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotEvents', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 457 | 1 | has IotSiteWise => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotSiteWise', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 458 | 1 | has IotTopicPublish => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::IotTopicPublish', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 459 | 1 | has Lambda => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Lambda', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 460 | 1 | has ResetTimer => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::ResetTimer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 461 | 1 | has SetTimer => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetTimer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 462 | 1 | has SetVariable => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::SetVariable', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 463 | 1 | has Sns => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sns', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 464 | 1 | has Sqs => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Sqs', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 465 | } | ||||||||||
| 466 | subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent', | ||||||||||
| 467 | as 'Cfn::Value', | ||||||||||
| 468 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 469 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 470 | |||||||||||
| 471 | coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent', | ||||||||||
| 472 | from 'HashRef', | ||||||||||
| 473 | via { | ||||||||||
| 474 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 475 | 0 | return $f | |||||||||
| 476 | } else { | ||||||||||
| 477 | 0 | die 'Only accepts functions'; | |||||||||
| 478 | } | ||||||||||
| 479 | }, | ||||||||||
| 480 | from 'ArrayRef', | ||||||||||
| 481 | via { | ||||||||||
| 482 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 483 | map { | ||||||||||
| 484 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 485 | } @$_ | ||||||||||
| 486 | ]); | ||||||||||
| 487 | 1 | }; | |||||||||
| 488 | |||||||||||
| 489 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent', | |||||||||
| 490 | as 'Cfn::Value'; | ||||||||||
| 491 | |||||||||||
| 492 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent', | ||||||||||
| 493 | from 'HashRef', | ||||||||||
| 494 | via { | ||||||||||
| 495 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 496 | 0 | return $f | |||||||||
| 497 | } else { | ||||||||||
| 498 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::TransitionEvent->new( %$_ ); | |||||||||
| 499 | } | ||||||||||
| 500 | 1 | }; | |||||||||
| 501 | |||||||||||
| 502 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::TransitionEvent { | |||||||||
| 503 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 504 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 505 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 506 | |||||||||||
| 507 | 1 | has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 508 | 1 | has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 509 | 1 | has EventName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 510 | 1 | has NextState => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 511 | } | ||||||||||
| 512 | subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', | ||||||||||
| 513 | as 'Cfn::Value', | ||||||||||
| 514 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 515 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 516 | |||||||||||
| 517 | coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', | ||||||||||
| 518 | from 'HashRef', | ||||||||||
| 519 | via { | ||||||||||
| 520 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 521 | 0 | return $f | |||||||||
| 522 | } else { | ||||||||||
| 523 | 0 | die 'Only accepts functions'; | |||||||||
| 524 | } | ||||||||||
| 525 | }, | ||||||||||
| 526 | from 'ArrayRef', | ||||||||||
| 527 | via { | ||||||||||
| 528 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 529 | map { | ||||||||||
| 530 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 531 | } @$_ | ||||||||||
| 532 | ]); | ||||||||||
| 533 | 1 | }; | |||||||||
| 534 | |||||||||||
| 535 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', | |||||||||
| 536 | as 'Cfn::Value'; | ||||||||||
| 537 | |||||||||||
| 538 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', | ||||||||||
| 539 | from 'HashRef', | ||||||||||
| 540 | via { | ||||||||||
| 541 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 542 | 0 | return $f | |||||||||
| 543 | } else { | ||||||||||
| 544 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Event->new( %$_ ); | |||||||||
| 545 | } | ||||||||||
| 546 | 1 | }; | |||||||||
| 547 | |||||||||||
| 548 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::Event { | |||||||||
| 549 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 550 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 551 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 552 | |||||||||||
| 553 | 1 | has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 554 | 1 | has Condition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 555 | 1 | has EventName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 556 | } | ||||||||||
| 557 | |||||||||||
| 558 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnInput', | |||||||||
| 559 | as 'Cfn::Value'; | ||||||||||
| 560 | |||||||||||
| 561 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnInput', | ||||||||||
| 562 | from 'HashRef', | ||||||||||
| 563 | via { | ||||||||||
| 564 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 565 | 0 | return $f | |||||||||
| 566 | } else { | ||||||||||
| 567 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnInput->new( %$_ ); | |||||||||
| 568 | } | ||||||||||
| 569 | 1 | }; | |||||||||
| 570 | |||||||||||
| 571 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnInput { | |||||||||
| 572 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 573 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 574 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 575 | |||||||||||
| 576 | 1 | has Events => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 577 | 1 | has TransitionEvents => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::TransitionEvent', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 578 | } | ||||||||||
| 579 | |||||||||||
| 580 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnExit', | |||||||||
| 581 | as 'Cfn::Value'; | ||||||||||
| 582 | |||||||||||
| 583 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnExit', | ||||||||||
| 584 | from 'HashRef', | ||||||||||
| 585 | via { | ||||||||||
| 586 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 587 | 0 | return $f | |||||||||
| 588 | } else { | ||||||||||
| 589 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnExit->new( %$_ ); | |||||||||
| 590 | } | ||||||||||
| 591 | 1 | }; | |||||||||
| 592 | |||||||||||
| 593 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnExit { | |||||||||
| 594 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 595 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 596 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 597 | |||||||||||
| 598 | 1 | has Events => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 599 | } | ||||||||||
| 600 | |||||||||||
| 601 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnEnter', | |||||||||
| 602 | as 'Cfn::Value'; | ||||||||||
| 603 | |||||||||||
| 604 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnEnter', | ||||||||||
| 605 | from 'HashRef', | ||||||||||
| 606 | via { | ||||||||||
| 607 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 608 | 0 | return $f | |||||||||
| 609 | } else { | ||||||||||
| 610 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnEnter->new( %$_ ); | |||||||||
| 611 | } | ||||||||||
| 612 | 1 | }; | |||||||||
| 613 | |||||||||||
| 614 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::OnEnter { | |||||||||
| 615 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 616 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 617 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 618 | |||||||||||
| 619 | 1 | has Events => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::Event', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 620 | } | ||||||||||
| 621 | subtype 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State', | ||||||||||
| 622 | as 'Cfn::Value', | ||||||||||
| 623 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 624 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 625 | |||||||||||
| 626 | coerce 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State', | ||||||||||
| 627 | from 'HashRef', | ||||||||||
| 628 | via { | ||||||||||
| 629 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 630 | 0 | return $f | |||||||||
| 631 | } else { | ||||||||||
| 632 | 0 | die 'Only accepts functions'; | |||||||||
| 633 | } | ||||||||||
| 634 | }, | ||||||||||
| 635 | from 'ArrayRef', | ||||||||||
| 636 | via { | ||||||||||
| 637 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 638 | map { | ||||||||||
| 639 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 640 | } @$_ | ||||||||||
| 641 | ]); | ||||||||||
| 642 | 1 | }; | |||||||||
| 643 | |||||||||||
| 644 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State', | |||||||||
| 645 | as 'Cfn::Value'; | ||||||||||
| 646 | |||||||||||
| 647 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State', | ||||||||||
| 648 | from 'HashRef', | ||||||||||
| 649 | via { | ||||||||||
| 650 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 651 | 0 | return $f | |||||||||
| 652 | } else { | ||||||||||
| 653 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::State->new( %$_ ); | |||||||||
| 654 | } | ||||||||||
| 655 | 1 | }; | |||||||||
| 656 | |||||||||||
| 657 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::State { | |||||||||
| 658 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 659 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 660 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 661 | |||||||||||
| 662 | 1 | has OnEnter => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnEnter', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 663 | 1 | has OnExit => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnExit', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 664 | 1 | has OnInput => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::OnInput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 665 | 1 | has StateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 666 | } | ||||||||||
| 667 | |||||||||||
| 668 | 1 | subtype 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DetectorModelDefinition', | |||||||||
| 669 | as 'Cfn::Value'; | ||||||||||
| 670 | |||||||||||
| 671 | coerce 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DetectorModelDefinition', | ||||||||||
| 672 | from 'HashRef', | ||||||||||
| 673 | via { | ||||||||||
| 674 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 675 | 0 | return $f | |||||||||
| 676 | } else { | ||||||||||
| 677 | 0 | return Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DetectorModelDefinition->new( %$_ ); | |||||||||
| 678 | } | ||||||||||
| 679 | 1 | }; | |||||||||
| 680 | |||||||||||
| 681 | 1 | package Cfn::Resource::Properties::Object::AWS::IoTEvents::DetectorModel::DetectorModelDefinition { | |||||||||
| 682 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 683 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 684 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 685 | |||||||||||
| 686 | 1 | has InitialStateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 687 | 1 | has States => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoTEvents::DetectorModel::State', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 688 | } | ||||||||||
| 689 | |||||||||||
| 690 | 1 | package Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel { | |||||||||
| 691 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 692 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 693 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 694 | |||||||||||
| 695 | 1 | has DetectorModelDefinition => (isa => 'Cfn::Resource::Properties::AWS::IoTEvents::DetectorModel::DetectorModelDefinition', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 696 | 1 | has DetectorModelDescription => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 697 | 1 | has DetectorModelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 698 | 1 | has EvaluationMethod => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 699 | 1 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 700 | 1 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 701 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 702 | } | ||||||||||
| 703 | |||||||||||
| 704 | 1 | 1; | |||||||||
| 705 | ### main pod documentation begin ### | ||||||||||
| 706 | |||||||||||
| 707 | =encoding UTF-8 | ||||||||||
| 708 | |||||||||||
| 709 | =head1 NAME | ||||||||||
| 710 | |||||||||||
| 711 | Cfn::Resource::AWS::IoTEvents::DetectorModel - Cfn resource for AWS::IoTEvents::DetectorModel | ||||||||||
| 712 | |||||||||||
| 713 | =head1 DESCRIPTION | ||||||||||
| 714 | |||||||||||
| 715 | This module implements a Perl module that represents the CloudFormation object AWS::IoTEvents::DetectorModel. | ||||||||||
| 716 | |||||||||||
| 717 | See L<Cfn> for more information on how to use it. | ||||||||||
| 718 | |||||||||||
| 719 | =head1 AUTHOR | ||||||||||
| 720 | |||||||||||
| 721 | Jose Luis Martinez | ||||||||||
| 722 | CAPSiDE | ||||||||||
| 723 | jlmartinez@capside.com | ||||||||||
| 724 | |||||||||||
| 725 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 726 | |||||||||||
| 727 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 728 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 729 | license can be found in the LICENSE file included with this module. | ||||||||||
| 730 | |||||||||||
| 731 | =cut | ||||||||||