Skip to content

Commit

Permalink
fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Sep 4, 2024
1 parent ff0037a commit bd095dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/@aws-cdk/aws-location-alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
```

Expand All @@ -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);
```

Expand Down

0 comments on commit bd095dc

Please sign in to comment.