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

export interface DsDistributionArgs {
  id: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class DsDistribution extends core.Data<DsDistributionArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public aliases!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(Boolean, { computed: true })
  public enabled!: boolean | core.BooleanOut;

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

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

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

  @core.attr(Number, { computed: true })
  public inProgressValidationBatches!: number | core.NumberOut;

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DsDistributionArgs) {
    super(name, "aws_cloudfront_distribution", args);
  }

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