Cfn/Resource/AWS/AutoScaling/LaunchConfiguration.pm

filter: Statementstmt 89.2% 91 / 102 Branchbran 30.0% 3 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 15 / 20 Podpod 0.0% 0 / 2 totaltotal 81.3% 109 / 134 CC 6 SCAR 7.8
CC
6
Cov
84%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.3
CRAP 2.2
« Cfn/Resource/AWS/Route53/RecordSetGroup.pm ↑ Summary Cfn/Resource/AWS/ElasticLoadBalancingV2/TargetGroup.pm »
1 # AWS::AutoScaling::LaunchConfiguration generated from spec 22.0.0
2 3 ▶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 40 ▶ via { Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 3 package Cfn::Resource::AWS::AutoScaling::LaunchConfiguration {
9 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 extends 'Cfn::Resource';
11 3 has Properties => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration', is => 'rw', coerce => 1);
12
13 0 ▶ sub AttributeList {
Subroutine AttributeList: not called CC=1 SCAR=6.9
Pod undocumented
14 0 [ ]
15 }
16 0 ▶ sub supported_regions {
Subroutine supported_regions: not called CC=1 SCAR=6.9
Pod undocumented
17 0 [ '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' ]
18 }
19 }
20  
21  
22  
23 3 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 6 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
29 6 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
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::Object::AWS::AutoScaling::LaunchConfiguration::BlockDevice->new( %$_ );
33 }
34 3 };
35  
36 3 package Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::BlockDevice {
37 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 3 extends 'Cfn::Value::TypedValue';
40
41 3 has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 3 has Encrypted => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 3 has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 3 has SnapshotId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45 3 has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46 3 has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
47 }
48  
49 3 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::MetadataOptions',
50 as 'Cfn::Value';
51  
52 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::MetadataOptions',
53 from 'HashRef',
54 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
55 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
56 0 return $f
57 } else {
58 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::MetadataOptions->new( %$_ );
59 }
60 3 };
61  
62 3 package Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::MetadataOptions {
63 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
64 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
65 3 extends 'Cfn::Value::TypedValue';
66
67 3 has HttpEndpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 3 has HttpPutResponseHopLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69 3 has HttpTokens => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
70 }
71 subtype 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
72 as 'Cfn::Value',
73 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") 4 0 4
74 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
75  
76 coerce 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
77 from 'HashRef',
78 0 ▶ via {
Subroutine __ANON__: not called CC=2 SCAR=17.9
79 0 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 0 0
80 0 return $f
81 } else {
82 0 die 'Only accepts functions';
83 }
84 },
85 from 'ArrayRef',
86 4 ▶ via {
Subroutine __ANON__: called CC=1 SCAR=0.0
87 Cfn::Value::Array->new(Value => [
88 map {
89 4 Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping')->coerce($_)
90 } @$_
91 ]);
92 3 };
93  
94 3 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
95 as 'Cfn::Value';
96  
97 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping',
98 from 'HashRef',
99 8 ▶ via {
Subroutine __ANON__: called CC=2 SCAR=8.1
100 8 ▶ if (my $f = Cfn::TypeLibrary::try_function($_)) {
Branch: 1 branch
BranchTrueFalseTotal
if (my $f = Cfn::TypeLibrary::try_function($_)) { } 0 8 8
101 0 return $f
102 } else {
103 8 return Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping->new( %$_ );
104 }
105 3 };
106  
107 3 package Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping {
108 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
109 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
110 3 extends 'Cfn::Value::TypedValue';
111
112 3 has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 3 has Ebs => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 3 has NoDevice => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115 3 has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 }
117  
118 3 package Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration {
119 3 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
120 3 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
121 3 extends 'Cfn::Resource::Properties';
122
123 3 has AssociatePublicIpAddress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
124 3 has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
125 3 has ClassicLinkVPCId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
126 3 has ClassicLinkVPCSecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
127 3 has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
128 3 has IamInstanceProfile => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
129 3 has ImageId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130 3 has InstanceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131 3 has InstanceMonitoring => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132 3 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133 3 has KernelId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
134 3 has KeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
135 3 has LaunchConfigurationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
136 3 has MetadataOptions => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::MetadataOptions', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
137 3 has PlacementTenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
138 3 has RamDiskId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
139 3 has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
140 3 has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
141 3 has UserData => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
142 }
143  
144 3 1;
145 ### main pod documentation begin ###
146  
147 =encoding UTF-8
148  
149 =head1 NAME
150  
151 Cfn::Resource::AWS::AutoScaling::LaunchConfiguration - Cfn resource for AWS::AutoScaling::LaunchConfiguration
152  
153 =head1 DESCRIPTION
154  
155 This module implements a Perl module that represents the CloudFormation object AWS::AutoScaling::LaunchConfiguration.
156  
157 See L<Cfn> for more information on how to use it.
158  
159 =head1 AUTHOR
160  
161 Jose Luis Martinez
162 CAPSiDE
163 jlmartinez@capside.com
164  
165 =head1 COPYRIGHT and LICENSE
166  
167 Copyright (c) 2013 by CAPSiDE
168 This code is distributed under the Apache 2 License. The full text of the
169 license can be found in the LICENSE file included with this module.
170  
171 =cut
« Cfn/Resource/AWS/Route53/RecordSetGroup.pm ↑ Summary Cfn/Resource/AWS/ElasticLoadBalancingV2/TargetGroup.pm »