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 instances.

The create instances operation supports tag-based access control via request tags. For more information, see the Lightsail Developer Guide.

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 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.

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-2a (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 (app_wordpress_4_4 or app_lamp_7_0). Use the get blueprints operation to return a list of available images (or blueprints).

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.

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 (micro_1_0).

Public Property 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.

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 IpAddressType Amazon.Lightsail.IpAddressType

Gets and sets the property IpAddressType.

The IP address type for the instance.

The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.

The default value is dualstack.

Public Property KeyPairName System.String

Gets and sets the property KeyPairName.

The name of your key pair.

Public Property 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 TagResource action to tag a resource after it's created.

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 Amazon Lightsail Developer Guide.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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