You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// patch the geofence collection resource to the expected output configuration
89
-
backend.addOutput({
90
-
geo: {
91
-
geofence_collections: {
92
-
default: myGeofenceCollection.collectionName,
93
-
items: [myGeofenceCollection.collectionName],
94
-
},
95
-
},
62
+
<Calloutwarning="true">
63
+
64
+
AWS Location API keys currently do not support geofence collections or their associated APIs. Adding acesss definitions for any API keys using the `allow.apiKey.to()` definition will NOT result in the creation of an API key.
65
+
66
+
</Callout>
67
+
68
+
## Configure additional geofence collections
69
+
70
+
Amplify Geo gives you the ability to configure your backend to automatically request and manage multiple geofence collections.
71
+
72
+
You can define these additional geofence collections by reusing the `defineCollection` function while providing a unique `name` to identify the collection. You can configure specific access permissions to these collections by adding them to the API with the unique `name`.
73
+
74
+
<Calloutinfo>
75
+
76
+
**Note**: If numerous geofence collections are defined, then one of them must be marked as default using the `isDefault` flag.
> Note: If you combine `Auth/Guest user access` and `Individual Group access`, users who are members of a group will only be granted the permissions of the group, and not the authenticated user permissions. The permissions apply to ALL Geofences in a collection. For example, If you add `Read` permission such as `ListGeofences` and `GetGeofence` to `User` Cognito group, ALL users added to that group will be able to read the properties of ALL Geofences in that Geofence collection.
@@ -27,131 +27,51 @@ export function getStaticProps(context) {
27
27
};
28
28
}
29
29
30
-
31
-
Amplify's `geo` category enables you to search by places, addresses, and coordinates in your app with "place index" resources.
30
+
Amplify's `geo` category enables you to search by places, addresses, and coordinates in your app with "place index" resources. These resources also include an API key with access restrictions specified from the `access` callback. This API key will be used to render the location search components if your application requires access control on the components. To set up or learn more about Amazon Location API keys, visit the [developer guide](https://docs.aws.amazon.com/location/latest/developerguide/using-apikeys.html).
// patch the place index resource to the expected output configuration
127
-
backend.addOutput({
128
-
geo: {
129
-
aws_region: geoStack.region,
130
-
maps: {
131
-
items: {
132
-
[map.mapName]: {
133
-
style: "VectorEsriNavigation",
134
-
},
135
-
},
136
-
default: map.mapName,
137
-
},
138
-
// highlight-start
139
-
search_indices: {
140
-
default: myIndex.indexName,
141
-
items: [myIndex.indexName],
142
-
},
143
-
// highlight-end
144
-
},
63
+
// highlight-next-line
64
+
searchIndex
145
65
});
146
66
```
147
67
148
-
149
68
## Location Search Index Pricing Plan
150
69
The pricing plan for Search Index will be set to `RequestBasedUsage`.
151
70
We advice you to go through the [location service pricing](https://aws.amazon.com/location/pricing/) along with the [location service terms](https://aws.amazon.com/service-terms/) (_82.5 section_) to learn more about the pricing plan.
152
71
153
72
154
-
## Advanced Settings
73
+
{/* MOVE THIS TO LEGACY RESOURCES PAGE */}
74
+
{/* ## Advanced Settings
155
75
You can optionally configure the data provider and result storage location for your location search index.
156
76
157
77
### Location Search data provider
@@ -175,4 +95,4 @@ You can specify how the results of a search operation will be stored by the call
175
95
- SingleUse - specifies that the results won't be stored.
176
96
- Storage - specifies that the result can be cached or stored in a database.
177
97
178
-
Refer [this location service doc](https://docs.aws.amazon.com/location-places/latest/APIReference/API_DataSourceConfiguration.html#locationplaces-Type-DataSourceConfiguration-IntendedUse) for more information.
98
+
Refer [this location service doc](https://docs.aws.amazon.com/location-places/latest/APIReference/API_DataSourceConfiguration.html#locationplaces-Type-DataSourceConfiguration-IntendedUse) for more information.*/}
0 commit comments