AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.9.2 published on Friday, Jun 24, 2022 by Pulumi

getPlaceIndex

Retrieve information about a Location Service Place Index.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Aws.Location.GetPlaceIndex.InvokeAsync(new Aws.Location.GetPlaceIndexArgs
        {
            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.LookupPlaceIndex(ctx, &location.LookupPlaceIndexArgs{
			IndexName: "example",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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

    public static void stack(Context ctx) {
        final var example = Output.of(LocationFunctions.getPlaceIndex(GetPlaceIndexArgs.builder()
            .indexName("example")
            .build()));

    }
}
import pulumi
import pulumi_aws as aws

example = aws.location.get_place_index(index_name="example")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = pulumi.output(aws.location.getPlaceIndex({
    indexName: "example",
}));
variables:
  example:
    Fn::Invoke:
      Function: aws:location:getPlaceIndex
      Arguments:
        indexName: example

Using getPlaceIndex

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getPlaceIndex(args: GetPlaceIndexArgs, opts?: InvokeOptions): Promise<GetPlaceIndexResult>
function getPlaceIndexOutput(args: GetPlaceIndexOutputArgs, opts?: InvokeOptions): Output<GetPlaceIndexResult>
def get_place_index(index_name: Optional[str] = None,
                    tags: Optional[Mapping[str, str]] = None,
                    opts: Optional[InvokeOptions] = None) -> GetPlaceIndexResult
def get_place_index_output(index_name: Optional[pulumi.Input[str]] = None,
                    tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetPlaceIndexResult]
func LookupPlaceIndex(ctx *Context, args *LookupPlaceIndexArgs, opts ...InvokeOption) (*LookupPlaceIndexResult, error)
func LookupPlaceIndexOutput(ctx *Context, args *LookupPlaceIndexOutputArgs, opts ...InvokeOption) LookupPlaceIndexResultOutput

> Note: This function is named LookupPlaceIndex in the Go SDK.

public static class GetPlaceIndex 
{
    public static Task<GetPlaceIndexResult> InvokeAsync(GetPlaceIndexArgs args, InvokeOptions? opts = null)
    public static Output<GetPlaceIndexResult> Invoke(GetPlaceIndexInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPlaceIndexResult> getPlaceIndex(GetPlaceIndexArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: aws:location/getPlaceIndex:getPlaceIndex
  Arguments:
    # Arguments dictionary

The following arguments are supported:

IndexName string

The name of the place index resource.

Tags Dictionary<string, string>

Key-value map of resource tags for the map.

IndexName string

The name of the place index resource.

Tags map[string]string

Key-value map of resource tags for the map.

indexName String

The name of the place index resource.

tags Map<String,String>

Key-value map of resource tags for the map.

indexName string

The name of the place index resource.

tags {[key: string]: string}

Key-value map of resource tags for the map.

index_name str

The name of the place index resource.

tags Mapping[str, str]

Key-value map of resource tags for the map.

indexName String

The name of the place index resource.

tags Map<String>

Key-value map of resource tags for the map.

getPlaceIndex Result

The following output properties are available:

CreateTime string

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

DataSource string

The data provider of geospatial data.

DataSourceConfigurations List<GetPlaceIndexDataSourceConfiguration>

List of configurations that specify data storage option for requesting Places.

Description string

The optional description for the place index resource.

Id string

The provider-assigned unique ID for this managed resource.

IndexArn string

The Amazon Resource Name (ARN) for the place index resource.

IndexName string
Tags Dictionary<string, string>

Key-value map of resource tags for the map.

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

The data provider of geospatial data.

DataSourceConfigurations []GetPlaceIndexDataSourceConfiguration

List of configurations that specify data storage option for requesting Places.

Description string

The optional description for the place index resource.

Id string

The provider-assigned unique ID for this managed resource.

IndexArn string

The Amazon Resource Name (ARN) for the place index resource.

IndexName string
Tags map[string]string

Key-value map of resource tags for the map.

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

The data provider of geospatial data.

dataSourceConfigurations List<GetPlaceIndexDataSourceConfiguration>

List of configurations that specify data storage option for requesting Places.

description String

The optional description for the place index resource.

id String

The provider-assigned unique ID for this managed resource.

indexArn String

The Amazon Resource Name (ARN) for the place index resource.

indexName String
tags Map<String,String>

Key-value map of resource tags for the map.

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

The data provider of geospatial data.

dataSourceConfigurations GetPlaceIndexDataSourceConfiguration[]

List of configurations that specify data storage option for requesting Places.

description string

The optional description for the place index resource.

id string

The provider-assigned unique ID for this managed resource.

indexArn string

The Amazon Resource Name (ARN) for the place index resource.

indexName string
tags {[key: string]: string}

Key-value map of resource tags for the map.

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

The data provider of geospatial data.

data_source_configurations Sequence[GetPlaceIndexDataSourceConfiguration]

List of configurations that specify data storage option for requesting Places.

description str

The optional description for the place index resource.

id str

The provider-assigned unique ID for this managed resource.

index_arn str

The Amazon Resource Name (ARN) for the place index resource.

index_name str
tags Mapping[str, str]

Key-value map of resource tags for the map.

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

The data provider of geospatial data.

dataSourceConfigurations List<Property Map>

List of configurations that specify data storage option for requesting Places.

description String

The optional description for the place index resource.

id String

The provider-assigned unique ID for this managed resource.

indexArn String

The Amazon Resource Name (ARN) for the place index resource.

indexName String
tags Map<String>

Key-value map of resource tags for the map.

updateTime String

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

Supporting Types

GetPlaceIndexDataSourceConfiguration

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.