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 |
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Returns the IAM policy attached to the RuleGroup.
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.
GetPermissionPolicy' | |
|
Instances
newGetPermissionPolicy Source #
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:
$sel:resourceArn:GetPermissionPolicy'
, getPermissionPolicy_resourceArn
- The Amazon Resource Name (ARN) of the RuleGroup for which you want to
get the policy.
Request Lenses
getPermissionPolicy_resourceArn :: Lens' GetPermissionPolicy Text Source #
The Amazon Resource Name (ARN) of the RuleGroup for which you want to get the policy.
Destructuring the Response
data GetPermissionPolicyResponse Source #
See: newGetPermissionPolicyResponse
smart constructor.
GetPermissionPolicyResponse' | |
|
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 attached to the specified RuleGroup.
$sel:httpStatus:GetPermissionPolicyResponse'
, getPermissionPolicyResponse_httpStatus
- The response's http status code.
Response Lenses
getPermissionPolicyResponse_policy :: Lens' GetPermissionPolicyResponse (Maybe Text) Source #
The IAM policy attached to the specified RuleGroup.
getPermissionPolicyResponse_httpStatus :: Lens' GetPermissionPolicyResponse Int Source #
The response's http status code.