Cfn/Resource/AWS/AutoScaling/LaunchConfiguration.pm

filter: Statementstmt 92.9% 79 / 85 Branchbran 37.5% 3 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.2% 15 / 17 Podpod 0.0% 0 / 2 totaltotal 86.6% 97 / 112 SCAR 16.2
CC
5
Cov
88%
__ANON__
6.0
__ANON__
2.3
__ANON__
2.3
CRAP 5.0
« Cfn/Resource/AWS/ElasticBeanstalk/ConfigurationTemplate.pm ↑ Summary Cfn/Resource/AWS/MediaLive/InputSecurityGroup.pm »
1 # AWS::AutoScaling::LaunchConfiguration generated from spec 5.3.0
2 5 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration',
5 from 'HashRef',
6 42 ▶ via { Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 5 package Cfn::Resource::AWS::AutoScaling::LaunchConfiguration {
9 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 extends 'Cfn::Resource';
11 5 has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ ]
Subroutine AttributeList: called CC=1 SCAR=0.0
Pod undocumented
15 }
16 sub supported_regions {
17 1 ▶ [ 'ap-east-1','ap-northeast-1','ap-northeast-2','ap-northeast-3','ap-south-1','ap-southeast-1','ap-southeast-2','ca-central-1','cn-north-1','cn-northwest-1','eu-central-1','eu-north-1','eu-west-1','eu-west-2','eu-west-3','me-south-1','sa-east-1','us-east-1','us-east-2','us-gov-east-1','us-gov-west-1','us-west-1','us-west-2' ]
Subroutine supported_regions: called CC=1 SCAR=0.0
Pod undocumented
18 }
19 }
20  
21  
22  
23 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDevice',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDevice',
27 from 'HashRef',
28 via {
29 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 6 6
30 0 return $f
31 } else {
32 6 return Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceValue->new( %$_ );
33 }
34 5 };
35  
36 5 package Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceValue {
37 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 5 extends 'Cfn::Value::TypedValue';
40
41 5 has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 5 has Encrypted => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 5 has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 5 has SnapshotId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45 5 has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46 5 has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
47 }
48 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
49 as 'Cfn::Value',
50 4 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: called CC=2 SCAR=7.6
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 4 4
51 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
52  
53 coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
54 from 'HashRef',
55 via {
56 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
57 0 return $f
58 } else {
59 0 die 'Only accepts functions';
60 }
61 },
62 from 'ArrayRef',
63 via {
64 Cfn::Value::Array->new(Value => [
65 map {
66 4 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
67 } @$_
68 ]);
69 5 };
70  
71 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
72 as 'Cfn::Value';
73  
74 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
75 from 'HashRef',
76 via {
77 8 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Subroutine __ANON__: called CC=2 SCAR=8.1
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 8 8
78 0 return $f
79 } else {
80 8 return Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMappingValue->new( %$_ );
81 }
82 5 };
83  
84 5 package Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMappingValue {
85 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
86 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
87 5 extends 'Cfn::Value::TypedValue';
88
89 5 has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
90 5 has Ebs => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
91 5 has NoDevice => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
92 5 has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
93 }
94  
95 5 package Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration {
96 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
97 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
98 5 extends 'Cfn::Resource::Properties';
99
100 5 has AssociatePublicIpAddress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
101 5 has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
102 5 has ClassicLinkVPCId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
103 5 has ClassicLinkVPCSecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
104 5 has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
105 5 has IamInstanceProfile => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
106 5 has ImageId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
107 5 has InstanceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
108 5 has InstanceMonitoring => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
109 5 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
110 5 has KernelId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
111 5 has KeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
112 5 has LaunchConfigurationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
113 5 has PlacementTenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
114 5 has RamDiskId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
115 5 has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
116 5 has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
117 5 has UserData => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
118 }
119  
120 5 1;
« Cfn/Resource/AWS/ElasticBeanstalk/ConfigurationTemplate.pm ↑ Summary Cfn/Resource/AWS/MediaLive/InputSecurityGroup.pm »