| 1 | # AWS::Events::Rule generated from spec 7.4.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::Events::Rule->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::Events::Rule { | |||||||||
| 9 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | extends 'Cfn::Resource'; | |||||||||
| 11 | 2 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule', 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 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration', | ||||||||||
| 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::Events::Rule::AwsVpcConfigurationValue->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfigurationValue { | |||||||||
| 37 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 38 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 39 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 40 | |||||||||||
| 41 | 2 | has AssignPublicIp => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 42 | 2 | has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 43 | 2 | has Subnets => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 44 | } | ||||||||||
| 45 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', | ||||||||||
| 46 | as 'Cfn::Value', | ||||||||||
| 47 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 48 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 49 | |||||||||||
| 50 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', | ||||||||||
| 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 | die 'Only accepts functions'; | |||||||||
| 57 | } | ||||||||||
| 58 | }, | ||||||||||
| 59 | from 'ArrayRef', | ||||||||||
| 60 | via { | ||||||||||
| 61 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 62 | map { | ||||||||||
| 63 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 64 | } @$_ | ||||||||||
| 65 | ]); | ||||||||||
| 66 | 2 | }; | |||||||||
| 67 | |||||||||||
| 68 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', | |||||||||
| 69 | as 'Cfn::Value'; | ||||||||||
| 70 | |||||||||||
| 71 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', | ||||||||||
| 72 | from 'HashRef', | ||||||||||
| 73 | via { | ||||||||||
| 74 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 75 | 0 | return $f | |||||||||
| 76 | } else { | ||||||||||
| 77 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTargetValue->new( %$_ ); | |||||||||
| 78 | } | ||||||||||
| 79 | 2 | }; | |||||||||
| 80 | |||||||||||
| 81 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::RunCommandTargetValue { | |||||||||
| 82 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 84 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 85 | |||||||||||
| 86 | 2 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 2 | has Values => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration', | ||||||||||
| 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::Events::Rule::NetworkConfigurationValue->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfigurationValue { | |||||||||
| 104 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 2 | has AwsVpcConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::AwsVpcConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | } | ||||||||||
| 110 | |||||||||||
| 111 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy', | |||||||||
| 112 | as 'Cfn::Value'; | ||||||||||
| 113 | |||||||||||
| 114 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy', | ||||||||||
| 115 | from 'HashRef', | ||||||||||
| 116 | via { | ||||||||||
| 117 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 118 | 0 | return $f | |||||||||
| 119 | } else { | ||||||||||
| 120 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategyValue->new( %$_ ); | |||||||||
| 121 | } | ||||||||||
| 122 | 2 | }; | |||||||||
| 123 | |||||||||||
| 124 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategyValue { | |||||||||
| 125 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 126 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 127 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 128 | |||||||||||
| 129 | 2 | has Attempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 130 | } | ||||||||||
| 131 | |||||||||||
| 132 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties', | |||||||||
| 133 | as 'Cfn::Value'; | ||||||||||
| 134 | |||||||||||
| 135 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties', | ||||||||||
| 136 | from 'HashRef', | ||||||||||
| 137 | via { | ||||||||||
| 138 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 139 | 0 | return $f | |||||||||
| 140 | } else { | ||||||||||
| 141 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayPropertiesValue->new( %$_ ); | |||||||||
| 142 | } | ||||||||||
| 143 | 2 | }; | |||||||||
| 144 | |||||||||||
| 145 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayPropertiesValue { | |||||||||
| 146 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 148 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 149 | |||||||||||
| 150 | 2 | has Size => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 151 | } | ||||||||||
| 152 | |||||||||||
| 153 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters', | |||||||||
| 154 | as 'Cfn::Value'; | ||||||||||
| 155 | |||||||||||
| 156 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters', | ||||||||||
| 157 | from 'HashRef', | ||||||||||
| 158 | via { | ||||||||||
| 159 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 160 | 0 | return $f | |||||||||
| 161 | } else { | ||||||||||
| 162 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::SqsParametersValue->new( %$_ ); | |||||||||
| 163 | } | ||||||||||
| 164 | 2 | }; | |||||||||
| 165 | |||||||||||
| 166 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::SqsParametersValue { | |||||||||
| 167 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 168 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 169 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 170 | |||||||||||
| 171 | 2 | has MessageGroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 172 | } | ||||||||||
| 173 | |||||||||||
| 174 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters', | |||||||||
| 175 | as 'Cfn::Value'; | ||||||||||
| 176 | |||||||||||
| 177 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters', | ||||||||||
| 178 | from 'HashRef', | ||||||||||
| 179 | via { | ||||||||||
| 180 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 181 | 0 | return $f | |||||||||
| 182 | } else { | ||||||||||
| 183 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParametersValue->new( %$_ ); | |||||||||
| 184 | } | ||||||||||
| 185 | 2 | }; | |||||||||
| 186 | |||||||||||
| 187 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParametersValue { | |||||||||
| 188 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 189 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 190 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 191 | |||||||||||
| 192 | 2 | has RunCommandTargets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::RunCommandTarget', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 193 | } | ||||||||||
| 194 | |||||||||||
| 195 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', | |||||||||
| 196 | as 'Cfn::Value'; | ||||||||||
| 197 | |||||||||||
| 198 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', | ||||||||||
| 199 | from 'HashRef', | ||||||||||
| 200 | via { | ||||||||||
| 201 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 202 | 0 | return $f | |||||||||
| 203 | } else { | ||||||||||
| 204 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::KinesisParametersValue->new( %$_ ); | |||||||||
| 205 | } | ||||||||||
| 206 | 2 | }; | |||||||||
| 207 | |||||||||||
| 208 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::KinesisParametersValue { | |||||||||
| 209 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 210 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 211 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 212 | |||||||||||
| 213 | 2 | has PartitionKeyPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 214 | } | ||||||||||
| 215 | |||||||||||
| 216 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', | |||||||||
| 217 | as 'Cfn::Value'; | ||||||||||
| 218 | |||||||||||
| 219 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', | ||||||||||
| 220 | from 'HashRef', | ||||||||||
| 221 | via { | ||||||||||
| 222 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 223 | 0 | return $f | |||||||||
| 224 | } else { | ||||||||||
| 225 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::InputTransformerValue->new( %$_ ); | |||||||||
| 226 | } | ||||||||||
| 227 | 2 | }; | |||||||||
| 228 | |||||||||||
| 229 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::InputTransformerValue { | |||||||||
| 230 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 231 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 232 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 233 | |||||||||||
| 234 | 2 | has InputPathsMap => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 235 | 2 | has InputTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 236 | } | ||||||||||
| 237 | |||||||||||
| 238 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', | |||||||||
| 239 | as 'Cfn::Value'; | ||||||||||
| 240 | |||||||||||
| 241 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', | ||||||||||
| 242 | from 'HashRef', | ||||||||||
| 243 | via { | ||||||||||
| 244 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 245 | 0 | return $f | |||||||||
| 246 | } else { | ||||||||||
| 247 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::EcsParametersValue->new( %$_ ); | |||||||||
| 248 | } | ||||||||||
| 249 | 2 | }; | |||||||||
| 250 | |||||||||||
| 251 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::EcsParametersValue { | |||||||||
| 252 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 253 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 254 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 255 | |||||||||||
| 256 | 2 | has Group => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 257 | 2 | has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 258 | 2 | has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 259 | 2 | has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 260 | 2 | has TaskCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 261 | 2 | has TaskDefinitionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 262 | } | ||||||||||
| 263 | |||||||||||
| 264 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', | |||||||||
| 265 | as 'Cfn::Value'; | ||||||||||
| 266 | |||||||||||
| 267 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', | ||||||||||
| 268 | from 'HashRef', | ||||||||||
| 269 | via { | ||||||||||
| 270 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 271 | 0 | return $f | |||||||||
| 272 | } else { | ||||||||||
| 273 | 0 | return Cfn::Resource::Properties::AWS::Events::Rule::BatchParametersValue->new( %$_ ); | |||||||||
| 274 | } | ||||||||||
| 275 | 2 | }; | |||||||||
| 276 | |||||||||||
| 277 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::BatchParametersValue { | |||||||||
| 278 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 279 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 280 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 281 | |||||||||||
| 282 | 2 | has ArrayProperties => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 283 | 2 | has JobDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 284 | 2 | has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 285 | 2 | has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 286 | } | ||||||||||
| 287 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', | ||||||||||
| 288 | as 'Cfn::Value', | ||||||||||
| 289 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 290 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 291 | |||||||||||
| 292 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', | ||||||||||
| 293 | from 'HashRef', | ||||||||||
| 294 | via { | ||||||||||
| 295 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 296 | 0 | return $f | |||||||||
| 297 | } else { | ||||||||||
| 298 | 0 | die 'Only accepts functions'; | |||||||||
| 299 | } | ||||||||||
| 300 | }, | ||||||||||
| 301 | from 'ArrayRef', | ||||||||||
| 302 | via { | ||||||||||
| 303 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 304 | map { | ||||||||||
| 305 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::Target')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 306 | } @$_ | ||||||||||
| 307 | ]); | ||||||||||
| 308 | 2 | }; | |||||||||
| 309 | |||||||||||
| 310 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::Target', | |||||||||
| 311 | as 'Cfn::Value'; | ||||||||||
| 312 | |||||||||||
| 313 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::Target', | ||||||||||
| 314 | from 'HashRef', | ||||||||||
| 315 | via { | ||||||||||
| 316 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 317 | 0 | return $f | |||||||||
| 318 | } else { | ||||||||||
| 319 | 2 | return Cfn::Resource::Properties::AWS::Events::Rule::TargetValue->new( %$_ ); | |||||||||
| 320 | } | ||||||||||
| 321 | 2 | }; | |||||||||
| 322 | |||||||||||
| 323 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule::TargetValue { | |||||||||
| 324 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 325 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 326 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 327 | |||||||||||
| 328 | 2 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 329 | 2 | has BatchParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 330 | 2 | has EcsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 331 | 2 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 332 | 2 | has Input => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 333 | 2 | has InputPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 334 | 2 | has InputTransformer => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 335 | 2 | has KinesisParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 336 | 2 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 337 | 2 | has RunCommandParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 338 | 2 | has SqsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 339 | } | ||||||||||
| 340 | |||||||||||
| 341 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule { | |||||||||
| 342 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 343 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 344 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 345 | |||||||||||
| 346 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 347 | 2 | has EventBusName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 348 | 2 | has EventPattern => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 349 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 350 | 2 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 351 | 2 | has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 352 | 2 | has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 353 | 2 | has Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 354 | } | ||||||||||
| 355 | |||||||||||
| 356 | 2 | 1; | |||||||||