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