aws logo
AWS Classic v5.41.0, May 15 23

aws.location.PlaceIndex

Explore with Pulumi AI

Provides a Location Service Place Index.

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = new Aws.Location.PlaceIndex("example", new()
    {
        DataSource = "Here",
        IndexName = "example",
    });

});
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws/location"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := location.NewPlaceIndex(ctx, "example", &location.PlaceIndexArgs{
			DataSource: pulumi.String("Here"),
			IndexName:  pulumi.String("example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.location.PlaceIndex;
import com.pulumi.aws.location.PlaceIndexArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new PlaceIndex("example", PlaceIndexArgs.builder()        
            .dataSource("Here")
            .indexName("example")
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example = aws.location.PlaceIndex("example",
    data_source="Here",
    index_name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = new aws.location.PlaceIndex("example", {
    dataSource: "Here",
    indexName: "example",
});
resources:
  example:
    type: aws:location:PlaceIndex
    properties:
      dataSource: Here
      indexName: example

Create PlaceIndex Resource

new PlaceIndex(name: string, args: PlaceIndexArgs, opts?: CustomResourceOptions);
@overload
def PlaceIndex(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               data_source: Optional[str] = None,
               data_source_configuration: Optional[PlaceIndexDataSourceConfigurationArgs] = None,
               description: Optional[str] = None,
               index_name: Optional[str] = None,
               tags: Optional[Mapping[str, str]] = None)
@overload
def PlaceIndex(resource_name: str,
               args: PlaceIndexArgs,
               opts: Optional[ResourceOptions] = None)
func NewPlaceIndex(ctx *Context, name string, args PlaceIndexArgs, opts ...ResourceOption) (*PlaceIndex, error)
public PlaceIndex(string name, PlaceIndexArgs args, CustomResourceOptions? opts = null)
public PlaceIndex(String name, PlaceIndexArgs args)
public PlaceIndex(String name, PlaceIndexArgs args, CustomResourceOptions options)
type: aws:location:PlaceIndex
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PlaceIndexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args PlaceIndexArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args PlaceIndexArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PlaceIndexArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PlaceIndexArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PlaceIndex Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The PlaceIndex resource accepts the following input properties:

DataSource string

Specifies the geospatial data provider for the new place index.

IndexName string

The name of the place index resource.

DataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

Description string

The optional description for the place index resource.

Tags Dictionary<string, string>

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

DataSource string

Specifies the geospatial data provider for the new place index.

IndexName string

The name of the place index resource.

DataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

Description string

The optional description for the place index resource.

Tags map[string]string

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

dataSource String

Specifies the geospatial data provider for the new place index.

indexName String

The name of the place index resource.

dataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description String

The optional description for the place index resource.

tags Map<String,String>

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

dataSource string

Specifies the geospatial data provider for the new place index.

indexName string

The name of the place index resource.

dataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description string

The optional description for the place index resource.

tags {[key: string]: string}

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

data_source str

Specifies the geospatial data provider for the new place index.

index_name str

The name of the place index resource.

data_source_configuration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description str

The optional description for the place index resource.

tags Mapping[str, str]

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

dataSource String

Specifies the geospatial data provider for the new place index.

indexName String

The name of the place index resource.

dataSourceConfiguration Property Map

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description String

The optional description for the place index resource.

tags Map<String>

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Outputs

All input properties are implicitly available as output properties. Additionally, the PlaceIndex resource produces the following output properties:

CreateTime string

The timestamp for when the place index resource was created in ISO 8601 format.

Id string

The provider-assigned unique ID for this managed resource.

IndexArn string

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the place index resource was last update in ISO 8601.

CreateTime string

The timestamp for when the place index resource was created in ISO 8601 format.

Id string

The provider-assigned unique ID for this managed resource.

IndexArn string

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the place index resource was last update in ISO 8601.

createTime String

The timestamp for when the place index resource was created in ISO 8601 format.

id String

The provider-assigned unique ID for this managed resource.

indexArn String

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the place index resource was last update in ISO 8601.

createTime string

The timestamp for when the place index resource was created in ISO 8601 format.

id string

The provider-assigned unique ID for this managed resource.

indexArn string

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime string

The timestamp for when the place index resource was last update in ISO 8601.

create_time str

The timestamp for when the place index resource was created in ISO 8601 format.

id str

The provider-assigned unique ID for this managed resource.

index_arn str

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

update_time str

The timestamp for when the place index resource was last update in ISO 8601.

createTime String

The timestamp for when the place index resource was created in ISO 8601 format.

id String

The provider-assigned unique ID for this managed resource.

indexArn String

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the place index resource was last update in ISO 8601.

Look up Existing PlaceIndex Resource

Get an existing PlaceIndex resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: PlaceIndexState, opts?: CustomResourceOptions): PlaceIndex
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        create_time: Optional[str] = None,
        data_source: Optional[str] = None,
        data_source_configuration: Optional[PlaceIndexDataSourceConfigurationArgs] = None,
        description: Optional[str] = None,
        index_arn: Optional[str] = None,
        index_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        update_time: Optional[str] = None) -> PlaceIndex
func GetPlaceIndex(ctx *Context, name string, id IDInput, state *PlaceIndexState, opts ...ResourceOption) (*PlaceIndex, error)
public static PlaceIndex Get(string name, Input<string> id, PlaceIndexState? state, CustomResourceOptions? opts = null)
public static PlaceIndex get(String name, Output<String> id, PlaceIndexState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreateTime string

The timestamp for when the place index resource was created in ISO 8601 format.

DataSource string

Specifies the geospatial data provider for the new place index.

DataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

Description string

The optional description for the place index resource.

IndexArn string

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

IndexName string

The name of the place index resource.

Tags Dictionary<string, string>

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll Dictionary<string, string>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the place index resource was last update in ISO 8601.

CreateTime string

The timestamp for when the place index resource was created in ISO 8601 format.

DataSource string

Specifies the geospatial data provider for the new place index.

DataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

Description string

The optional description for the place index resource.

IndexArn string

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

IndexName string

The name of the place index resource.

Tags map[string]string

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

TagsAll map[string]string

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

UpdateTime string

The timestamp for when the place index resource was last update in ISO 8601.

createTime String

The timestamp for when the place index resource was created in ISO 8601 format.

dataSource String

Specifies the geospatial data provider for the new place index.

dataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description String

The optional description for the place index resource.

indexArn String

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

indexName String

The name of the place index resource.

tags Map<String,String>

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String,String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the place index resource was last update in ISO 8601.

createTime string

The timestamp for when the place index resource was created in ISO 8601 format.

dataSource string

Specifies the geospatial data provider for the new place index.

dataSourceConfiguration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description string

The optional description for the place index resource.

indexArn string

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

indexName string

The name of the place index resource.

tags {[key: string]: string}

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll {[key: string]: string}

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime string

The timestamp for when the place index resource was last update in ISO 8601.

create_time str

The timestamp for when the place index resource was created in ISO 8601 format.

data_source str

Specifies the geospatial data provider for the new place index.

data_source_configuration PlaceIndexDataSourceConfigurationArgs

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description str

The optional description for the place index resource.

index_arn str

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

index_name str

The name of the place index resource.

tags Mapping[str, str]

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tags_all Mapping[str, str]

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

update_time str

The timestamp for when the place index resource was last update in ISO 8601.

createTime String

The timestamp for when the place index resource was created in ISO 8601 format.

dataSource String

Specifies the geospatial data provider for the new place index.

dataSourceConfiguration Property Map

Configuration block with the data storage option chosen for requesting Places. Detailed below.

description String

The optional description for the place index resource.

indexArn String

The Amazon Resource Name (ARN) for the place index resource. Used to specify a resource across AWS.

indexName String

The name of the place index resource.

tags Map<String>

Key-value tags for the place index. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

tagsAll Map<String>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

updateTime String

The timestamp for when the place index resource was last update in ISO 8601.

Supporting Types

PlaceIndexDataSourceConfiguration

IntendedUse string

Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse.

IntendedUse string

Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse.

intendedUse String

Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse.

intendedUse string

Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse.

intended_use str

Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse.

intendedUse String

Specifies how the results of an operation will be stored by the caller. Valid values: SingleUse, Storage. Default: SingleUse.

Import

aws_location_place_index resources can be imported using the place index name, e.g.

 $ pulumi import aws:location/placeIndex:PlaceIndex example example

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.