AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi
aws.kendra.getFaq
Explore with Pulumi AI
Provides details about a specific Amazon Kendra Faq.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const test = aws.kendra.getFaq({
    faqId: "87654321-1234-4321-4321-321987654321",
    indexId: "12345678-1234-1234-1234-123456789123",
});
import pulumi
import pulumi_aws as aws
test = aws.kendra.get_faq(faq_id="87654321-1234-4321-4321-321987654321",
    index_id="12345678-1234-1234-1234-123456789123")
package main
import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/kendra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := kendra.LookupFaq(ctx, &kendra.LookupFaqArgs{
			FaqId:   "87654321-1234-4321-4321-321987654321",
			IndexId: "12345678-1234-1234-1234-123456789123",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() => 
{
    var test = Aws.Kendra.GetFaq.Invoke(new()
    {
        FaqId = "87654321-1234-4321-4321-321987654321",
        IndexId = "12345678-1234-1234-1234-123456789123",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kendra.KendraFunctions;
import com.pulumi.aws.kendra.inputs.GetFaqArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var test = KendraFunctions.getFaq(GetFaqArgs.builder()
            .faqId("87654321-1234-4321-4321-321987654321")
            .indexId("12345678-1234-1234-1234-123456789123")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: aws:kendra:getFaq
      arguments:
        faqId: 87654321-1234-4321-4321-321987654321
        indexId: 12345678-1234-1234-1234-123456789123
Using getFaq
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFaq(args: GetFaqArgs, opts?: InvokeOptions): Promise<GetFaqResult>
function getFaqOutput(args: GetFaqOutputArgs, opts?: InvokeOptions): Output<GetFaqResult>def get_faq(faq_id: Optional[str] = None,
            index_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            opts: Optional[InvokeOptions] = None) -> GetFaqResult
def get_faq_output(faq_id: Optional[pulumi.Input[str]] = None,
            index_id: Optional[pulumi.Input[str]] = None,
            tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetFaqResult]func LookupFaq(ctx *Context, args *LookupFaqArgs, opts ...InvokeOption) (*LookupFaqResult, error)
func LookupFaqOutput(ctx *Context, args *LookupFaqOutputArgs, opts ...InvokeOption) LookupFaqResultOutput> Note: This function is named LookupFaq in the Go SDK.
public static class GetFaq 
{
    public static Task<GetFaqResult> InvokeAsync(GetFaqArgs args, InvokeOptions? opts = null)
    public static Output<GetFaqResult> Invoke(GetFaqInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFaqResult> getFaq(GetFaqArgs args, InvokeOptions options)
public static Output<GetFaqResult> getFaq(GetFaqArgs args, InvokeOptions options)
fn::invoke:
  function: aws:kendra/getFaq:getFaq
  arguments:
    # arguments dictionaryThe following arguments are supported:
getFaq Result
The following output properties are available:
- Arn string
 - ARN of the FAQ.
 - Created
At string - Unix datetime that the faq was created.
 - Description string
 - Description of the FAQ.
 - Error
Message string - When the 
statusfield value isFAILED, this contains a message that explains why. - Faq
Id string - File
Format string - File format used by the input files for the FAQ. Valid Values are 
CSV,CSV_WITH_HEADER,JSON. - Id string
 - The provider-assigned unique ID for this managed resource.
 - Index
Id string - Language
Code string - Code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see Adding documents in languages other than English.
 - Name string
 - Name of the FAQ.
 - Role
Arn string - ARN of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
 - S3Paths
List<Get
Faq S3Path>  - S3 location of the FAQ input data. Detailed below.
 - Status string
 - Status of the FAQ. It is ready to use when the status is ACTIVE.
 - Dictionary<string, string>
 - Metadata that helps organize the FAQs you create.
 - Updated
At string - Date and time that the FAQ was last updated.
 
- Arn string
 - ARN of the FAQ.
 - Created
At string - Unix datetime that the faq was created.
 - Description string
 - Description of the FAQ.
 - Error
Message string - When the 
statusfield value isFAILED, this contains a message that explains why. - Faq
Id string - File
Format string - File format used by the input files for the FAQ. Valid Values are 
CSV,CSV_WITH_HEADER,JSON. - Id string
 - The provider-assigned unique ID for this managed resource.
 - Index
Id string - Language
Code string - Code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see Adding documents in languages other than English.
 - Name string
 - Name of the FAQ.
 - Role
Arn string - ARN of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
 - S3Paths
[]Get
Faq S3Path  - S3 location of the FAQ input data. Detailed below.
 - Status string
 - Status of the FAQ. It is ready to use when the status is ACTIVE.
 - map[string]string
 - Metadata that helps organize the FAQs you create.
 - Updated
At string - Date and time that the FAQ was last updated.
 
- arn String
 - ARN of the FAQ.
 - created
At String - Unix datetime that the faq was created.
 - description String
 - Description of the FAQ.
 - error
Message String - When the 
statusfield value isFAILED, this contains a message that explains why. - faq
Id String - file
Format String - File format used by the input files for the FAQ. Valid Values are 
CSV,CSV_WITH_HEADER,JSON. - id String
 - The provider-assigned unique ID for this managed resource.
 - index
Id String - language
Code String - Code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see Adding documents in languages other than English.
 - name String
 - Name of the FAQ.
 - role
Arn String - ARN of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
 - s3Paths
List<Get
Faq S3Path>  - S3 location of the FAQ input data. Detailed below.
 - status String
 - Status of the FAQ. It is ready to use when the status is ACTIVE.
 - Map<String,String>
 - Metadata that helps organize the FAQs you create.
 - updated
At String - Date and time that the FAQ was last updated.
 
- arn string
 - ARN of the FAQ.
 - created
At string - Unix datetime that the faq was created.
 - description string
 - Description of the FAQ.
 - error
Message string - When the 
statusfield value isFAILED, this contains a message that explains why. - faq
Id string - file
Format string - File format used by the input files for the FAQ. Valid Values are 
CSV,CSV_WITH_HEADER,JSON. - id string
 - The provider-assigned unique ID for this managed resource.
 - index
Id string - language
Code string - Code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see Adding documents in languages other than English.
 - name string
 - Name of the FAQ.
 - role
Arn string - ARN of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
 - s3Paths
Get
Faq S3Path[]  - S3 location of the FAQ input data. Detailed below.
 - status string
 - Status of the FAQ. It is ready to use when the status is ACTIVE.
 - {[key: string]: string}
 - Metadata that helps organize the FAQs you create.
 - updated
At string - Date and time that the FAQ was last updated.
 
- arn str
 - ARN of the FAQ.
 - created_
at str - Unix datetime that the faq was created.
 - description str
 - Description of the FAQ.
 - error_
message str - When the 
statusfield value isFAILED, this contains a message that explains why. - faq_
id str - file_
format str - File format used by the input files for the FAQ. Valid Values are 
CSV,CSV_WITH_HEADER,JSON. - id str
 - The provider-assigned unique ID for this managed resource.
 - index_
id str - language_
code str - Code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see Adding documents in languages other than English.
 - name str
 - Name of the FAQ.
 - role_
arn str - ARN of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
 - s3_
paths Sequence[GetFaq S3Path]  - S3 location of the FAQ input data. Detailed below.
 - status str
 - Status of the FAQ. It is ready to use when the status is ACTIVE.
 - Mapping[str, str]
 - Metadata that helps organize the FAQs you create.
 - updated_
at str - Date and time that the FAQ was last updated.
 
- arn String
 - ARN of the FAQ.
 - created
At String - Unix datetime that the faq was created.
 - description String
 - Description of the FAQ.
 - error
Message String - When the 
statusfield value isFAILED, this contains a message that explains why. - faq
Id String - file
Format String - File format used by the input files for the FAQ. Valid Values are 
CSV,CSV_WITH_HEADER,JSON. - id String
 - The provider-assigned unique ID for this managed resource.
 - index
Id String - language
Code String - Code for a language. This shows a supported language for the FAQ document. For more information on supported languages, including their codes, see Adding documents in languages other than English.
 - name String
 - Name of the FAQ.
 - role
Arn String - ARN of a role with permission to access the S3 bucket that contains the FAQs. For more information, see IAM Roles for Amazon Kendra.
 - s3Paths List<Property Map>
 - S3 location of the FAQ input data. Detailed below.
 - status String
 - Status of the FAQ. It is ready to use when the status is ACTIVE.
 - Map<String>
 - Metadata that helps organize the FAQs you create.
 - updated
At String - Date and time that the FAQ was last updated.
 
Supporting Types
GetFaqS3Path  
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.