| 1 | # AWS::Events::Rule generated from spec 20.1.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 | ▶ | [ 'af-south-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-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||||||||
|
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::Object::AWS::Events::Rule::AwsVpcConfiguration->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 2 | }; | |||||||||
| 35 | |||||||||||
| 36 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::AwsVpcConfiguration { | |||||||||
| 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::Object::AWS::Events::Rule::RunCommandTarget->new( %$_ ); | |||||||||
| 78 | } | ||||||||||
| 79 | 2 | }; | |||||||||
| 80 | |||||||||||
| 81 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::RunCommandTarget { | |||||||||
| 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::Object::AWS::Events::Rule::NetworkConfiguration->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::NetworkConfiguration { | |||||||||
| 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::Object::AWS::Events::Rule::BatchRetryStrategy->new( %$_ ); | |||||||||
| 121 | } | ||||||||||
| 122 | 2 | }; | |||||||||
| 123 | |||||||||||
| 124 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchRetryStrategy { | |||||||||
| 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::Object::AWS::Events::Rule::BatchArrayProperties->new( %$_ ); | |||||||||
| 142 | } | ||||||||||
| 143 | 2 | }; | |||||||||
| 144 | |||||||||||
| 145 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchArrayProperties { | |||||||||
| 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::Object::AWS::Events::Rule::SqsParameters->new( %$_ ); | |||||||||
| 163 | } | ||||||||||
| 164 | 2 | }; | |||||||||
| 165 | |||||||||||
| 166 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::SqsParameters { | |||||||||
| 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::Object::AWS::Events::Rule::RunCommandParameters->new( %$_ ); | |||||||||
| 184 | } | ||||||||||
| 185 | 2 | }; | |||||||||
| 186 | |||||||||||
| 187 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::RunCommandParameters { | |||||||||
| 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::RetryPolicy', | |||||||||
| 196 | as 'Cfn::Value'; | ||||||||||
| 197 | |||||||||||
| 198 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RetryPolicy', | ||||||||||
| 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::Object::AWS::Events::Rule::RetryPolicy->new( %$_ ); | |||||||||
| 205 | } | ||||||||||
| 206 | 2 | }; | |||||||||
| 207 | |||||||||||
| 208 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::RetryPolicy { | |||||||||
| 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 MaximumEventAgeInSeconds => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 214 | 2 | has MaximumRetryAttempts => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 215 | } | ||||||||||
| 216 | |||||||||||
| 217 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::RedshiftDataParameters', | |||||||||
| 218 | as 'Cfn::Value'; | ||||||||||
| 219 | |||||||||||
| 220 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::RedshiftDataParameters', | ||||||||||
| 221 | from 'HashRef', | ||||||||||
| 222 | via { | ||||||||||
| 223 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 224 | 0 | return $f | |||||||||
| 225 | } else { | ||||||||||
| 226 | 0 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::RedshiftDataParameters->new( %$_ ); | |||||||||
| 227 | } | ||||||||||
| 228 | 2 | }; | |||||||||
| 229 | |||||||||||
| 230 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::RedshiftDataParameters { | |||||||||
| 231 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 232 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 233 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 234 | |||||||||||
| 235 | 2 | has Database => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 236 | 2 | has DbUser => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 237 | 2 | has SecretManagerArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 238 | 2 | has Sql => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 239 | 2 | has StatementName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 240 | 2 | has WithEvent => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 241 | } | ||||||||||
| 242 | |||||||||||
| 243 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', | |||||||||
| 244 | as 'Cfn::Value'; | ||||||||||
| 245 | |||||||||||
| 246 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', | ||||||||||
| 247 | from 'HashRef', | ||||||||||
| 248 | via { | ||||||||||
| 249 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 250 | 0 | return $f | |||||||||
| 251 | } else { | ||||||||||
| 252 | 0 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::KinesisParameters->new( %$_ ); | |||||||||
| 253 | } | ||||||||||
| 254 | 2 | }; | |||||||||
| 255 | |||||||||||
| 256 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::KinesisParameters { | |||||||||
| 257 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 258 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 259 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 260 | |||||||||||
| 261 | 2 | has PartitionKeyPath => (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::InputTransformer', | |||||||||
| 265 | as 'Cfn::Value'; | ||||||||||
| 266 | |||||||||||
| 267 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', | ||||||||||
| 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::Object::AWS::Events::Rule::InputTransformer->new( %$_ ); | |||||||||
| 274 | } | ||||||||||
| 275 | 2 | }; | |||||||||
| 276 | |||||||||||
| 277 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::InputTransformer { | |||||||||
| 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 InputPathsMap => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 283 | 2 | has InputTemplate => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 284 | } | ||||||||||
| 285 | |||||||||||
| 286 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::HttpParameters', | |||||||||
| 287 | as 'Cfn::Value'; | ||||||||||
| 288 | |||||||||||
| 289 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::HttpParameters', | ||||||||||
| 290 | from 'HashRef', | ||||||||||
| 291 | via { | ||||||||||
| 292 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 293 | 0 | return $f | |||||||||
| 294 | } else { | ||||||||||
| 295 | 0 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::HttpParameters->new( %$_ ); | |||||||||
| 296 | } | ||||||||||
| 297 | 2 | }; | |||||||||
| 298 | |||||||||||
| 299 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::HttpParameters { | |||||||||
| 300 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 301 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 302 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 303 | |||||||||||
| 304 | 2 | has HeaderParameters => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 305 | 2 | has PathParameterValues => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 306 | 2 | has QueryStringParameters => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 307 | } | ||||||||||
| 308 | |||||||||||
| 309 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', | |||||||||
| 310 | as 'Cfn::Value'; | ||||||||||
| 311 | |||||||||||
| 312 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', | ||||||||||
| 313 | from 'HashRef', | ||||||||||
| 314 | via { | ||||||||||
| 315 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 316 | 0 | return $f | |||||||||
| 317 | } else { | ||||||||||
| 318 | 0 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::EcsParameters->new( %$_ ); | |||||||||
| 319 | } | ||||||||||
| 320 | 2 | }; | |||||||||
| 321 | |||||||||||
| 322 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::EcsParameters { | |||||||||
| 323 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 324 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 325 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 326 | |||||||||||
| 327 | 2 | has Group => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 328 | 2 | has LaunchType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 329 | 2 | has NetworkConfiguration => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::NetworkConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 330 | 2 | has PlatformVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 331 | 2 | has TaskCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 332 | 2 | has TaskDefinitionArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 333 | } | ||||||||||
| 334 | |||||||||||
| 335 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::DeadLetterConfig', | |||||||||
| 336 | as 'Cfn::Value'; | ||||||||||
| 337 | |||||||||||
| 338 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::DeadLetterConfig', | ||||||||||
| 339 | from 'HashRef', | ||||||||||
| 340 | via { | ||||||||||
| 341 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 342 | 0 | return $f | |||||||||
| 343 | } else { | ||||||||||
| 344 | 0 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::DeadLetterConfig->new( %$_ ); | |||||||||
| 345 | } | ||||||||||
| 346 | 2 | }; | |||||||||
| 347 | |||||||||||
| 348 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::DeadLetterConfig { | |||||||||
| 349 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 350 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 351 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 352 | |||||||||||
| 353 | 2 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 354 | } | ||||||||||
| 355 | |||||||||||
| 356 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', | |||||||||
| 357 | as 'Cfn::Value'; | ||||||||||
| 358 | |||||||||||
| 359 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', | ||||||||||
| 360 | from 'HashRef', | ||||||||||
| 361 | via { | ||||||||||
| 362 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 363 | 0 | return $f | |||||||||
| 364 | } else { | ||||||||||
| 365 | 0 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchParameters->new( %$_ ); | |||||||||
| 366 | } | ||||||||||
| 367 | 2 | }; | |||||||||
| 368 | |||||||||||
| 369 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::BatchParameters { | |||||||||
| 370 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 371 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 372 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 373 | |||||||||||
| 374 | 2 | has ArrayProperties => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchArrayProperties', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 375 | 2 | has JobDefinition => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 376 | 2 | has JobName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 377 | 2 | has RetryStrategy => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchRetryStrategy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 378 | } | ||||||||||
| 379 | subtype 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', | ||||||||||
| 380 | as 'Cfn::Value', | ||||||||||
| 381 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 382 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 383 | |||||||||||
| 384 | coerce 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', | ||||||||||
| 385 | from 'HashRef', | ||||||||||
| 386 | via { | ||||||||||
| 387 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 388 | 0 | return $f | |||||||||
| 389 | } else { | ||||||||||
| 390 | 0 | die 'Only accepts functions'; | |||||||||
| 391 | } | ||||||||||
| 392 | }, | ||||||||||
| 393 | from 'ArrayRef', | ||||||||||
| 394 | via { | ||||||||||
| 395 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 396 | map { | ||||||||||
| 397 | 2 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::Events::Rule::Target')->coerce($_) | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 398 | } @$_ | ||||||||||
| 399 | ]); | ||||||||||
| 400 | 2 | }; | |||||||||
| 401 | |||||||||||
| 402 | 2 | subtype 'Cfn::Resource::Properties::AWS::Events::Rule::Target', | |||||||||
| 403 | as 'Cfn::Value'; | ||||||||||
| 404 | |||||||||||
| 405 | coerce 'Cfn::Resource::Properties::AWS::Events::Rule::Target', | ||||||||||
| 406 | from 'HashRef', | ||||||||||
| 407 | via { | ||||||||||
| 408 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 409 | 0 | return $f | |||||||||
| 410 | } else { | ||||||||||
| 411 | 2 | return Cfn::Resource::Properties::Object::AWS::Events::Rule::Target->new( %$_ ); | |||||||||
| 412 | } | ||||||||||
| 413 | 2 | }; | |||||||||
| 414 | |||||||||||
| 415 | 2 | package Cfn::Resource::Properties::Object::AWS::Events::Rule::Target { | |||||||||
| 416 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 417 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 418 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 419 | |||||||||||
| 420 | 2 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 421 | 2 | has BatchParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::BatchParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 422 | 2 | has DeadLetterConfig => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::DeadLetterConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 423 | 2 | has EcsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::EcsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 424 | 2 | has HttpParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::HttpParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 425 | 2 | has Id => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 426 | 2 | has Input => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 427 | 2 | has InputPath => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 428 | 2 | has InputTransformer => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::InputTransformer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 429 | 2 | has KinesisParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::KinesisParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 430 | 2 | has RedshiftDataParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RedshiftDataParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 431 | 2 | has RetryPolicy => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RetryPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 432 | 2 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 433 | 2 | has RunCommandParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::RunCommandParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 434 | 2 | has SqsParameters => (isa => 'Cfn::Resource::Properties::AWS::Events::Rule::SqsParameters', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 435 | } | ||||||||||
| 436 | |||||||||||
| 437 | 2 | package Cfn::Resource::Properties::AWS::Events::Rule { | |||||||||
| 438 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 439 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 440 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 441 | |||||||||||
| 442 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 443 | 2 | has EventBusName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 444 | 2 | has EventPattern => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 445 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 446 | 2 | has RoleArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 447 | 2 | has ScheduleExpression => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 448 | 2 | has State => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 449 | 2 | has Targets => (isa => 'ArrayOfCfn::Resource::Properties::AWS::Events::Rule::Target', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 450 | } | ||||||||||
| 451 | |||||||||||
| 452 | 2 | 1; | |||||||||
| 453 | ### main pod documentation begin ### | ||||||||||
| 454 | |||||||||||
| 455 | =encoding UTF-8 | ||||||||||
| 456 | |||||||||||
| 457 | =head1 NAME | ||||||||||
| 458 | |||||||||||
| 459 | Cfn::Resource::AWS::Events::Rule - Cfn resource for AWS::Events::Rule | ||||||||||
| 460 | |||||||||||
| 461 | =head1 DESCRIPTION | ||||||||||
| 462 | |||||||||||
| 463 | This module implements a Perl module that represents the CloudFormation object AWS::Events::Rule. | ||||||||||
| 464 | |||||||||||
| 465 | See L<Cfn> for more information on how to use it. | ||||||||||
| 466 | |||||||||||
| 467 | =head1 AUTHOR | ||||||||||
| 468 | |||||||||||
| 469 | Jose Luis Martinez | ||||||||||
| 470 | CAPSiDE | ||||||||||
| 471 | jlmartinez@capside.com | ||||||||||
| 472 | |||||||||||
| 473 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 474 | |||||||||||
| 475 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 476 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 477 | license can be found in the LICENSE file included with this module. | ||||||||||
| 478 | |||||||||||
| 479 | =cut | ||||||||||