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

export interface DataSourceConfigurationArgs extends core.SchemaArgs {
  intendedUse?: string | core.StringOut;
}

export class DataSourceConfiguration extends core.Schema<DataSourceConfigurationArgs> {
  @core.attr(String)
  public intendedUse?: string | core.StringOut;
}

export interface PlaceIndexArgs extends core.ResourceArgs {
  dataSource: string | core.StringOut;

  dataSourceConfiguration?: DataSourceConfiguration;

  description?: string | core.StringOut;

  indexName: string | core.StringOut;

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

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

export class PlaceIndex extends core.Resource<PlaceIndexArgs> {
  @core.attr(String, { computed: true })
  public createTime!: string | core.StringOut;

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

  @core.attr(DataSourceConfiguration, { computed: true })
  public dataSourceConfiguration?: DataSourceConfiguration;

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

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

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

  @core.attr(String)
  public indexName!: 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?: PlaceIndexArgs) {
    super(name, "aws_location_place_index", args);
  }

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