| 1 | # AWS::IoT::TopicRule generated from spec 5.3.0 | ||||||||||
| 2 | 3 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::IoT::TopicRule->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 3 | package Cfn::Resource::AWS::IoT::TopicRule { | |||||||||
| 9 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 3 | extends 'Cfn::Resource'; | |||||||||
| 11 | 3 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'Arn' ] | ||||||||
|
Subroutine
AttributeList: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | } | ||||||||||
| 16 | sub supported_regions { | ||||||||||
| 17 | 1 | ▶ | [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-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' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInput', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInput', | ||||||||||
| 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::AWS::IoT::TopicRule::PutItemInputValue->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 3 | }; | |||||||||
| 35 | |||||||||||
| 36 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInputValue { | |||||||||
| 37 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 3 | has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsAction', | |||||||||
| 45 | as 'Cfn::Value'; | ||||||||||
| 46 | |||||||||||
| 47 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsAction', | ||||||||||
| 48 | from 'HashRef', | ||||||||||
| 49 | via { | ||||||||||
| 50 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 51 | 0 | return $f | |||||||||
| 52 | } else { | ||||||||||
| 53 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsActionValue->new( %$_ ); | |||||||||
| 54 | } | ||||||||||
| 55 | 3 | }; | |||||||||
| 56 | |||||||||||
| 57 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsActionValue { | |||||||||
| 58 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 59 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 61 | |||||||||||
| 62 | 3 | has ExecutionNamePrefix => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 63 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 3 | has StateMachineName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsAction', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsAction', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | via { | ||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsActionValue->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 3 | }; | |||||||||
| 79 | |||||||||||
| 80 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsActionValue { | |||||||||
| 81 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 84 | |||||||||||
| 85 | 3 | has QueueUrl => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 3 | has UseBase64 => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsAction', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsAction', | ||||||||||
| 94 | from 'HashRef', | ||||||||||
| 95 | via { | ||||||||||
| 96 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsActionValue->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 3 | }; | |||||||||
| 102 | |||||||||||
| 103 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsActionValue { | |||||||||
| 104 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 3 | has MessageFormat => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 3 | has TargetArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | } | ||||||||||
| 112 | |||||||||||
| 113 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::S3Action', | |||||||||
| 114 | as 'Cfn::Value'; | ||||||||||
| 115 | |||||||||||
| 116 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::S3Action', | ||||||||||
| 117 | from 'HashRef', | ||||||||||
| 118 | via { | ||||||||||
| 119 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 120 | 0 | return $f | |||||||||
| 121 | } else { | ||||||||||
| 122 | 2 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::S3ActionValue->new( %$_ ); | |||||||||
| 123 | } | ||||||||||
| 124 | 3 | }; | |||||||||
| 125 | |||||||||||
| 126 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::S3ActionValue { | |||||||||
| 127 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 128 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 129 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 130 | |||||||||||
| 131 | 3 | has BucketName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 132 | 3 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | } | ||||||||||
| 135 | |||||||||||
| 136 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishAction', | |||||||||
| 137 | as 'Cfn::Value'; | ||||||||||
| 138 | |||||||||||
| 139 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishAction', | ||||||||||
| 140 | from 'HashRef', | ||||||||||
| 141 | via { | ||||||||||
| 142 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 143 | 0 | return $f | |||||||||
| 144 | } else { | ||||||||||
| 145 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishActionValue->new( %$_ ); | |||||||||
| 146 | } | ||||||||||
| 147 | 3 | }; | |||||||||
| 148 | |||||||||||
| 149 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishActionValue { | |||||||||
| 150 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 151 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 152 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 153 | |||||||||||
| 154 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 155 | 3 | has Topic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 156 | } | ||||||||||
| 157 | |||||||||||
| 158 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaAction', | |||||||||
| 159 | as 'Cfn::Value'; | ||||||||||
| 160 | |||||||||||
| 161 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaAction', | ||||||||||
| 162 | from 'HashRef', | ||||||||||
| 163 | via { | ||||||||||
| 164 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 165 | 0 | return $f | |||||||||
| 166 | } else { | ||||||||||
| 167 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaActionValue->new( %$_ ); | |||||||||
| 168 | } | ||||||||||
| 169 | 3 | }; | |||||||||
| 170 | |||||||||||
| 171 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaActionValue { | |||||||||
| 172 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 173 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 174 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 175 | |||||||||||
| 176 | 3 | has FunctionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 177 | } | ||||||||||
| 178 | |||||||||||
| 179 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisAction', | |||||||||
| 180 | as 'Cfn::Value'; | ||||||||||
| 181 | |||||||||||
| 182 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisAction', | ||||||||||
| 183 | from 'HashRef', | ||||||||||
| 184 | via { | ||||||||||
| 185 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 186 | 0 | return $f | |||||||||
| 187 | } else { | ||||||||||
| 188 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisActionValue->new( %$_ ); | |||||||||
| 189 | } | ||||||||||
| 190 | 3 | }; | |||||||||
| 191 | |||||||||||
| 192 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisActionValue { | |||||||||
| 193 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 194 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 195 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 196 | |||||||||||
| 197 | 3 | has PartitionKey => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 198 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 199 | 3 | has StreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 200 | } | ||||||||||
| 201 | |||||||||||
| 202 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsAction', | |||||||||
| 203 | as 'Cfn::Value'; | ||||||||||
| 204 | |||||||||||
| 205 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsAction', | ||||||||||
| 206 | from 'HashRef', | ||||||||||
| 207 | via { | ||||||||||
| 208 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 209 | 0 | return $f | |||||||||
| 210 | } else { | ||||||||||
| 211 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsActionValue->new( %$_ ); | |||||||||
| 212 | } | ||||||||||
| 213 | 3 | }; | |||||||||
| 214 | |||||||||||
| 215 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsActionValue { | |||||||||
| 216 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 217 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 218 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 219 | |||||||||||
| 220 | 3 | has ChannelName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 221 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 222 | } | ||||||||||
| 223 | |||||||||||
| 224 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseAction', | |||||||||
| 225 | as 'Cfn::Value'; | ||||||||||
| 226 | |||||||||||
| 227 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseAction', | ||||||||||
| 228 | from 'HashRef', | ||||||||||
| 229 | via { | ||||||||||
| 230 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 231 | 0 | return $f | |||||||||
| 232 | } else { | ||||||||||
| 233 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseActionValue->new( %$_ ); | |||||||||
| 234 | } | ||||||||||
| 235 | 3 | }; | |||||||||
| 236 | |||||||||||
| 237 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseActionValue { | |||||||||
| 238 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 239 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 240 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 241 | |||||||||||
| 242 | 3 | has DeliveryStreamName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 243 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 244 | 3 | has Separator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 245 | } | ||||||||||
| 246 | |||||||||||
| 247 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchAction', | |||||||||
| 248 | as 'Cfn::Value'; | ||||||||||
| 249 | |||||||||||
| 250 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchAction', | ||||||||||
| 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::AWS::IoT::TopicRule::ElasticsearchActionValue->new( %$_ ); | |||||||||
| 257 | } | ||||||||||
| 258 | 3 | }; | |||||||||
| 259 | |||||||||||
| 260 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchActionValue { | |||||||||
| 261 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 262 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 263 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 264 | |||||||||||
| 265 | 3 | has Endpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 266 | 3 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 267 | 3 | has Index => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 268 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 269 | 3 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 270 | } | ||||||||||
| 271 | |||||||||||
| 272 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2Action', | |||||||||
| 273 | as 'Cfn::Value'; | ||||||||||
| 274 | |||||||||||
| 275 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2Action', | ||||||||||
| 276 | from 'HashRef', | ||||||||||
| 277 | via { | ||||||||||
| 278 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 279 | 0 | return $f | |||||||||
| 280 | } else { | ||||||||||
| 281 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2ActionValue->new( %$_ ); | |||||||||
| 282 | } | ||||||||||
| 283 | 3 | }; | |||||||||
| 284 | |||||||||||
| 285 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2ActionValue { | |||||||||
| 286 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 287 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 288 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 289 | |||||||||||
| 290 | 3 | has PutItem => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::PutItemInput', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 291 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 292 | } | ||||||||||
| 293 | |||||||||||
| 294 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBAction', | |||||||||
| 295 | as 'Cfn::Value'; | ||||||||||
| 296 | |||||||||||
| 297 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBAction', | ||||||||||
| 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::AWS::IoT::TopicRule::DynamoDBActionValue->new( %$_ ); | |||||||||
| 304 | } | ||||||||||
| 305 | 3 | }; | |||||||||
| 306 | |||||||||||
| 307 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBActionValue { | |||||||||
| 308 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 309 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 310 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 311 | |||||||||||
| 312 | 3 | has HashKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 313 | 3 | has HashKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 314 | 3 | has HashKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 315 | 3 | has PayloadField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 316 | 3 | has RangeKeyField => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 317 | 3 | has RangeKeyType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 318 | 3 | has RangeKeyValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 319 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 320 | 3 | has TableName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 321 | } | ||||||||||
| 322 | |||||||||||
| 323 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricAction', | |||||||||
| 324 | as 'Cfn::Value'; | ||||||||||
| 325 | |||||||||||
| 326 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricAction', | ||||||||||
| 327 | from 'HashRef', | ||||||||||
| 328 | via { | ||||||||||
| 329 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 330 | 0 | return $f | |||||||||
| 331 | } else { | ||||||||||
| 332 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricActionValue->new( %$_ ); | |||||||||
| 333 | } | ||||||||||
| 334 | 3 | }; | |||||||||
| 335 | |||||||||||
| 336 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricActionValue { | |||||||||
| 337 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 338 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 339 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 340 | |||||||||||
| 341 | 3 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 342 | 3 | has MetricNamespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 343 | 3 | has MetricTimestamp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 344 | 3 | has MetricUnit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 345 | 3 | has MetricValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 346 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 347 | } | ||||||||||
| 348 | |||||||||||
| 349 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmAction', | |||||||||
| 350 | as 'Cfn::Value'; | ||||||||||
| 351 | |||||||||||
| 352 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmAction', | ||||||||||
| 353 | from 'HashRef', | ||||||||||
| 354 | via { | ||||||||||
| 355 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 356 | 0 | return $f | |||||||||
| 357 | } else { | ||||||||||
| 358 | 0 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmActionValue->new( %$_ ); | |||||||||
| 359 | } | ||||||||||
| 360 | 3 | }; | |||||||||
| 361 | |||||||||||
| 362 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmActionValue { | |||||||||
| 363 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 364 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 365 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 366 | |||||||||||
| 367 | 3 | has AlarmName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 368 | 3 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 369 | 3 | has StateReason => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 370 | 3 | has StateValue => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 371 | } | ||||||||||
| 372 | subtype 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::Action', | ||||||||||
| 373 | as 'Cfn::Value', | ||||||||||
| 374 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 375 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 376 | |||||||||||
| 377 | coerce 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::Action', | ||||||||||
| 378 | from 'HashRef', | ||||||||||
| 379 | via { | ||||||||||
| 380 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 381 | 0 | return $f | |||||||||
| 382 | } else { | ||||||||||
| 383 | 0 | die 'Only accepts functions'; | |||||||||
| 384 | } | ||||||||||
| 385 | }, | ||||||||||
| 386 | from 'ArrayRef', | ||||||||||
| 387 | via { | ||||||||||
| 388 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 389 | map { | ||||||||||
| 390 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::IoT::TopicRule::Action')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 391 | } @$_ | ||||||||||
| 392 | ]); | ||||||||||
| 393 | 3 | }; | |||||||||
| 394 | |||||||||||
| 395 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::Action', | |||||||||
| 396 | as 'Cfn::Value'; | ||||||||||
| 397 | |||||||||||
| 398 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::Action', | ||||||||||
| 399 | from 'HashRef', | ||||||||||
| 400 | via { | ||||||||||
| 401 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 402 | 0 | return $f | |||||||||
| 403 | } else { | ||||||||||
| 404 | 2 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::ActionValue->new( %$_ ); | |||||||||
| 405 | } | ||||||||||
| 406 | 3 | }; | |||||||||
| 407 | |||||||||||
| 408 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::ActionValue { | |||||||||
| 409 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 410 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 411 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 412 | |||||||||||
| 413 | 3 | has CloudwatchAlarm => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchAlarmAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 414 | 3 | has CloudwatchMetric => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::CloudwatchMetricAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 415 | 3 | has DynamoDB => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 416 | 3 | has DynamoDBv2 => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::DynamoDBv2Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 417 | 3 | has Elasticsearch => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::ElasticsearchAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 418 | 3 | has Firehose => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::FirehoseAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 419 | 3 | has IotAnalytics => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::IotAnalyticsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 420 | 3 | has Kinesis => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::KinesisAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 421 | 3 | has Lambda => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::LambdaAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 422 | 3 | has Republish => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::RepublishAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 423 | 3 | has S3 => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::S3Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 424 | 3 | has Sns => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SnsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 425 | 3 | has Sqs => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::SqsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 426 | 3 | has StepFunctions => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::StepFunctionsAction', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 427 | } | ||||||||||
| 428 | |||||||||||
| 429 | 3 | subtype 'Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayload', | |||||||||
| 430 | as 'Cfn::Value'; | ||||||||||
| 431 | |||||||||||
| 432 | coerce 'Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayload', | ||||||||||
| 433 | from 'HashRef', | ||||||||||
| 434 | via { | ||||||||||
| 435 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 436 | 0 | return $f | |||||||||
| 437 | } else { | ||||||||||
| 438 | 2 | return Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayloadValue->new( %$_ ); | |||||||||
| 439 | } | ||||||||||
| 440 | 3 | }; | |||||||||
| 441 | |||||||||||
| 442 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayloadValue { | |||||||||
| 443 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 444 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 445 | 3 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 446 | |||||||||||
| 447 | 3 | has Actions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::IoT::TopicRule::Action', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 448 | 3 | has AwsIotSqlVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 449 | 3 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 450 | 3 | has ErrorAction => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::Action', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 451 | 3 | has RuleDisabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 452 | 3 | has Sql => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 453 | } | ||||||||||
| 454 | |||||||||||
| 455 | 3 | package Cfn::Resource::Properties::AWS::IoT::TopicRule { | |||||||||
| 456 | 3 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 457 | 3 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 458 | 3 | extends 'Cfn::Resource::Properties'; | |||||||||
| 459 | |||||||||||
| 460 | 3 | has RuleName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 461 | 3 | has TopicRulePayload => (isa => 'Cfn::Resource::Properties::AWS::IoT::TopicRule::TopicRulePayload', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 462 | } | ||||||||||
| 463 | |||||||||||
| 464 | 3 | 1; | |||||||||