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.Principal

Description

 
Synopsis

Documentation

data Principal Source #

Provides user and group information for user context filtering.

See: newPrincipal smart constructor.

Constructors

Principal' 

Fields

Instances

Instances details
FromJSON Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

ToJSON Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

Generic Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

Associated Types

type Rep Principal :: Type -> Type #

Read Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

Show Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

NFData Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

Methods

rnf :: Principal -> () #

Eq Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

Hashable Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

type Rep Principal Source # 
Instance details

Defined in Amazonka.Kendra.Types.Principal

type Rep Principal = D1 ('MetaData "Principal" "Amazonka.Kendra.Types.Principal" "amazonka-kendra-2.0-IHloXAWlYIS8YTp1gXe6J" 'False) (C1 ('MetaCons "Principal'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dataSourceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PrincipalType) :*: S1 ('MetaSel ('Just "access") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ReadAccessType))))

newPrincipal Source #

Create a value of Principal 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:dataSourceId:Principal', principal_dataSourceId - The identifier of the data source the principal should access documents from.

$sel:name:Principal', principal_name - The name of the user or group.

$sel:type':Principal', principal_type - The type of principal.

$sel:access:Principal', principal_access - Whether to allow or deny document access to the principal.

principal_dataSourceId :: Lens' Principal (Maybe Text) Source #

The identifier of the data source the principal should access documents from.

principal_name :: Lens' Principal Text Source #

The name of the user or group.

principal_access :: Lens' Principal ReadAccessType Source #

Whether to allow or deny document access to the principal.