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 |
Gets the policies for the specified resources that you own and have shared.
This operation returns paginated results.
Synopsis
- data GetResourcePolicies = GetResourcePolicies' {}
- newGetResourcePolicies :: GetResourcePolicies
- getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text)
- getResourcePolicies_principal :: Lens' GetResourcePolicies (Maybe Text)
- getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural)
- getResourcePolicies_resourceArns :: Lens' GetResourcePolicies [Text]
- data GetResourcePoliciesResponse = GetResourcePoliciesResponse' {}
- newGetResourcePoliciesResponse :: Int -> GetResourcePoliciesResponse
- getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text)
- getResourcePoliciesResponse_policies :: Lens' GetResourcePoliciesResponse (Maybe [Text])
- getResourcePoliciesResponse_httpStatus :: Lens' GetResourcePoliciesResponse Int
Creating a Request
data GetResourcePolicies Source #
See: newGetResourcePolicies
smart constructor.
GetResourcePolicies' | |
|
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
- The token for the next page of results.
$sel:principal:GetResourcePolicies'
, getResourcePolicies_principal
- The principal.
$sel:maxResults:GetResourcePolicies'
, getResourcePolicies_maxResults
- The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
$sel:resourceArns:GetResourcePolicies'
, getResourcePolicies_resourceArns
- The Amazon Resource Names (ARNs) of the resources.
Request Lenses
getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text) Source #
The token for the next page of results.
getResourcePolicies_principal :: Lens' GetResourcePolicies (Maybe Text) Source #
The principal.
getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural) Source #
The maximum number of results to return with a single call. To retrieve
the remaining results, make another call with the returned nextToken
value.
getResourcePolicies_resourceArns :: Lens' GetResourcePolicies [Text] Source #
The Amazon Resource Names (ARNs) of the resources.
Destructuring the Response
data GetResourcePoliciesResponse Source #
See: newGetResourcePoliciesResponse
smart constructor.
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:nextToken:GetResourcePolicies'
, getResourcePoliciesResponse_nextToken
- The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
$sel:policies:GetResourcePoliciesResponse'
, getResourcePoliciesResponse_policies
- A key policy document, in JSON format.
$sel:httpStatus:GetResourcePoliciesResponse'
, getResourcePoliciesResponse_httpStatus
- The response's http status code.
Response Lenses
getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text) Source #
The token to use to retrieve the next page of results. This value is
null
when there are no more results to return.
getResourcePoliciesResponse_policies :: Lens' GetResourcePoliciesResponse (Maybe [Text]) Source #
A key policy document, in JSON format.
getResourcePoliciesResponse_httpStatus :: Lens' GetResourcePoliciesResponse Int Source #
The response's http status code.