violation_details
Creates, updates, deletes, gets or lists a violation_details resource.
Overview
| Name | violation_details |
| Type | Resource |
| Id | aws.fms.violation_details |
Fields
The following fields are returned by SELECT queries:
- get_violation_details
| Name | Datatype | Description |
|---|---|---|
member_account | string | The Amazon Web Services account that the violation details were requested for. (pattern: <code>^[0-9]+$</code>) |
policy_id | string | The ID of the Firewall Manager policy that the violation details were requested for. (pattern: <code>^[a-z0-9A-Z-]{36}$</code>) |
resource_description | string | Brief description for the requested resource. |
resource_id | string | The resource ID that the violation details were requested for. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>) |
resource_tags | array | The ResourceTag objects associated with the resource. |
resource_type | string | The resource type that the violation details were requested for. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>) |
resource_violations | array | List of violations for the requested resource. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_violation_details | select | region | Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_violation_details
Retrieves violations for a resource based on the specified Firewall Manager policy and Amazon Web Services account.
SELECT
member_account,
policy_id,
resource_description,
resource_id,
resource_tags,
resource_type,
resource_violations
FROM aws.fms.violation_details
WHERE region = '{{ region }}' -- required
;