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 CreateInstances operation. Creates one or more Amazon Lightsail instances.
The create instances
operation supports tag-based access control via request
tags. For more information, see the Lightsail
Developer Guide.
Namespace: Amazon.Lightsail.Model
Assembly: AWSSDK.Lightsail.dll
Version: 3.x.y.z
public class CreateInstancesRequest : AmazonLightsailRequest IAmazonWebServiceRequest
The CreateInstancesRequest type exposes the following members
Name | Description | |
---|---|---|
CreateInstancesRequest() |
Name | Type | Description | |
---|---|---|---|
AddOns | System.Collections.Generic.List<Amazon.Lightsail.Model.AddOnRequest> |
Gets and sets the property AddOns. An array of objects representing the add-ons to enable for the new instance. |
|
AvailabilityZone | System.String |
Gets and sets the property AvailabilityZone.
The Availability Zone in which to create your instance. Use the following format:
|
|
BlueprintId | System.String |
Gets and sets the property BlueprintId.
The ID for a virtual private server image ( Use active blueprints when creating new instances. Inactive blueprints are listed to support customers with existing instances and are not necessarily available to create new instances. Blueprints are marked inactive when they become outdated due to operating system updates or new application releases. |
|
BundleId | System.String |
Gets and sets the property BundleId.
The bundle of specification information for your virtual private server (or instance),
including the pricing plan ( |
|
CustomImageName | System.String |
Gets and sets the property CustomImageName. (Discontinued) The name for your custom image. In releases prior to June 12, 2017, this parameter was ignored by the API. It is now discontinued. |
|
InstanceNames | System.Collections.Generic.List<System.String> |
Gets and sets the property InstanceNames.
The names to use for your new Lightsail instances. Separate multiple values using
quotation marks and commas, for example: |
|
IpAddressType | Amazon.Lightsail.IpAddressType |
Gets and sets the property IpAddressType. The IP address type for the instance.
The possible values are
The default value is |
|
KeyPairName | System.String |
Gets and sets the property KeyPairName. The name of your key pair. |
|
Tags | System.Collections.Generic.List<Amazon.Lightsail.Model.Tag> |
Gets and sets the property Tags. The tag keys and optional values to add to the resource during create.
Use the |
|
UserData | System.String |
Gets and sets the property UserData.
A launch script you can create that configures a server with additional user data.
For example, you might want to run
Depending on the machine image you choose, the command to get software on your instance
varies. Amazon Linux and CentOS use |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5