Interface TagOptionsProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
TagOptionsProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:23.742Z") @Stability(Stable) public interface TagOptionsProps extends software.amazon.jsii.JsiiSerializable
Properties for TagOptions.

Example:

 Portfolio portfolio;
 CloudFormationProduct product;
 TagOptions tagOptionsForPortfolio = TagOptions.Builder.create(this, "OrgTagOptions")
         .allowedValuesForTags(Map.of(
                 "Group", List.of("finance", "engineering", "marketing", "research"),
                 "CostCenter", List.of("01", "02", "03")))
         .build();
 portfolio.associateTagOptions(tagOptionsForPortfolio);
 TagOptions tagOptionsForProduct = TagOptions.Builder.create(this, "ProductTagOptions")
         .allowedValuesForTags(Map.of(
                 "Environment", List.of("dev", "alpha", "prod")))
         .build();
 product.associateTagOptions(tagOptionsForProduct);
 
  • Method Details

    • getAllowedValuesForTags

      @Stability(Stable) @NotNull Map<String,List<String>> getAllowedValuesForTags()
      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.

    • builder

      @Stability(Stable) static TagOptionsProps.Builder builder()
      Returns:
      a TagOptionsProps.Builder of TagOptionsProps