java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:08.828Z") @Stability(Stable) public class CfnFaq extends CfnResource implements IInspectable, ITaggable
Creates an new set of frequently asked question (FAQ) questions and answers.

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.kendra.*;
 CfnFaq cfnFaq = CfnFaq.Builder.create(this, "MyCfnFaq")
         .indexId("indexId")
         .name("name")
         .roleArn("roleArn")
         .s3Path(S3PathProperty.builder()
                 .bucket("bucket")
                 .key("key")
                 .build())
         // the properties below are optional
         .description("description")
         .fileFormat("fileFormat")
         .languageCode("languageCode")
         .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

    • CfnFaq

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

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

      @Stability(Stable) public CfnFaq(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnFaqProps props)
      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

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

      @Stability(Stable) @NotNull public String getAttrArn()
      arn:aws:kendra:us-west-2:111122223333:index/335c3741-41df-46a6-b5d3-61f85b787884/faq/f61995a6-cd5c-4e99-9cfc-58816d8bfaa7.
    • getAttrId

      @Stability(Stable) @NotNull public String getAttrId()
      The identifier for the FAQ. For example:.

      f61995a6-cd5c-4e99-9cfc-58816d8bfaa7

    • getCfnProperties

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

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

      @Stability(Stable) @NotNull public String getIndexId()
      The identifier of the index that contains the FAQ.
    • setIndexId

      @Stability(Stable) public void setIndexId(@NotNull String value)
      The identifier of the index that contains the FAQ.
    • getName

      @Stability(Stable) @NotNull public String getName()
      The name that you assigned the FAQ when you created or updated the FAQ.
    • setName

      @Stability(Stable) public void setName(@NotNull String value)
      The name that you assigned the FAQ when you created or updated the FAQ.
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ.
    • getS3Path

      @Stability(Stable) @NotNull public Object getS3Path()
      The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
    • setS3Path

      @Stability(Stable) public void setS3Path(@NotNull IResolvable value)
      The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
    • setS3Path

      @Stability(Stable) public void setS3Path(@NotNull CfnFaq.S3PathProperty value)
      The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
    • getDescription

      @Stability(Stable) @Nullable public String getDescription()
      A description for the FAQ.
    • setDescription

      @Stability(Stable) public void setDescription(@Nullable String value)
      A description for the FAQ.
    • getFileFormat

      @Stability(Stable) @Nullable public String getFileFormat()
      The format of the input file.
    • setFileFormat

      @Stability(Stable) public void setFileFormat(@Nullable String value)
      The format of the input file.
    • getLanguageCode

      @Stability(Stable) @Nullable public String getLanguageCode()
      The code for a language.
    • setLanguageCode

      @Stability(Stable) public void setLanguageCode(@Nullable String value)
      The code for a language.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      An array of key-value pairs to apply to this resource.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      An array of key-value pairs to apply to this resource.