@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.098Z") @Stability(value=Stable) public class CfnTagOption extends CfnResource implements IInspectable
Specifies a TagOption. A TagOption is a key-value pair managed by AWS Service Catalog that serves as a template for creating an AWS tag.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.servicecatalog.*;
CfnTagOption cfnTagOption = CfnTagOption.Builder.create(this, "MyCfnTagOption")
.key("key")
.value("value")
// the properties below are optional
.active(false)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnTagOption.Builder
A fluent builder for
CfnTagOption. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnTagOption(software.constructs.Construct scope,
String id,
CfnTagOptionProps props)
Create a new `AWS::ServiceCatalog::TagOption`.
|
protected |
CfnTagOption(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnTagOption(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActive()
The TagOption active state.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getKey()
The TagOption key.
|
String |
getValue()
The TagOption value.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActive(Boolean value)
The TagOption active state.
|
void |
setActive(IResolvable value)
The TagOption active state.
|
void |
setKey(String value)
The TagOption key.
|
void |
setValue(String value)
The TagOption value.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnTagOption(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnTagOption(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnTagOption(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnTagOptionProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getKey()
@Stability(value=Stable)
public void setKey(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getValue()
@Stability(value=Stable)
public void setValue(@NotNull
String value)
@Stability(value=Stable) @Nullable public Object getActive()
@Stability(value=Stable)
public void setActive(@Nullable
Boolean value)
@Stability(value=Stable)
public void setActive(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.