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, { computed: true })
  public intendedUse!: string | core.StringOut;
}

export interface DsPlaceIndexArgs {
  indexName: string | core.StringOut;

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

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

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

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

  @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 indexArn!: string | core.StringOut;

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

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