UNPKG

@csermet/multiprovider

Version:

cloud-graph provider plugin for AWS used to fetch AWS cloud data.

30 lines (29 loc) 910 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * GlueRegistry */ exports.default = ({ account, service: rawData, region, }) => { const { RegistryName: registryName, RegistryArn: registryArn, Status: status, CreatedTime: createdTime, UpdatedTime: updatedTime, schemas, } = rawData; const mappedSchemas = schemas.map(({ SchemaName: schemaName, SchemaArn: arn, Description: description, SchemaStatus: schemaStatus, CreatedTime: schemaCreatedTime, }) => ({ id: arn, schemaName, registryName, registryArn, arn, description, schemaStatus, createdTime: schemaCreatedTime })); return { id: registryArn, arn: registryArn, region, accountId: account, registryName, status, createdTime, updatedTime, schemas: mappedSchemas }; };