amazonka-kendra-2.0: Amazon KendraFrontendService SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Kendra.Types.DocumentInfo

Description

 
Synopsis

Documentation

data DocumentInfo Source #

Identifies a document for which to retrieve status information

See: newDocumentInfo smart constructor.

Constructors

DocumentInfo' 

Fields

  • attributes :: Maybe [DocumentAttribute]

    Attributes that identify a specific version of a document to check.

    The only valid attributes are:

    • version
    • datasourceId
    • jobExecutionId

    The attributes follow these rules:

    • dataSourceId and jobExecutionId must be used together.
    • version is ignored if dataSourceId and jobExecutionId are not provided.
    • If dataSourceId and jobExecutionId are provided, but version is not, the version defaults to "0".
  • documentId :: Text

    The identifier of the document.

Instances

Instances details
ToJSON DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

Generic DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

Associated Types

type Rep DocumentInfo :: Type -> Type #

Read DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

Show DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

NFData DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

Methods

rnf :: DocumentInfo -> () #

Eq DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

Hashable DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

type Rep DocumentInfo Source # 
Instance details

Defined in Amazonka.Kendra.Types.DocumentInfo

type Rep DocumentInfo = D1 ('MetaData "DocumentInfo" "Amazonka.Kendra.Types.DocumentInfo" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "DocumentInfo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DocumentAttribute])) :*: S1 ('MetaSel ('Just "documentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDocumentInfo Source #

Create a value of DocumentInfo with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:attributes:DocumentInfo', documentInfo_attributes - Attributes that identify a specific version of a document to check.

The only valid attributes are:

  • version
  • datasourceId
  • jobExecutionId

The attributes follow these rules:

  • dataSourceId and jobExecutionId must be used together.
  • version is ignored if dataSourceId and jobExecutionId are not provided.
  • If dataSourceId and jobExecutionId are provided, but version is not, the version defaults to "0".

$sel:documentId:DocumentInfo', documentInfo_documentId - The identifier of the document.

documentInfo_attributes :: Lens' DocumentInfo (Maybe [DocumentAttribute]) Source #

Attributes that identify a specific version of a document to check.

The only valid attributes are:

  • version
  • datasourceId
  • jobExecutionId

The attributes follow these rules:

  • dataSourceId and jobExecutionId must be used together.
  • version is ignored if dataSourceId and jobExecutionId are not provided.
  • If dataSourceId and jobExecutionId are provided, but version is not, the version defaults to "0".

documentInfo_documentId :: Lens' DocumentInfo Text Source #

The identifier of the document.