C# Class Amazon.EC2.Model.ImportKeyPairRequest

Container for the parameters to the ImportKeyPair operation. Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.

Inheritance: AmazonEC2Request
Show file Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
ImportKeyPairRequest ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

ImportKeyPairRequest ( string keyName, string publicKeyMaterial ) : System

Instantiates ImportKeyPairRequest with the parameterized properties

Private Methods

Method Description
IsSetKeyName ( ) : bool
IsSetPublicKeyMaterial ( ) : bool

Method Details

ImportKeyPairRequest() public method

Empty constructor used to set properties independently even when a simple constructor is available
public ImportKeyPairRequest ( ) : System
return System

ImportKeyPairRequest() public method

Instantiates ImportKeyPairRequest with the parameterized properties
public ImportKeyPairRequest ( string keyName, string publicKeyMaterial ) : System
keyName string A unique name for the key pair.
publicKeyMaterial string The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
return System