| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WAFV2.GetPermissionPolicy
Description
Returns the IAM policy that is attached to the specified rule group.
You must be the owner of the rule group to perform this operation.
Synopsis
- data GetPermissionPolicy = GetPermissionPolicy' {
- resourceArn :: Text
- newGetPermissionPolicy :: Text -> GetPermissionPolicy
- getPermissionPolicy_resourceArn :: Lens' GetPermissionPolicy Text
- data GetPermissionPolicyResponse = GetPermissionPolicyResponse' {
- policy :: Maybe Text
- httpStatus :: Int
- newGetPermissionPolicyResponse :: Int -> GetPermissionPolicyResponse
- getPermissionPolicyResponse_policy :: Lens' GetPermissionPolicyResponse (Maybe Text)
- getPermissionPolicyResponse_httpStatus :: Lens' GetPermissionPolicyResponse Int
Creating a Request
data GetPermissionPolicy Source #
See: newGetPermissionPolicy smart constructor.
Constructors
| GetPermissionPolicy' | |
Fields
| |
Instances
newGetPermissionPolicy Source #
Arguments
| :: Text | |
| -> GetPermissionPolicy |
Create a value of GetPermissionPolicy 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:
GetPermissionPolicy, getPermissionPolicy_resourceArn - The Amazon Resource Name (ARN) of the rule group for which you want to
get the policy.
Request Lenses
getPermissionPolicy_resourceArn :: Lens' GetPermissionPolicy Text Source #
The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.
Destructuring the Response
data GetPermissionPolicyResponse Source #
See: newGetPermissionPolicyResponse smart constructor.
Constructors
| GetPermissionPolicyResponse' | |
Fields
| |
Instances
newGetPermissionPolicyResponse Source #
Create a value of GetPermissionPolicyResponse 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:GetPermissionPolicyResponse', getPermissionPolicyResponse_policy - The IAM policy that is attached to the specified rule group.
$sel:httpStatus:GetPermissionPolicyResponse', getPermissionPolicyResponse_httpStatus - The response's http status code.
Response Lenses
getPermissionPolicyResponse_policy :: Lens' GetPermissionPolicyResponse (Maybe Text) Source #
The IAM policy that is attached to the specified rule group.
getPermissionPolicyResponse_httpStatus :: Lens' GetPermissionPolicyResponse Int Source #
The response's http status code.