import * as core from "@terrascript/core"; export interface AliasArgs extends core.ResourceArgs { /** * (Optional) The display name of the alias. The name must start with the word "alias" followed by a fo * rward slash (alias/) */ name?: string | core.StringOut; /** * (Optional) Creates an unique alias beginning with the specified prefix. */ namePrefix?: string | core.StringOut; /** * (Required) Identifier for the key for which the alias is for, can be either an ARN or key_id. */ targetKeyId: string | core.StringOut; } export class Alias extends core.Resource { /** * The Amazon Resource Name (ARN) of the key alias. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The display name of the alias. The name must start with the word "alias" followed by a fo * rward slash (alias/) */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * (Optional) Creates an unique alias beginning with the specified prefix. */ @core.attr(String, { computed: true }) public namePrefix?: string | core.StringOut; /** * The Amazon Resource Name (ARN) of the target key identifier. */ @core.attr(String, { computed: true }) public targetKeyArn!: string | core.StringOut; /** * (Required) Identifier for the key for which the alias is for, can be either an ARN or key_id. */ @core.attr(String) public targetKeyId!: string | core.StringOut; constructor(name: string, args?: AliasArgs) { super(name, "aws_kms_alias", args); } public override getNamespace(): string { return "aws_kms"; } }