|
| 1 | +## API Report File for "@aws-amplify/backend-geo" |
| 2 | + |
| 3 | +> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). |
| 4 | +
|
| 5 | +```ts |
| 6 | + |
| 7 | +import { AmplifyUserErrorOptions } from '@aws-amplify/platform-core'; |
| 8 | +import { BackendOutputStorageStrategy } from '@aws-amplify/plugin-types'; |
| 9 | +import { CfnGeofenceCollection } from 'aws-cdk-lib/aws-location'; |
| 10 | +import { ConstructFactory } from '@aws-amplify/plugin-types'; |
| 11 | +import { ConstructFactoryGetInstanceProps } from '@aws-amplify/plugin-types'; |
| 12 | +import { GeoOutput } from '@aws-amplify/backend-output-schemas'; |
| 13 | +import * as kms from 'aws-cdk-lib/aws-kms'; |
| 14 | +import { ResourceAccessAcceptor } from '@aws-amplify/plugin-types'; |
| 15 | +import { ResourceProvider } from '@aws-amplify/plugin-types'; |
| 16 | +import { StackProvider } from '@aws-amplify/plugin-types'; |
| 17 | + |
| 18 | +// @public |
| 19 | +export type AmplifyCollectionFactoryProps = Omit<AmplifyCollectionProps, 'outputStorageStrategy'> & { |
| 20 | + access?: GeoAccessGenerator; |
| 21 | +}; |
| 22 | + |
| 23 | +// @public (undocumented) |
| 24 | +export type AmplifyCollectionProps = { |
| 25 | + name: string; |
| 26 | + description?: string; |
| 27 | + kmsKey?: kms.IKey; |
| 28 | + isDefault?: boolean; |
| 29 | + outputStorageStrategy?: BackendOutputStorageStrategy<GeoOutput>; |
| 30 | +}; |
| 31 | + |
| 32 | +// @public |
| 33 | +export type AmplifyMapFactoryProps = Omit<AmplifyMapProps, 'outputStorageStrategy'> & { |
| 34 | + access?: GeoAccessGenerator; |
| 35 | +}; |
| 36 | + |
| 37 | +// @public (undocumented) |
| 38 | +export type AmplifyMapProps = { |
| 39 | + name: string; |
| 40 | + outputStorageStrategy?: BackendOutputStorageStrategy<GeoOutput>; |
| 41 | +}; |
| 42 | + |
| 43 | +// @public |
| 44 | +export type AmplifyPlaceFactoryProps = Omit<AmplifyPlaceProps, 'outputStorageStrategy'> & { |
| 45 | + access?: GeoAccessGenerator; |
| 46 | +}; |
| 47 | + |
| 48 | +// @public (undocumented) |
| 49 | +export type AmplifyPlaceProps = { |
| 50 | + name: string; |
| 51 | + outputStorageStrategy?: BackendOutputStorageStrategy<GeoOutput>; |
| 52 | +}; |
| 53 | + |
| 54 | +// @public |
| 55 | +export type CollectionResources = { |
| 56 | + cfnResources: { |
| 57 | + cfnCollection: CfnGeofenceCollection; |
| 58 | + }; |
| 59 | +}; |
| 60 | + |
| 61 | +// @public |
| 62 | +export const defineCollection: (props: AmplifyCollectionFactoryProps) => ConstructFactory<ResourceProvider<CollectionResources> & StackProvider>; |
| 63 | + |
| 64 | +// @public |
| 65 | +export const defineMap: (props: AmplifyMapFactoryProps) => ConstructFactory<ResourceProvider<object> & StackProvider>; |
| 66 | + |
| 67 | +// @public |
| 68 | +export const definePlace: (props: AmplifyPlaceFactoryProps) => ConstructFactory<ResourceProvider<object> & StackProvider>; |
| 69 | + |
| 70 | +// @public (undocumented) |
| 71 | +export type GeoAccessBuilder = { |
| 72 | + authenticated: GeoActionBuilder; |
| 73 | + guest: GeoActionBuilder; |
| 74 | + groups: (groupNames: string[]) => GeoActionBuilder; |
| 75 | +}; |
| 76 | + |
| 77 | +// @public (undocumented) |
| 78 | +export type GeoAccessDefinition = { |
| 79 | + getAccessAcceptors: ((getInstanceProps: ConstructFactoryGetInstanceProps) => ResourceAccessAcceptor)[]; |
| 80 | + actions: string[]; |
| 81 | + uniqueDefinitionValidators: { |
| 82 | + uniqueRoleToken: string; |
| 83 | + validationErrorOptions: AmplifyUserErrorOptions; |
| 84 | + }[]; |
| 85 | +}; |
| 86 | + |
| 87 | +// @public (undocumented) |
| 88 | +export type GeoAccessGenerator = (allow: GeoAccessBuilder) => GeoAccessDefinition[]; |
| 89 | + |
| 90 | +// @public (undocumented) |
| 91 | +export type GeoActionBuilder = { |
| 92 | + to: (actions: string[]) => GeoAccessDefinition; |
| 93 | +}; |
| 94 | + |
| 95 | +// @public (undocumented) |
| 96 | +export type GeoResourceType = 'map' | 'place' | 'collection'; |
| 97 | + |
| 98 | +// (No @packageDocumentation comment for this package) |
| 99 | + |
| 100 | +``` |
0 commit comments