import * as core from "@terrascript/core";

export interface DsAliasArgs {
  name: string | core.StringOut;
}

export class DsAlias extends core.Data<DsAliasArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public targetKeyArn!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public targetKeyId!: string | core.StringOut;

  constructor(name: string, args?: DsAliasArgs) {
    super(name, "aws_kms_alias", args);
  }

  public override getNamespace(): string {
    return "aws_kms";
  }
}
