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.
For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.
Namespace: Amazon.EC2.Model
Assembly: AWSSDK.dll
Version: (assembly version)
public class ImportKeyPairRequest : AmazonEC2Request IRequestEvents
The ImportKeyPairRequest type exposes the following members
Name | Description | |
---|---|---|
ImportKeyPairRequest() | Empty constructor used to set properties independently even when a simple constructor is available | |
ImportKeyPairRequest(string, string) | Instantiates ImportKeyPairRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
KeyName | System.String |
Gets and sets the property KeyName.
A unique name for the key pair. |
|
PublicKeyMaterial | System.String |
Gets and sets the property PublicKeyMaterial.
The public key. You must base64 encode the public key material before sending it to AWS. |
.NET Framework:
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8