UNPKG

@csermet/multiprovider

Version:

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

20 lines (19 loc) 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const format_1 = require("../../utils/format"); /** * IAM Instance Profile */ exports.default = ({ service: rawData, account, }) => { const { InstanceProfileId: instanceProfileId, InstanceProfileName: instanceProfileName = '', Arn: arn = '', Path: path = '', CreateDate: createDate, Tags: tags = {}, } = rawData; const role = { id: instanceProfileId, arn, accountId: account, path, name: instanceProfileName, createDate: createDate?.toISOString(), tags: format_1.formatTagsFromMap(tags), }; return role; };