Show / Hide Table of Contents

Interface ITagOptionsProps

Properties for TagOptions.

Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITagOptionsProps
Syntax (vb)
Public Interface 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

Properties

AllowedValuesForTags

The values that are allowed to be set for specific tags.

Properties

AllowedValuesForTags

The values that are allowed to be set for specific tags.

IDictionary<string, string[]> AllowedValuesForTags { get; }
Property Value

IDictionary<string, 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.

Back to top Generated by DocFX