@Generated(value="jsii-pacmak/1.72.0 (build 4b8828b)", date="2022-12-21T20:56:26.794Z") @Stability(value=Stable) public class TagOptions extends Resource
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
Example:
Portfolio portfolio;
CloudFormationProduct product;
TagOptions tagOptionsForPortfolio = TagOptions.Builder.create(this, "OrgTagOptions")
.allowedValuesForTags(Map.of(
"Group", List.of("finance", "engineering", "marketing", "research"),
"CostCenter", List.of("01", "02", "03")))
.build();
portfolio.associateTagOptions(tagOptionsForPortfolio);
TagOptions tagOptionsForProduct = TagOptions.Builder.create(this, "ProductTagOptions")
.allowedValuesForTags(Map.of(
"Environment", List.of("dev", "alpha", "prod")))
.build();
product.associateTagOptions(tagOptionsForProduct);
| Modifier and Type | Class and Description |
|---|---|
static class |
TagOptions.Builder
A fluent builder for
TagOptions. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
TagOptions(software.constructs.Construct scope,
String id,
TagOptionsProps props) |
protected |
TagOptions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
TagOptions(software.amazon.jsii.JsiiObjectRef objRef) |
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected TagOptions(software.amazon.jsii.JsiiObjectRef objRef)
protected TagOptions(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public TagOptions(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
TagOptionsProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.