aws-cdk-lib.aws_servicecatalog.TagOptionsProps

interface TagOptionsProps

LanguageType name
.NETAmazon.CDK.AWS.Servicecatalog.TagOptionsProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsservicecatalog#TagOptionsProps
Javasoftware.amazon.awscdk.services.servicecatalog.TagOptionsProps
Pythonaws_cdk.aws_servicecatalog.TagOptionsProps
TypeScript (source)aws-cdk-lib » 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

NameTypeDescription
allowedValuesForTags{ [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.