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

export interface DsAliasArgs {
  functionName: string | core.StringOut;

  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 description!: string | core.StringOut;

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

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

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

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

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

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

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