import * as core from "@terrascript/core"; export interface UserSshKeyArgs extends core.ResourceArgs { /** * (Required) Specifies the public key encoding format to use in the response. To retrieve the public k * ey in ssh-rsa format, use `SSH`. To retrieve the public key in PEM format, use `PEM`. */ encoding: string | core.StringOut; /** * (Required) The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. */ publicKey: string | core.StringOut; /** * (Optional) The status to assign to the SSH public key. Active means the key can be used for authenti * cation with an AWS CodeCommit repository. Inactive means the key cannot be used. Default is `active` * . */ status?: string | core.StringOut; /** * (Required) The name of the IAM user to associate the SSH public key with. */ username: string | core.StringOut; } export class UserSshKey extends core.Resource { /** * (Required) Specifies the public key encoding format to use in the response. To retrieve the public k * ey in ssh-rsa format, use `SSH`. To retrieve the public key in PEM format, use `PEM`. */ @core.attr(String) public encoding!: string | core.StringOut; /** * The MD5 message digest of the SSH public key. */ @core.attr(String, { computed: true }) public fingerprint!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The SSH public key. The public key must be encoded in ssh-rsa format or PEM format. */ @core.attr(String) public publicKey!: string | core.StringOut; /** * The unique identifier for the SSH public key. */ @core.attr(String, { computed: true }) public sshPublicKeyId!: string | core.StringOut; /** * (Optional) The status to assign to the SSH public key. Active means the key can be used for authenti * cation with an AWS CodeCommit repository. Inactive means the key cannot be used. Default is `active` * . */ @core.attr(String, { computed: true }) public status?: string | core.StringOut; /** * (Required) The name of the IAM user to associate the SSH public key with. */ @core.attr(String) public username!: string | core.StringOut; constructor(name: string, args?: UserSshKeyArgs) { super(name, "aws_iam_user_ssh_key", args); } public override getNamespace(): string { return "aws_iam"; } }