Cfn/Resource/AWS/AutoScaling/LaunchConfiguration.pm

filter: Statementstmt 91.1% 93 / 102 Branchbran 30.0% 3 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.0% 17 / 20 Podpod 0.0% 0 / 2 totaltotal 84.3% 113 / 134 CC 6 SCAR 7.4
CC
6
Cov
86%
__ANON__
6.0
__ANON__
6.0
__ANON__
2.3
CRAP 2.1
« Cfn/Resource/AWS/Route53/RecordSetGroup.pm ↑ Summary Cfn/Resource/AWS/ElasticLoadBalancingV2/TargetGroup.pm »
1 # AWS::AutoScaling::LaunchConfiguration generated from spec 20.1.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 ▶ [ '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  
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::Object::AWS::AutoScaling::LaunchConfiguration::BlockDevice->new( %$_ );
33 }
34 5 };
35  
36 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::BlockDevice {
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  
49 5 subtype 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::MetadataOption',
50 as 'Cfn::Value';
51  
52 coerce 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::MetadataOption',
53 from 'HashRef',
54 via {
55 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
56 0 return $f
57 } else {
58 0 return Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::MetadataOption->new( %$_ );
59 }
60 5 };
61  
62 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::MetadataOption {
63 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
64 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
65 5 extends 'Cfn::Value::TypedValue';
66
67 5 has HttpEndpoint => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 5 has HttpPutResponseHopLimit => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69 5 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") 0 4 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 via {
79 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
80 0 return $f
81 } else {
82 0 die 'Only accepts functions';
83 }
84 },
85 from 'ArrayRef',
86 via {
87 Cfn::Value::Array->new(Value => [
88 map {
89 4 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping')->coerce($_)
Subroutine __ANON__: called CC=1 SCAR=0.0
90 } @$_
91 ]);
92 5 };
93  
94 5 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 via {
100 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
101 0 return $f
102 } else {
103 8 return Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping->new( %$_ );
104 }
105 5 };
106  
107 5 package Cfn::Resource::Properties::Object::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping {
108 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
109 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
110 5 extends 'Cfn::Value::TypedValue';
111
112 5 has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
113 5 has Ebs => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
114 5 has NoDevice => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
115 5 has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 }
117  
118 5 package Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration {
119 5 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
120 5 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
121 5 extends 'Cfn::Resource::Properties';
122
123 5 has AssociatePublicIpAddress => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
124 5 has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
125 5 has ClassicLinkVPCId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
126 5 has ClassicLinkVPCSecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
127 5 has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
128 5 has IamInstanceProfile => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
129 5 has ImageId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130 5 has InstanceId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131 5 has InstanceMonitoring => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132 5 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133 5 has KernelId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
134 5 has KeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
135 5 has LaunchConfigurationName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
136 5 has MetadataOptions => (isa => 'Cfn::Resource::Properties::AWS::AutoScaling::LaunchConfiguration::MetadataOption', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
137 5 has PlacementTenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
138 5 has RamDiskId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
139 5 has SecurityGroups => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
140 5 has SpotPrice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
141 5 has UserData => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
142 }
143  
144 5 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 »