Skip to content
v2.276.0

TagOptionsProps Struct ​

Properties for TagOptions.

Example ​

ts
declare const portfolio: servicecatalog.Portfolio;
declare const product: servicecatalog.CloudFormationProduct;

const tagOptionsForPortfolio = new servicecatalog.TagOptions(this, 'OrgTagOptions', {
  allowedValuesForTags: {
    Group: ['finance', 'engineering', 'marketing', 'research'],
    CostCenter: ['01', '02','03'],
  },
});
portfolio.associateTagOptions(tagOptionsForPortfolio);

const tagOptionsForProduct = new servicecatalog.TagOptions(this, 'ProductTagOptions', {
  allowedValuesForTags: {
    Environment: ['dev', 'alpha', 'prod'],
  },
});
product.associateTagOptions(tagOptionsForProduct);

Properties ​

allowedValuesForTags{ [key: string]: string[] }allowed_values_for_tagstyping.Mapping[str, typing.List[str]]allowedValuesForTagsMap<String, List<String>>AllowedValuesForTagsIDictionary<string, string[]>AllowedValuesForTags*map[string]*[]*stringrequired#
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.