describeKeyPairs
abstract suspend fun describeKeyPairs(input: DescribeKeyPairsRequest = DescribeKeyPairsRequest { }): DescribeKeyPairsResponse
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
// This example displays the fingerprint for the specified key.
val resp = ec2Client.describeKeyPairs {
keyNames = listOf<String>(
"my-key-pair"
)
}Content copied to clipboard