

# KeyPair
<a name="API_KeyPair"></a>

Describes a key pair.

## Contents
<a name="API_KeyPair_Contents"></a>

 ** PrivateKey **   <a name="iot-Type-KeyPair-PrivateKey"></a>
The private key.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

 ** PublicKey **   <a name="iot-Type-KeyPair-PublicKey"></a>
The public key.  
Type: String  
Length Constraints: Minimum length of 1.  
Required: No

## See Also
<a name="API_KeyPair_SeeAlso"></a>

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/iot-2015-05-28/KeyPair) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iot-2015-05-28/KeyPair) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iot-2015-05-28/KeyPair) 