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)
  public style!: string | core.StringOut;
}

export interface MapArgs extends core.ResourceArgs {
  configuration: Configuration;

  description?: string | core.StringOut;

  mapName: string | core.StringOut;

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

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

export class Map extends core.Resource<MapArgs> {
  @core.attr(Configuration)
  public configuration!: Configuration;

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

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

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

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

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

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