@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:37.238Z") public class CfnFaq extends CfnResource implements IInspectable
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") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnFaq.Builder
A fluent builder for
CfnFaq . |
static interface |
CfnFaq.S3PathProperty
Information required to find a specific file in an Amazon S3 bucket.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnFaq(Construct scope,
java.lang.String id,
CfnFaqProps props)
Create a new `AWS::Kendra::Faq`.
|
protected |
CfnFaq(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnFaq(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrArn()
`arn:aws:kendra:us-west-2:111122223333:index/335c3741-41df-46a6-b5d3-61f85b787884/faq/f61995a6-cd5c-4e99-9cfc-58816d8bfaa7`.
|
java.lang.String |
getAttrId()
The identifier for the FAQ.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDescription()
A description for the FAQ.
|
java.lang.String |
getFileFormat()
The format of the input file.
|
java.lang.String |
getIndexId()
The identifier of the index that contains the FAQ.
|
java.lang.String |
getName()
The name that you assigned the FAQ when you created or updated the FAQ.
|
java.lang.String |
getRoleArn()
The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ.
|
java.lang.Object |
getS3Path()
The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
|
TagManager |
getTags()
An array of key-value pairs to apply to this resource.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setDescription(java.lang.String value)
A description for the FAQ.
|
void |
setFileFormat(java.lang.String value)
The format of the input file.
|
void |
setIndexId(java.lang.String value)
The identifier of the index that contains the FAQ.
|
void |
setName(java.lang.String value)
The name that you assigned the FAQ when you created or updated the FAQ.
|
void |
setRoleArn(java.lang.String value)
The Amazon Resource Name (ARN) of a role with permission to access the S3 bucket that contains the FAQ.
|
void |
setS3Path(CfnFaq.S3PathProperty value)
The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
|
void |
setS3Path(IResolvable value)
The Amazon Simple Storage Service (Amazon S3) location of the FAQ input data.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnFaq(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnFaq(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnFaq(Construct scope, java.lang.String id, CfnFaqProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrArn()
public java.lang.String getAttrId()
f61995a6-cd5c-4e99-9cfc-58816d8bfaa7
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
For more information, see Tag .
public java.lang.String getIndexId()
public void setIndexId(java.lang.String value)
public java.lang.String getName()
public void setName(java.lang.String value)
public java.lang.String getRoleArn()
public void setRoleArn(java.lang.String value)
public java.lang.Object getS3Path()
public void setS3Path(IResolvable value)
public void setS3Path(CfnFaq.S3PathProperty value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getFileFormat()
You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.
The format must match the format of the file stored in the S3 bucket identified in the S3Path parameter.
Valid values are:
CSV
CSV_WITH_HEADER
JSON
public void setFileFormat(java.lang.String value)
You can choose between a basic CSV format, a CSV format that includes customs attributes in a header, and a JSON format that includes custom attributes.
The format must match the format of the file stored in the S3 bucket identified in the S3Path parameter.
Valid values are:
CSV
CSV_WITH_HEADER
JSON