get_violation_details
¶
get_violation_details(
policy_id: PolicyId,
member_account: AWSAccountId,
resource_id: ResourceId,
resource_type: ResourceType,
*,
config_overrides: Optional[FMSClientConfig] = 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/fms.py
1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 | |