| 1 | # AWS::EC2::SpotFleet generated from spec 22.0.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::EC2::SpotFleet->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::EC2::SpotFleet { | |||||||||
| 9 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | extends 'Cfn::Resource'; | |||||||||
| 11 | 1 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | 0 | ▶ | sub AttributeList { | ||||||||
|
Subroutine
AttributeList: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 14 | 0 | [ ] | |||||||||
| 15 | } | ||||||||||
| 16 | 0 | ▶ | sub supported_regions { | ||||||||
|
Subroutine
supported_regions: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 17 | 0 | [ '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' ] | |||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup')->coerce($_) | |||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 1 | }; | |||||||||
| 44 | |||||||||||
| 45 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroup->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 1 | }; | |||||||||
| 57 | |||||||||||
| 58 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroup { | |||||||||
| 59 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 1 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | } | ||||||||||
| 65 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification', | ||||||||||
| 66 | as 'Cfn::Value', | ||||||||||
| 67 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 68 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 69 | |||||||||||
| 70 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | die 'Only accepts functions'; | |||||||||
| 77 | } | ||||||||||
| 78 | }, | ||||||||||
| 79 | from 'ArrayRef', | ||||||||||
| 80 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 81 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 82 | map { | ||||||||||
| 83 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification')->coerce($_) | |||||||||
| 84 | } @$_ | ||||||||||
| 85 | ]); | ||||||||||
| 86 | 1 | }; | |||||||||
| 87 | |||||||||||
| 88 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification', | |||||||||
| 89 | as 'Cfn::Value'; | ||||||||||
| 90 | |||||||||||
| 91 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification', | ||||||||||
| 92 | from 'HashRef', | ||||||||||
| 93 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 94 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 95 | 0 | return $f | |||||||||
| 96 | } else { | ||||||||||
| 97 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::PrivateIpAddressSpecification->new( %$_ ); | |||||||||
| 98 | } | ||||||||||
| 99 | 1 | }; | |||||||||
| 100 | |||||||||||
| 101 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::PrivateIpAddressSpecification { | |||||||||
| 102 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 103 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 104 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 105 | |||||||||||
| 106 | 1 | has Primary => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 107 | 1 | has PrivateIpAddress => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 108 | } | ||||||||||
| 109 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address', | ||||||||||
| 110 | as 'Cfn::Value', | ||||||||||
| 111 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 112 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 113 | |||||||||||
| 114 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address', | ||||||||||
| 115 | from 'HashRef', | ||||||||||
| 116 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 117 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 118 | 0 | return $f | |||||||||
| 119 | } else { | ||||||||||
| 120 | 0 | die 'Only accepts functions'; | |||||||||
| 121 | } | ||||||||||
| 122 | }, | ||||||||||
| 123 | from 'ArrayRef', | ||||||||||
| 124 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 125 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 126 | map { | ||||||||||
| 127 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address')->coerce($_) | |||||||||
| 128 | } @$_ | ||||||||||
| 129 | ]); | ||||||||||
| 130 | 1 | }; | |||||||||
| 131 | |||||||||||
| 132 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address', | |||||||||
| 133 | as 'Cfn::Value'; | ||||||||||
| 134 | |||||||||||
| 135 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address', | ||||||||||
| 136 | from 'HashRef', | ||||||||||
| 137 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 138 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 139 | 0 | return $f | |||||||||
| 140 | } else { | ||||||||||
| 141 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceIpv6Address->new( %$_ ); | |||||||||
| 142 | } | ||||||||||
| 143 | 1 | }; | |||||||||
| 144 | |||||||||||
| 145 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceIpv6Address { | |||||||||
| 146 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 147 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 148 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 149 | |||||||||||
| 150 | 1 | has Ipv6Address => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 151 | } | ||||||||||
| 152 | |||||||||||
| 153 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::EbsBlockDevice', | |||||||||
| 154 | as 'Cfn::Value'; | ||||||||||
| 155 | |||||||||||
| 156 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::EbsBlockDevice', | ||||||||||
| 157 | from 'HashRef', | ||||||||||
| 158 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 159 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 160 | 0 | return $f | |||||||||
| 161 | } else { | ||||||||||
| 162 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::EbsBlockDevice->new( %$_ ); | |||||||||
| 163 | } | ||||||||||
| 164 | 1 | }; | |||||||||
| 165 | |||||||||||
| 166 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::EbsBlockDevice { | |||||||||
| 167 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 168 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 169 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 170 | |||||||||||
| 171 | 1 | has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 172 | 1 | has Encrypted => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 173 | 1 | has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 174 | 1 | has SnapshotId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 175 | 1 | has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 176 | 1 | has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 177 | } | ||||||||||
| 178 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer', | ||||||||||
| 179 | as 'Cfn::Value', | ||||||||||
| 180 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 181 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 182 | |||||||||||
| 183 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer', | ||||||||||
| 184 | from 'HashRef', | ||||||||||
| 185 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 186 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 187 | 0 | return $f | |||||||||
| 188 | } else { | ||||||||||
| 189 | 0 | die 'Only accepts functions'; | |||||||||
| 190 | } | ||||||||||
| 191 | }, | ||||||||||
| 192 | from 'ArrayRef', | ||||||||||
| 193 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 194 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 195 | map { | ||||||||||
| 196 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer')->coerce($_) | |||||||||
| 197 | } @$_ | ||||||||||
| 198 | ]); | ||||||||||
| 199 | 1 | }; | |||||||||
| 200 | |||||||||||
| 201 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer', | |||||||||
| 202 | as 'Cfn::Value'; | ||||||||||
| 203 | |||||||||||
| 204 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer', | ||||||||||
| 205 | from 'HashRef', | ||||||||||
| 206 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 207 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 208 | 0 | return $f | |||||||||
| 209 | } else { | ||||||||||
| 210 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancer->new( %$_ ); | |||||||||
| 211 | } | ||||||||||
| 212 | 1 | }; | |||||||||
| 213 | |||||||||||
| 214 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancer { | |||||||||
| 215 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 216 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 217 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 218 | |||||||||||
| 219 | 1 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 220 | } | ||||||||||
| 221 | |||||||||||
| 222 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroupsConfig', | |||||||||
| 223 | as 'Cfn::Value'; | ||||||||||
| 224 | |||||||||||
| 225 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroupsConfig', | ||||||||||
| 226 | from 'HashRef', | ||||||||||
| 227 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 228 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 229 | 0 | return $f | |||||||||
| 230 | } else { | ||||||||||
| 231 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroupsConfig->new( %$_ ); | |||||||||
| 232 | } | ||||||||||
| 233 | 1 | }; | |||||||||
| 234 | |||||||||||
| 235 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::TargetGroupsConfig { | |||||||||
| 236 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 237 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 238 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 239 | |||||||||||
| 240 | 1 | has TargetGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroup', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 241 | } | ||||||||||
| 242 | |||||||||||
| 243 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotPlacement', | |||||||||
| 244 | as 'Cfn::Value'; | ||||||||||
| 245 | |||||||||||
| 246 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotPlacement', | ||||||||||
| 247 | from 'HashRef', | ||||||||||
| 248 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 249 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 250 | 0 | return $f | |||||||||
| 251 | } else { | ||||||||||
| 252 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotPlacement->new( %$_ ); | |||||||||
| 253 | } | ||||||||||
| 254 | 1 | }; | |||||||||
| 255 | |||||||||||
| 256 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotPlacement { | |||||||||
| 257 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 258 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 259 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 260 | |||||||||||
| 261 | 1 | has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 262 | 1 | has GroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 263 | 1 | has Tenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 264 | } | ||||||||||
| 265 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification', | ||||||||||
| 266 | as 'Cfn::Value', | ||||||||||
| 267 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 268 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 269 | |||||||||||
| 270 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification', | ||||||||||
| 271 | from 'HashRef', | ||||||||||
| 272 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 273 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 274 | 0 | return $f | |||||||||
| 275 | } else { | ||||||||||
| 276 | 0 | die 'Only accepts functions'; | |||||||||
| 277 | } | ||||||||||
| 278 | }, | ||||||||||
| 279 | from 'ArrayRef', | ||||||||||
| 280 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 281 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 282 | map { | ||||||||||
| 283 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification')->coerce($_) | |||||||||
| 284 | } @$_ | ||||||||||
| 285 | ]); | ||||||||||
| 286 | 1 | }; | |||||||||
| 287 | |||||||||||
| 288 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification', | |||||||||
| 289 | as 'Cfn::Value'; | ||||||||||
| 290 | |||||||||||
| 291 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification', | ||||||||||
| 292 | from 'HashRef', | ||||||||||
| 293 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 294 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 295 | 0 | return $f | |||||||||
| 296 | } else { | ||||||||||
| 297 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetTagSpecification->new( %$_ ); | |||||||||
| 298 | } | ||||||||||
| 299 | 1 | }; | |||||||||
| 300 | |||||||||||
| 301 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetTagSpecification { | |||||||||
| 302 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 303 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 304 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 305 | |||||||||||
| 306 | 1 | has ResourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 307 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 308 | } | ||||||||||
| 309 | |||||||||||
| 310 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetMonitoring', | |||||||||
| 311 | as 'Cfn::Value'; | ||||||||||
| 312 | |||||||||||
| 313 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetMonitoring', | ||||||||||
| 314 | from 'HashRef', | ||||||||||
| 315 | 2 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 316 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 317 | 0 | return $f | |||||||||
| 318 | } else { | ||||||||||
| 319 | 2 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetMonitoring->new( %$_ ); | |||||||||
| 320 | } | ||||||||||
| 321 | 1 | }; | |||||||||
| 322 | |||||||||||
| 323 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetMonitoring { | |||||||||
| 324 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 325 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 326 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 327 | |||||||||||
| 328 | 1 | has Enabled => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 329 | } | ||||||||||
| 330 | |||||||||||
| 331 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotCapacityRebalance', | |||||||||
| 332 | as 'Cfn::Value'; | ||||||||||
| 333 | |||||||||||
| 334 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotCapacityRebalance', | ||||||||||
| 335 | from 'HashRef', | ||||||||||
| 336 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 337 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 338 | 0 | return $f | |||||||||
| 339 | } else { | ||||||||||
| 340 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotCapacityRebalance->new( %$_ ); | |||||||||
| 341 | } | ||||||||||
| 342 | 1 | }; | |||||||||
| 343 | |||||||||||
| 344 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotCapacityRebalance { | |||||||||
| 345 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 346 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 347 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 348 | |||||||||||
| 349 | 1 | has ReplacementStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 350 | } | ||||||||||
| 351 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides', | ||||||||||
| 352 | as 'Cfn::Value', | ||||||||||
| 353 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 354 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 355 | |||||||||||
| 356 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides', | ||||||||||
| 357 | from 'HashRef', | ||||||||||
| 358 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 359 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 360 | 0 | return $f | |||||||||
| 361 | } else { | ||||||||||
| 362 | 0 | die 'Only accepts functions'; | |||||||||
| 363 | } | ||||||||||
| 364 | }, | ||||||||||
| 365 | from 'ArrayRef', | ||||||||||
| 366 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 367 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 368 | map { | ||||||||||
| 369 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides')->coerce($_) | |||||||||
| 370 | } @$_ | ||||||||||
| 371 | ]); | ||||||||||
| 372 | 1 | }; | |||||||||
| 373 | |||||||||||
| 374 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides', | |||||||||
| 375 | as 'Cfn::Value'; | ||||||||||
| 376 | |||||||||||
| 377 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides', | ||||||||||
| 378 | from 'HashRef', | ||||||||||
| 379 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 380 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 381 | 0 | return $f | |||||||||
| 382 | } else { | ||||||||||
| 383 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateOverrides->new( %$_ ); | |||||||||
| 384 | } | ||||||||||
| 385 | 1 | }; | |||||||||
| 386 | |||||||||||
| 387 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateOverrides { | |||||||||
| 388 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 389 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 390 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 391 | |||||||||||
| 392 | 1 | has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 393 | 1 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 394 | 1 | has Priority => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 395 | 1 | has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 396 | 1 | has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 397 | 1 | has WeightedCapacity => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 398 | } | ||||||||||
| 399 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification', | ||||||||||
| 400 | as 'Cfn::Value', | ||||||||||
| 401 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 402 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 403 | |||||||||||
| 404 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification', | ||||||||||
| 405 | from 'HashRef', | ||||||||||
| 406 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 407 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 408 | 0 | return $f | |||||||||
| 409 | } else { | ||||||||||
| 410 | 0 | die 'Only accepts functions'; | |||||||||
| 411 | } | ||||||||||
| 412 | }, | ||||||||||
| 413 | from 'ArrayRef', | ||||||||||
| 414 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 415 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 416 | map { | ||||||||||
| 417 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification')->coerce($_) | |||||||||
| 418 | } @$_ | ||||||||||
| 419 | ]); | ||||||||||
| 420 | 1 | }; | |||||||||
| 421 | |||||||||||
| 422 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification', | |||||||||
| 423 | as 'Cfn::Value'; | ||||||||||
| 424 | |||||||||||
| 425 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification', | ||||||||||
| 426 | from 'HashRef', | ||||||||||
| 427 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 428 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 429 | 0 | return $f | |||||||||
| 430 | } else { | ||||||||||
| 431 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification->new( %$_ ); | |||||||||
| 432 | } | ||||||||||
| 433 | 1 | }; | |||||||||
| 434 | |||||||||||
| 435 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification { | |||||||||
| 436 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 437 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 438 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 439 | |||||||||||
| 440 | 1 | has AssociatePublicIpAddress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 441 | 1 | has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 442 | 1 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 443 | 1 | has DeviceIndex => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 444 | 1 | has Groups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 445 | 1 | has Ipv6AddressCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 446 | 1 | has Ipv6Addresses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceIpv6Address', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 447 | 1 | has NetworkInterfaceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 448 | 1 | has PrivateIpAddresses => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::PrivateIpAddressSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 449 | 1 | has SecondaryPrivateIpAddressCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 450 | 1 | has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 451 | } | ||||||||||
| 452 | |||||||||||
| 453 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::IamInstanceProfileSpecification', | |||||||||
| 454 | as 'Cfn::Value'; | ||||||||||
| 455 | |||||||||||
| 456 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::IamInstanceProfileSpecification', | ||||||||||
| 457 | from 'HashRef', | ||||||||||
| 458 | 2 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 459 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 460 | 0 | return $f | |||||||||
| 461 | } else { | ||||||||||
| 462 | 2 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::IamInstanceProfileSpecification->new( %$_ ); | |||||||||
| 463 | } | ||||||||||
| 464 | 1 | }; | |||||||||
| 465 | |||||||||||
| 466 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::IamInstanceProfileSpecification { | |||||||||
| 467 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 468 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 469 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 470 | |||||||||||
| 471 | 1 | has Arn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 472 | } | ||||||||||
| 473 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier', | ||||||||||
| 474 | as 'Cfn::Value', | ||||||||||
| 475 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 476 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 477 | |||||||||||
| 478 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier', | ||||||||||
| 479 | from 'HashRef', | ||||||||||
| 480 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 481 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 482 | 0 | return $f | |||||||||
| 483 | } else { | ||||||||||
| 484 | 0 | die 'Only accepts functions'; | |||||||||
| 485 | } | ||||||||||
| 486 | }, | ||||||||||
| 487 | from 'ArrayRef', | ||||||||||
| 488 | 2 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 489 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 490 | map { | ||||||||||
| 491 | 2 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier')->coerce($_) | |||||||||
| 492 | } @$_ | ||||||||||
| 493 | ]); | ||||||||||
| 494 | 1 | }; | |||||||||
| 495 | |||||||||||
| 496 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier', | |||||||||
| 497 | as 'Cfn::Value'; | ||||||||||
| 498 | |||||||||||
| 499 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier', | ||||||||||
| 500 | from 'HashRef', | ||||||||||
| 501 | 2 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 502 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 503 | 0 | return $f | |||||||||
| 504 | } else { | ||||||||||
| 505 | 2 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::GroupIdentifier->new( %$_ ); | |||||||||
| 506 | } | ||||||||||
| 507 | 1 | }; | |||||||||
| 508 | |||||||||||
| 509 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::GroupIdentifier { | |||||||||
| 510 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 511 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 512 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 513 | |||||||||||
| 514 | 1 | has GroupId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 515 | } | ||||||||||
| 516 | |||||||||||
| 517 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification', | |||||||||
| 518 | as 'Cfn::Value'; | ||||||||||
| 519 | |||||||||||
| 520 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification', | ||||||||||
| 521 | from 'HashRef', | ||||||||||
| 522 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 523 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 524 | 0 | return $f | |||||||||
| 525 | } else { | ||||||||||
| 526 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification->new( %$_ ); | |||||||||
| 527 | } | ||||||||||
| 528 | 1 | }; | |||||||||
| 529 | |||||||||||
| 530 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification { | |||||||||
| 531 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 532 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 533 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 534 | |||||||||||
| 535 | 1 | has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 536 | 1 | has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 537 | 1 | has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 538 | } | ||||||||||
| 539 | |||||||||||
| 540 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig', | |||||||||
| 541 | as 'Cfn::Value'; | ||||||||||
| 542 | |||||||||||
| 543 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig', | ||||||||||
| 544 | from 'HashRef', | ||||||||||
| 545 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 546 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 547 | 0 | return $f | |||||||||
| 548 | } else { | ||||||||||
| 549 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig->new( %$_ ); | |||||||||
| 550 | } | ||||||||||
| 551 | 1 | }; | |||||||||
| 552 | |||||||||||
| 553 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig { | |||||||||
| 554 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 555 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 556 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 557 | |||||||||||
| 558 | 1 | has ClassicLoadBalancers => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 559 | } | ||||||||||
| 560 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping', | ||||||||||
| 561 | as 'Cfn::Value', | ||||||||||
| 562 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 563 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 564 | |||||||||||
| 565 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping', | ||||||||||
| 566 | from 'HashRef', | ||||||||||
| 567 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 568 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 569 | 0 | return $f | |||||||||
| 570 | } else { | ||||||||||
| 571 | 0 | die 'Only accepts functions'; | |||||||||
| 572 | } | ||||||||||
| 573 | }, | ||||||||||
| 574 | from 'ArrayRef', | ||||||||||
| 575 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 576 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 577 | map { | ||||||||||
| 578 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping')->coerce($_) | |||||||||
| 579 | } @$_ | ||||||||||
| 580 | ]); | ||||||||||
| 581 | 1 | }; | |||||||||
| 582 | |||||||||||
| 583 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping', | |||||||||
| 584 | as 'Cfn::Value'; | ||||||||||
| 585 | |||||||||||
| 586 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping', | ||||||||||
| 587 | from 'HashRef', | ||||||||||
| 588 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 589 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 590 | 0 | return $f | |||||||||
| 591 | } else { | ||||||||||
| 592 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::BlockDeviceMapping->new( %$_ ); | |||||||||
| 593 | } | ||||||||||
| 594 | 1 | }; | |||||||||
| 595 | |||||||||||
| 596 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::BlockDeviceMapping { | |||||||||
| 597 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 598 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 599 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 600 | |||||||||||
| 601 | 1 | has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 602 | 1 | has Ebs => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::EbsBlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 603 | 1 | has NoDevice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 604 | 1 | has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 605 | } | ||||||||||
| 606 | |||||||||||
| 607 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotMaintenanceStrategies', | |||||||||
| 608 | as 'Cfn::Value'; | ||||||||||
| 609 | |||||||||||
| 610 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotMaintenanceStrategies', | ||||||||||
| 611 | from 'HashRef', | ||||||||||
| 612 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 613 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 614 | 0 | return $f | |||||||||
| 615 | } else { | ||||||||||
| 616 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotMaintenanceStrategies->new( %$_ ); | |||||||||
| 617 | } | ||||||||||
| 618 | 1 | }; | |||||||||
| 619 | |||||||||||
| 620 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotMaintenanceStrategies { | |||||||||
| 621 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 622 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 623 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 624 | |||||||||||
| 625 | 1 | has CapacityRebalance => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotCapacityRebalance', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 626 | } | ||||||||||
| 627 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification', | ||||||||||
| 628 | as 'Cfn::Value', | ||||||||||
| 629 | 2 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
| |||||||||||
| 630 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 631 | |||||||||||
| 632 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification', | ||||||||||
| 633 | from 'HashRef', | ||||||||||
| 634 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 635 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 636 | 0 | return $f | |||||||||
| 637 | } else { | ||||||||||
| 638 | 0 | die 'Only accepts functions'; | |||||||||
| 639 | } | ||||||||||
| 640 | }, | ||||||||||
| 641 | from 'ArrayRef', | ||||||||||
| 642 | 2 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 643 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 644 | map { | ||||||||||
| 645 | 2 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification')->coerce($_) | |||||||||
| 646 | } @$_ | ||||||||||
| 647 | ]); | ||||||||||
| 648 | 1 | }; | |||||||||
| 649 | |||||||||||
| 650 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification', | |||||||||
| 651 | as 'Cfn::Value'; | ||||||||||
| 652 | |||||||||||
| 653 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification', | ||||||||||
| 654 | from 'HashRef', | ||||||||||
| 655 | 4 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 656 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 657 | 0 | return $f | |||||||||
| 658 | } else { | ||||||||||
| 659 | 4 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification->new( %$_ ); | |||||||||
| 660 | } | ||||||||||
| 661 | 1 | }; | |||||||||
| 662 | |||||||||||
| 663 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification { | |||||||||
| 664 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 665 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 666 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 667 | |||||||||||
| 668 | 1 | has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 669 | 1 | has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 670 | 1 | has IamInstanceProfile => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::IamInstanceProfileSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 671 | 1 | has ImageId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 672 | 1 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 673 | 1 | has KernelId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 674 | 1 | has KeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 675 | 1 | has Monitoring => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetMonitoring', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 676 | 1 | has NetworkInterfaces => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::InstanceNetworkInterfaceSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 677 | 1 | has Placement => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotPlacement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 678 | 1 | has RamdiskId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 679 | 1 | has SecurityGroups => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::GroupIdentifier', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 680 | 1 | has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 681 | 1 | has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 682 | 1 | has TagSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetTagSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 683 | 1 | has UserData => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 684 | 1 | has WeightedCapacity => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 685 | } | ||||||||||
| 686 | |||||||||||
| 687 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LoadBalancersConfig', | |||||||||
| 688 | as 'Cfn::Value'; | ||||||||||
| 689 | |||||||||||
| 690 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LoadBalancersConfig', | ||||||||||
| 691 | from 'HashRef', | ||||||||||
| 692 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 693 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 694 | 0 | return $f | |||||||||
| 695 | } else { | ||||||||||
| 696 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LoadBalancersConfig->new( %$_ ); | |||||||||
| 697 | } | ||||||||||
| 698 | 1 | }; | |||||||||
| 699 | |||||||||||
| 700 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LoadBalancersConfig { | |||||||||
| 701 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 702 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 703 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 704 | |||||||||||
| 705 | 1 | has ClassicLoadBalancersConfig => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::ClassicLoadBalancersConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 706 | 1 | has TargetGroupsConfig => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::TargetGroupsConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 707 | } | ||||||||||
| 708 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig', | ||||||||||
| 709 | as 'Cfn::Value', | ||||||||||
| 710 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 711 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 712 | |||||||||||
| 713 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig', | ||||||||||
| 714 | from 'HashRef', | ||||||||||
| 715 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 716 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 717 | 0 | return $f | |||||||||
| 718 | } else { | ||||||||||
| 719 | 0 | die 'Only accepts functions'; | |||||||||
| 720 | } | ||||||||||
| 721 | }, | ||||||||||
| 722 | from 'ArrayRef', | ||||||||||
| 723 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 724 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 725 | map { | ||||||||||
| 726 | 0 | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig')->coerce($_) | |||||||||
| 727 | } @$_ | ||||||||||
| 728 | ]); | ||||||||||
| 729 | 1 | }; | |||||||||
| 730 | |||||||||||
| 731 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig', | |||||||||
| 732 | as 'Cfn::Value'; | ||||||||||
| 733 | |||||||||||
| 734 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig', | ||||||||||
| 735 | from 'HashRef', | ||||||||||
| 736 | 0 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||||||||||
| 737 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 738 | 0 | return $f | |||||||||
| 739 | } else { | ||||||||||
| 740 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateConfig->new( %$_ ); | |||||||||
| 741 | } | ||||||||||
| 742 | 1 | }; | |||||||||
| 743 | |||||||||||
| 744 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::LaunchTemplateConfig { | |||||||||
| 745 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 746 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 747 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 748 | |||||||||||
| 749 | 1 | has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::FleetLaunchTemplateSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 750 | 1 | has Overrides => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateOverrides', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 751 | } | ||||||||||
| 752 | |||||||||||
| 753 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetRequestConfigData', | |||||||||
| 754 | as 'Cfn::Value'; | ||||||||||
| 755 | |||||||||||
| 756 | coerce 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetRequestConfigData', | ||||||||||
| 757 | from 'HashRef', | ||||||||||
| 758 | 2 | ▶ | via { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
| |||||||||||
| 759 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 760 | 0 | return $f | |||||||||
| 761 | } else { | ||||||||||
| 762 | 2 | return Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetRequestConfigData->new( %$_ ); | |||||||||
| 763 | } | ||||||||||
| 764 | 1 | }; | |||||||||
| 765 | |||||||||||
| 766 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::SpotFleet::SpotFleetRequestConfigData { | |||||||||
| 767 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 768 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 769 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 770 | |||||||||||
| 771 | 1 | has AllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 772 | 1 | has ExcessCapacityTerminationPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 773 | 1 | has IamFleetRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 774 | 1 | has InstanceInterruptionBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 775 | 1 | has InstancePoolsToUseCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 776 | 1 | has LaunchSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetLaunchSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 777 | 1 | has LaunchTemplateConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::SpotFleet::LaunchTemplateConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 778 | 1 | has LoadBalancersConfig => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::LoadBalancersConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 779 | 1 | has OnDemandAllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 780 | 1 | has OnDemandMaxTotalPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 781 | 1 | has OnDemandTargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 782 | 1 | has ReplaceUnhealthyInstances => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 783 | 1 | has SpotMaintenanceStrategies => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotMaintenanceStrategies', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 784 | 1 | has SpotMaxTotalPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 785 | 1 | has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 786 | 1 | has TargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 787 | 1 | has TerminateInstancesWithExpiration => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 788 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 789 | 1 | has ValidFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 790 | 1 | has ValidUntil => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 791 | } | ||||||||||
| 792 | |||||||||||
| 793 | 1 | package Cfn::Resource::Properties::AWS::EC2::SpotFleet { | |||||||||
| 794 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 795 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 796 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 797 | |||||||||||
| 798 | 1 | has SpotFleetRequestConfigData => (isa => 'Cfn::Resource::Properties::AWS::EC2::SpotFleet::SpotFleetRequestConfigData', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional'); | |||||||||
| 799 | } | ||||||||||
| 800 | |||||||||||
| 801 | 1 | 1; | |||||||||
| 802 | ### main pod documentation begin ### | ||||||||||
| 803 | |||||||||||
| 804 | =encoding UTF-8 | ||||||||||
| 805 | |||||||||||
| 806 | =head1 NAME | ||||||||||
| 807 | |||||||||||
| 808 | Cfn::Resource::AWS::EC2::SpotFleet - Cfn resource for AWS::EC2::SpotFleet | ||||||||||
| 809 | |||||||||||
| 810 | =head1 DESCRIPTION | ||||||||||
| 811 | |||||||||||
| 812 | This module implements a Perl module that represents the CloudFormation object AWS::EC2::SpotFleet. | ||||||||||
| 813 | |||||||||||
| 814 | See L<Cfn> for more information on how to use it. | ||||||||||
| 815 | |||||||||||
| 816 | =head1 AUTHOR | ||||||||||
| 817 | |||||||||||
| 818 | Jose Luis Martinez | ||||||||||
| 819 | CAPSiDE | ||||||||||
| 820 | jlmartinez@capside.com | ||||||||||
| 821 | |||||||||||
| 822 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 823 | |||||||||||
| 824 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 825 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 826 | license can be found in the LICENSE file included with this module. | ||||||||||
| 827 | |||||||||||
| 828 | =cut | ||||||||||