Interface TagOptionsProps

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

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:39.823Z") @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