import * as core from "@terrascript/core"; export interface KeyPairArgs extends core.ResourceArgs { /** * (Optional) The name of the Lightsail Key Pair. If omitted, a unique */ name?: string | core.StringOut; namePrefix?: string | core.StringOut; pgpKey?: string | core.StringOut; /** * (Required) The public key material. This public key will be */ publicKey?: string | core.StringOut; } export class KeyPair extends core.Resource { /** * The ARN of the Lightsail key pair */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The MD5 public key fingerprint for the encrypted */ @core.attr(String, { computed: true }) public encryptedFingerprint!: string | core.StringOut; @core.attr(String, { computed: true }) public encryptedPrivateKey!: string | core.StringOut; /** * The MD5 public key fingerprint as specified in section 4 of RFC 4716. */ @core.attr(String, { computed: true }) public fingerprint!: string | core.StringOut; /** * The name used for this key pair */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The name of the Lightsail Key Pair. If omitted, a unique */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; @core.attr(String) public namePrefix?: string | core.StringOut; @core.attr(String) public pgpKey?: string | core.StringOut; /** * the private key, base64 encoded. This is only populated */ @core.attr(String, { computed: true }) public privateKey!: string | core.StringOut; /** * (Required) The public key material. This public key will be */ @core.attr(String, { computed: true }) public publicKey?: string | core.StringOut; constructor(name: string, args?: KeyPairArgs) { super(name, "aws_lightsail_key_pair", args); } public override getNamespace(): string { return "aws_lightsail"; } }