From bd095dcbde16842ffa75997c55b61daa197b7e5c Mon Sep 17 00:00:00 2001 From: maz Date: Wed, 4 Sep 2024 21:48:09 +0900 Subject: [PATCH] fix README --- packages/@aws-cdk/aws-location-alpha/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-location-alpha/README.md b/packages/@aws-cdk/aws-location-alpha/README.md index 810c29532a163..50169b2b13a1c 100644 --- a/packages/@aws-cdk/aws-location-alpha/README.md +++ b/packages/@aws-cdk/aws-location-alpha/README.md @@ -36,7 +36,7 @@ To create a place index, define a `PlaceIndex`: ```ts new location.PlaceIndex(this, 'PlaceIndex', { placeIndexName: 'MyPlaceIndex', // optional, defaults to a generated name - dataSource: location.DataSource.HERE, // optional, defaults to Esri + dataSource: location.DataSource.ESRI, }); ``` @@ -46,7 +46,9 @@ on the place index: ```ts declare const role: iam.Role; -const placeIndex = new location.PlaceIndex(this, 'PlaceIndex'); +const placeIndex = new location.PlaceIndex(this, 'PlaceIndex', { + dataSource: location.DataSource.ESRI, +}); placeIndex.grantSearch(role); ```