AWS SDK Version 3 for .NET
API Reference

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 virtual private servers, or instances.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.Lightsail.AmazonLightsailRequest
      Amazon.Lightsail.Model.CreateInstancesRequest

Namespace: Amazon.Lightsail.Model
Assembly: AWSSDK.Lightsail.dll
Version: 3.x.y.z

Syntax

C#
public class CreateInstancesRequest : AmazonLightsailRequest
         IAmazonWebServiceRequest

The CreateInstancesRequest type exposes the following members

Constructors

NameDescription
Public Method CreateInstancesRequest()

Properties

NameTypeDescription
Public Property AvailabilityZone System.String

Gets and sets the property AvailabilityZone.

The Availability Zone in which to create your instance. Use the following format: us-east-1a (case sensitive). You can get a list of availability zones by using the get regions operation. Be sure to add the include availability zones parameter to your request.

Public Property BlueprintId System.String

Gets and sets the property BlueprintId.

The ID for a virtual private server image (e.g., app_wordpress_4_4 or app_lamp_7_0). Use the get blueprints operation to return a list of available images (or blueprints).

Public Property 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 (e.g., micro_1_0).

Public Property CustomImageName System.String

Gets and sets the property CustomImageName.

(Deprecated) The name for your custom image.

In releases prior to June 12, 2017, this parameter was ignored by the API. It is now deprecated.

Public Property 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: ["MyFirstInstance","MySecondInstance"]

Public Property KeyPairName System.String

Gets and sets the property KeyPairName.

The name of your key pair.

Public Property 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 apt-get –y update.

Depending on the machine image you choose, the command to get software on your instance varies. Amazon Linux and CentOS use yum, Debian and Ubuntu use apt-get, and FreeBSD uses pkg. For a complete list, see the Dev Guide.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms