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

export interface DsFunctionArgs {
  name: string | core.StringOut;

  stage: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsFunctionArgs) {
    super(name, "aws_cloudfront_function", args);
  }

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