Class TagOptionsProps
Properties for TagOptions.
Inheritance
System.Object
TagOptionsProps
Implements
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TagOptionsProps : Object, ITagOptionsProps
Syntax (vb)
Public Class TagOptionsProps
Inherits Object
Implements ITagOptionsProps
Remarks
ExampleMetadata: infused
Examples
Portfolio portfolio;
CloudFormationProduct product;
var tagOptionsForPortfolio = new TagOptions(this, "OrgTagOptions", new TagOptionsProps {
AllowedValuesForTags = new Dictionary<string, string[]> {
{ "Group", new [] { "finance", "engineering", "marketing", "research" } },
{ "CostCenter", new [] { "01", "02", "03" } }
}
});
portfolio.AssociateTagOptions(tagOptionsForPortfolio);
var tagOptionsForProduct = new TagOptions(this, "ProductTagOptions", new TagOptionsProps {
AllowedValuesForTags = new Dictionary<string, string[]> {
{ "Environment", new [] { "dev", "alpha", "prod" } }
}
});
product.AssociateTagOptions(tagOptionsForProduct);
Synopsis
Constructors
TagOptionsProps() |
Properties
AllowedValuesForTags | The values that are allowed to be set for specific tags. |
Constructors
TagOptionsProps()
public TagOptionsProps()
Properties
AllowedValuesForTags
The values that are allowed to be set for specific tags.
public IDictionary<string, string[]> AllowedValuesForTags { get; set; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String[]>
Remarks
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.