Skip to main content

cases

Creates, updates, deletes, gets or lists a cases resource.

Overview

Namecases
TypeResource
Idaws.security_ir.cases

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actual_incident_start_datestring (date-time)Response element for GetCase that provides the actual incident start date as identified by data analysis during the investigation.
case_arnstringResponse element for GetCase that provides the case ARN (pattern: <code>arn:aws:security-ir:\w+?-\w+?-\d+:[0-9]{12}:case/[0-9]{10}</code>)
case_attachmentsarrayResponse element for GetCase that provides a list of current case attachments.
case_metadataarrayCase response metadata
case_statusstringResponse element for GetCase that provides the case status. Options for statuses include Submitted | Detection and Analysis | Eradication, Containment and Recovery | Post-Incident Activities | Closed (Submitted, Acknowledged, Detection and Analysis, Containment, Eradication and Recovery, Post-incident Activities, Ready to Close, Closed)
closed_datestring (date-time)Response element for GetCase that provides the date a specified case was closed.
closure_codestringResponse element for GetCase that provides the summary code for why a case was closed. (Investigation Completed, Not Resolved, False Positive, Duplicate)
created_datestring (date-time)Response element for GetCase that provides the date the case was created.
descriptionstringResponse element for GetCase that provides contents of the case description.
engagement_typestringResponse element for GetCase that provides the engagement type. Options for engagement type include Active Security Event | Investigations (Security Incident, Investigation)
impacted_accountsarrayResponse element for GetCase that provides a list of impacted accounts.
impacted_aws_regionsarrayResponse element for GetCase that provides the impacted regions.
impacted_servicesarrayResponse element for GetCase that provides a list of impacted services.
last_updated_datestring (date-time)Response element for GetCase that provides the date a case was last modified.
pending_actionstringResponse element for GetCase that identifies the case is waiting on customer input. (Customer, None)
reported_incident_start_datestring (date-time)Response element for GetCase that provides the customer provided incident start date.
resolver_typestringResponse element for GetCase that provides the current resolver types. (AWS, Self)
threat_actor_ip_addressesarrayResponse element for GetCase that provides a list of suspicious IP addresses associated with unauthorized activity.
title_stringResponse element for GetCase that provides the case title.
watchersarrayResponse element for GetCase that provides a list of Watchers added to the case.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_caseselectcase_id, regionReturns the attributes of a case.
list_casesselectregionLists all cases the requester has access to.
create_caseinsertregion, resolverType, title, description, engagementType, reportedIncidentStartDate, impactedAccounts, watchersCreates a new case.
update_case_statusupdatecase_id, region, caseStatusUpdates the state transitions for a designated cases. Self-managed: the following states are available for self-managed cases. Submitted → Detection and Analysis Detection and Analysis → Containment, Eradication, and Recovery Detection and Analysis → Post-incident Activities Containment, Eradication, and Recovery → Detection and Analysis Containment, Eradication, and Recovery → Post-incident Activities Post-incident Activities → Containment, Eradication, and Recovery Post-incident Activities → Detection and Analysis Any → Closed AWS supported: You must use the CloseCase API to close.
update_resolver_typeupdatecase_id, region, resolverTypeUpdates the resolver type for a case. This is a one-way action and cannot be reversed.
update_caseupdatecase_id, regionUpdates an existing case.
close_caseexeccase_id, regionCloses an existing case.
send_feedbackexeccase_id, result_id, region, usefulnessSend feedback based on response investigation action

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.

NameDatatypeDescription
case_idstringSend feedback based on request caseID
regionstringAWS region (default: us-east-1)
result_idstringSend feedback based on request result ID

SELECT examples

Returns the attributes of a case.

SELECT
actual_incident_start_date,
case_arn,
case_attachments,
case_metadata,
case_status,
closed_date,
closure_code,
created_date,
description,
engagement_type,
impacted_accounts,
impacted_aws_regions,
impacted_services,
last_updated_date,
pending_action,
reported_incident_start_date,
resolver_type,
threat_actor_ip_addresses,
title_,
watchers
FROM aws.security_ir.cases
WHERE case_id = '{{ case_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new case.

INSERT INTO aws.security_ir.cases (
clientToken,
resolverType,
title,
description,
engagementType,
reportedIncidentStartDate,
impactedAccounts,
watchers,
threatActorIpAddresses,
impactedServices,
impactedAwsRegions,
tags,
region
)
SELECT
'{{ clientToken }}',
'{{ resolverType }}' /* required */,
'{{ title }}' /* required */,
'{{ description }}' /* required */,
'{{ engagementType }}' /* required */,
'{{ reportedIncidentStartDate }}' /* required */,
'{{ impactedAccounts }}' /* required */,
'{{ watchers }}' /* required */,
'{{ threatActorIpAddresses }}',
'{{ impactedServices }}',
'{{ impactedAwsRegions }}',
'{{ tags }}',
'{{ region }}'
RETURNING
case_id
;

UPDATE examples

Updates the state transitions for a designated cases. Self-managed: the following states are available for self-managed cases. Submitted → Detection and Analysis Detection and Analysis → Containment, Eradication, and Recovery Detection and Analysis → Post-incident Activities Containment, Eradication, and Recovery → Detection and Analysis Containment, Eradication, and Recovery → Post-incident Activities Post-incident Activities → Containment, Eradication, and Recovery Post-incident Activities → Detection and Analysis Any → Closed AWS supported: You must use the CloseCase API to close.

UPDATE aws.security_ir.cases
SET
caseStatus = '{{ caseStatus }}'
WHERE
case_id = '{{ case_id }}' --required
AND region = '{{ region }}' --required
AND caseStatus = '{{ caseStatus }}' --required
RETURNING
case_status;

Lifecycle Methods

Closes an existing case.

EXEC aws.security_ir.cases.close_case
@case_id='{{ case_id }}' --required,
@region='{{ region }}' --required
;