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 CreateInstancesFromSnapshot operation. Creates one or more new instances from a manual or automatic snapshot of an instance.

The create instances from snapshot operation supports tag-based access control via request tags and resource tags applied to the resource identified by instance snapshot name. For more information, see the Amazon Lightsail Developer Guide.

Inheritance Hierarchy

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

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

Syntax

C#
public class CreateInstancesFromSnapshotRequest : AmazonLightsailRequest
         IAmazonWebServiceRequest

The CreateInstancesFromSnapshotRequest type exposes the following members

Constructors

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 AttachedDiskMapping System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<Amazon.Lightsail.Model.DiskMap>>

Gets and sets the property AttachedDiskMapping.

An object containing information about one or more disk mappings.

Public Property AvailabilityZone System.String

Gets and sets the property AvailabilityZone.

The Availability Zone where you want to create your instances. Use the following formatting: 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 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 InstanceNames System.Collections.Generic.List<System.String>

Gets and sets the property InstanceNames.

The names for your new instances.

Public Property InstanceSnapshotName System.String

Gets and sets the property InstanceSnapshotName.

The name of the instance snapshot on which you are basing your new instances. Use the get instance snapshots operation to return information about your existing snapshots.

Constraint:

  • This parameter cannot be defined together with the source instance name parameter. The instance snapshot name and source instance name parameters are mutually exclusive.

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 for your key pair.

Public Property RestoreDate System.String

Gets and sets the property RestoreDate.

The date of the automatic snapshot to use for the new instance. Use the get auto snapshots operation to identify the dates of the available automatic snapshots.

Constraints:

  • Must be specified in YYYY-MM-DD format.

  • This parameter cannot be defined together with the use latest restorable auto snapshot parameter. The restore date and use latest restorable auto snapshot parameters are mutually exclusive.

  • Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

Public Property SourceInstanceName System.String

Gets and sets the property SourceInstanceName.

The name of the source instance from which the source automatic snapshot was created.

Constraints:

  • This parameter cannot be defined together with the instance snapshot name parameter. The source instance name and instance snapshot name parameters are mutually exclusive.

  • Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

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 UseLatestRestorableAutoSnapshot System.Boolean

Gets and sets the property UseLatestRestorableAutoSnapshot.

A Boolean value to indicate whether to use the latest available automatic snapshot.

Constraints:

  • This parameter cannot be defined together with the restore date parameter. The use latest restorable auto snapshot and restore date parameters are mutually exclusive.

  • Define this parameter only when creating a new instance from an automatic snapshot. For more information, see the Amazon Lightsail Developer Guide.

Public Property UserData System.String

Gets and sets the property UserData.

You can create a launch script that configures a server with additional user data. For example, 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