Socket
Book a DemoInstallSign in
Socket

@linzjs/cdk-tags

Package Overview
Dependencies
Maintainers
3
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@linzjs/cdk-tags

CDK construct to apply common tags to constructs

Source
npmnpm
Version
1.6.0
Version published
Maintainers
3
Created
Source

@linzjs/cdk-tags

CDK construct to apply common tags to constructs

Usage

To apply the common set of tags for a s3 bucket:

import { applyTags, SecurityClassification } from '@linzjs/cdk-tags';

const bucket = new Bucket(this, 'ImageryArchive');

applyTags(bucket, {
  application: 'basemaps',
  group: 'li',
  classification: SecurityClassification.Unclassified,
  data: { isMaster: true, isPublic: true, role: TagDataRole.Archive },
  criticality: 'low',
});

To apply the common set of tags for multiple constructs:

import { applyTags, SecurityClassification, TagsBase } from '@linzjs/cdk-tags';

const commonTags: TagsBase = {
  application: 'basemaps',
  group: 'li',
  classification: SecurityClassification.Unclassified,
  data: { isMaster: true, isPublic: true, role: TagDataRole.Archive },
  criticality: 'low',
};

const bucket1 = new Bucket(this, 'ImageryArchive');
const bucket2 = new Bucket(this, 'AnotherImageryArchive');

applyTags(bucket1, commonTags);
applyTags(bucket2, commonTags);

FAQs

Package last updated on 24 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts