@aws-amplify/cli-internal
Version:
Amplify CLI
26 lines • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeoPlaceIndexGenerator = void 0;
const geo_resource_generator_1 = require("./geo-resource.generator");
class GeoPlaceIndexGenerator extends geo_resource_generator_1.GeoResourceGenerator {
constructor(gen1App, outputDir, resource, geoGenerator, logger) {
super(gen1App, outputDir, resource, geoGenerator, logger);
}
addResource(base, parameters) {
var _a, _b, _c;
const props = {
...base,
needsAuthAndUnauthRoles: true,
serviceName: 'PlaceIndex',
serviceSpecificProps: [
{ key: 'indexName', value: (_a = parameters.get('indexName')) !== null && _a !== void 0 ? _a : this.resource.resourceName },
{ key: 'dataProvider', value: (_b = parameters.get('dataProvider')) !== null && _b !== void 0 ? _b : '' },
{ key: 'dataSourceIntendedUse', value: (_c = parameters.get('dataSourceIntendedUse')) !== null && _c !== void 0 ? _c : '' },
],
};
this.geoGenerator.addPlaceIndex(props);
return props;
}
}
exports.GeoPlaceIndexGenerator = GeoPlaceIndexGenerator;
//# sourceMappingURL=place-index.generator.js.map