« Cfn/Resource/AWS/Pinpoint/Segment.pm
↑ Summary
Cfn/Resource/AWS/MediaPackage/PackagingConfiguration.pm »
| 1 | # AWS::EC2::EC2Fleet generated from spec 18.4.0 | ||||||||||
| 2 | 1 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 0 | ▶ | via { Cfn::Resource::Properties::AWS::EC2::EC2Fleet->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 7 | |||||||||||
| 8 | 1 | package Cfn::Resource::AWS::EC2::EC2Fleet { | |||||||||
| 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::EC2Fleet', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ ] | ||||||||
|
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::EC2Fleet::Placement', | |||||||||
| 24 | as 'Cfn::Value'; | ||||||||||
| 25 | |||||||||||
| 26 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::Placement', | ||||||||||
| 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::EC2Fleet::Placement->new( %$_ ); | |||||||||
| 33 | } | ||||||||||
| 34 | 1 | }; | |||||||||
| 35 | |||||||||||
| 36 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::Placement { | |||||||||
| 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 Affinity => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 42 | 1 | has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 43 | 1 | has GroupName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 44 | 1 | has HostId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 45 | 1 | has HostResourceGroupArn => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 46 | 1 | has PartitionNumber => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 47 | 1 | has SpreadDomain => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 48 | 1 | has Tenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateSpecificationRequest', | |||||||||
| 52 | as 'Cfn::Value'; | ||||||||||
| 53 | |||||||||||
| 54 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateSpecificationRequest', | ||||||||||
| 55 | from 'HashRef', | ||||||||||
| 56 | via { | ||||||||||
| 57 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 58 | 0 | return $f | |||||||||
| 59 | } else { | ||||||||||
| 60 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::FleetLaunchTemplateSpecificationRequest->new( %$_ ); | |||||||||
| 61 | } | ||||||||||
| 62 | 1 | }; | |||||||||
| 63 | |||||||||||
| 64 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::FleetLaunchTemplateSpecificationRequest { | |||||||||
| 65 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 66 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 67 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 68 | |||||||||||
| 69 | 1 | has LaunchTemplateId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 70 | 1 | has LaunchTemplateName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 71 | 1 | has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 72 | } | ||||||||||
| 73 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest', | ||||||||||
| 74 | as 'Cfn::Value', | ||||||||||
| 75 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 76 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 77 | |||||||||||
| 78 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest', | ||||||||||
| 79 | from 'HashRef', | ||||||||||
| 80 | via { | ||||||||||
| 81 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 82 | 0 | return $f | |||||||||
| 83 | } else { | ||||||||||
| 84 | 0 | die 'Only accepts functions'; | |||||||||
| 85 | } | ||||||||||
| 86 | }, | ||||||||||
| 87 | from 'ArrayRef', | ||||||||||
| 88 | via { | ||||||||||
| 89 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 90 | map { | ||||||||||
| 91 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 92 | } @$_ | ||||||||||
| 93 | ]); | ||||||||||
| 94 | 1 | }; | |||||||||
| 95 | |||||||||||
| 96 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest', | |||||||||
| 97 | as 'Cfn::Value'; | ||||||||||
| 98 | |||||||||||
| 99 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest', | ||||||||||
| 100 | from 'HashRef', | ||||||||||
| 101 | via { | ||||||||||
| 102 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 103 | 0 | return $f | |||||||||
| 104 | } else { | ||||||||||
| 105 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest->new( %$_ ); | |||||||||
| 106 | } | ||||||||||
| 107 | 1 | }; | |||||||||
| 108 | |||||||||||
| 109 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest { | |||||||||
| 110 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 111 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 112 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 113 | |||||||||||
| 114 | 1 | has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 115 | 1 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 116 | 1 | has MaxPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 117 | 1 | has Placement => (isa => 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::Placement', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 118 | 1 | has Priority => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 119 | 1 | has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 120 | 1 | has WeightedCapacity => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 121 | } | ||||||||||
| 122 | |||||||||||
| 123 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::CapacityReservationOptionsRequest', | |||||||||
| 124 | as 'Cfn::Value'; | ||||||||||
| 125 | |||||||||||
| 126 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::CapacityReservationOptionsRequest', | ||||||||||
| 127 | from 'HashRef', | ||||||||||
| 128 | via { | ||||||||||
| 129 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 130 | 0 | return $f | |||||||||
| 131 | } else { | ||||||||||
| 132 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::CapacityReservationOptionsRequest->new( %$_ ); | |||||||||
| 133 | } | ||||||||||
| 134 | 1 | }; | |||||||||
| 135 | |||||||||||
| 136 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::CapacityReservationOptionsRequest { | |||||||||
| 137 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 138 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 139 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 140 | |||||||||||
| 141 | 1 | has UsageStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 142 | } | ||||||||||
| 143 | |||||||||||
| 144 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::TargetCapacitySpecificationRequest', | |||||||||
| 145 | as 'Cfn::Value'; | ||||||||||
| 146 | |||||||||||
| 147 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::TargetCapacitySpecificationRequest', | ||||||||||
| 148 | from 'HashRef', | ||||||||||
| 149 | via { | ||||||||||
| 150 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 151 | 0 | return $f | |||||||||
| 152 | } else { | ||||||||||
| 153 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::TargetCapacitySpecificationRequest->new( %$_ ); | |||||||||
| 154 | } | ||||||||||
| 155 | 1 | }; | |||||||||
| 156 | |||||||||||
| 157 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::TargetCapacitySpecificationRequest { | |||||||||
| 158 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 159 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 160 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 161 | |||||||||||
| 162 | 1 | has DefaultTargetCapacityType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 163 | 1 | has OnDemandTargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 164 | 1 | has SpotTargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 165 | 1 | has TotalTargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 166 | } | ||||||||||
| 167 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::TagSpecification', | ||||||||||
| 168 | as 'Cfn::Value', | ||||||||||
| 169 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 170 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 171 | |||||||||||
| 172 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::TagSpecification', | ||||||||||
| 173 | from 'HashRef', | ||||||||||
| 174 | via { | ||||||||||
| 175 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 176 | 0 | return $f | |||||||||
| 177 | } else { | ||||||||||
| 178 | 0 | die 'Only accepts functions'; | |||||||||
| 179 | } | ||||||||||
| 180 | }, | ||||||||||
| 181 | from 'ArrayRef', | ||||||||||
| 182 | via { | ||||||||||
| 183 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 184 | map { | ||||||||||
| 185 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::EC2Fleet::TagSpecification')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 186 | } @$_ | ||||||||||
| 187 | ]); | ||||||||||
| 188 | 1 | }; | |||||||||
| 189 | |||||||||||
| 190 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::TagSpecification', | |||||||||
| 191 | as 'Cfn::Value'; | ||||||||||
| 192 | |||||||||||
| 193 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::TagSpecification', | ||||||||||
| 194 | from 'HashRef', | ||||||||||
| 195 | via { | ||||||||||
| 196 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 197 | 0 | return $f | |||||||||
| 198 | } else { | ||||||||||
| 199 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::TagSpecification->new( %$_ ); | |||||||||
| 200 | } | ||||||||||
| 201 | 1 | }; | |||||||||
| 202 | |||||||||||
| 203 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::TagSpecification { | |||||||||
| 204 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 205 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 206 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 207 | |||||||||||
| 208 | 1 | has ResourceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 209 | 1 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 210 | } | ||||||||||
| 211 | |||||||||||
| 212 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::SpotOptionsRequest', | |||||||||
| 213 | as 'Cfn::Value'; | ||||||||||
| 214 | |||||||||||
| 215 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::SpotOptionsRequest', | ||||||||||
| 216 | from 'HashRef', | ||||||||||
| 217 | via { | ||||||||||
| 218 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 219 | 0 | return $f | |||||||||
| 220 | } else { | ||||||||||
| 221 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::SpotOptionsRequest->new( %$_ ); | |||||||||
| 222 | } | ||||||||||
| 223 | 1 | }; | |||||||||
| 224 | |||||||||||
| 225 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::SpotOptionsRequest { | |||||||||
| 226 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 227 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 228 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 229 | |||||||||||
| 230 | 1 | has AllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 231 | 1 | has InstanceInterruptionBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 232 | 1 | has InstancePoolsToUseCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 233 | 1 | has MaxTotalPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 234 | 1 | has MinTargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 235 | 1 | has SingleAvailabilityZone => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 236 | 1 | has SingleInstanceType => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 237 | } | ||||||||||
| 238 | |||||||||||
| 239 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::OnDemandOptionsRequest', | |||||||||
| 240 | as 'Cfn::Value'; | ||||||||||
| 241 | |||||||||||
| 242 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::OnDemandOptionsRequest', | ||||||||||
| 243 | from 'HashRef', | ||||||||||
| 244 | via { | ||||||||||
| 245 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 246 | 0 | return $f | |||||||||
| 247 | } else { | ||||||||||
| 248 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::OnDemandOptionsRequest->new( %$_ ); | |||||||||
| 249 | } | ||||||||||
| 250 | 1 | }; | |||||||||
| 251 | |||||||||||
| 252 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::OnDemandOptionsRequest { | |||||||||
| 253 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 254 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 255 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 256 | |||||||||||
| 257 | 1 | has AllocationStrategy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 258 | 1 | has CapacityReservationOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::CapacityReservationOptionsRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 259 | 1 | has MaxTotalPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 260 | 1 | has MinTargetCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 261 | 1 | has SingleAvailabilityZone => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 262 | 1 | has SingleInstanceType => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 263 | } | ||||||||||
| 264 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest', | ||||||||||
| 265 | as 'Cfn::Value', | ||||||||||
| 266 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 267 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 268 | |||||||||||
| 269 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest', | ||||||||||
| 270 | from 'HashRef', | ||||||||||
| 271 | via { | ||||||||||
| 272 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 273 | 0 | return $f | |||||||||
| 274 | } else { | ||||||||||
| 275 | 0 | die 'Only accepts functions'; | |||||||||
| 276 | } | ||||||||||
| 277 | }, | ||||||||||
| 278 | from 'ArrayRef', | ||||||||||
| 279 | via { | ||||||||||
| 280 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 281 | map { | ||||||||||
| 282 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 283 | } @$_ | ||||||||||
| 284 | ]); | ||||||||||
| 285 | 1 | }; | |||||||||
| 286 | |||||||||||
| 287 | 1 | subtype 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest', | |||||||||
| 288 | as 'Cfn::Value'; | ||||||||||
| 289 | |||||||||||
| 290 | coerce 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest', | ||||||||||
| 291 | from 'HashRef', | ||||||||||
| 292 | via { | ||||||||||
| 293 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 294 | 0 | return $f | |||||||||
| 295 | } else { | ||||||||||
| 296 | 0 | return Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest->new( %$_ ); | |||||||||
| 297 | } | ||||||||||
| 298 | 1 | }; | |||||||||
| 299 | |||||||||||
| 300 | 1 | package Cfn::Resource::Properties::Object::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest { | |||||||||
| 301 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 302 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 303 | 1 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 304 | |||||||||||
| 305 | 1 | has LaunchTemplateSpecification => (isa => 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateSpecificationRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 306 | 1 | has Overrides => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateOverridesRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 307 | } | ||||||||||
| 308 | |||||||||||
| 309 | 1 | package Cfn::Resource::Properties::AWS::EC2::EC2Fleet { | |||||||||
| 310 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 311 | 1 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 312 | 1 | extends 'Cfn::Resource::Properties'; | |||||||||
| 313 | |||||||||||
| 314 | 1 | has ExcessCapacityTerminationPolicy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 315 | 1 | has LaunchTemplateConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::FleetLaunchTemplateConfigRequest', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 316 | 1 | has OnDemandOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::OnDemandOptionsRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 317 | 1 | has ReplaceUnhealthyInstances => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 318 | 1 | has SpotOptions => (isa => 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::SpotOptionsRequest', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 319 | 1 | has TagSpecifications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EC2::EC2Fleet::TagSpecification', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 320 | 1 | has TargetCapacitySpecification => (isa => 'Cfn::Resource::Properties::AWS::EC2::EC2Fleet::TargetCapacitySpecificationRequest', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 321 | 1 | has TerminateInstancesWithExpiration => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 322 | 1 | has Type => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 323 | 1 | has ValidFrom => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 324 | 1 | has ValidUntil => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 325 | } | ||||||||||
| 326 | |||||||||||
| 327 | 1 | 1; | |||||||||
| 328 | ### main pod documentation begin ### | ||||||||||
| 329 | |||||||||||
| 330 | =encoding UTF-8 | ||||||||||
| 331 | |||||||||||
| 332 | =head1 NAME | ||||||||||
| 333 | |||||||||||
| 334 | Cfn::Resource::AWS::EC2::EC2Fleet - Cfn resource for AWS::EC2::EC2Fleet | ||||||||||
| 335 | |||||||||||
| 336 | =head1 DESCRIPTION | ||||||||||
| 337 | |||||||||||
| 338 | This module implements a Perl module that represents the CloudFormation object AWS::EC2::EC2Fleet. | ||||||||||
| 339 | |||||||||||
| 340 | See L<Cfn> for more information on how to use it. | ||||||||||
| 341 | |||||||||||
| 342 | =head1 AUTHOR | ||||||||||
| 343 | |||||||||||
| 344 | Jose Luis Martinez | ||||||||||
| 345 | CAPSiDE | ||||||||||
| 346 | jlmartinez@capside.com | ||||||||||
| 347 | |||||||||||
| 348 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 349 | |||||||||||
| 350 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 351 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 352 | license can be found in the LICENSE file included with this module. | ||||||||||
| 353 | |||||||||||
| 354 | =cut | ||||||||||