Class TagOptions
Defines a set of TagOptions, which are a list of key-value pairs managed in AWS Service Catalog.
Inherited Members
Namespace: Amazon.CDK.AWS.Servicecatalog
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TagOptions : Resource, IResource
Syntax (vb)
Public Class TagOptions
Inherits Resource
Implements IResource
Remarks
It is not an AWS tag, but serves as a template for creating an AWS tag based on the TagOption. See https://docs.aws.amazon.com/servicecatalog/latest/adminguide/tagoptions.html
Resource: AWS::ServiceCatalog::TagOption
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
TagOptions(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
TagOptions(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
TagOptions(Construct, String, ITagOptionsProps) |
Constructors
TagOptions(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected TagOptions(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
TagOptions(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected TagOptions(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
TagOptions(Construct, String, ITagOptionsProps)
public TagOptions(Construct scope, string id, ITagOptionsProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props ITagOptionsProps
Implements
Constructs.IConstruct
Constructs.IDependable