interface TagOptionsProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ServiceCatalog.TagOptionsProps |
Java | software.amazon.awscdk.services.servicecatalog.TagOptionsProps |
Python | aws_cdk.aws_servicecatalog.TagOptionsProps |
TypeScript (source) | @aws-cdk/aws-servicecatalog » TagOptionsProps |
Properties for TagOptions.
Example
declare const portfolio: servicecatalog.Portfolio;
declare const product: servicecatalog.CloudFormationProduct;
const tagOptionsForPortfolio = new servicecatalog.TagOptions(this, 'OrgTagOptions', {
allowedValuesForTags: {
Group: ['finance', 'engineering', 'marketing', 'research'],
CostCenter: ['01', '02','03'],
},
});
portfolio.associateTagOptions(tagOptionsForPortfolio);
const tagOptionsForProduct = new servicecatalog.TagOptions(this, 'ProductTagOptions', {
allowedValuesForTags: {
Environment: ['dev', 'alpha', 'prod'],
},
});
product.associateTagOptions(tagOptionsForProduct);
Properties
Name | Type | Description |
---|---|---|
allowed | { [string]: string[] } | The values that are allowed to be set for specific tags. |
allowedValuesForTags
Type:
{ [string]: string[] }
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.