All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ec2.kotlin.outputs.GetKeyPairResult.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property keyFingerprint If you created the key pair using Amazon EC2:
 * - For RSA key pairs, the key fingerprint is the SHA-1 digest of the DER encoded private key.
 * - For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with [OpenSSH 6.8](https://docs.aws.amazon.com/http://www.openssh.com/txt/release-6.8) .
 * If you imported the key pair to Amazon EC2:
 * - For RSA key pairs, the key fingerprint is the MD5 public key fingerprint as specified in section 4 of RFC 4716.
 * - For ED25519 key pairs, the key fingerprint is the base64-encoded SHA-256 digest, which is the default for OpenSSH, starting with [OpenSSH 6.8](https://docs.aws.amazon.com/http://www.openssh.com/txt/release-6.8) .
 * @property keyPairId The ID of the key pair.
 */
public data class GetKeyPairResult(
    public val keyFingerprint: String? = null,
    public val keyPairId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetKeyPairResult): GetKeyPairResult = GetKeyPairResult(
            keyFingerprint = javaType.keyFingerprint().map({ args0 -> args0 }).orElse(null),
            keyPairId = javaType.keyPairId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy