aws.wafv2.associate_web_acl
**Autogenerated function**
Disassociates a web ACL from a regional application resource.
A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, or an AppSync GraphQL API.
Args:
ctx:
hub:
name(Text): The idem name for the resource
resource_id(Text, Optional): The identifier for this object. resource_arn in this case
Returns:
Dict[str, Any]
Examples:
.. code-block:: sls
AWSServiceRoleForEC2Spot:
aws.wafv2.associate_web_acl.absent:
- name: arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/waf-cli-alb/1ea17125f8b25a2a
- resource_id: arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/waf-cli-alb/1ea17125f8b25a2a
**Autogenerated function**
Describe the resource in a way that can be recreated/managed with the corresponding "present" function
Retrieves the Amazon Resource Names (ARNs) for the regional resources that are associated with the specified web ACL
Returns:
Dict[str, Any]
Examples:
.. code-block:: bash
$ idem describe aws.wafv2.associate_web_acl
Associates a web ACL with a regional application resource, to protect the resource.
A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, or an AppSync GraphQL API.
Args:
name(Text): The idem name for the resource
resource_id(Text, Optional): The identifier for this object. resource_arn in this case
web_acl_arn: The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
resource_arn: The Amazon Resource Name (ARN) of the resource to associate with the web ACL.
Request Syntax:
[resource-arn]:
aws.wafv2.associate_web_acl.present:
- name: 'string'
- resource_id: 'string'
- web_acl_arn: 'string'
- resource_arn: 'string'
Returns:
Dict[str, Any]
Examples:
.. code-block:: sls
arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/waf-cli-alb/1ea17125f8b25a2a:
aws.wafv2.associate_web_acl.present:
- name: arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/waf-cli-alb/1ea17125f8b25a2a
- web_acl_arn: arn:aws:wafv2:us-west-2:123456789012:regional/webacl/test-cli/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
- resource_arn: arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/waf-cli-alb/1ea17125f8b25a2a
- resource_id: arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/waf-cli-alb/1ea17125f8b25a2a
Full plugin documentation is available on the Idem documentation site - aws.wafv2.associate_web_acl .