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

export interface DsIpRangesArgs {
  regions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  services: core.Array<string> | core.ArrayOut<core.StringOut>;

  url?: string | core.StringOut;
}

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

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

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

  @core.attr(String, { computed: true, kind: "array" })
  public ipv6CidrBlocks!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public regions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public services!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

  @core.attr(String)
  public url?: string | core.StringOut;

  constructor(name: string, args?: DsIpRangesArgs) {
    super(name, "aws_ip_ranges", args);
  }

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