| 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 |
Amazonka.WorkDocs.Types.Principal
Description
Synopsis
- data Principal = Principal' {
- id :: Maybe Text
- roles :: Maybe [PermissionInfo]
- type' :: Maybe PrincipalType
- newPrincipal :: Principal
- principal_id :: Lens' Principal (Maybe Text)
- principal_roles :: Lens' Principal (Maybe [PermissionInfo])
- principal_type :: Lens' Principal (Maybe PrincipalType)
Documentation
Describes a resource.
See: newPrincipal smart constructor.
Constructors
| Principal' | |
Fields
| |
Instances
| FromJSON Principal Source # | |
| Generic Principal Source # | |
| Read Principal Source # | |
| Show Principal Source # | |
| NFData Principal Source # | |
Defined in Amazonka.WorkDocs.Types.Principal | |
| Eq Principal Source # | |
| Hashable Principal Source # | |
Defined in Amazonka.WorkDocs.Types.Principal | |
| type Rep Principal Source # | |
Defined in Amazonka.WorkDocs.Types.Principal type Rep Principal = D1 ('MetaData "Principal" "Amazonka.WorkDocs.Types.Principal" "amazonka-workdocs-2.0-2rElYnFvcad3yrUkWYMHCU" 'False) (C1 ('MetaCons "Principal'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "roles") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PermissionInfo])) :*: 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:id:Principal', principal_id - The ID of the resource.
$sel:roles:Principal', principal_roles - The permission information for the resource.
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.