import * as core from "@terrascript/core"; export interface DataSourceConfigurationArgs extends core.SchemaArgs { intendedUse?: string | core.StringOut; } export class DataSourceConfiguration extends core.Schema { @core.attr(String) public intendedUse?: string | core.StringOut; } export interface PlaceIndexArgs extends core.ResourceArgs { /** * (Required) Specifies the geospatial data provider for the new place index. */ dataSource: string | core.StringOut; /** * (Optional) Configuration block with the data storage option chosen for requesting Places. Detailed b * elow. */ dataSourceConfiguration?: DataSourceConfiguration; /** * (Optional) The optional description for the place index resource. */ description?: string | core.StringOut; /** * (Required) The name of the place index resource. */ indexName: string | core.StringOut; /** * (Optional) Key-value tags for the place index. If configured with a provider [`default_tags` configu * ration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configu * ration-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class PlaceIndex extends core.Resource { /** * The timestamp for when the place index resource was created in ISO 8601 format. */ @core.attr(String, { computed: true }) public createTime!: string | core.StringOut; /** * (Required) Specifies the geospatial data provider for the new place index. */ @core.attr(String) public dataSource!: string | core.StringOut; /** * (Optional) Configuration block with the data storage option chosen for requesting Places. Detailed b * elow. */ @core.attr(DataSourceConfiguration, { computed: true }) public dataSourceConfiguration?: DataSourceConfiguration; /** * (Optional) The optional description for the place index resource. */ @core.attr(String) public description?: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS. */ @core.attr(String, { computed: true }) public indexArn!: string | core.StringOut; /** * (Required) The name of the place index resource. */ @core.attr(String) public indexName!: string | core.StringOut; /** * (Optional) Key-value tags for the place index. If configured with a provider [`default_tags` configu * ration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configu * ration-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * The timestamp for when the place index resource was last update in ISO 8601. */ @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"; } }