Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data GetResourcePolicies = GetResourcePolicies' {}
- newGetResourcePolicies :: GetResourcePolicies
- getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text)
- getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural)
- data GetResourcePoliciesResponse = GetResourcePoliciesResponse' {}
- newGetResourcePoliciesResponse :: Int -> GetResourcePoliciesResponse
- getResourcePoliciesResponse_getResourcePoliciesResponseList :: Lens' GetResourcePoliciesResponse (Maybe [GluePolicy])
- getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text)
- getResourcePoliciesResponse_httpStatus :: Lens' GetResourcePoliciesResponse Int
Creating a Request
data GetResourcePolicies Source #
See: newGetResourcePolicies
smart constructor.
Instances
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.
getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural) Source #
The maximum size of a list to return.
Destructuring the Response
data GetResourcePoliciesResponse Source #
See: newGetResourcePoliciesResponse
smart constructor.
GetResourcePoliciesResponse' | |
|
Instances
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.
getResourcePoliciesResponse_httpStatus :: Lens' GetResourcePoliciesResponse Int Source #
The response's http status code.