UNPKG

serverless-tag-resources

Version:

Datamart: Tag all AWS resources with dual legacy + datamart:* tag support

21 lines (16 loc) 456 B
"use strict"; const { FirehoseClient, TagDeliveryStreamCommand, } = require("@aws-sdk/client-firehose"); const { getClient } = require("../aws-clients"); async function tagFirehoseStream(config, resource, tags) { const client = getClient(FirehoseClient, config); await client.send( new TagDeliveryStreamCommand({ DeliveryStreamName: resource.PhysicalResourceId, Tags: tags, }) ); } module.exports = { tagFirehoseStream };