Class CfnTag
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::LakeFormation::Tag
.
The AWS::LakeFormation::Tag
resource represents an LF-tag, which consists of a key and one or more possible values for the key. During a stack operation, AWS CloudFormation calls the AWS Lake Formation CreateLFTag
API to create a tag, and UpdateLFTag
API to update a tag resource, and a DeleteLFTag
to delete it.
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.lakeformation.*; CfnTag cfnTag = CfnTag.Builder.create(this, "MyCfnTag") .tagKey("tagKey") .tagValues(List.of("tagValues")) // the properties below are optional .catalogId("catalogId") .build();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCatalog id string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .An array of UTF-8 strings, not less than 1 or more than 50 strings.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCatalogId
(String value) Catalog id string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .void
UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .void
setTagValues
(List<String> value) An array of UTF-8 strings, not less than 1 or more than 50 strings.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTag
protected CfnTag(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTag
protected CfnTag(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTag
@Stability(Stable) public CfnTag(@NotNull Construct scope, @NotNull String id, @NotNull CfnTagProps props) Create a newAWS::LakeFormation::Tag
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTagKey
UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .The key-name for the LF-tag.
-
setTagKey
UTF-8 string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .The key-name for the LF-tag.
-
getTagValues
An array of UTF-8 strings, not less than 1 or more than 50 strings.A list of possible values of the corresponding
TagKey
of an LF-tag key-value pair. -
setTagValues
An array of UTF-8 strings, not less than 1 or more than 50 strings.A list of possible values of the corresponding
TagKey
of an LF-tag key-value pair. -
getCatalogId
Catalog id string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .The identifier for the Data Catalog . By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
-
setCatalogId
Catalog id string, not less than 1 or more than 255 bytes long, matching the single-line string pattern .The identifier for the Data Catalog . By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.
-