@csermet/multiprovider
Version:
cloud-graph provider plugin for AWS used to fetch AWS cloud data.
46 lines (45 loc) • 2.24 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const format_1 = require("../../utils/format");
exports.default = ({ service, account, region, }) => {
const { DBClusterArn: arn, DBClusterIdentifier: dbClusterIdentifier, DBClusterParameterGroup: dbClusterParameterGroup, DBSubnetGroup: dbSubnetGroup, Status: status, Engine: engine, EngineVersion: engineVersion, MasterUsername: username, AllocatedStorage: allocatedStorage, ClusterCreateTime: createdTime, MultiAZ: multiAZ, StorageEncrypted: encrypted, KmsKeyId: kmsKey, CopyTagsToSnapshot: copyTagsToSnapshot, DeletionProtection: deletionProtection, IAMDatabaseAuthenticationEnabled: iamDbAuthenticationEnabled, DbClusterResourceId: resourceId, BackupRetentionPeriod: backupRetentionPeriod, CharacterSetName: characterSetName, DatabaseName: databaseName, PercentProgress: percentProgress, Endpoint: endpoint, CustomEndpoints: customEndpoints, ReaderEndpoint: readerEndpoint, Port: port, ReplicationSourceIdentifier: replicationSourceIdentifier, HostedZoneId: hostedZoneId, CloneGroupId: cloneGroupId, Capacity: capacity, EngineMode: engineMode, HttpEndpointEnabled: httpEndpointEnabled, CrossAccountClone: crossAccountClone, GlobalWriteForwardingRequested: globalWriteForwardingRequested, Tags = {}, } = service;
return {
id: arn,
accountId: account,
arn,
region,
allocatedStorage,
backupRetentionPeriod,
characterSetName,
databaseName,
dbClusterIdentifier,
dbClusterParameterGroup,
dbSubnetGroup,
status,
percentProgress,
endpoint,
readerEndpoint,
customEndpoints,
multiAZ,
engine,
engineVersion,
port,
username,
replicationSourceIdentifier,
hostedZoneId,
encrypted,
kmsKey,
resourceId,
iamDbAuthenticationEnabled,
cloneGroupId,
createdTime: createdTime.toISOString(),
capacity,
engineMode,
deletionProtection,
httpEndpointEnabled,
copyTagsToSnapshot,
crossAccountClone,
tags: format_1.formatTagsFromMap(Tags),
globalWriteForwardingRequested,
};
};