Class CfnContent

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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 new AWS::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

      @Stability(Stable) @NotNull public static String arnForContent(@NotNull IContentRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnContent

      @Stability(Stable) @NotNull public static Boolean isCfnContent(@NotNull Object x)
      Checks whether the given object is a CfnContent.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrContentArn

      @Stability(Stable) @NotNull public String getAttrContentArn()
      The Amazon Resource Name (ARN) of the content.
    • getAttrContentId

      @Stability(Stable) @NotNull public String getAttrContentId()
      The identifier of the content.
    • getAttrContentType

      @Stability(Stable) @NotNull public String getAttrContentType()
      The media type of the content.
    • getAttrKnowledgeBaseArn

      @Stability(Stable) @NotNull public String getAttrKnowledgeBaseArn()
      The Amazon Resource Name (ARN) of the knowledge base.
    • getAttrLinkOutUri

      @Stability(Stable) @NotNull public String getAttrLinkOutUri()
      The URI of the content.
    • getAttrRevisionId

      @Stability(Stable) @NotNull public String getAttrRevisionId()
      The identifier of the content revision.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the content.
    • getCdkTagManager

      @Stability(Stable) @NotNull public TagManager getCdkTagManager()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getCdkTagManager in interface ITaggableV2
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getContentRef

      @Stability(Stable) @NotNull public ContentReference getContentRef()
      A reference to a Content resource.
      Specified by:
      getContentRef in interface IContentRef
    • getKnowledgeBaseId

      @Stability(Stable) @NotNull public String getKnowledgeBaseId()
      The identifier of the knowledge base.
    • setKnowledgeBaseId

      @Stability(Stable) public void setKnowledgeBaseId(@NotNull String value)
      The identifier of the knowledge base.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name of the content.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name of the content.
    • getMetadata

      @Stability(Stable) @Nullable public Object getMetadata()
      A key/value map to store attributes without affecting tagging or recommendations.

      Returns union: either IResolvable or Mapinvalid input: '<'String, String>

    • setMetadata

      @Stability(Stable) public void setMetadata(@Nullable IResolvable value)
      A key/value map to store attributes without affecting tagging or recommendations.
    • setMetadata

      @Stability(Stable) public void setMetadata(@Nullable Map<String,String> value)
      A key/value map to store attributes without affecting tagging or recommendations.
    • getOverrideLinkOutUri

      @Stability(Stable) @Nullable public String getOverrideLinkOutUri()
      The URI you want to use for the article.
    • setOverrideLinkOutUri

      @Stability(Stable) public void setOverrideLinkOutUri(@Nullable String value)
      The URI you want to use for the article.
    • getTags

      @Stability(Stable) @Nullable public List<CfnTag> getTags()
      The tags used to organize, track, or control access for this resource.
    • setTags

      @Stability(Stable) public void setTags(@Nullable List<CfnTag> value)
      The tags used to organize, track, or control access for this resource.
    • getTitle

      @Stability(Stable) @Nullable public String getTitle()
      The title of the content.
    • setTitle

      @Stability(Stable) public void setTitle(@Nullable String value)
      The title of the content.
    • getUploadId

      @Stability(Stable) @Nullable public String getUploadId()
      A pointer to the uploaded asset.
    • setUploadId

      @Stability(Stable) public void setUploadId(@Nullable String value)
      A pointer to the uploaded asset.