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 a resource policy that is identified by its resource ARN.
Synopsis
- data GetResourcePolicy = GetResourcePolicy' {
- resourceArn :: Text
- newGetResourcePolicy :: Text -> GetResourcePolicy
- getResourcePolicy_resourceArn :: Lens' GetResourcePolicy Text
- data GetResourcePolicyResponse = GetResourcePolicyResponse' {
- policy :: Maybe Text
- httpStatus :: Int
- newGetResourcePolicyResponse :: Int -> GetResourcePolicyResponse
- getResourcePolicyResponse_policy :: Lens' GetResourcePolicyResponse (Maybe Text)
- getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int
Creating a Request
data GetResourcePolicy Source #
See: newGetResourcePolicy
smart constructor.
GetResourcePolicy' | |
|
Instances
Create a value of GetResourcePolicy
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:resourceArn:GetResourcePolicy'
, getResourcePolicy_resourceArn
- The ARN of the resource that is associated with the resource policy.
Request Lenses
getResourcePolicy_resourceArn :: Lens' GetResourcePolicy Text Source #
The ARN of the resource that is associated with the resource policy.
Destructuring the Response
data GetResourcePolicyResponse Source #
See: newGetResourcePolicyResponse
smart constructor.
GetResourcePolicyResponse' | |
|
Instances
newGetResourcePolicyResponse Source #
Create a value of GetResourcePolicyResponse
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:policy:GetResourcePolicyResponse'
, getResourcePolicyResponse_policy
- The resource policy for the resource identified by the input ARN
parameter.
$sel:httpStatus:GetResourcePolicyResponse'
, getResourcePolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getResourcePolicyResponse_policy :: Lens' GetResourcePolicyResponse (Maybe Text) Source #
The resource policy for the resource identified by the input ARN parameter.
getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int Source #
The response's http status code.