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 Regional 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 web ACL for the specified resource, either an application load balancer or Amazon API Gateway stage.
Synopsis
- data GetWebACLForResource = GetWebACLForResource' {
- resourceArn :: Text
- newGetWebACLForResource :: Text -> GetWebACLForResource
- getWebACLForResource_resourceArn :: Lens' GetWebACLForResource Text
- data GetWebACLForResourceResponse = GetWebACLForResourceResponse' {}
- newGetWebACLForResourceResponse :: Int -> GetWebACLForResourceResponse
- getWebACLForResourceResponse_webACLSummary :: Lens' GetWebACLForResourceResponse (Maybe WebACLSummary)
- getWebACLForResourceResponse_httpStatus :: Lens' GetWebACLForResourceResponse Int
Creating a Request
data GetWebACLForResource Source #
See: newGetWebACLForResource
smart constructor.
GetWebACLForResource' | |
|
Instances
newGetWebACLForResource Source #
Create a value of GetWebACLForResource
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:GetWebACLForResource'
, getWebACLForResource_resourceArn
- The ARN (Amazon Resource Name) of the resource for which to get the web
ACL, either an application load balancer or Amazon API Gateway stage.
The ARN should be in one of the following formats:
- For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
- For an Amazon API Gateway stage:
arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
Request Lenses
getWebACLForResource_resourceArn :: Lens' GetWebACLForResource Text Source #
The ARN (Amazon Resource Name) of the resource for which to get the web ACL, either an application load balancer or Amazon API Gateway stage.
The ARN should be in one of the following formats:
- For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
- For an Amazon API Gateway stage:
arn:aws:apigateway:region::/restapis/api-id/stages/stage-name
Destructuring the Response
data GetWebACLForResourceResponse Source #
See: newGetWebACLForResourceResponse
smart constructor.
GetWebACLForResourceResponse' | |
|
Instances
newGetWebACLForResourceResponse Source #
Create a value of GetWebACLForResourceResponse
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:webACLSummary:GetWebACLForResourceResponse'
, getWebACLForResourceResponse_webACLSummary
- Information about the web ACL that you specified in the
GetWebACLForResource
request. If there is no associated resource, a
null WebACLSummary is returned.
$sel:httpStatus:GetWebACLForResourceResponse'
, getWebACLForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
getWebACLForResourceResponse_webACLSummary :: Lens' GetWebACLForResourceResponse (Maybe WebACLSummary) Source #
Information about the web ACL that you specified in the
GetWebACLForResource
request. If there is no associated resource, a
null WebACLSummary is returned.
getWebACLForResourceResponse_httpStatus :: Lens' GetWebACLForResourceResponse Int Source #
The response's http status code.