line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# AWS::OpsWorks::Instance generated from spec 18.4.0 |
2
|
4
|
|
|
4
|
|
3215
|
use Moose::Util::TypeConstraints; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
56
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
coerce 'Cfn::Resource::Properties::AWS::OpsWorks::Instance', |
5
|
|
|
|
|
|
|
from 'HashRef', |
6
|
|
|
|
|
|
|
via { Cfn::Resource::Properties::AWS::OpsWorks::Instance->new( %$_ ) }; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package Cfn::Resource::AWS::OpsWorks::Instance { |
9
|
4
|
|
|
4
|
|
9713
|
use Moose; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
44
|
|
10
|
|
|
|
|
|
|
extends 'Cfn::Resource'; |
11
|
|
|
|
|
|
|
has Properties => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Instance', is => 'rw', coerce => 1); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub AttributeList { |
14
|
1
|
|
|
1
|
0
|
6
|
[ 'AvailabilityZone','PrivateDnsName','PrivateIp','PublicDnsName','PublicIp' ] |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
sub supported_regions { |
17
|
1
|
|
|
1
|
0
|
1198
|
[ '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
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
30
|
|
|
|
|
|
|
return $f |
31
|
|
|
|
|
|
|
} else { |
32
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::EbsBlockDevice->new( %$_ ); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
}; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::EbsBlockDevice { |
37
|
4
|
|
|
4
|
|
31800
|
use Moose; |
|
4
|
|
|
|
|
22
|
|
|
4
|
|
|
|
|
28
|
|
38
|
4
|
|
|
4
|
|
27255
|
use MooseX::StrictConstructor; |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
44
|
|
39
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
has DeleteOnTermination => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
42
|
|
|
|
|
|
|
has Iops => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
43
|
|
|
|
|
|
|
has SnapshotId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
44
|
|
|
|
|
|
|
has VolumeSize => (isa => 'Cfn::Value::Integer', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
45
|
|
|
|
|
|
|
has VolumeType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
55
|
|
|
|
|
|
|
return $f |
56
|
|
|
|
|
|
|
} else { |
57
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::TimeBasedAutoScaling->new( %$_ ); |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
}; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::TimeBasedAutoScaling { |
62
|
4
|
|
|
4
|
|
15483
|
use Moose; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
26
|
|
63
|
4
|
|
|
4
|
|
26872
|
use MooseX::StrictConstructor; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
25
|
|
64
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
has Friday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
67
|
|
|
|
|
|
|
has Monday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
68
|
|
|
|
|
|
|
has Saturday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
69
|
|
|
|
|
|
|
has Sunday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
70
|
|
|
|
|
|
|
has Thursday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
71
|
|
|
|
|
|
|
has Tuesday => (isa => 'Cfn::Value::Hash|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
72
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
where { $_->isa('Cfn::Value::Array') or $_->isa('Cfn::Value::Function') }, |
77
|
|
|
|
|
|
|
message { "$_ is not a Cfn::Value or a Cfn::Value::Function" }; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
coerce 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping', |
80
|
|
|
|
|
|
|
from 'HashRef', |
81
|
|
|
|
|
|
|
via { |
82
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
83
|
|
|
|
|
|
|
return $f |
84
|
|
|
|
|
|
|
} else { |
85
|
|
|
|
|
|
|
die 'Only accepts functions'; |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
}, |
88
|
|
|
|
|
|
|
from 'ArrayRef', |
89
|
|
|
|
|
|
|
via { |
90
|
|
|
|
|
|
|
Cfn::Value::Array->new(Value => [ |
91
|
|
|
|
|
|
|
map { |
92
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::find_type_constraint('Cfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping')->coerce($_) |
93
|
|
|
|
|
|
|
} @$_ |
94
|
|
|
|
|
|
|
]); |
95
|
|
|
|
|
|
|
}; |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
if (my $f = Cfn::TypeLibrary::try_function($_)) { |
104
|
|
|
|
|
|
|
return $f |
105
|
|
|
|
|
|
|
} else { |
106
|
|
|
|
|
|
|
return Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::BlockDeviceMapping->new( %$_ ); |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
}; |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
package Cfn::Resource::Properties::Object::AWS::OpsWorks::Instance::BlockDeviceMapping { |
111
|
4
|
|
|
4
|
|
15114
|
use Moose; |
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
21
|
|
112
|
4
|
|
|
4
|
|
27147
|
use MooseX::StrictConstructor; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
38
|
|
113
|
|
|
|
|
|
|
extends 'Cfn::Value::TypedValue'; |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
has DeviceName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
116
|
|
|
|
|
|
|
has Ebs => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::EbsBlockDevice', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
117
|
|
|
|
|
|
|
has NoDevice => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
118
|
|
|
|
|
|
|
has VirtualName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
119
|
|
|
|
|
|
|
} |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
package Cfn::Resource::Properties::AWS::OpsWorks::Instance { |
122
|
4
|
|
|
4
|
|
13465
|
use Moose; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
39
|
|
123
|
4
|
|
|
4
|
|
27036
|
use MooseX::StrictConstructor; |
|
4
|
|
|
|
|
12
|
|
|
4
|
|
|
|
|
21
|
|
124
|
|
|
|
|
|
|
extends 'Cfn::Resource::Properties'; |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
has AgentVersion => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
127
|
|
|
|
|
|
|
has AmiId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
128
|
|
|
|
|
|
|
has Architecture => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
129
|
|
|
|
|
|
|
has AutoScalingType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
130
|
|
|
|
|
|
|
has AvailabilityZone => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
131
|
|
|
|
|
|
|
has BlockDeviceMappings => (isa => 'ArrayOfCfn::Resource::Properties::AWS::OpsWorks::Instance::BlockDeviceMapping', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
132
|
|
|
|
|
|
|
has EbsOptimized => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
133
|
|
|
|
|
|
|
has ElasticIps => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
134
|
|
|
|
|
|
|
has Hostname => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
135
|
|
|
|
|
|
|
has InstallUpdatesOnBoot => (isa => 'Cfn::Value::Boolean', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
136
|
|
|
|
|
|
|
has InstanceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
137
|
|
|
|
|
|
|
has LayerIds => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
138
|
|
|
|
|
|
|
has Os => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
139
|
|
|
|
|
|
|
has RootDeviceType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
140
|
|
|
|
|
|
|
has SshKeyName => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
141
|
|
|
|
|
|
|
has StackId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, required => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
142
|
|
|
|
|
|
|
has SubnetId => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
143
|
|
|
|
|
|
|
has Tenancy => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
144
|
|
|
|
|
|
|
has TimeBasedAutoScaling => (isa => 'Cfn::Resource::Properties::AWS::OpsWorks::Instance::TimeBasedAutoScaling', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
145
|
|
|
|
|
|
|
has VirtualizationType => (isa => 'Cfn::Value::String', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Immutable'); |
146
|
|
|
|
|
|
|
has Volumes => (isa => 'Cfn::Value::Array|Cfn::Value::Function|Cfn::DynamicValue', is => 'rw', coerce => 1, traits => [ 'CfnMutability' ], mutability => 'Mutable'); |
147
|
|
|
|
|
|
|
} |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
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 |