UNPKG

@csermet/multiprovider

Version:

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

25 lines (24 loc) 685 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const sdk_1 = require("@cloudgraph/sdk"); exports.default = ({ service, account, region, }) => { const { thingArn: arn, thingName, thingTypeName, attributes = {}, version, } = service; return { accountId: account, arn, region, id: arn, thingName, thingTypeName, attributes: Object.keys(attributes).map(key => ({ id: sdk_1.generateUniqueId({ arn, key, value: attributes[key], }), key, value: attributes[key], })), version, }; };