

# KeyPair


Describes an SSH key pair.

## Contents


 ** arn **   <a name="Lightsail-Type-KeyPair-arn"></a>
The Amazon Resource Name (ARN) of the key pair (`arn:aws:lightsail:us-east-2:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE`).  
Type: String  
Pattern: `.*\S.*`   
Required: No

 ** createdAt **   <a name="Lightsail-Type-KeyPair-createdAt"></a>
The timestamp when the key pair was created (`1479816991.349`).  
Type: Timestamp  
Required: No

 ** fingerprint **   <a name="Lightsail-Type-KeyPair-fingerprint"></a>
The RSA fingerprint of the key pair.  
Type: String  
Required: No

 ** location **   <a name="Lightsail-Type-KeyPair-location"></a>
The region name and Availability Zone where the key pair was created.  
Type: [ResourceLocation](API_ResourceLocation.md) object  
Required: No

 ** name **   <a name="Lightsail-Type-KeyPair-name"></a>
The friendly name of the SSH key pair.  
Type: String  
Pattern: `\w[\w\-]*\w`   
Required: No

 ** resourceType **   <a name="Lightsail-Type-KeyPair-resourceType"></a>
The resource type (usually `KeyPair`).  
Type: String  
Valid Values: `ContainerService | Instance | StaticIp | KeyPair | InstanceSnapshot | Domain | PeeredVpc | LoadBalancer | LoadBalancerTlsCertificate | Disk | DiskSnapshot | RelationalDatabase | RelationalDatabaseSnapshot | ExportSnapshotRecord | CloudFormationStackRecord | Alarm | ContactMethod | Distribution | Certificate | Bucket`   
Required: No

 ** supportCode **   <a name="Lightsail-Type-KeyPair-supportCode"></a>
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.  
Type: String  
Required: No

 ** tags **   <a name="Lightsail-Type-KeyPair-tags"></a>
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the [Amazon Lightsail Developer Guide](https://docs.aws.amazon.com/lightsail/latest/userguide/amazon-lightsail-tags).  
Type: Array of [Tag](API_Tag.md) objects  
Required: No

## See Also


For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/lightsail-2016-11-28/KeyPair) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/lightsail-2016-11-28/KeyPair) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/lightsail-2016-11-28/KeyPair) 