AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the UpdateInstance operation. Updates a specified instance.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
Namespace: Amazon.OpsWorks.Model
Assembly: AWSSDK.OpsWorks.dll
Version: 3.x.y.z
public class UpdateInstanceRequest : AmazonOpsWorksRequest IAmazonWebServiceRequest
The UpdateInstanceRequest type exposes the following members
Name | Description | |
---|---|---|
UpdateInstanceRequest() |
Name | Type | Description | |
---|---|---|---|
AgentVersion | System.String |
Gets and sets the property AgentVersion. The default OpsWorks Stacks agent version. You have the following options:
The default setting is AgentVersion cannot be set to Chef 12.2. |
|
AmiId | System.String |
Gets and sets the property AmiId. The ID of the AMI that was used to create the instance. The value of this parameter must be the same AMI ID that the instance is already using. You cannot apply a new AMI to an instance by running UpdateInstance. UpdateInstance does not work on instances that are using custom AMIs. |
|
Architecture | Amazon.OpsWorks.Architecture |
Gets and sets the property Architecture. The instance architecture. Instance types do not necessarily support both architectures. For a list of the architectures that are supported by the different instance types, see Instance Families and Types. |
|
AutoScalingType | Amazon.OpsWorks.AutoScalingType |
Gets and sets the property AutoScalingType. For load-based or time-based instances, the type. Windows stacks can use only time-based instances. |
|
EbsOptimized | System.Boolean |
Gets and sets the property EbsOptimized. This property cannot be updated. |
|
Hostname | System.String |
Gets and sets the property Hostname. The instance host name. The following are character limits for instance host names.
|
|
InstallUpdatesOnBoot | System.Boolean |
Gets and sets the property InstallUpdatesOnBoot.
Whether to install operating system and package updates when the instance boots. The
default value is
We strongly recommend using the default value of |
|
InstanceId | System.String |
Gets and sets the property InstanceId. The instance ID. |
|
InstanceType | System.String |
Gets and sets the property InstanceType.
The instance type, such as |
|
LayerIds | System.Collections.Generic.List<System.String> |
Gets and sets the property LayerIds. The instance's layer IDs. |
|
Os | System.String |
Gets and sets the property Os. The instance's operating system, which must be set to one of the following. You cannot update an instance that is using a custom AMI.
Not all operating systems are supported with all versions of Chef. For more information about supported operating systems, see OpsWorks Stacks Operating Systems.
The default option is the current Amazon Linux version. If you set this parameter
to You can specify a different Linux operating system for the updated stack, but you cannot change from Linux to Windows or Windows to Linux. |
|
SshKeyName | System.String |
Gets and sets the property SshKeyName. The instance's Amazon EC2 key name. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5