| 1 | # AWS::EMR::InstanceGroupConfig generated from spec 18.4.0 | ||||||||||
| 2 | 2 | ▶ | use Moose::Util::TypeConstraints; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig', | ||||||||||
| 5 | from 'HashRef', | ||||||||||
| 6 | 2 | ▶ | via { Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig->new( %$_ ) }; | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | package Cfn::Resource::AWS::EMR::InstanceGroupConfig { | |||||||||
| 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::InstanceGroupConfig', 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 | ▶ | [ 'af-south-1','ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-south-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ] | ||||||||
|
Subroutine
supported_regions: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 18 | } | ||||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | |||||||||||
| 22 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::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::InstanceGroupConfig::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::InstanceGroupConfig::MetricDimension')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 41 | } @$_ | ||||||||||
| 42 | ]); | ||||||||||
| 43 | 2 | }; | |||||||||
| 44 | |||||||||||
| 45 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', | |||||||||
| 46 | as 'Cfn::Value'; | ||||||||||
| 47 | |||||||||||
| 48 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::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::Object::AWS::EMR::InstanceGroupConfig::MetricDimension->new( %$_ ); | |||||||||
| 55 | } | ||||||||||
| 56 | 2 | }; | |||||||||
| 57 | |||||||||||
| 58 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::MetricDimension { | |||||||||
| 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::InstanceGroupConfig::SimpleScalingPolicyConfiguration', | |||||||||
| 68 | as 'Cfn::Value'; | ||||||||||
| 69 | |||||||||||
| 70 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration', | ||||||||||
| 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::Object::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration->new( %$_ ); | |||||||||
| 77 | } | ||||||||||
| 78 | 2 | }; | |||||||||
| 79 | |||||||||||
| 80 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::SimpleScalingPolicyConfiguration { | |||||||||
| 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 AdjustmentType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 86 | 2 | has CoolDown => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 87 | 2 | has ScalingAdjustment => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 88 | } | ||||||||||
| 89 | |||||||||||
| 90 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition', | |||||||||
| 91 | as 'Cfn::Value'; | ||||||||||
| 92 | |||||||||||
| 93 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition', | ||||||||||
| 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::Object::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition->new( %$_ ); | |||||||||
| 100 | } | ||||||||||
| 101 | 2 | }; | |||||||||
| 102 | |||||||||||
| 103 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::CloudWatchAlarmDefinition { | |||||||||
| 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 ComparisonOperator => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 109 | 2 | has Dimensions => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::MetricDimension', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 110 | 2 | has EvaluationPeriods => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 111 | 2 | has MetricName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 112 | 2 | has Namespace => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 113 | 2 | has Period => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 114 | 2 | has Statistic => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 115 | 2 | has Threshold => (isa => 'Cfn::Value::Double', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 116 | 2 | has Unit => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 117 | } | ||||||||||
| 118 | |||||||||||
| 119 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::VolumeSpecification', | |||||||||
| 120 | as 'Cfn::Value'; | ||||||||||
| 121 | |||||||||||
| 122 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::VolumeSpecification', | ||||||||||
| 123 | from 'HashRef', | ||||||||||
| 124 | via { | ||||||||||
| 125 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 126 | 0 | return $f | |||||||||
| 127 | } else { | ||||||||||
| 128 | 0 | return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::VolumeSpecification->new( %$_ ); | |||||||||
| 129 | } | ||||||||||
| 130 | 2 | }; | |||||||||
| 131 | |||||||||||
| 132 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::VolumeSpecification { | |||||||||
| 133 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 134 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 135 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 136 | |||||||||||
| 137 | 2 | has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 138 | 2 | has SizeInGB => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 139 | 2 | has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 140 | } | ||||||||||
| 141 | |||||||||||
| 142 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingTrigger', | |||||||||
| 143 | as 'Cfn::Value'; | ||||||||||
| 144 | |||||||||||
| 145 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::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::Object::AWS::EMR::InstanceGroupConfig::ScalingTrigger->new( %$_ ); | |||||||||
| 152 | } | ||||||||||
| 153 | 2 | }; | |||||||||
| 154 | |||||||||||
| 155 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingTrigger { | |||||||||
| 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::InstanceGroupConfig::CloudWatchAlarmDefinition', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 161 | } | ||||||||||
| 162 | |||||||||||
| 163 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingAction', | |||||||||
| 164 | as 'Cfn::Value'; | ||||||||||
| 165 | |||||||||||
| 166 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::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::Object::AWS::EMR::InstanceGroupConfig::ScalingAction->new( %$_ ); | |||||||||
| 173 | } | ||||||||||
| 174 | 2 | }; | |||||||||
| 175 | |||||||||||
| 176 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingAction { | |||||||||
| 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::InstanceGroupConfig::SimpleScalingPolicyConfiguration', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 183 | } | ||||||||||
| 184 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', | ||||||||||
| 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::InstanceGroupConfig::ScalingRule', | ||||||||||
| 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::InstanceGroupConfig::ScalingRule')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 203 | } @$_ | ||||||||||
| 204 | ]); | ||||||||||
| 205 | 2 | }; | |||||||||
| 206 | |||||||||||
| 207 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', | |||||||||
| 208 | as 'Cfn::Value'; | ||||||||||
| 209 | |||||||||||
| 210 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', | ||||||||||
| 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::Object::AWS::EMR::InstanceGroupConfig::ScalingRule->new( %$_ ); | |||||||||
| 217 | } | ||||||||||
| 218 | 2 | }; | |||||||||
| 219 | |||||||||||
| 220 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingRule { | |||||||||
| 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 Action => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingAction', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 226 | 2 | has Description => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 227 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 228 | 2 | has Trigger => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingTrigger', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 229 | } | ||||||||||
| 230 | |||||||||||
| 231 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingConstraints', | |||||||||
| 232 | as 'Cfn::Value'; | ||||||||||
| 233 | |||||||||||
| 234 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingConstraints', | ||||||||||
| 235 | from 'HashRef', | ||||||||||
| 236 | via { | ||||||||||
| 237 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 238 | 0 | return $f | |||||||||
| 239 | } else { | ||||||||||
| 240 | 0 | return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingConstraints->new( %$_ ); | |||||||||
| 241 | } | ||||||||||
| 242 | 2 | }; | |||||||||
| 243 | |||||||||||
| 244 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::ScalingConstraints { | |||||||||
| 245 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 246 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 247 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 248 | |||||||||||
| 249 | 2 | has MaxCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 250 | 2 | has MinCapacity => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 251 | } | ||||||||||
| 252 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', | ||||||||||
| 253 | as 'Cfn::Value', | ||||||||||
| 254 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 255 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 256 | |||||||||||
| 257 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', | ||||||||||
| 258 | from 'HashRef', | ||||||||||
| 259 | via { | ||||||||||
| 260 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 261 | 0 | return $f | |||||||||
| 262 | } else { | ||||||||||
| 263 | 0 | die 'Only accepts functions'; | |||||||||
| 264 | } | ||||||||||
| 265 | }, | ||||||||||
| 266 | from 'ArrayRef', | ||||||||||
| 267 | via { | ||||||||||
| 268 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 269 | map { | ||||||||||
| 270 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 271 | } @$_ | ||||||||||
| 272 | ]); | ||||||||||
| 273 | 2 | }; | |||||||||
| 274 | |||||||||||
| 275 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', | |||||||||
| 276 | as 'Cfn::Value'; | ||||||||||
| 277 | |||||||||||
| 278 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', | ||||||||||
| 279 | from 'HashRef', | ||||||||||
| 280 | via { | ||||||||||
| 281 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 282 | 0 | return $f | |||||||||
| 283 | } else { | ||||||||||
| 284 | 0 | return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig->new( %$_ ); | |||||||||
| 285 | } | ||||||||||
| 286 | 2 | }; | |||||||||
| 287 | |||||||||||
| 288 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig { | |||||||||
| 289 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 290 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 291 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 292 | |||||||||||
| 293 | 2 | has VolumeSpecification => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::VolumeSpecification', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 294 | 2 | has VolumesPerInstance => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 295 | } | ||||||||||
| 296 | |||||||||||
| 297 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsConfiguration', | |||||||||
| 298 | as 'Cfn::Value'; | ||||||||||
| 299 | |||||||||||
| 300 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsConfiguration', | ||||||||||
| 301 | from 'HashRef', | ||||||||||
| 302 | via { | ||||||||||
| 303 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 304 | 0 | return $f | |||||||||
| 305 | } else { | ||||||||||
| 306 | 0 | return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsConfiguration->new( %$_ ); | |||||||||
| 307 | } | ||||||||||
| 308 | 2 | }; | |||||||||
| 309 | |||||||||||
| 310 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::EbsConfiguration { | |||||||||
| 311 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 312 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 313 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 314 | |||||||||||
| 315 | 2 | has EbsBlockDeviceConfigs => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsBlockDeviceConfig', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 316 | 2 | has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 317 | } | ||||||||||
| 318 | subtype 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', | ||||||||||
| 319 | as 'Cfn::Value', | ||||||||||
| 320 | 0 | ▶ | where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 321 | 0 | ▶ | message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||||||||||
| 322 | |||||||||||
| 323 | coerce 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', | ||||||||||
| 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 | die 'Only accepts functions'; | |||||||||
| 330 | } | ||||||||||
| 331 | }, | ||||||||||
| 332 | from 'ArrayRef', | ||||||||||
| 333 | via { | ||||||||||
| 334 | Cfn::Value::Array->new(Value => [ | ||||||||||
| 335 | map { | ||||||||||
| 336 | 0 | ▶ | Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration')->coerce($_) | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 337 | } @$_ | ||||||||||
| 338 | ]); | ||||||||||
| 339 | 2 | }; | |||||||||
| 340 | |||||||||||
| 341 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', | |||||||||
| 342 | as 'Cfn::Value'; | ||||||||||
| 343 | |||||||||||
| 344 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', | ||||||||||
| 345 | from 'HashRef', | ||||||||||
| 346 | via { | ||||||||||
| 347 | 0 | ▶ | if (my $f = Cfn::TypeLibrary::try_function($_)) { | ||||||||
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
| |||||||||||
| 348 | 0 | return $f | |||||||||
| 349 | } else { | ||||||||||
| 350 | 0 | return Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::Configuration->new( %$_ ); | |||||||||
| 351 | } | ||||||||||
| 352 | 2 | }; | |||||||||
| 353 | |||||||||||
| 354 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::Configuration { | |||||||||
| 355 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 356 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 357 | 2 | extends 'Cfn::Value::TypedValue'; | |||||||||
| 358 | |||||||||||
| 359 | 2 | has Classification => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 360 | 2 | has ConfigurationProperties => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 361 | 2 | has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 362 | } | ||||||||||
| 363 | |||||||||||
| 364 | 2 | subtype 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy', | |||||||||
| 365 | as 'Cfn::Value'; | ||||||||||
| 366 | |||||||||||
| 367 | coerce 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy', | ||||||||||
| 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::Object::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy->new( %$_ ); | |||||||||
| 374 | } | ||||||||||
| 375 | 2 | }; | |||||||||
| 376 | |||||||||||
| 377 | 2 | package Cfn::Resource::Properties::Object::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy { | |||||||||
| 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 Constraints => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingConstraints', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 383 | 2 | has Rules => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::ScalingRule', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 384 | } | ||||||||||
| 385 | |||||||||||
| 386 | 2 | package Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig { | |||||||||
| 387 | 2 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 388 | 2 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 389 | 2 | extends 'Cfn::Resource::Properties'; | |||||||||
| 390 | |||||||||||
| 391 | 2 | has AutoScalingPolicy => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::AutoScalingPolicy', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 392 | 2 | has BidPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 393 | 2 | has Configurations => (isa => 'ArrayOfCfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::Configuration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 394 | 2 | has EbsConfiguration => (isa => 'Cfn::Resource::Properties::AWS::EMR::InstanceGroupConfig::EbsConfiguration', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 395 | 2 | has InstanceCount => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); | |||||||||
| 396 | 2 | has InstanceRole => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 397 | 2 | has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 398 | 2 | has JobFlowId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 399 | 2 | has Market => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 400 | 2 | has Name => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); | |||||||||
| 401 | } | ||||||||||
| 402 | |||||||||||
| 403 | 2 | 1; | |||||||||
| 404 | ### main pod documentation begin ### | ||||||||||
| 405 | |||||||||||
| 406 | =encoding UTF-8 | ||||||||||
| 407 | |||||||||||
| 408 | =head1 NAME | ||||||||||
| 409 | |||||||||||
| 410 | Cfn::Resource::AWS::EMR::InstanceGroupConfig - Cfn resource for AWS::EMR::InstanceGroupConfig | ||||||||||
| 411 | |||||||||||
| 412 | =head1 DESCRIPTION | ||||||||||
| 413 | |||||||||||
| 414 | This module implements a Perl module that represents the CloudFormation object AWS::EMR::InstanceGroupConfig. | ||||||||||
| 415 | |||||||||||
| 416 | See L<Cfn> for more information on how to use it. | ||||||||||
| 417 | |||||||||||
| 418 | =head1 AUTHOR | ||||||||||
| 419 | |||||||||||
| 420 | Jose Luis Martinez | ||||||||||
| 421 | CAPSiDE | ||||||||||
| 422 | jlmartinez@capside.com | ||||||||||
| 423 | |||||||||||
| 424 | =head1 COPYRIGHT and LICENSE | ||||||||||
| 425 | |||||||||||
| 426 | Copyright (c) 2013 by CAPSiDE | ||||||||||
| 427 | This code is distributed under the Apache 2 License. The full text of the | ||||||||||
| 428 | license can be found in the LICENSE file included with this module. | ||||||||||
| 429 | |||||||||||
| 430 | =cut | ||||||||||