@aws-cdk_aws-location-alpha.PlaceIndex

class PlaceIndex (construct) ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.Location.Alpha.PlaceIndex
Gogithub.com/aws/aws-cdk-go/awscdklocationalpha/v2#PlaceIndex
Javasoftware.amazon.awscdk.services.location.alpha.PlaceIndex
Pythonaws_cdk.aws_location_alpha.PlaceIndex
TypeScript (source)@aws-cdk/aws-location-alpha ยป PlaceIndex

Implements IConstruct, IDependable, IResource, IPlaceIndex

A Place Index.

See also: https://docs.aws.amazon.com/location/latest/developerguide/places-concepts.html

Example

new location.PlaceIndex(this, 'PlaceIndex', {
  placeIndexName: 'MyPlaceIndex', // optional, defaults to a generated name
  dataSource: location.DataSource.HERE, // optional, defaults to Esri
});

Initializer

new PlaceIndex(scope: Construct, id: string, props?: PlaceIndexProps)

Parameters

  • scope Construct
  • id string
  • props PlaceIndexProps

Construct Props

NameTypeDescription
dataSource?๐Ÿ”นDataSourceData source for the place index.
description?๐Ÿ”นstringA description for the place index.
intendedUse?๐Ÿ”นIntendedUseIntend use for the results of an operation.
placeIndexName?๐Ÿ”นstringA name for the place index.

dataSource?๐Ÿ”น

Type: DataSource (optional, default: DataSource.ESRI)

Data source for the place index.


description?๐Ÿ”น

Type: string (optional, default: no description)

A description for the place index.


intendedUse?๐Ÿ”น

Type: IntendedUse (optional, default: IntendedUse.SINGLE_USE)

Intend use for the results of an operation.


placeIndexName?๐Ÿ”น

Type: string (optional, default: A name is automatically generated)

A name for the place index.

Properties

NameTypeDescription
env๐Ÿ”นResourceEnvironmentThe environment this resource belongs to.
node๐Ÿ”นNodeThe tree node.
placeIndexArn๐Ÿ”นstringThe Amazon Resource Name (ARN) of the place index resource.
placeIndexCreateTime๐Ÿ”นstringThe timestamp for when the place index resource was created in ISO 8601 forma.
placeIndexName๐Ÿ”นstringThe name of the place index.
placeIndexUpdateTime๐Ÿ”นstringThe timestamp for when the place index resource was last updated in ISO 8601 format.
stack๐Ÿ”นStackThe stack in which this resource is defined.

env๐Ÿ”น

Type: ResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


node๐Ÿ”น

Type: Node

The tree node.


placeIndexArn๐Ÿ”น

Type: string

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


placeIndexCreateTime๐Ÿ”น

Type: string

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


placeIndexName๐Ÿ”น

Type: string

The name of the place index.


placeIndexUpdateTime๐Ÿ”น

Type: string

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


stack๐Ÿ”น

Type: Stack

The stack in which this resource is defined.

Methods

NameDescription
applyRemovalPolicy(policy)๐Ÿ”นApply the given removal policy to this resource.
grant(grantee, ...actions)๐Ÿ”นGrant the given principal identity permissions to perform the actions on this place index.
grantSearch(grantee)๐Ÿ”นGrant the given identity permissions to search using this index.
toString()๐Ÿ”นReturns a string representation of this construct.
static fromPlaceIndexArn(scope, id, placeIndexArn)๐Ÿ”นUse an existing place index by ARN.
static fromPlaceIndexName(scope, id, placeIndexName)๐Ÿ”นUse an existing place index by name.

applyRemovalPolicy(policy)๐Ÿ”น

public applyRemovalPolicy(policy: RemovalPolicy): void

Parameters

  • policy RemovalPolicy

Apply the given removal policy to this resource.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).


grant(grantee, ...actions)๐Ÿ”น

public grant(grantee: IGrantable, ...actions: string[]): Grant

Parameters

  • grantee IGrantable
  • actions string

Returns

  • Grant

Grant the given principal identity permissions to perform the actions on this place index.


grantSearch(grantee)๐Ÿ”น

public grantSearch(grantee: IGrantable): Grant

Parameters

  • grantee IGrantable

Returns

  • Grant

Grant the given identity permissions to search using this index.


toString()๐Ÿ”น

public toString(): string

Returns

  • string

Returns a string representation of this construct.


static fromPlaceIndexArn(scope, id, placeIndexArn)๐Ÿ”น

public static fromPlaceIndexArn(scope: Construct, id: string, placeIndexArn: string): IPlaceIndex

Parameters

  • scope Construct
  • id string
  • placeIndexArn string

Returns

  • IPlaceIndex

Use an existing place index by ARN.


static fromPlaceIndexName(scope, id, placeIndexName)๐Ÿ”น

public static fromPlaceIndexName(scope: Construct, id: string, placeIndexName: string): IPlaceIndex

Parameters

  • scope Construct
  • id string
  • placeIndexName string

Returns

  • IPlaceIndex

Use an existing place index by name.