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