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.

Describes an instance (a virtual private server).

Inheritance Hierarchy

System.Object
  Amazon.Lightsail.Model.Instance

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

Syntax

C#
public class Instance

The Instance type exposes the following members

Constructors

NameDescription
Public Method Instance()

Properties

NameTypeDescription
Public Property AddOns System.Collections.Generic.List<Amazon.Lightsail.Model.AddOn>

Gets and sets the property AddOns.

An array of objects representing the add-ons enabled on the instance.

Public Property Arn System.String

Gets and sets the property Arn.

The Amazon Resource Name (ARN) of the instance (arn:aws:lightsail:us-east-2:123456789101:Instance/244ad76f-8aad-4741-809f-12345EXAMPLE).

Public Property BlueprintId System.String

Gets and sets the property BlueprintId.

The blueprint ID (amazon_linux_2023).

Public Property BlueprintName System.String

Gets and sets the property BlueprintName.

The friendly name of the blueprint (Amazon Linux 2023).

Public Property BundleId System.String

Gets and sets the property BundleId.

The bundle for the instance (micro_x_x).

Public Property CreatedAt System.DateTime

Gets and sets the property CreatedAt.

The timestamp when the instance was created (1479734909.17) in Unix time format.

Public Property Hardware Amazon.Lightsail.Model.InstanceHardware

Gets and sets the property Hardware.

The size of the vCPU and the amount of RAM for the instance.

Public Property IpAddressType Amazon.Lightsail.IpAddressType

Gets and sets the property IpAddressType.

The IP address type of the instance.

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

Public Property Ipv6Addresses System.Collections.Generic.List<System.String>

Gets and sets the property Ipv6Addresses.

The IPv6 addresses of the instance.

Public Property IsStaticIp System.Boolean

Gets and sets the property IsStaticIp.

A Boolean value indicating whether this instance has a static IP assigned to it.

Public Property Location Amazon.Lightsail.Model.ResourceLocation

Gets and sets the property Location.

The region name and Availability Zone where the instance is located.

Public Property MetadataOptions Amazon.Lightsail.Model.InstanceMetadataOptions

Gets and sets the property MetadataOptions.

The metadata options for the Amazon Lightsail instance.

Public Property Name System.String

Gets and sets the property Name.

The name the user gave the instance (Amazon_Linux_2023-1).

Public Property Networking Amazon.Lightsail.Model.InstanceNetworking

Gets and sets the property Networking.

Information about the public ports and monthly data transfer rates for the instance.

Public Property PrivateIpAddress System.String

Gets and sets the property PrivateIpAddress.

The private IP address of the instance.

Public Property PublicIpAddress System.String

Gets and sets the property PublicIpAddress.

The public IP address of the instance.

Public Property ResourceType Amazon.Lightsail.ResourceType

Gets and sets the property ResourceType.

The type of resource (usually Instance).

Public Property SshKeyName System.String

Gets and sets the property SshKeyName.

The name of the SSH key being used to connect to the instance (LightsailDefaultKeyPair).

Public Property State Amazon.Lightsail.Model.InstanceState

Gets and sets the property State.

The status code and the state (running) for the instance.

Public Property SupportCode System.String

Gets and sets the property SupportCode.

The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

Public Property Tags System.Collections.Generic.List<Amazon.Lightsail.Model.Tag>

Gets and sets the property Tags.

The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

Public Property Username System.String

Gets and sets the property Username.

The user name for connecting to the instance (ec2-user).

Version Information

.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