Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Principal = Principal' {
- roles :: Maybe [PermissionInfo]
- id :: Maybe Text
- type' :: Maybe PrincipalType
- newPrincipal :: Principal
- principal_roles :: Lens' Principal (Maybe [PermissionInfo])
- principal_id :: Lens' Principal (Maybe Text)
- principal_type :: Lens' Principal (Maybe PrincipalType)
Documentation
Describes a resource.
See: newPrincipal
smart constructor.
Principal' | |
|
Instances
Eq Principal Source # | |
Read Principal Source # | |
Show Principal Source # | |
Generic Principal Source # | |
NFData Principal Source # | |
Defined in Amazonka.WorkDocs.Types.Principal | |
Hashable Principal Source # | |
Defined in Amazonka.WorkDocs.Types.Principal | |
FromJSON Principal Source # | |
type Rep Principal Source # | |
Defined in Amazonka.WorkDocs.Types.Principal type Rep Principal = D1 ('MetaData "Principal" "Amazonka.WorkDocs.Types.Principal" "libZSservicesZSamazonka-workdocsZSamazonka-workdocs" 'False) (C1 ('MetaCons "Principal'" 'PrefixI 'True) (S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PermissionInfo])) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PrincipalType))))) |
newPrincipal :: Principal 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:roles:Principal'
, principal_roles
- The permission information for the resource.
$sel:id:Principal'
, principal_id
- The ID of the resource.
$sel:type':Principal'
, principal_type
- The type of resource.
principal_roles :: Lens' Principal (Maybe [PermissionInfo]) Source #
The permission information for the resource.
principal_type :: Lens' Principal (Maybe PrincipalType) Source #
The type of resource.