describeKeyPairs

Describes the specified key pairs or all of your key pairs.

For more information about key pairs, see Amazon EC2 key pairs in the Amazon EC2 User Guide.

Samples


fun main() { 
   //sampleStart 
   // This example displays the fingerprint for the specified key.
val resp = ec2Client.describeKeyPairs {
    keyNames = listOf<String>(
        "my-key-pair"
    )
} 
   //sampleEnd
}