libZSservicesZSamazonka-glueZSamazonka-glue
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.Glue.GetResourcePolicies

Description

Retrieves the resource policies set on individual resources by Resource Access Manager during cross-account permission grants. Also retrieves the Data Catalog resource policy.

If you enabled metadata encryption in Data Catalog settings, and you do not have permission on the KMS key, the operation can't return the Data Catalog resource policy.

This operation returns paginated results.

Synopsis

Creating a Request

data GetResourcePolicies Source #

See: newGetResourcePolicies smart constructor.

Constructors

GetResourcePolicies' 

Fields

Instances

Instances details
Eq GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Read GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Show GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Generic GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Associated Types

type Rep GetResourcePolicies :: Type -> Type #

NFData GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Methods

rnf :: GetResourcePolicies -> () #

Hashable GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

ToJSON GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

AWSPager GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

AWSRequest GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Associated Types

type AWSResponse GetResourcePolicies #

ToHeaders GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

ToPath GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

ToQuery GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

type Rep GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

type Rep GetResourcePolicies = D1 ('MetaData "GetResourcePolicies" "Amazonka.Glue.GetResourcePolicies" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetResourcePolicies'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))
type AWSResponse GetResourcePolicies Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

newGetResourcePolicies :: GetResourcePolicies Source #

Create a value of GetResourcePolicies 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:GetResourcePolicies', getResourcePolicies_nextToken - A continuation token, if this is a continuation request.

$sel:maxResults:GetResourcePolicies', getResourcePolicies_maxResults - The maximum size of a list to return.

Request Lenses

getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text) Source #

A continuation token, if this is a continuation request.

Destructuring the Response

data GetResourcePoliciesResponse Source #

See: newGetResourcePoliciesResponse smart constructor.

Constructors

GetResourcePoliciesResponse' 

Fields

Instances

Instances details
Eq GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Read GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Show GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Generic GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

Associated Types

type Rep GetResourcePoliciesResponse :: Type -> Type #

NFData GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

type Rep GetResourcePoliciesResponse Source # 
Instance details

Defined in Amazonka.Glue.GetResourcePolicies

type Rep GetResourcePoliciesResponse = D1 ('MetaData "GetResourcePoliciesResponse" "Amazonka.Glue.GetResourcePolicies" "libZSservicesZSamazonka-glueZSamazonka-glue" 'False) (C1 ('MetaCons "GetResourcePoliciesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "getResourcePoliciesResponseList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [GluePolicy])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetResourcePoliciesResponse Source #

Create a value of GetResourcePoliciesResponse 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:getResourcePoliciesResponseList:GetResourcePoliciesResponse', getResourcePoliciesResponse_getResourcePoliciesResponseList - A list of the individual resource policies and the account-level resource policy.

$sel:nextToken:GetResourcePolicies', getResourcePoliciesResponse_nextToken - A continuation token, if the returned list does not contain the last resource policy available.

$sel:httpStatus:GetResourcePoliciesResponse', getResourcePoliciesResponse_httpStatus - The response's http status code.

Response Lenses

getResourcePoliciesResponse_getResourcePoliciesResponseList :: Lens' GetResourcePoliciesResponse (Maybe [GluePolicy]) Source #

A list of the individual resource policies and the account-level resource policy.

getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text) Source #

A continuation token, if the returned list does not contain the last resource policy available.