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

export interface IpSetsArgs extends core.SchemaArgs {
  ipAddresses: core.Array<string> | core.ArrayOut<core.StringOut>;

  ipFamily: string | core.StringOut;
}

export class IpSets extends core.Schema<IpSetsArgs> {
  @core.attr(String, { computed: true, kind: "array" })
  public ipAddresses!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

export interface AttributesArgs extends core.SchemaArgs {
  flowLogsEnabled: boolean | core.BooleanOut;

  flowLogsS3Bucket: string | core.StringOut;

  flowLogsS3Prefix: string | core.StringOut;
}

export class Attributes extends core.Schema<AttributesArgs> {
  @core.attr(Boolean, { computed: true })
  public flowLogsEnabled!: boolean | core.BooleanOut;

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

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

export interface DsAcceleratorArgs {
  arn?: string | core.StringOut;

  name?: string | core.StringOut;

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

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

  @core.attr(Attributes, { computed: true, kind: "array" })
  public attributes!: core.Array<Attributes> | core.ArrayOut<Attributes>;

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

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

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

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

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

  @core.attr(IpSets, { computed: true, kind: "array" })
  public ipSets!: core.Array<IpSets> | core.ArrayOut<IpSets>;

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

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

  constructor(name: string, args?: DsAcceleratorArgs) {
    super(name, "aws_globalaccelerator_accelerator", args);
  }

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