UNPKG

@csermet/multiprovider

Version:

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

22 lines (21 loc) 704 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const generateArns_1 = require("../../utils/generateArns"); const ids_1 = require("../../utils/ids"); /** * Route53 Hosted Zone */ exports.default = ({ service: rawData, account, }) => { const { Id, Name: name, Config: { Comment: comment = '' } = {}, DelegationSet: { NameServers: nameServers = [], Id: delegationSetId = '', } = {}, } = rawData; const id = ids_1.getHostedZoneId(Id); const hostedZone = { id, accountId: account, arn: generateArns_1.route53HostedZoneArn({ id }), name, comment, delegationSetId, nameServers, }; return hostedZone; };