line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::OpsWorks::UpdateInstance; |
3
|
1
|
|
|
1
|
|
499
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
4
|
|
|
|
|
|
|
has AgentVersion => (is => 'ro', isa => 'Str'); |
5
|
|
|
|
|
|
|
has AmiId => (is => 'ro', isa => 'Str'); |
6
|
|
|
|
|
|
|
has Architecture => (is => 'ro', isa => 'Str'); |
7
|
|
|
|
|
|
|
has AutoScalingType => (is => 'ro', isa => 'Str'); |
8
|
|
|
|
|
|
|
has EbsOptimized => (is => 'ro', isa => 'Bool'); |
9
|
|
|
|
|
|
|
has Hostname => (is => 'ro', isa => 'Str'); |
10
|
|
|
|
|
|
|
has InstallUpdatesOnBoot => (is => 'ro', isa => 'Bool'); |
11
|
|
|
|
|
|
|
has InstanceId => (is => 'ro', isa => 'Str', required => 1); |
12
|
|
|
|
|
|
|
has InstanceType => (is => 'ro', isa => 'Str'); |
13
|
|
|
|
|
|
|
has LayerIds => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
14
|
|
|
|
|
|
|
has Os => (is => 'ro', isa => 'Str'); |
15
|
|
|
|
|
|
|
has SshKeyName => (is => 'ro', isa => 'Str'); |
16
|
|
|
|
|
|
|
|
17
|
1
|
|
|
1
|
|
6083
|
use MooseX::ClassAttribute; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
10
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateInstance'); |
20
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); |
21
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
### main pod documentation begin ### |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Paws::OpsWorks::UpdateInstance - Arguments for method UpdateInstance on Paws::OpsWorks |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 DESCRIPTION |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
This class represents the parameters used for calling the method UpdateInstance on the |
33
|
|
|
|
|
|
|
AWS OpsWorks service. Use the attributes of this class |
34
|
|
|
|
|
|
|
as arguments to method UpdateInstance. |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateInstance. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
As an example: |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
$service_obj->UpdateInstance(Att1 => $value1, Att2 => $value2, ...); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
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. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head2 AgentVersion => Str |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
The default AWS OpsWorks Stacks agent version. You have the following |
50
|
|
|
|
|
|
|
options: |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=over |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=item * |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
C<INHERIT> - Use the stack's default agent version setting. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=item * |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
I<version_number> - Use the specified agent version. This value |
61
|
|
|
|
|
|
|
overrides the stack's default setting. To update the agent version, you |
62
|
|
|
|
|
|
|
must edit the instance configuration and specify a new version. AWS |
63
|
|
|
|
|
|
|
OpsWorks Stacks then automatically installs that version on the |
64
|
|
|
|
|
|
|
instance. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The default setting is C<INHERIT>. To specify an agent version, you |
69
|
|
|
|
|
|
|
must use the complete version number, not the abbreviated number shown |
70
|
|
|
|
|
|
|
on the console. For a list of available agent version numbers, call |
71
|
|
|
|
|
|
|
DescribeAgentVersions. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
AgentVersion cannot be set to Chef 12.2. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 AmiId => Str |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The ID of the AMI that was used to create the instance. The value of |
80
|
|
|
|
|
|
|
this parameter must be the same AMI ID that the instance is already |
81
|
|
|
|
|
|
|
using. You cannot apply a new AMI to an instance by running |
82
|
|
|
|
|
|
|
UpdateInstance. UpdateInstance does not work on instances that are |
83
|
|
|
|
|
|
|
using custom AMIs. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 Architecture => Str |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
The instance architecture. Instance types do not necessarily support |
90
|
|
|
|
|
|
|
both architectures. For a list of the architectures that are supported |
91
|
|
|
|
|
|
|
by the different instance types, see Instance Families and Types. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Valid values are: C<"x86_64">, C<"i386"> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head2 AutoScalingType => Str |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
For load-based or time-based instances, the type. Windows stacks can |
98
|
|
|
|
|
|
|
use only time-based instances. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Valid values are: C<"load">, C<"timer"> |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head2 EbsOptimized => Bool |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
This property cannot be updated. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head2 Hostname => Str |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
The instance host name. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 InstallUpdatesOnBoot => Bool |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Whether to install operating system and package updates when the |
117
|
|
|
|
|
|
|
instance boots. The default value is C<true>. To control when updates |
118
|
|
|
|
|
|
|
are installed, set this value to C<false>. You must then update your |
119
|
|
|
|
|
|
|
instances manually by using CreateDeployment to run the |
120
|
|
|
|
|
|
|
C<update_dependencies> stack command or by manually running C<yum> |
121
|
|
|
|
|
|
|
(Amazon Linux) or C<apt-get> (Ubuntu) on the instances. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
We strongly recommend using the default value of C<true>, to ensure |
124
|
|
|
|
|
|
|
that your instances have the latest security updates. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 B<REQUIRED> InstanceId => Str |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
The instance ID. |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head2 InstanceType => Str |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
The instance type, such as C<t2.micro>. For a list of supported |
137
|
|
|
|
|
|
|
instance types, open the stack in the console, choose B<Instances>, and |
138
|
|
|
|
|
|
|
choose B<+ Instance>. The B<Size> list contains the currently supported |
139
|
|
|
|
|
|
|
types. For more information, see Instance Families and Types. The |
140
|
|
|
|
|
|
|
parameter values that you use to specify the various types are in the |
141
|
|
|
|
|
|
|
B<API Name> column of the B<Available Instance Types> table. |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=head2 LayerIds => ArrayRef[Str|Undef] |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
The instance's layer IDs. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 Os => Str |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
The instance's operating system, which must be set to one of the |
154
|
|
|
|
|
|
|
following. You cannot update an instance that is using a custom AMI. |
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=over |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=item * |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
A supported Linux operating system: An Amazon Linux version, such as |
161
|
|
|
|
|
|
|
C<Amazon Linux 2017.03>, C<Amazon Linux 2016.09>, C<Amazon Linux |
162
|
|
|
|
|
|
|
2016.03>, C<Amazon Linux 2015.09>, or C<Amazon Linux 2015.03>. |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=item * |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
A supported Ubuntu operating system, such as C<Ubuntu 16.04 LTS>, |
167
|
|
|
|
|
|
|
C<Ubuntu 14.04 LTS>, or C<Ubuntu 12.04 LTS>. |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=item * |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
C<CentOS Linux 7> |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
=item * |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
C<Red Hat Enterprise Linux 7> |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
=item * |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
A supported Windows operating system, such as C<Microsoft Windows |
180
|
|
|
|
|
|
|
Server 2012 R2 Base>, C<Microsoft Windows Server 2012 R2 with SQL |
181
|
|
|
|
|
|
|
Server Express>, C<Microsoft Windows Server 2012 R2 with SQL Server |
182
|
|
|
|
|
|
|
Standard>, or C<Microsoft Windows Server 2012 R2 with SQL Server Web>. |
183
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=back |
185
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
For more information on the supported operating systems, see AWS |
187
|
|
|
|
|
|
|
OpsWorks Stacks Operating Systems. |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
The default option is the current Amazon Linux version. If you set this |
190
|
|
|
|
|
|
|
parameter to C<Custom>, you must use the AmiId parameter to specify the |
191
|
|
|
|
|
|
|
custom AMI that you want to use. For more information on the supported |
192
|
|
|
|
|
|
|
operating systems, see Operating Systems. For more information on how |
193
|
|
|
|
|
|
|
to use custom AMIs with OpsWorks, see Using Custom AMIs. |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
You can specify a different Linux operating system for the updated |
196
|
|
|
|
|
|
|
stack, but you cannot change from Linux to Windows or Windows to Linux. |
197
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
=head2 SshKeyName => Str |
201
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
The instance's Amazon EC2 key name. |
203
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
=head1 SEE ALSO |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method UpdateInstance in L<Paws::OpsWorks> |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
=cut |
218
|
|
|
|
|
|
|
|