Show / Hide Table of Contents

Class TagOptionsProps

Properties for TagOptions.

Inheritance
object
TagOptionsProps
Implements
ITagOptionsProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TagOptionsProps : ITagOptionsProps
Syntax (vb)
Public Class TagOptionsProps 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 for TagOptions.

Properties

AllowedValuesForTags

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

Constructors

TagOptionsProps()

Properties for TagOptions.

public TagOptionsProps()
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);

Properties

AllowedValuesForTags

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

public IDictionary<string, string[]> AllowedValuesForTags { get; set; }
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.

Implements

ITagOptionsProps
Back to top Generated by DocFX