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.

The parameters for gaining temporary access to one of your Amazon Lightsail instances.

Inheritance Hierarchy

System.Object
  Amazon.Lightsail.Model.InstanceAccessDetails

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

Syntax

C#
public class InstanceAccessDetails

The InstanceAccessDetails type exposes the following members

Constructors

NameDescription
Public Method InstanceAccessDetails()

Properties

NameTypeDescription
Public Property CertKey System.String

Gets and sets the property CertKey.

For SSH access, the public key to use when accessing your instance For OpenSSH clients (command line SSH), you should save this value to tempkey-cert.pub.

Public Property ExpiresAt System.DateTime

Gets and sets the property ExpiresAt.

For SSH access, the date on which the temporary keys expire.

Public Property HostKeys System.Collections.Generic.List<Amazon.Lightsail.Model.HostKeyAttributes>

Gets and sets the property HostKeys.

Describes the public SSH host keys or the RDP certificate.

Public Property InstanceName System.String

Gets and sets the property InstanceName.

The name of this Amazon Lightsail instance.

Public Property IpAddress System.String

Gets and sets the property IpAddress.

The public IP address of the Amazon Lightsail instance.

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

Gets and sets the property Ipv6Addresses.

The IPv6 address of the Amazon Lightsail instance.

Public Property Password System.String

Gets and sets the property Password.

For RDP access, the password for your Amazon Lightsail instance. Password will be an empty string if the password for your new instance is not ready yet. When you create an instance, it can take up to 15 minutes for the instance to be ready.

If you create an instance using any key pair other than the default (LightsailDefaultKeyPair), password will always be an empty string.

If you change the Administrator password on the instance, Lightsail will continue to return the original password value. When accessing the instance using RDP, you need to manually enter the Administrator password after changing it from the default.

Public Property PasswordData Amazon.Lightsail.Model.PasswordData

Gets and sets the property PasswordData.

For a Windows Server-based instance, an object with the data you can use to retrieve your password. This is only needed if password is empty and the instance is not new (and therefore the password is not ready yet). When you create an instance, it can take up to 15 minutes for the instance to be ready.

Public Property PrivateKey System.String

Gets and sets the property PrivateKey.

For SSH access, the temporary private key. For OpenSSH clients (command line SSH), you should save this value to tempkey).

Public Property Protocol Amazon.Lightsail.InstanceAccessProtocol

Gets and sets the property Protocol.

The protocol for these Amazon Lightsail instance access details.

Public Property Username System.String

Gets and sets the property Username.

The user name to use when logging in to the Amazon Lightsail instance.

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