get_violation_details
async
¶
get_violation_details(
policy_id: PolicyId,
member_account: AWSAccountId,
resource_id: ResourceId,
resource_type: ResourceType,
*,
config_overrides: Optional[AsyncFMSClientConfig] = None,
) -> GetViolationDetailsResponse
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
Parameters:
-
policy_id(PolicyId) –The ID of the Firewall Manager policy that you want the details for. You can get violation details for the following policy types:
-
WAF
-
DNS Firewall
-
Imported Network Firewall
-
Network Firewall
-
Security group content audit
-
Network ACL
-
Third-party firewall
-
-
member_account(AWSAccountId) –The Amazon Web Services account ID that you want the details for.
-
resource_id(ResourceId) –The ID of the resource that has violations.
-
resource_type(ResourceType) –The resource type. This is in the format shown in the Amazon Web Services Resource Types Reference. Supported resource types are:
AWS::WAFv2::WebACL,AWS::EC2::Instance,AWS::EC2::NetworkInterface,AWS::EC2::SecurityGroup,AWS::NetworkFirewall::FirewallPolicy, andAWS::EC2::Subnet.
Raises:
-
InternalErrorException–The operation failed because of a system problem, even though the request was valid. Retry your request.
-
InvalidInputException–The parameters of the request were invalid.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_fms/_services/async_fms.py
1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 | |