Interface TagOptionsProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TagOptionsProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:17.052Z")
@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);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTagOptionsPropsstatic final classAn implementation forTagOptionsProps -
Method Summary
Modifier and TypeMethodDescriptionstatic TagOptionsProps.Builderbuilder()The values that are allowed to be set for specific tags.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
- Returns:
- a
TagOptionsProps.BuilderofTagOptionsProps
-