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 attached to the specified response plan.
This operation returns paginated results.
Synopsis
- data GetResourcePolicies = GetResourcePolicies' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- resourceArn :: Text
- newGetResourcePolicies :: Text -> GetResourcePolicies
- getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text)
- getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural)
- getResourcePolicies_resourceArn :: Lens' GetResourcePolicies Text
- data GetResourcePoliciesResponse = GetResourcePoliciesResponse' {}
- newGetResourcePoliciesResponse :: Int -> GetResourcePoliciesResponse
- getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text)
- getResourcePoliciesResponse_httpStatus :: Lens' GetResourcePoliciesResponse Int
- getResourcePoliciesResponse_resourcePolicies :: Lens' GetResourcePoliciesResponse [ResourcePolicy]
Creating a Request
data GetResourcePolicies Source #
See: newGetResourcePolicies
smart constructor.
GetResourcePolicies' | |
|
Instances
newGetResourcePolicies 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 pagination token to continue to the next page of results.
$sel:maxResults:GetResourcePolicies'
, getResourcePolicies_maxResults
- The maximum number of resource policies to display per page of results.
$sel:resourceArn:GetResourcePolicies'
, getResourcePolicies_resourceArn
- The Amazon Resource Name (ARN) of the response plan with the attached
resource policy.
Request Lenses
getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text) Source #
The pagination token to continue to the next page of results.
getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural) Source #
The maximum number of resource policies to display per page of results.
getResourcePolicies_resourceArn :: Lens' GetResourcePolicies Text Source #
The Amazon Resource Name (ARN) of the response plan with the attached resource policy.
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:nextToken:GetResourcePolicies'
, getResourcePoliciesResponse_nextToken
- The pagination token to continue to the next page of results.
$sel:httpStatus:GetResourcePoliciesResponse'
, getResourcePoliciesResponse_httpStatus
- The response's http status code.
$sel:resourcePolicies:GetResourcePoliciesResponse'
, getResourcePoliciesResponse_resourcePolicies
- Details about the resource policy attached to the response plan.
Response Lenses
getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text) Source #
The pagination token to continue to the next page of results.
getResourcePoliciesResponse_httpStatus :: Lens' GetResourcePoliciesResponse Int Source #
The response's http status code.
getResourcePoliciesResponse_resourcePolicies :: Lens' GetResourcePoliciesResponse [ResourcePolicy] Source #
Details about the resource policy attached to the response plan.