Skip to content

Tags

In order to typesafe tag specific CDK resources with backup, data-classification, cost-category tags, we provide tiny utitilites to generate those tags.

import {
    backupTag,
    costCategoryTag,
    dataClassificationTag,
} from '@pit-shared/cdk/tags'

const rds = new rds.DatabaseInstance(this, 'RDS', {
    // ...
})

backupTag(rds, 'enabled')
dataClassificationTag(rds, 'confidential')
costCategoryTag(rds, 'operational')

API

The backupTag function supports the following values for the backup tag:

'enabled' | 'disabled' | 'custom'

The dataClassificationTag function supports the following values for the backup tag:

| 'internal'
| 'confidential'
| 'public'
| 'strictly-confidential'