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.ListPermissions

Description

Lists the users and groups who have the Grafana Admin and Editor roles in this workspace. If you use this operation without specifying userId or groupId, the operation returns the roles of all users and groups. If you specify a userId or a groupId, only the roles for that user or group are returned. If you do this, you can specify only one userId or one groupId.

This operation returns paginated results.

Synopsis

Creating a Request

data ListPermissions Source #

See: newListPermissions smart constructor.

Constructors

ListPermissions' 

Fields

  • userId :: Maybe Text

    (Optional) Limits the results to only the user that matches this ID.

  • nextToken :: Maybe Text

    The token to use when requesting the next set of results. You received this token from a previous ListPermissions operation.

  • groupId :: Maybe Text

    (Optional) Limits the results to only the group that matches this ID.

  • maxResults :: Maybe Natural

    The maximum number of results to include in the response.

  • userType :: Maybe UserType

    (Optional) If you specify SSO_USER, then only the permissions of Amazon Web Services SSO users are returned. If you specify SSO_GROUP, only the permissions of Amazon Web Services SSO groups are returned.

  • workspaceId :: Text

    The ID of the workspace to list permissions for. This parameter is required.

Instances

Instances details
Eq ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Read ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Show ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Generic ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Associated Types

type Rep ListPermissions :: Type -> Type #

NFData ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Methods

rnf :: ListPermissions -> () #

Hashable ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

AWSPager ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

AWSRequest ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Associated Types

type AWSResponse ListPermissions #

ToHeaders ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

ToPath ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

ToQuery ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

type Rep ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

type Rep ListPermissions = D1 ('MetaData "ListPermissions" "Amazonka.Grafana.ListPermissions" "libZSservicesZSamazonka-grafanaZSamazonka-grafana" 'False) (C1 ('MetaCons "ListPermissions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "groupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "userType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserType)) :*: S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse ListPermissions Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

newListPermissions Source #

Create a value of ListPermissions 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:userId:ListPermissions', listPermissions_userId - (Optional) Limits the results to only the user that matches this ID.

$sel:nextToken:ListPermissions', listPermissions_nextToken - The token to use when requesting the next set of results. You received this token from a previous ListPermissions operation.

$sel:groupId:ListPermissions', listPermissions_groupId - (Optional) Limits the results to only the group that matches this ID.

$sel:maxResults:ListPermissions', listPermissions_maxResults - The maximum number of results to include in the response.

$sel:userType:ListPermissions', listPermissions_userType - (Optional) If you specify SSO_USER, then only the permissions of Amazon Web Services SSO users are returned. If you specify SSO_GROUP, only the permissions of Amazon Web Services SSO groups are returned.

$sel:workspaceId:ListPermissions', listPermissions_workspaceId - The ID of the workspace to list permissions for. This parameter is required.

Request Lenses

listPermissions_userId :: Lens' ListPermissions (Maybe Text) Source #

(Optional) Limits the results to only the user that matches this ID.

listPermissions_nextToken :: Lens' ListPermissions (Maybe Text) Source #

The token to use when requesting the next set of results. You received this token from a previous ListPermissions operation.

listPermissions_groupId :: Lens' ListPermissions (Maybe Text) Source #

(Optional) Limits the results to only the group that matches this ID.

listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural) Source #

The maximum number of results to include in the response.

listPermissions_userType :: Lens' ListPermissions (Maybe UserType) Source #

(Optional) If you specify SSO_USER, then only the permissions of Amazon Web Services SSO users are returned. If you specify SSO_GROUP, only the permissions of Amazon Web Services SSO groups are returned.

listPermissions_workspaceId :: Lens' ListPermissions Text Source #

The ID of the workspace to list permissions for. This parameter is required.

Destructuring the Response

data ListPermissionsResponse Source #

See: newListPermissionsResponse smart constructor.

Constructors

ListPermissionsResponse' 

Fields

Instances

Instances details
Eq ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Read ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Show ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Generic ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Associated Types

type Rep ListPermissionsResponse :: Type -> Type #

NFData ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

Methods

rnf :: ListPermissionsResponse -> () #

type Rep ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.Grafana.ListPermissions

type Rep ListPermissionsResponse = D1 ('MetaData "ListPermissionsResponse" "Amazonka.Grafana.ListPermissions" "libZSservicesZSamazonka-grafanaZSamazonka-grafana" 'False) (C1 ('MetaCons "ListPermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "permissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [PermissionEntry]))))

newListPermissionsResponse Source #

Create a value of ListPermissionsResponse 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:nextToken:ListPermissions', listPermissionsResponse_nextToken - The token to use in a subsequent ListPermissions operation to return the next set of results.

$sel:httpStatus:ListPermissionsResponse', listPermissionsResponse_httpStatus - The response's http status code.

$sel:permissions:ListPermissionsResponse', listPermissionsResponse_permissions - The permissions returned by the operation.

Response Lenses

listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text) Source #

The token to use in a subsequent ListPermissions operation to return the next set of results.