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 SSH key pair.

Inheritance Hierarchy

System.Object
  Amazon.Lightsail.Model.KeyPair

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

Syntax

C#
public class KeyPair

The KeyPair type exposes the following members

Constructors

NameDescription
Public Method KeyPair()

Properties

NameTypeDescription
Public Property Arn System.String

Gets and sets the property Arn.

The Amazon Resource Name (ARN) of the key pair (arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE).

Public Property CreatedAt System.DateTime

Gets and sets the property CreatedAt.

The timestamp when the key pair was created (1479816991.349).

Public Property Fingerprint System.String

Gets and sets the property Fingerprint.

The RSA fingerprint of the key pair.

Public Property Location Amazon.Lightsail.Model.ResourceLocation

Gets and sets the property Location.

The region name and Availability Zone where the key pair was created.

Public Property Name System.String

Gets and sets the property Name.

The friendly name of the SSH key pair.

Public Property ResourceType Amazon.Lightsail.ResourceType

Gets and sets the property ResourceType.

The resource type (usually KeyPair).

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.

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