| 1 | # AWS::EMR::Cluster generated from spec 5.3.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::EMR::Cluster->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::EMR::Cluster { | |||||||||
| 9 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 2 | extends 'Cfn::Resource'; | |||||||||
| 11 | 2 | has Properties => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster', is => 'rw', coerce => 1); | |||||||||
| 12 | |||||||||||
| 13 | sub AttributeList { | ||||||||||
| 14 | 1 | ▶ | [ 'MasterPublicDNS' ] | ||||||||
|
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 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::MetricDimension', | ||||||||||
| 23 | as 'Cfn::Value', | ||||||||||
| 24 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 25 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 26 | |||||||||||
| 27 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::MetricDimension', | ||||||||||
| 28 | from 'HashRef', | ||||||||||
| 29 | via { | ||||||||||
| 30 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 31 | 0 | return $f | |||||||||
| 32 | } else { | ||||||||||
| 33 | 0 | die 'Only accepts functions'; | |||||||||
| 34 | } | ||||||||||
| 35 | }, | ||||||||||
| 36 | from 'ArrayRef', | ||||||||||
| 37 | via { | ||||||||||
| 38 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 39 | map { | ||||||||||
| 40 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::MetricDimension')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 2 | }; | |||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::MetricDimension', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::MetricDimension', | ||||||||||
| 49 | from 'HashRef', | ||||||||||
| 50 | via { | ||||||||||
| 51 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 52 | 0 | return $f | |||||||||
| 53 | } else { | ||||||||||
| 54 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::MetricDimensionValue->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::MetricDimensionValue { | |||||||||
| 59 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 60 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 61 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 62 | |||||||||||
| 63 | 2 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 64 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::VolumeSpecification', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::VolumeSpecification', | ||||||||||
| 71 | from 'HashRef', | ||||||||||
| 72 | via { | ||||||||||
| 73 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 74 | 0 | return $f | |||||||||
| 75 | } else { | ||||||||||
| 76 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::VolumeSpecificationValue->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 2 | }; | |||||||||
| 79 | |||||||||||
| 80 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::VolumeSpecificationValue { | |||||||||
| 81 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 82 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 83 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 84 | |||||||||||
| 85 | 2 | has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 2 | has SizeInGB => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 2 | has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::SimpleScalingPolicyConfiguration', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::SimpleScalingPolicyConfiguration', | ||||||||||
| 94 | from 'HashRef', | ||||||||||
| 95 | via { | ||||||||||
| 96 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 97 | 0 | return $f | |||||||||
| 98 | } else { | ||||||||||
| 99 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::SimpleScalingPolicyConfigurationValue->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::SimpleScalingPolicyConfigurationValue { | |||||||||
| 104 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 105 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 106 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 107 | |||||||||||
| 108 | 2 | has AdjustmentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 2 | has CoolDown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 2 | has ScalingAdjustment => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | } | ||||||||||
| 112 | |||||||||||
| 113 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::CloudWatchAlarmDefinition', | |||||||||
| 114 | as 'Cfn::Value'; | ||||||||||
| 115 | |||||||||||
| 116 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::CloudWatchAlarmDefinition', | ||||||||||
| 117 | from 'HashRef', | ||||||||||
| 118 | via { | ||||||||||
| 119 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 120 | 0 | return $f | |||||||||
| 121 | } else { | ||||||||||
| 122 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::CloudWatchAlarmDefinitionValue->new( %$_ ); | |||||||||
| 123 | } | ||||||||||
| 124 | 2 | }; | |||||||||
| 125 | |||||||||||
| 126 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::CloudWatchAlarmDefinitionValue { | |||||||||
| 127 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 128 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 129 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 130 | |||||||||||
| 131 | 2 | has ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 132 | 2 | has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 133 | 2 | has EvaluationPeriods => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 134 | 2 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 135 | 2 | has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 136 | 2 | has Period => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 137 | 2 | has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 138 | 2 | has Threshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 139 | 2 | has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 140 | } | ||||||||||
| 141 | |||||||||||
| 142 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingTrigger', | |||||||||
| 143 | as 'Cfn::Value'; | ||||||||||
| 144 | |||||||||||
| 145 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingTrigger', | ||||||||||
| 146 | from 'HashRef', | ||||||||||
| 147 | via { | ||||||||||
| 148 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 149 | 0 | return $f | |||||||||
| 150 | } else { | ||||||||||
| 151 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingTriggerValue->new( %$_ ); | |||||||||
| 152 | } | ||||||||||
| 153 | 2 | }; | |||||||||
| 154 | |||||||||||
| 155 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingTriggerValue { | |||||||||
| 156 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 157 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 158 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 159 | |||||||||||
| 160 | 2 | has CloudWatchAlarmDefinition => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::CloudWatchAlarmDefinition', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 161 | } | ||||||||||
| 162 | |||||||||||
| 163 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingAction', | |||||||||
| 164 | as 'Cfn::Value'; | ||||||||||
| 165 | |||||||||||
| 166 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingAction', | ||||||||||
| 167 | from 'HashRef', | ||||||||||
| 168 | via { | ||||||||||
| 169 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 170 | 0 | return $f | |||||||||
| 171 | } else { | ||||||||||
| 172 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingActionValue->new( %$_ ); | |||||||||
| 173 | } | ||||||||||
| 174 | 2 | }; | |||||||||
| 175 | |||||||||||
| 176 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingActionValue { | |||||||||
| 177 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 178 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 179 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 180 | |||||||||||
| 181 | 2 | has Market => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 182 | 2 | has SimpleScalingPolicyConfiguration => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::SimpleScalingPolicyConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | } | ||||||||||
| 184 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfig', | ||||||||||
| 185 | as 'Cfn::Value', | ||||||||||
| 186 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 187 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 188 | |||||||||||
| 189 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfig', | ||||||||||
| 190 | from 'HashRef', | ||||||||||
| 191 | via { | ||||||||||
| 192 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 193 | 0 | return $f | |||||||||
| 194 | } else { | ||||||||||
| 195 | 0 | die 'Only accepts functions'; | |||||||||
| 196 | } | ||||||||||
| 197 | }, | ||||||||||
| 198 | from 'ArrayRef', | ||||||||||
| 199 | via { | ||||||||||
| 200 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 201 | map { | ||||||||||
| 202 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfig')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 203 | } @$_ | ||||||||||
| 204 | ]); | ||||||||||
| 205 | 2 | }; | |||||||||
| 206 | |||||||||||
| 207 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfig', | |||||||||
| 208 | as 'Cfn::Value'; | ||||||||||
| 209 | |||||||||||
| 210 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfig', | ||||||||||
| 211 | from 'HashRef', | ||||||||||
| 212 | via { | ||||||||||
| 213 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 214 | 0 | return $f | |||||||||
| 215 | } else { | ||||||||||
| 216 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfigValue->new( %$_ ); | |||||||||
| 217 | } | ||||||||||
| 218 | 2 | }; | |||||||||
| 219 | |||||||||||
| 220 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfigValue { | |||||||||
| 221 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 222 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 223 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 224 | |||||||||||
| 225 | 2 | has VolumeSpecification => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::VolumeSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 226 | 2 | has VolumesPerInstance => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 227 | } | ||||||||||
| 228 | |||||||||||
| 229 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::SpotProvisioningSpecification', | |||||||||
| 230 | as 'Cfn::Value'; | ||||||||||
| 231 | |||||||||||
| 232 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::SpotProvisioningSpecification', | ||||||||||
| 233 | from 'HashRef', | ||||||||||
| 234 | via { | ||||||||||
| 235 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 236 | 0 | return $f | |||||||||
| 237 | } else { | ||||||||||
| 238 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::SpotProvisioningSpecificationValue->new( %$_ ); | |||||||||
| 239 | } | ||||||||||
| 240 | 2 | }; | |||||||||
| 241 | |||||||||||
| 242 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::SpotProvisioningSpecificationValue { | |||||||||
| 243 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 244 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 245 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 246 | |||||||||||
| 247 | 2 | has BlockDurationMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 248 | 2 | has TimeoutAction => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 249 | 2 | has TimeoutDurationMinutes => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 250 | } | ||||||||||
| 251 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::ScalingRule', | ||||||||||
| 252 | as 'Cfn::Value', | ||||||||||
| 253 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 254 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 255 | |||||||||||
| 256 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::ScalingRule', | ||||||||||
| 257 | from 'HashRef', | ||||||||||
| 258 | via { | ||||||||||
| 259 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 260 | 0 | return $f | |||||||||
| 261 | } else { | ||||||||||
| 262 | 0 | die 'Only accepts functions'; | |||||||||
| 263 | } | ||||||||||
| 264 | }, | ||||||||||
| 265 | from 'ArrayRef', | ||||||||||
| 266 | via { | ||||||||||
| 267 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 268 | map { | ||||||||||
| 269 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingRule')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 270 | } @$_ | ||||||||||
| 271 | ]); | ||||||||||
| 272 | 2 | }; | |||||||||
| 273 | |||||||||||
| 274 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingRule', | |||||||||
| 275 | as 'Cfn::Value'; | ||||||||||
| 276 | |||||||||||
| 277 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingRule', | ||||||||||
| 278 | from 'HashRef', | ||||||||||
| 279 | via { | ||||||||||
| 280 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 281 | 0 | return $f | |||||||||
| 282 | } else { | ||||||||||
| 283 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingRuleValue->new( %$_ ); | |||||||||
| 284 | } | ||||||||||
| 285 | 2 | }; | |||||||||
| 286 | |||||||||||
| 287 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingRuleValue { | |||||||||
| 288 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 289 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 290 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 291 | |||||||||||
| 292 | 2 | has Action => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 293 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 294 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 295 | 2 | has Trigger => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingTrigger', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 296 | } | ||||||||||
| 297 | |||||||||||
| 298 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingConstraints', | |||||||||
| 299 | as 'Cfn::Value'; | ||||||||||
| 300 | |||||||||||
| 301 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingConstraints', | ||||||||||
| 302 | from 'HashRef', | ||||||||||
| 303 | via { | ||||||||||
| 304 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 305 | 0 | return $f | |||||||||
| 306 | } else { | ||||||||||
| 307 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingConstraintsValue->new( %$_ ); | |||||||||
| 308 | } | ||||||||||
| 309 | 2 | }; | |||||||||
| 310 | |||||||||||
| 311 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingConstraintsValue { | |||||||||
| 312 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 313 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 314 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 315 | |||||||||||
| 316 | 2 | has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 317 | 2 | has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 318 | } | ||||||||||
| 319 | |||||||||||
| 320 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::EbsConfiguration', | |||||||||
| 321 | as 'Cfn::Value'; | ||||||||||
| 322 | |||||||||||
| 323 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::EbsConfiguration', | ||||||||||
| 324 | from 'HashRef', | ||||||||||
| 325 | via { | ||||||||||
| 326 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 327 | 0 | return $f | |||||||||
| 328 | } else { | ||||||||||
| 329 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::EbsConfigurationValue->new( %$_ ); | |||||||||
| 330 | } | ||||||||||
| 331 | 2 | }; | |||||||||
| 332 | |||||||||||
| 333 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::EbsConfigurationValue { | |||||||||
| 334 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 335 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 336 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 337 | |||||||||||
| 338 | 2 | has EbsBlockDeviceConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::EbsBlockDeviceConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 339 | 2 | has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 340 | } | ||||||||||
| 341 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Configuration', | ||||||||||
| 342 | as 'Cfn::Value', | ||||||||||
| 343 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 344 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 345 | |||||||||||
| 346 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Configuration', | ||||||||||
| 347 | from 'HashRef', | ||||||||||
| 348 | via { | ||||||||||
| 349 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 350 | 0 | return $f | |||||||||
| 351 | } else { | ||||||||||
| 352 | 0 | die 'Only accepts functions'; | |||||||||
| 353 | } | ||||||||||
| 354 | }, | ||||||||||
| 355 | from 'ArrayRef', | ||||||||||
| 356 | via { | ||||||||||
| 357 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 358 | map { | ||||||||||
| 359 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::Configuration')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 360 | } @$_ | ||||||||||
| 361 | ]); | ||||||||||
| 362 | 2 | }; | |||||||||
| 363 | |||||||||||
| 364 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::Configuration', | |||||||||
| 365 | as 'Cfn::Value'; | ||||||||||
| 366 | |||||||||||
| 367 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::Configuration', | ||||||||||
| 368 | from 'HashRef', | ||||||||||
| 369 | via { | ||||||||||
| 370 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 371 | 0 | return $f | |||||||||
| 372 | } else { | ||||||||||
| 373 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ConfigurationValue->new( %$_ ); | |||||||||
| 374 | } | ||||||||||
| 375 | 2 | }; | |||||||||
| 376 | |||||||||||
| 377 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ConfigurationValue { | |||||||||
| 378 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 379 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 380 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 381 | |||||||||||
| 382 | 2 | has Classification => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 383 | 2 | has ConfigurationProperties => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 384 | 2 | has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 385 | } | ||||||||||
| 386 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::KeyValue', | ||||||||||
| 387 | as 'Cfn::Value', | ||||||||||
| 388 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 389 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 390 | |||||||||||
| 391 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::KeyValue', | ||||||||||
| 392 | from 'HashRef', | ||||||||||
| 393 | via { | ||||||||||
| 394 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 395 | 0 | return $f | |||||||||
| 396 | } else { | ||||||||||
| 397 | 0 | die 'Only accepts functions'; | |||||||||
| 398 | } | ||||||||||
| 399 | }, | ||||||||||
| 400 | from 'ArrayRef', | ||||||||||
| 401 | via { | ||||||||||
| 402 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 403 | map { | ||||||||||
| 404 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::KeyValue')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 405 | } @$_ | ||||||||||
| 406 | ]); | ||||||||||
| 407 | 2 | }; | |||||||||
| 408 | |||||||||||
| 409 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::KeyValue', | |||||||||
| 410 | as 'Cfn::Value'; | ||||||||||
| 411 | |||||||||||
| 412 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::KeyValue', | ||||||||||
| 413 | from 'HashRef', | ||||||||||
| 414 | via { | ||||||||||
| 415 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 416 | 0 | return $f | |||||||||
| 417 | } else { | ||||||||||
| 418 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::KeyValueValue->new( %$_ ); | |||||||||
| 419 | } | ||||||||||
| 420 | 2 | }; | |||||||||
| 421 | |||||||||||
| 422 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::KeyValueValue { | |||||||||
| 423 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 424 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 425 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 426 | |||||||||||
| 427 | 2 | has Key => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 428 | 2 | has Value => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 429 | } | ||||||||||
| 430 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfig', | ||||||||||
| 431 | as 'Cfn::Value', | ||||||||||
| 432 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 433 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 434 | |||||||||||
| 435 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfig', | ||||||||||
| 436 | from 'HashRef', | ||||||||||
| 437 | via { | ||||||||||
| 438 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 439 | 0 | return $f | |||||||||
| 440 | } else { | ||||||||||
| 441 | 0 | die 'Only accepts functions'; | |||||||||
| 442 | } | ||||||||||
| 443 | }, | ||||||||||
| 444 | from 'ArrayRef', | ||||||||||
| 445 | via { | ||||||||||
| 446 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 447 | map { | ||||||||||
| 448 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfig')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 449 | } @$_ | ||||||||||
| 450 | ]); | ||||||||||
| 451 | 2 | }; | |||||||||
| 452 | |||||||||||
| 453 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfig', | |||||||||
| 454 | as 'Cfn::Value'; | ||||||||||
| 455 | |||||||||||
| 456 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfig', | ||||||||||
| 457 | from 'HashRef', | ||||||||||
| 458 | via { | ||||||||||
| 459 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 460 | 0 | return $f | |||||||||
| 461 | } else { | ||||||||||
| 462 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfigValue->new( %$_ ); | |||||||||
| 463 | } | ||||||||||
| 464 | 2 | }; | |||||||||
| 465 | |||||||||||
| 466 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfigValue { | |||||||||
| 467 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 468 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 469 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 470 | |||||||||||
| 471 | 2 | has BidPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 472 | 2 | has BidPriceAsPercentageOfOnDemandPrice => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 473 | 2 | has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 474 | 2 | has EbsConfiguration => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::EbsConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 475 | 2 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 476 | 2 | has WeightedCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 477 | } | ||||||||||
| 478 | |||||||||||
| 479 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetProvisioningSpecifications', | |||||||||
| 480 | as 'Cfn::Value'; | ||||||||||
| 481 | |||||||||||
| 482 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetProvisioningSpecifications', | ||||||||||
| 483 | from 'HashRef', | ||||||||||
| 484 | via { | ||||||||||
| 485 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 486 | 0 | return $f | |||||||||
| 487 | } else { | ||||||||||
| 488 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetProvisioningSpecificationsValue->new( %$_ ); | |||||||||
| 489 | } | ||||||||||
| 490 | 2 | }; | |||||||||
| 491 | |||||||||||
| 492 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetProvisioningSpecificationsValue { | |||||||||
| 493 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 494 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 495 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 496 | |||||||||||
| 497 | 2 | has SpotSpecification => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::SpotProvisioningSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 498 | } | ||||||||||
| 499 | |||||||||||
| 500 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::AutoScalingPolicy', | |||||||||
| 501 | as 'Cfn::Value'; | ||||||||||
| 502 | |||||||||||
| 503 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::AutoScalingPolicy', | ||||||||||
| 504 | from 'HashRef', | ||||||||||
| 505 | via { | ||||||||||
| 506 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 507 | 0 | return $f | |||||||||
| 508 | } else { | ||||||||||
| 509 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::AutoScalingPolicyValue->new( %$_ ); | |||||||||
| 510 | } | ||||||||||
| 511 | 2 | }; | |||||||||
| 512 | |||||||||||
| 513 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::AutoScalingPolicyValue { | |||||||||
| 514 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 515 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 516 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 517 | |||||||||||
| 518 | 2 | has Constraints => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScalingConstraints', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 519 | 2 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::ScalingRule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 520 | } | ||||||||||
| 521 | |||||||||||
| 522 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScriptBootstrapActionConfig', | |||||||||
| 523 | as 'Cfn::Value'; | ||||||||||
| 524 | |||||||||||
| 525 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScriptBootstrapActionConfig', | ||||||||||
| 526 | from 'HashRef', | ||||||||||
| 527 | via { | ||||||||||
| 528 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 529 | 0 | return $f | |||||||||
| 530 | } else { | ||||||||||
| 531 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ScriptBootstrapActionConfigValue->new( %$_ ); | |||||||||
| 532 | } | ||||||||||
| 533 | 2 | }; | |||||||||
| 534 | |||||||||||
| 535 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ScriptBootstrapActionConfigValue { | |||||||||
| 536 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 537 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 538 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 539 | |||||||||||
| 540 | 2 | has Args => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 541 | 2 | has Path => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 542 | } | ||||||||||
| 543 | |||||||||||
| 544 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::PlacementType', | |||||||||
| 545 | as 'Cfn::Value'; | ||||||||||
| 546 | |||||||||||
| 547 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::PlacementType', | ||||||||||
| 548 | from 'HashRef', | ||||||||||
| 549 | via { | ||||||||||
| 550 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 551 | 0 | return $f | |||||||||
| 552 | } else { | ||||||||||
| 553 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::PlacementTypeValue->new( %$_ ); | |||||||||
| 554 | } | ||||||||||
| 555 | 2 | }; | |||||||||
| 556 | |||||||||||
| 557 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::PlacementTypeValue { | |||||||||
| 558 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 559 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 560 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 561 | |||||||||||
| 562 | 2 | has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 563 | } | ||||||||||
| 564 | |||||||||||
| 565 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceGroupConfig', | |||||||||
| 566 | as 'Cfn::Value'; | ||||||||||
| 567 | |||||||||||
| 568 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceGroupConfig', | ||||||||||
| 569 | from 'HashRef', | ||||||||||
| 570 | via { | ||||||||||
| 571 | 4 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 572 | 0 | return $f | |||||||||
| 573 | } else { | ||||||||||
| 574 | 4 | return Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceGroupConfigValue->new( %$_ ); | |||||||||
| 575 | } | ||||||||||
| 576 | 2 | }; | |||||||||
| 577 | |||||||||||
| 578 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceGroupConfigValue { | |||||||||
| 579 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 580 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 581 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 582 | |||||||||||
| 583 | 2 | has AutoScalingPolicy => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::AutoScalingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 584 | 2 | has BidPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 585 | 2 | has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 586 | 2 | has EbsConfiguration => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::EbsConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 587 | 2 | has InstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 588 | 2 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 589 | 2 | has Market => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 590 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 591 | } | ||||||||||
| 592 | |||||||||||
| 593 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetConfig', | |||||||||
| 594 | as 'Cfn::Value'; | ||||||||||
| 595 | |||||||||||
| 596 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetConfig', | ||||||||||
| 597 | from 'HashRef', | ||||||||||
| 598 | via { | ||||||||||
| 599 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 600 | 0 | return $f | |||||||||
| 601 | } else { | ||||||||||
| 602 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetConfigValue->new( %$_ ); | |||||||||
| 603 | } | ||||||||||
| 604 | 2 | }; | |||||||||
| 605 | |||||||||||
| 606 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetConfigValue { | |||||||||
| 607 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 608 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 609 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 610 | |||||||||||
| 611 | 2 | has InstanceTypeConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::InstanceTypeConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 612 | 2 | has LaunchSpecifications => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetProvisioningSpecifications', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 613 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 614 | 2 | has TargetOnDemandCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 615 | 2 | has TargetSpotCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 616 | } | ||||||||||
| 617 | |||||||||||
| 618 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::HadoopJarStepConfig', | |||||||||
| 619 | as 'Cfn::Value'; | ||||||||||
| 620 | |||||||||||
| 621 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::HadoopJarStepConfig', | ||||||||||
| 622 | from 'HashRef', | ||||||||||
| 623 | via { | ||||||||||
| 624 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 625 | 0 | return $f | |||||||||
| 626 | } else { | ||||||||||
| 627 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::HadoopJarStepConfigValue->new( %$_ ); | |||||||||
| 628 | } | ||||||||||
| 629 | 2 | }; | |||||||||
| 630 | |||||||||||
| 631 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::HadoopJarStepConfigValue { | |||||||||
| 632 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 633 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 634 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 635 | |||||||||||
| 636 | 2 | has Args => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 637 | 2 | has Jar => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 638 | 2 | has MainClass => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 639 | 2 | has StepProperties => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::KeyValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 640 | } | ||||||||||
| 641 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::StepConfig', | ||||||||||
| 642 | as 'Cfn::Value', | ||||||||||
| 643 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 644 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 645 | |||||||||||
| 646 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::StepConfig', | ||||||||||
| 647 | from 'HashRef', | ||||||||||
| 648 | via { | ||||||||||
| 649 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 650 | 0 | return $f | |||||||||
| 651 | } else { | ||||||||||
| 652 | 0 | die 'Only accepts functions'; | |||||||||
| 653 | } | ||||||||||
| 654 | }, | ||||||||||
| 655 | from 'ArrayRef', | ||||||||||
| 656 | via { | ||||||||||
| 657 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 658 | map { | ||||||||||
| 659 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::StepConfig')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 660 | } @$_ | ||||||||||
| 661 | ]); | ||||||||||
| 662 | 2 | }; | |||||||||
| 663 | |||||||||||
| 664 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::StepConfig', | |||||||||
| 665 | as 'Cfn::Value'; | ||||||||||
| 666 | |||||||||||
| 667 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::StepConfig', | ||||||||||
| 668 | from 'HashRef', | ||||||||||
| 669 | via { | ||||||||||
| 670 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 671 | 0 | return $f | |||||||||
| 672 | } else { | ||||||||||
| 673 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::StepConfigValue->new( %$_ ); | |||||||||
| 674 | } | ||||||||||
| 675 | 2 | }; | |||||||||
| 676 | |||||||||||
| 677 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::StepConfigValue { | |||||||||
| 678 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 679 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 680 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 681 | |||||||||||
| 682 | 2 | has ActionOnFailure => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 683 | 2 | has HadoopJarStep => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::HadoopJarStepConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 684 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 685 | } | ||||||||||
| 686 | |||||||||||
| 687 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::KerberosAttributes', | |||||||||
| 688 | as 'Cfn::Value'; | ||||||||||
| 689 | |||||||||||
| 690 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::KerberosAttributes', | ||||||||||
| 691 | from 'HashRef', | ||||||||||
| 692 | via { | ||||||||||
| 693 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 694 | 0 | return $f | |||||||||
| 695 | } else { | ||||||||||
| 696 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::KerberosAttributesValue->new( %$_ ); | |||||||||
| 697 | } | ||||||||||
| 698 | 2 | }; | |||||||||
| 699 | |||||||||||
| 700 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::KerberosAttributesValue { | |||||||||
| 701 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 702 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 703 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 704 | |||||||||||
| 705 | 2 | has ADDomainJoinPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 706 | 2 | has ADDomainJoinUser => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 707 | 2 | has CrossRealmTrustPrincipalPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 708 | 2 | has KdcAdminPassword => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 709 | 2 | has Realm => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 710 | } | ||||||||||
| 711 | |||||||||||
| 712 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::JobFlowInstancesConfig', | |||||||||
| 713 | as 'Cfn::Value'; | ||||||||||
| 714 | |||||||||||
| 715 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::JobFlowInstancesConfig', | ||||||||||
| 716 | from 'HashRef', | ||||||||||
| 717 | via { | ||||||||||
| 718 | 2 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
| |||||||||||
| 719 | 0 | return $f | |||||||||
| 720 | } else { | ||||||||||
| 721 | 2 | return Cfn::Resource::Properties::AWS::EMR::Cluster::JobFlowInstancesConfigValue->new( %$_ ); | |||||||||
| 722 | } | ||||||||||
| 723 | 2 | }; | |||||||||
| 724 | |||||||||||
| 725 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::JobFlowInstancesConfigValue { | |||||||||
| 726 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 727 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 728 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 729 | |||||||||||
| 730 | 2 | has AdditionalMasterSecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 731 | 2 | has AdditionalSlaveSecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 732 | 2 | has CoreInstanceFleet => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 733 | 2 | has CoreInstanceGroup => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceGroupConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 734 | 2 | has Ec2KeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 735 | 2 | has Ec2SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 736 | 2 | has Ec2SubnetIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 737 | 2 | has EmrManagedMasterSecurityGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 738 | 2 | has EmrManagedSlaveSecurityGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 739 | 2 | has HadoopVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 740 | 2 | has KeepJobFlowAliveWhenNoSteps => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 741 | 2 | has MasterInstanceFleet => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceFleetConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 742 | 2 | has MasterInstanceGroup => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::InstanceGroupConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 743 | 2 | has Placement => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::PlacementType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 744 | 2 | has ServiceAccessSecurityGroup => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 745 | 2 | has TerminationProtected => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 746 | } | ||||||||||
| 747 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfig', | ||||||||||
| 748 | as 'Cfn::Value', | ||||||||||
| 749 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 750 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 751 | |||||||||||
| 752 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfig', | ||||||||||
| 753 | from 'HashRef', | ||||||||||
| 754 | via { | ||||||||||
| 755 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 756 | 0 | return $f | |||||||||
| 757 | } else { | ||||||||||
| 758 | 0 | die 'Only accepts functions'; | |||||||||
| 759 | } | ||||||||||
| 760 | }, | ||||||||||
| 761 | from 'ArrayRef', | ||||||||||
| 762 | via { | ||||||||||
| 763 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 764 | map { | ||||||||||
| 765 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfig')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 766 | } @$_ | ||||||||||
| 767 | ]); | ||||||||||
| 768 | 2 | }; | |||||||||
| 769 | |||||||||||
| 770 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfig', | |||||||||
| 771 | as 'Cfn::Value'; | ||||||||||
| 772 | |||||||||||
| 773 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfig', | ||||||||||
| 774 | from 'HashRef', | ||||||||||
| 775 | via { | ||||||||||
| 776 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 777 | 0 | return $f | |||||||||
| 778 | } else { | ||||||||||
| 779 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfigValue->new( %$_ ); | |||||||||
| 780 | } | ||||||||||
| 781 | 2 | }; | |||||||||
| 782 | |||||||||||
| 783 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfigValue { | |||||||||
| 784 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 785 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 786 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 787 | |||||||||||
| 788 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 789 | 2 | has ScriptBootstrapAction => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::ScriptBootstrapActionConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 790 | } | ||||||||||
| 791 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Application', | ||||||||||
| 792 | as 'Cfn::Value', | ||||||||||
| 793 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 794 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 795 | |||||||||||
| 796 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Application', | ||||||||||
| 797 | from 'HashRef', | ||||||||||
| 798 | via { | ||||||||||
| 799 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 800 | 0 | return $f | |||||||||
| 801 | } else { | ||||||||||
| 802 | 0 | die 'Only accepts functions'; | |||||||||
| 803 | } | ||||||||||
| 804 | }, | ||||||||||
| 805 | from 'ArrayRef', | ||||||||||
| 806 | via { | ||||||||||
| 807 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 808 | map { | ||||||||||
| 809 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::Cluster::Application')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 810 | } @$_ | ||||||||||
| 811 | ]); | ||||||||||
| 812 | 2 | }; | |||||||||
| 813 | |||||||||||
| 814 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::Cluster::Application', | |||||||||
| 815 | as 'Cfn::Value'; | ||||||||||
| 816 | |||||||||||
| 817 | coerce 'Cfn::Resource::Properties::AWS::EMR::Cluster::Application', | ||||||||||
| 818 | from 'HashRef', | ||||||||||
| 819 | via { | ||||||||||
| 820 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 821 | 0 | return $f | |||||||||
| 822 | } else { | ||||||||||
| 823 | 0 | return Cfn::Resource::Properties::AWS::EMR::Cluster::ApplicationValue->new( %$_ ); | |||||||||
| 824 | } | ||||||||||
| 825 | 2 | }; | |||||||||
| 826 | |||||||||||
| 827 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster::ApplicationValue { | |||||||||
| 828 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 829 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 830 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 831 | |||||||||||
| 832 | 2 | has AdditionalInfo => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 833 | 2 | has Args => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 834 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 835 | 2 | has Version => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 836 | } | ||||||||||
| 837 | |||||||||||
| 838 | 2 | package Cfn::Resource::Properties::AWS::EMR::Cluster { | |||||||||
| 839 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 840 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 841 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 842 | |||||||||||
| 843 | 2 | has AdditionalInfo => (isa => 'Cfn::Value::Json|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 844 | 2 | has Applications => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Application', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 845 | 2 | has AutoScalingRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 846 | 2 | has BootstrapActions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::BootstrapActionConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 847 | 2 | has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 848 | 2 | has CustomAmiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 849 | 2 | has EbsRootVolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 850 | 2 | has Instances => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::JobFlowInstancesConfig', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Conditional'); | |||||||||
| 851 | 2 | has JobFlowRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 852 | 2 | has KerberosAttributes => (isa => 'Cfn::Resource::Properties::AWS::EMR::Cluster::KerberosAttributes', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 853 | 2 | has LogUri => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 854 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 855 | 2 | has ReleaseLabel => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 856 | 2 | has ScaleDownBehavior => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 857 | 2 | has SecurityConfiguration => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 858 | 2 | has ServiceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 859 | 2 | has Steps => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::Cluster::StepConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 860 | 2 | has Tags => (isa => 'ArrayOfCfn::Resource::Properties::TagType', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 861 | 2 | has VisibleToAllUsers => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 862 | } | ||||||||||
| 863 | |||||||||||
| 864 | 2 | 1; | |||||||||