Class CfnContent
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.wisdom.CfnContent
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IContentRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-10-08T17:00:06.111Z")
@Stability(Stable)
public class CfnContent
extends CfnResource
implements IInspectable, IContentRef, ITaggableV2
Definition of AWS::Wisdom::Content Resource Type.
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.wisdom.*;
CfnContent cfnContent = CfnContent.Builder.create(this, "MyCfnContent")
.knowledgeBaseId("knowledgeBaseId")
.name("name")
// the properties below are optional
.metadata(Map.of(
"metadataKey", "metadata"))
.overrideLinkOutUri("overrideLinkOutUri")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.title("title")
.uploadId("uploadId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.wisdom.IContentRef
IContentRef.Jsii$Default, IContentRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnContent(software.amazon.jsii.JsiiObjectRef objRef) CfnContent(software.constructs.Construct scope, String id, CfnContentProps props) Create a newAWS::Wisdom::Content. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForContent(IContentRef resource) The Amazon Resource Name (ARN) of the content.The identifier of the content.The media type of the content.The Amazon Resource Name (ARN) of the knowledge base.The URI of the content.The identifier of the content revision.The status of the content.Tag Manager which manages the tags for this resource.A reference to a Content resource.The identifier of the knowledge base.A key/value map to store attributes without affecting tagging or recommendations.getName()The name of the content.The URI you want to use for the article.getTags()The tags used to organize, track, or control access for this resource.getTitle()The title of the content.A pointer to the uploaded asset.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnContent.renderProperties(Map<String, Object> props) voidsetKnowledgeBaseId(String value) The identifier of the knowledge base.voidsetMetadata(Map<String, String> value) A key/value map to store attributes without affecting tagging or recommendations.voidsetMetadata(IResolvable value) A key/value map to store attributes without affecting tagging or recommendations.voidThe name of the content.voidsetOverrideLinkOutUri(String value) The URI you want to use for the article.voidThe tags used to organize, track, or control access for this resource.voidThe title of the content.voidsetUploadId(String value) A pointer to the uploaded asset.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods 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
-
CfnContent
protected CfnContent(software.amazon.jsii.JsiiObjectRef objRef) -
CfnContent
protected CfnContent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnContent
@Stability(Stable) public CfnContent(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnContentProps props) Create a newAWS::Wisdom::Content.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForContent
- Parameters:
resource- This parameter is required.
-
isCfnContent
Checks whether the given object is a CfnContent.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrContentArn
The Amazon Resource Name (ARN) of the content. -
getAttrContentId
The identifier of the content. -
getAttrContentType
The media type of the content. -
getAttrKnowledgeBaseArn
The Amazon Resource Name (ARN) of the knowledge base. -
getAttrLinkOutUri
The URI of the content. -
getAttrRevisionId
The identifier of the content revision. -
getAttrStatus
The status of the content. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getContentRef
A reference to a Content resource.- Specified by:
getContentRefin interfaceIContentRef
-
getKnowledgeBaseId
The identifier of the knowledge base. -
setKnowledgeBaseId
The identifier of the knowledge base. -
getName
The name of the content. -
setName
The name of the content. -
getMetadata
A key/value map to store attributes without affecting tagging or recommendations.Returns union: either
IResolvableor Mapinvalid input: '<'String,String> -
setMetadata
A key/value map to store attributes without affecting tagging or recommendations. -
setMetadata
A key/value map to store attributes without affecting tagging or recommendations. -
getOverrideLinkOutUri
The URI you want to use for the article. -
setOverrideLinkOutUri
The URI you want to use for the article. -
getTags
The tags used to organize, track, or control access for this resource. -
setTags
The tags used to organize, track, or control access for this resource. -
getTitle
The title of the content. -
setTitle
The title of the content. -
getUploadId
A pointer to the uploaded asset. -
setUploadId
A pointer to the uploaded asset.
-