Cfn/Resource/AWS/OpsWorks/Instance.pm

filter: Statementstmt 86.9% 93 / 107 Branchbran 10.0% 1 / 10 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 70.0% 14 / 20 Podpod 0.0% 0 / 2 totaltotal 77.7% 108 / 139 CC 6 SCAR 10.1
CC
6
Cov
80%
__ANON__
6.0
__ANON__
6.0
__ANON__
6.0
CRAP 2.7
« Cfn/Resource/AWS/ElasticBeanstalk/Application.pm ↑ Summary Cfn/Resource/AWS/Glue/Job.pm »
1 # AWS::OpsWorks::Instance generated from spec 18.4.0
2 4 ▶use Moose::Util::TypeConstraints;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Instance',
5 from 'HashRef',
6 12 ▶ via { Cfn::Resource::Properties::AWS::OpsWorks::Instance->new( %$_ ) };
Subroutine __ANON__: called CC=1 SCAR=0.0
7  
8 4 package Cfn::Resource::AWS::OpsWorks::Instance {
9 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 4 extends 'Cfn::Resource';
11 4 has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Instance', is => 'rw', coerce => 1);
12
13 sub AttributeList {
14 1 ▶ [ 'AvailabilityZone','PrivateDnsName','PrivateIp','PublicDnsName','PublicIp' ]
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 4 subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::EbsBlockDevice',
24 as 'Cfn::Value';
25  
26 coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::EbsBlockDevice',
27 from 'HashRef',
28 via {
29 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
30 0 return $f
31 } else {
32 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::EbsBlockDevice->new( %$_ );
33 }
34 4 };
35  
36 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::EbsBlockDevice {
37 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 4 extends 'Cfn::Value::TypedValue';
40
41 4 has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
42 4 has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
43 4 has SnapshotId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
44 4 has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
45 4 has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
46 }
47  
48 4 subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::TimeBasedAutoScaling',
49 as 'Cfn::Value';
50  
51 coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::TimeBasedAutoScaling',
52 from 'HashRef',
53 via {
54 2 ▶ 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 2 2
55 0 return $f
56 } else {
57 2 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::TimeBasedAutoScaling->new( %$_ );
58 }
59 4 };
60  
61 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::TimeBasedAutoScaling {
62 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
63 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
64 4 extends 'Cfn::Value::TypedValue';
65
66 4 has Friday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
67 4 has Monday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
68 4 has Saturday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
69 4 has Sunday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
70 4 has Thursday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
71 4 has Tuesday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
72 4 has Wednesday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
73 }
74 subtype 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping',
75 as 'Cfn::Value',
76 0 ▶ where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') },
Subroutine __ANON__: not called CC=2 SCAR=17.9
Branch: 1 branch
BranchTrueFalseTotal
$_->isa("Cfn::Value::Array") or $_->isa("Cfn::Value::Function") 0 0 0
77 0 ▶message { "$_ is not a Cfn::Value or a Cfn::Value::Function" };
Subroutine __ANON__: not called CC=1 SCAR=1.2
78  
79 coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping',
80 from 'HashRef',
81 via {
82 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
83 0 return $f
84 } else {
85 0 die 'Only accepts functions';
86 }
87 },
88 from 'ArrayRef',
89 via {
90 Cfn::Value::Array->new(Value => [
91 map {
92 0 ▶ Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping')->coerce($_)
Subroutine __ANON__: not called CC=1 SCAR=6.9
93 } @$_
94 ]);
95 4 };
96  
97 4 subtype 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping',
98 as 'Cfn::Value';
99  
100 coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping',
101 from 'HashRef',
102 via {
103 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
104 0 return $f
105 } else {
106 0 return Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::BlockDeviceMapping->new( %$_ );
107 }
108 4 };
109  
110 4 package Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::BlockDeviceMapping {
111 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
112 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
113 4 extends 'Cfn::Value::TypedValue';
114
115 4 has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
116 4 has Ebs => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::EbsBlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
117 4 has NoDevice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
118 4 has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
119 }
120  
121 4 package Cfn::Resource::Properties::AWS::OpsWorks::Instance {
122 4 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
123 4 ▶ use MooseX::StrictConstructor;
Subroutine BEGIN: called CC=1 SCAR=0.0
124 4 extends 'Cfn::Resource::Properties';
125
126 4 has AgentVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
127 4 has AmiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
128 4 has Architecture => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
129 4 has AutoScalingType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
130 4 has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
131 4 has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
132 4 has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
133 4 has ElasticIps => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
134 4 has Hostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
135 4 has InstallUpdatesOnBoot => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
136 4 has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
137 4 has LayerIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
138 4 has Os => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
139 4 has RootDeviceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
140 4 has SshKeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
141 4 has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
142 4 has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
143 4 has Tenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
144 4 has TimeBasedAutoScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::TimeBasedAutoScaling', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
145 4 has VirtualizationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable');
146 4 has Volumes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable');
147 }
148  
149 4 1;
150 ### main pod documentation begin ###
151  
152 =encoding UTF-8
153  
154 =head1 NAME
155  
156 Cfn::Resource::AWS::OpsWorks::Instance - Cfn resource for AWS::OpsWorks::Instance
157  
158 =head1 DESCRIPTION
159  
160 This module implements a Perl module that represents the CloudFormation object AWS::OpsWorks::Instance.
161  
162 See L<Cfn> for more information on how to use it.
163  
164 =head1 AUTHOR
165  
166 Jose Luis Martinez
167 CAPSiDE
168 jlmartinez@capside.com
169  
170 =head1 COPYRIGHT and LICENSE
171  
172 Copyright (c) 2013 by CAPSiDE
173 This code is distributed under the Apache 2 License. The full text of the
174 license can be found in the LICENSE file included with this module.
175  
176 =cut
« Cfn/Resource/AWS/ElasticBeanstalk/Application.pm ↑ Summary Cfn/Resource/AWS/Glue/Job.pm »