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

export interface ConfigurationArgs extends core.SchemaArgs {
  style: string | core.StringOut;
}

export class Configuration extends core.Schema<ConfigurationArgs> {
  @core.attr(String, { computed: true })
  public style!: string | core.StringOut;
}

export interface DsMapArgs {
  mapName: string | core.StringOut;

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

export class DsMap extends core.Data<DsMapArgs> {
  @core.attr(Configuration, { computed: true, kind: "array" })
  public configuration!:
    | core.Array<Configuration>
    | core.ArrayOut<Configuration>;

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

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

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

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

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

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

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

  constructor(name: string, args?: DsMapArgs) {
    super(name, "aws_location_map", args);
  }

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