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 |
Retrieves the WebACL for the specified resource.
Synopsis
- data GetWebACLForResource = GetWebACLForResource' {
- resourceArn :: Text
- newGetWebACLForResource :: Text -> GetWebACLForResource
- getWebACLForResource_resourceArn :: Lens' GetWebACLForResource Text
- data GetWebACLForResourceResponse = GetWebACLForResourceResponse' {
- webACL :: Maybe WebACL
- httpStatus :: Int
- newGetWebACLForResourceResponse :: Int -> GetWebACLForResourceResponse
- getWebACLForResourceResponse_webACL :: Lens' GetWebACLForResourceResponse (Maybe WebACL)
- 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:
GetWebACLForResource
, getWebACLForResource_resourceArn
- The Amazon Resource Name (ARN) of the resource whose web ACL you want to
retrieve.
The ARN must 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 REST API:
arn:aws:apigateway:
region
::/restapis/
api-id
/stages/
stage-name
- For an AppSync GraphQL API:
arn:aws:appsync:
region
:
account-id
:apis/
GraphQLApiId
- For an Amazon Cognito user pool:
arn:aws:cognito-idp:
region
:
account-id
:userpool/
user-pool-id
Request Lenses
getWebACLForResource_resourceArn :: Lens' GetWebACLForResource Text Source #
The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.
The ARN must 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 REST API:
arn:aws:apigateway:
region
::/restapis/
api-id
/stages/
stage-name
- For an AppSync GraphQL API:
arn:aws:appsync:
region
:
account-id
:apis/
GraphQLApiId
- For an Amazon Cognito user pool:
arn:aws:cognito-idp:
region
:
account-id
:userpool/
user-pool-id
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:webACL:GetWebACLForResourceResponse'
, getWebACLForResourceResponse_webACL
- The web ACL that is associated with the resource. If there is no
associated resource, WAF returns a null web ACL.
$sel:httpStatus:GetWebACLForResourceResponse'
, getWebACLForResourceResponse_httpStatus
- The response's http status code.
Response Lenses
getWebACLForResourceResponse_webACL :: Lens' GetWebACLForResourceResponse (Maybe WebACL) Source #
The web ACL that is associated with the resource. If there is no associated resource, WAF returns a null web ACL.
getWebACLForResourceResponse_httpStatus :: Lens' GetWebACLForResourceResponse Int Source #
The response's http status code.