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 CreateInstance operation. Creates an instance in a specified stack. For more information, see Adding an Instance to a Layer.
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 CreateInstanceRequest : AmazonOpsWorksRequest IAmazonWebServiceRequest
The CreateInstanceRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
CreateInstanceRequest() |
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 |
![]() |
AmiId | System.String |
Gets and sets the property AmiId. A custom AMI ID to be used to create the instance. The AMI should be based on one of the supported operating systems. For more information, see Using Custom AMIs.
If you specify a custom AMI, you must set |
![]() |
Architecture | Amazon.OpsWorks.Architecture |
Gets and sets the property Architecture.
The instance architecture. The default option is |
![]() |
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. |
![]() |
AvailabilityZone | System.String |
Gets and sets the property AvailabilityZone. The instance Availability Zone. For more information, see Regions and Endpoints. |
![]() |
BlockDeviceMappings | System.Collections.Generic.List<Amazon.OpsWorks.Model.BlockDeviceMapping> |
Gets and sets the property BlockDeviceMappings.
An array of |
![]() |
EbsOptimized | System.Boolean |
Gets and sets the property EbsOptimized. Whether to create an Amazon EBS-optimized instance. |
![]() |
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 |
![]() |
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. An array that contains 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.
Not all operating systems are supported with all versions of Chef. For more information about the supported operating systems, see OpsWorks Stacks Operating Systems.
The default option is the current Amazon Linux version. If you set this parameter
to |
![]() |
RootDeviceType | Amazon.OpsWorks.RootDeviceType |
Gets and sets the property RootDeviceType. The instance root device type. For more information, see Storage for the Root Device. |
![]() |
SshKeyName | System.String |
Gets and sets the property SshKeyName. The instance's Amazon EC2 key-pair name. |
![]() |
StackId | System.String |
Gets and sets the property StackId. The stack ID. |
![]() |
SubnetId | System.String |
Gets and sets the property SubnetId. The ID of the instance's subnet. If the stack is running in a VPC, you can use this parameter to override the stack's default subnet ID value and direct OpsWorks Stacks to launch the instance in a different subnet. |
![]() |
Tenancy | System.String |
Gets and sets the property Tenancy.
The instance's tenancy option. The default option is no tenancy, or if the instance
is running in a VPC, inherit tenancy settings from the VPC. The following are valid
values for this parameter: |
![]() |
VirtualizationType | Amazon.OpsWorks.VirtualizationType |
Gets and sets the property VirtualizationType.
The instance's virtualization type, |
.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