Class CfnContentAssociation

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, IEnvironmentAware, IContentAssociationRef, 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.112Z") @Stability(Stable) public class CfnContentAssociation extends CfnResource implements IInspectable, IContentAssociationRef, ITaggableV2
Definition of AWS::Wisdom::ContentAssociation 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.*;
 CfnContentAssociation cfnContentAssociation = CfnContentAssociation.Builder.create(this, "MyCfnContentAssociation")
         .association(ContentAssociationContentsProperty.builder()
                 .amazonConnectGuideAssociation(AmazonConnectGuideAssociationDataProperty.builder()
                         .flowId("flowId")
                         .build())
                 .build())
         .associationType("associationType")
         .contentId("contentId")
         .knowledgeBaseId("knowledgeBaseId")
         // the properties below are optional
         .tags(List.of(CfnTag.builder()
                 .key("key")
                 .value("value")
                 .build()))
         .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

    • CfnContentAssociation

      protected CfnContentAssociation(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnContentAssociation

      protected CfnContentAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnContentAssociation

      @Stability(Stable) public CfnContentAssociation(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnContentAssociationProps props)
      Create a new AWS::Wisdom::ContentAssociation.

      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

    • arnForContentAssociation

      @Stability(Stable) @NotNull public static String arnForContentAssociation(@NotNull IContentAssociationRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnContentAssociation

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

      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.
    • getAttrContentAssociationArn

      @Stability(Stable) @NotNull public String getAttrContentAssociationArn()
      The Amazon Resource Name (ARN) of the content association.
    • getAttrContentAssociationId

      @Stability(Stable) @NotNull public String getAttrContentAssociationId()
      The identifier of the content association.
    • getAttrKnowledgeBaseArn

      @Stability(Stable) @NotNull public String getAttrKnowledgeBaseArn()
      The Amazon Resource Name (ARN) of the knowledge base.
    • 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
    • getContentAssociationRef

      @Stability(Stable) @NotNull public ContentAssociationReference getContentAssociationRef()
      A reference to a ContentAssociation resource.
      Specified by:
      getContentAssociationRef in interface IContentAssociationRef
    • getAssociation

      @Stability(Stable) @NotNull public Object getAssociation()
    • setAssociation

      @Stability(Stable) public void setAssociation(@NotNull IResolvable value)
    • setAssociation

      @Stability(Stable) public void setAssociation(@NotNull CfnContentAssociation.ContentAssociationContentsProperty value)
    • getAssociationType

      @Stability(Stable) @NotNull public String getAssociationType()
      The type of association.
    • setAssociationType

      @Stability(Stable) public void setAssociationType(@NotNull String value)
      The type of association.
    • getContentId

      @Stability(Stable) @NotNull public String getContentId()
      The identifier of the content.
    • setContentId

      @Stability(Stable) public void setContentId(@NotNull String value)
      The identifier of the content.
    • 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.
    • 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.