import * as core from "@terrascript/core"; export interface FilterArgs extends core.SchemaArgs { name: string | core.StringOut; values: core.Array | core.ArrayOut; } export class Filter extends core.Schema { @core.attr(String) public name!: string | core.StringOut; @core.attr(String, { kind: "array" }) public values!: core.Array | core.ArrayOut; } export interface DsKeyPairArgs { /** * (Optional) Custom filter block as described below. */ filter?: core.Array | core.ArrayOut; /** * (Optional) Whether to include the public key material in the response. */ includePublicKey?: boolean | core.BooleanOut; /** * (Optional) The Key Pair name. */ keyName?: string | core.StringOut; /** * (Optional) The Key Pair ID. */ keyPairId?: string | core.StringOut; /** * Any tags assigned to the Key Pair. */ tags?: core.Map | core.MapOut; } export class DsKeyPair extends core.Data { /** * The ARN of the Key Pair. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The timestamp for when the key pair was created in ISO 8601 format. */ @core.attr(String, { computed: true }) public createTime!: string | core.StringOut; /** * (Optional) Custom filter block as described below. */ @core.attr(Filter, { kind: "array" }) public filter?: core.Array | core.ArrayOut; /** * The SHA-1 digest of the DER encoded private key. */ @core.attr(String, { computed: true }) public fingerprint!: string | core.StringOut; /** * ID of the Key Pair. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Whether to include the public key material in the response. */ @core.attr(Boolean) public includePublicKey?: boolean | core.BooleanOut; /** * (Optional) The Key Pair name. */ @core.attr(String) public keyName?: string | core.StringOut; /** * (Optional) The Key Pair ID. */ @core.attr(String) public keyPairId?: string | core.StringOut; /** * The type of key pair. */ @core.attr(String, { computed: true }) public keyType!: string | core.StringOut; /** * The public key material. */ @core.attr(String, { computed: true }) public publicKey!: string | core.StringOut; /** * Any tags assigned to the Key Pair. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; constructor(name: string, args?: DsKeyPairArgs) { super(name, "aws_key_pair", args); } public override getNamespace(): string { return "aws_ec2"; } }