Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Principal = Principal' {
- dataSourceId :: Maybe Text
- name :: Text
- type' :: PrincipalType
- access :: ReadAccessType
- newPrincipal :: Text -> PrincipalType -> ReadAccessType -> Principal
- principal_dataSourceId :: Lens' Principal (Maybe Text)
- principal_name :: Lens' Principal Text
- principal_type :: Lens' Principal PrincipalType
- principal_access :: Lens' Principal ReadAccessType
Documentation
Provides user and group information for user context filtering.
See: newPrincipal
smart constructor.
Principal' | |
|
Instances
:: Text | |
-> PrincipalType | |
-> ReadAccessType | |
-> Principal |
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_type :: Lens' Principal PrincipalType Source #
The type of principal.
principal_access :: Lens' Principal ReadAccessType Source #
Whether to allow or deny document access to the principal.