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.
Associates a web ACL with a resource, either an application load balancer or Amazon API Gateway stage.
Synopsis
- data AssociateWebACL = AssociateWebACL' {
- webACLId :: Text
- resourceArn :: Text
- newAssociateWebACL :: Text -> Text -> AssociateWebACL
- associateWebACL_webACLId :: Lens' AssociateWebACL Text
- associateWebACL_resourceArn :: Lens' AssociateWebACL Text
- data AssociateWebACLResponse = AssociateWebACLResponse' {
- httpStatus :: Int
- newAssociateWebACLResponse :: Int -> AssociateWebACLResponse
- associateWebACLResponse_httpStatus :: Lens' AssociateWebACLResponse Int
Creating a Request
data AssociateWebACL Source #
See: newAssociateWebACL
smart constructor.
AssociateWebACL' | |
|
Instances
Create a value of AssociateWebACL
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:webACLId:AssociateWebACL'
, associateWebACL_webACLId
- A unique identifier (ID) for the web ACL.
$sel:resourceArn:AssociateWebACL'
, associateWebACL_resourceArn
- The ARN (Amazon Resource Name) of the resource to be protected, 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
associateWebACL_webACLId :: Lens' AssociateWebACL Text Source #
A unique identifier (ID) for the web ACL.
associateWebACL_resourceArn :: Lens' AssociateWebACL Text Source #
The ARN (Amazon Resource Name) of the resource to be protected, 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 AssociateWebACLResponse Source #
See: newAssociateWebACLResponse
smart constructor.
AssociateWebACLResponse' | |
|
Instances
newAssociateWebACLResponse Source #
Create a value of AssociateWebACLResponse
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:httpStatus:AssociateWebACLResponse'
, associateWebACLResponse_httpStatus
- The response's http status code.
Response Lenses
associateWebACLResponse_httpStatus :: Lens' AssociateWebACLResponse Int Source #
The response's http status code.