libZSservicesZSamazonka-workdocsZSamazonka-workdocs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WorkDocs.Types.Principal

Description

 
Synopsis

Documentation

data Principal Source #

Describes a resource.

See: newPrincipal smart constructor.

Constructors

Principal' 

Fields

Instances

Instances details
Eq Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

Read Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

Show Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

Generic Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

Associated Types

type Rep Principal :: Type -> Type #

NFData Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

Methods

rnf :: Principal -> () #

Hashable Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

FromJSON Principal Source # 
Instance details

Defined in Amazonka.WorkDocs.Types.Principal

type Rep Principal Source # 
Instance details

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_id :: Lens' Principal (Maybe Text) Source #

The ID of the resource.