line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::OpsWorks::CreateLayer; |
3
|
1
|
|
|
1
|
|
580
|
use Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
8
|
|
4
|
|
|
|
|
|
|
has Attributes => (is => 'ro', isa => 'Paws::OpsWorks::LayerAttributes'); |
5
|
|
|
|
|
|
|
has AutoAssignElasticIps => (is => 'ro', isa => 'Bool'); |
6
|
|
|
|
|
|
|
has AutoAssignPublicIps => (is => 'ro', isa => 'Bool'); |
7
|
|
|
|
|
|
|
has CloudWatchLogsConfiguration => (is => 'ro', isa => 'Paws::OpsWorks::CloudWatchLogsConfiguration'); |
8
|
|
|
|
|
|
|
has CustomInstanceProfileArn => (is => 'ro', isa => 'Str'); |
9
|
|
|
|
|
|
|
has CustomJson => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
has CustomRecipes => (is => 'ro', isa => 'Paws::OpsWorks::Recipes'); |
11
|
|
|
|
|
|
|
has CustomSecurityGroupIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
12
|
|
|
|
|
|
|
has EnableAutoHealing => (is => 'ro', isa => 'Bool'); |
13
|
|
|
|
|
|
|
has InstallUpdatesOnBoot => (is => 'ro', isa => 'Bool'); |
14
|
|
|
|
|
|
|
has LifecycleEventConfiguration => (is => 'ro', isa => 'Paws::OpsWorks::LifecycleEventConfiguration'); |
15
|
|
|
|
|
|
|
has Name => (is => 'ro', isa => 'Str', required => 1); |
16
|
|
|
|
|
|
|
has Packages => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
17
|
|
|
|
|
|
|
has Shortname => (is => 'ro', isa => 'Str', required => 1); |
18
|
|
|
|
|
|
|
has StackId => (is => 'ro', isa => 'Str', required => 1); |
19
|
|
|
|
|
|
|
has Type => (is => 'ro', isa => 'Str', required => 1); |
20
|
|
|
|
|
|
|
has UseEbsOptimizedInstances => (is => 'ro', isa => 'Bool'); |
21
|
|
|
|
|
|
|
has VolumeConfigurations => (is => 'ro', isa => 'ArrayRef[Paws::OpsWorks::VolumeConfiguration]'); |
22
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
6414
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
12
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateLayer'); |
26
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::OpsWorks::CreateLayerResult'); |
27
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
### main pod documentation begin ### |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Paws::OpsWorks::CreateLayer - Arguments for method CreateLayer on Paws::OpsWorks |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreateLayer on the |
39
|
|
|
|
|
|
|
AWS OpsWorks service. Use the attributes of this class |
40
|
|
|
|
|
|
|
as arguments to method CreateLayer. |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLayer. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
As an example: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$service_obj->CreateLayer(Att1 => $value1, Att2 => $value2, ...); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 Attributes => L<Paws::OpsWorks::LayerAttributes> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
One or more user-defined key-value pairs to be added to the stack |
56
|
|
|
|
|
|
|
attributes. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
To create a cluster layer, set the C<EcsClusterArn> attribute to the |
59
|
|
|
|
|
|
|
cluster's ARN. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 AutoAssignElasticIps => Bool |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Whether to automatically assign an Elastic IP address to the layer's |
66
|
|
|
|
|
|
|
instances. For more information, see How to Edit a Layer. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 AutoAssignPublicIps => Bool |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
For stacks that are running in a VPC, whether to automatically assign a |
73
|
|
|
|
|
|
|
public IP address to the layer's instances. For more information, see |
74
|
|
|
|
|
|
|
How to Edit a Layer. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 CloudWatchLogsConfiguration => L<Paws::OpsWorks::CloudWatchLogsConfiguration> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Specifies CloudWatch Logs configuration options for the layer. For more |
81
|
|
|
|
|
|
|
information, see CloudWatchLogsLogStream. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 CustomInstanceProfileArn => Str |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
The ARN of an IAM profile to be used for the layer's EC2 instances. For |
88
|
|
|
|
|
|
|
more information about IAM ARNs, see Using Identifiers. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 CustomJson => Str |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
A JSON-formatted string containing custom stack configuration and |
95
|
|
|
|
|
|
|
deployment attributes to be installed on the layer's instances. For |
96
|
|
|
|
|
|
|
more information, see Using Custom JSON. This feature is supported as |
97
|
|
|
|
|
|
|
of version 1.7.42 of the AWS CLI. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 CustomRecipes => L<Paws::OpsWorks::Recipes> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
A C<LayerCustomRecipes> object that specifies the layer custom recipes. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 CustomSecurityGroupIds => ArrayRef[Str|Undef] |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
An array containing the layer custom security group IDs. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
=head2 EnableAutoHealing => Bool |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Whether to disable auto healing for the layer. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head2 InstallUpdatesOnBoot => Bool |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Whether to install operating system and package updates when the |
122
|
|
|
|
|
|
|
instance boots. The default value is C<true>. To control when updates |
123
|
|
|
|
|
|
|
are installed, set this value to C<false>. You must then update your |
124
|
|
|
|
|
|
|
instances manually by using CreateDeployment to run the |
125
|
|
|
|
|
|
|
C<update_dependencies> stack command or by manually running C<yum> |
126
|
|
|
|
|
|
|
(Amazon Linux) or C<apt-get> (Ubuntu) on the instances. |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
To ensure that your instances have the latest security updates, we |
129
|
|
|
|
|
|
|
strongly recommend using the default value of C<true>. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=head2 LifecycleEventConfiguration => L<Paws::OpsWorks::LifecycleEventConfiguration> |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
A C<LifeCycleEventConfiguration> object that you can use to configure |
136
|
|
|
|
|
|
|
the Shutdown event to specify an execution timeout and enable or |
137
|
|
|
|
|
|
|
disable Elastic Load Balancer connection draining. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=head2 B<REQUIRED> Name => Str |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
The layer name, which is used by the console. |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
=head2 Packages => ArrayRef[Str|Undef] |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
An array of C<Package> objects that describes the layer packages. |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head2 B<REQUIRED> Shortname => Str |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
For custom layers only, use this parameter to specify the layer's short |
156
|
|
|
|
|
|
|
name, which is used internally by AWS OpsWorks Stacks and by Chef |
157
|
|
|
|
|
|
|
recipes. The short name is also used as the name for the directory |
158
|
|
|
|
|
|
|
where your app files are installed. It can have a maximum of 200 |
159
|
|
|
|
|
|
|
characters, which are limited to the alphanumeric characters, '-', '_', |
160
|
|
|
|
|
|
|
and '.'. |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
The built-in layers' short names are defined by AWS OpsWorks Stacks. |
163
|
|
|
|
|
|
|
For more information, see the Layer Reference. |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=head2 B<REQUIRED> StackId => Str |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
The layer stack ID. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=head2 B<REQUIRED> Type => Str |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
The layer type. A stack cannot have more than one built-in layer of the |
176
|
|
|
|
|
|
|
same type. It can have any number of custom layers. Built-in layers are |
177
|
|
|
|
|
|
|
not available in Chef 12 stacks. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
Valid values are: C<"aws-flow-ruby">, C<"ecs-cluster">, C<"java-app">, C<"lb">, C<"web">, C<"php-app">, C<"rails-app">, C<"nodejs-app">, C<"memcached">, C<"db-master">, C<"monitoring-master">, C<"custom"> |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=head2 UseEbsOptimizedInstances => Bool |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
Whether to use Amazon EBS-optimized instances. |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
=head2 VolumeConfigurations => ArrayRef[L<Paws::OpsWorks::VolumeConfiguration>] |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
A C<VolumeConfigurations> object that describes the layer's Amazon EBS |
190
|
|
|
|
|
|
|
volumes. |
191
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=head1 SEE ALSO |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreateLayer in L<Paws::OpsWorks> |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=cut |
206
|
|
|
|
|
|
|
|