AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

TagOptions

Defines a set of TagOptions, which are a list of key-value pairs managed in AWS Service Catalog. It is not an AWS tag, but serves as a template for creating an AWS tag based on the TagOption. See https://docs.aws.amazon.com/servicecatalog/latest/adminguide/tagoptions.html

Import

import { TagOptions } from 'aws-cdk-lib/aws-servicecatalog';

Or use the module namespace:

import * as servicecatalog from 'aws-cdk-lib/aws-servicecatalog';
// servicecatalog.TagOptions

Properties

Configuration passed to the constructor as TagOptionsProps.

allowedValuesForTagsRequired
{ [key: string]: string[] }

The values that are allowed to be set for specific tags. The keys of the map represent the tag keys, and the values of the map are a list of allowed values for that particular tag key.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter