libZSservicesZSamazonka-grafanaZSamazonka-grafana
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.Grafana.Types.User

Description

 
Synopsis

Documentation

data User Source #

A structure that specifies one user or group in the workspace.

See: newUser smart constructor.

Constructors

User' 

Fields

  • id :: Text

    The ID of the user or group.

  • type' :: UserType

    Specifies whether this is a single user or a group.

Instances

Instances details
Eq User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

Methods

(==) :: User -> User -> Bool #

(/=) :: User -> User -> Bool #

Read User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

Show User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

NFData User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

Methods

rnf :: User -> () #

Hashable User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

Methods

hashWithSalt :: Int -> User -> Int #

hash :: User -> Int #

ToJSON User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

FromJSON User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

type Rep User Source # 
Instance details

Defined in Amazonka.Grafana.Types.User

type Rep User = D1 ('MetaData "User" "Amazonka.Grafana.Types.User" "libZSservicesZSamazonka-grafanaZSamazonka-grafana" 'False) (C1 ('MetaCons "User'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UserType)))

newUser Source #

Create a value of User 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:User', user_id - The ID of the user or group.

$sel:type':User', user_type - Specifies whether this is a single user or a group.

user_id :: Lens' User Text Source #

The ID of the user or group.

user_type :: Lens' User UserType Source #

Specifies whether this is a single user or a group.