libZSservicesZSamazonka-lakeformationZSamazonka-lakeformation
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.LakeFormation.ListPermissions

Description

Returns a list of the principal permissions on the resource, filtered by the permissions of the caller. For example, if you are granted an ALTER permission, you are able to see only the principal permissions for ALTER.

This operation returns only those permissions that have been explicitly granted.

For information about permissions, see Security and Access Control to Metadata and Data.

Synopsis

Creating a Request

data ListPermissions Source #

See: newListPermissions smart constructor.

Constructors

ListPermissions' 

Fields

  • resourceType :: Maybe DataLakeResourceType

    Specifies a resource type to filter the permissions returned.

  • catalogId :: Maybe Text

    The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.

  • nextToken :: Maybe Text

    A continuation token, if this is not the first call to retrieve this list.

  • principal :: Maybe DataLakePrincipal

    Specifies a principal to filter the permissions returned.

  • resource :: Maybe Resource

    A resource where you will get a list of the principal permissions.

    This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.

  • maxResults :: Maybe Natural

    The maximum number of results to return.

Instances

Instances details
Eq ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Read ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Show ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Generic ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Associated Types

type Rep ListPermissions :: Type -> Type #

NFData ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Methods

rnf :: ListPermissions -> () #

Hashable ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

ToJSON ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

AWSRequest ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Associated Types

type AWSResponse ListPermissions #

ToHeaders ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

ToPath ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

ToQuery ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

type Rep ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

type Rep ListPermissions = D1 ('MetaData "ListPermissions" "Amazonka.LakeFormation.ListPermissions" "libZSservicesZSamazonka-lakeformationZSamazonka-lakeformation" 'False) (C1 ('MetaCons "ListPermissions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataLakeResourceType)) :*: (S1 ('MetaSel ('Just "catalogId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "principal") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataLakePrincipal)) :*: (S1 ('MetaSel ('Just "resource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Resource)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))
type AWSResponse ListPermissions Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

newListPermissions :: ListPermissions 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:resourceType:ListPermissions', listPermissions_resourceType - Specifies a resource type to filter the permissions returned.

$sel:catalogId:ListPermissions', listPermissions_catalogId - The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.

$sel:nextToken:ListPermissions', listPermissions_nextToken - A continuation token, if this is not the first call to retrieve this list.

$sel:principal:ListPermissions', listPermissions_principal - Specifies a principal to filter the permissions returned.

$sel:resource:ListPermissions', listPermissions_resource - A resource where you will get a list of the principal permissions.

This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.

$sel:maxResults:ListPermissions', listPermissions_maxResults - The maximum number of results to return.

Request Lenses

listPermissions_resourceType :: Lens' ListPermissions (Maybe DataLakeResourceType) Source #

Specifies a resource type to filter the permissions returned.

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

The identifier for the Data Catalog. By default, the account ID. The Data Catalog is the persistent metadata store. It contains database definitions, table definitions, and other control information to manage your AWS Lake Formation environment.

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

A continuation token, if this is not the first call to retrieve this list.

listPermissions_principal :: Lens' ListPermissions (Maybe DataLakePrincipal) Source #

Specifies a principal to filter the permissions returned.

listPermissions_resource :: Lens' ListPermissions (Maybe Resource) Source #

A resource where you will get a list of the principal permissions.

This operation does not support getting privileges on a table with columns. Instead, call this operation on the table, and the operation returns the table and the table w columns.

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

The maximum number of results to return.

Destructuring the Response

data ListPermissionsResponse Source #

See: newListPermissionsResponse smart constructor.

Constructors

ListPermissionsResponse' 

Fields

Instances

Instances details
Eq ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Read ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Show ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Generic ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Associated Types

type Rep ListPermissionsResponse :: Type -> Type #

NFData ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

Methods

rnf :: ListPermissionsResponse -> () #

type Rep ListPermissionsResponse Source # 
Instance details

Defined in Amazonka.LakeFormation.ListPermissions

type Rep ListPermissionsResponse = D1 ('MetaData "ListPermissionsResponse" "Amazonka.LakeFormation.ListPermissions" "libZSservicesZSamazonka-lakeformationZSamazonka-lakeformation" 'False) (C1 ('MetaCons "ListPermissionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "principalResourcePermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PrincipalResourcePermissions])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

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 - A continuation token, if this is not the first call to retrieve this list.

$sel:principalResourcePermissions:ListPermissionsResponse', listPermissionsResponse_principalResourcePermissions - A list of principals and their permissions on the resource for the specified principal and resource types.

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

Response Lenses

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

A continuation token, if this is not the first call to retrieve this list.

listPermissionsResponse_principalResourcePermissions :: Lens' ListPermissionsResponse (Maybe [PrincipalResourcePermissions]) Source #

A list of principals and their permissions on the resource for the specified principal and resource types.