Skip to main content

investigation_groups

Creates, updates, deletes, gets or lists an investigation_groups resource.

Overview

Nameinvestigation_groups
TypeResource
Idaws.aiops.investigation_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the investigation group. (pattern: <code>[-_A-Za-z0-9&#91;&#93;()&#123;&#125;.: ]+</code>)
arnstringThe Amazon Resource Name (ARN) of the investigation group. (pattern: <code>arn:(aws|aws-us-gov|aws-cn|aws-iso|aws-iso-b):aiops:[a-zA-Z0-9-]*:[0-9]{12}:investigation-group/[A-Za-z0-9]{16}</code>)
chatbot_notification_channelobjectThis structure is a string array. The first string is the ARN of a Amazon SNS topic. The array of strings display the ARNs of chat applications configurations that are associated with that topic. For more information about these configuration ARNs, see Getting started with Amazon Q in chat applications and Resource type defined by Amazon Web Services Chatbot.
created_atinteger (int64)The date and time that the investigation group was created.
created_bystringThe name of the user who created the investigation group. (pattern: <code>[-_/A-Za-z0-9:.]+</code>)
cross_account_configurationsarrayLists the AWSAccountId of the accounts configured for cross-account access and the results of the last scan performed on each account.
encryption_configurationobjectUse this structure to specify a customer managed KMS key to use to encrypt investigation data.
is_cloud_trail_event_history_enabledbooleanSpecifies whether CloudWatch investigationshas access to change events that are recorded by CloudTrail.
last_modified_atinteger (int64)The date and time that the investigation group was most recently modified.
last_modified_bystringThe name of the user who created the investigation group. (pattern: <code>[-_/A-Za-z0-9:.]+</code>)
retention_in_daysinteger (int64)Specifies how long that investigation data is kept.
role_arnstringThe ARN of the IAM role that the investigation group uses for permissions to gather data. (pattern: <code>arn:.*</code>)
tag_key_boundariesarrayDisplays the custom tag keys for custom applications in your system that you have specified in the investigation group. Resource tags help CloudWatch investigations narrow the search space when it is unable to discover definite relationships between resources.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_investigation_groupselectidentifier, regionReturns the configuration information for the specified investigation group.
list_investigation_groupsselectregionnextToken, maxResultsReturns the ARN and name of each investigation group in the account.
create_investigation_groupinsertregion, name, roleArnCreates an investigation group in your account. Creating an investigation group is a one-time setup task for each Region in your account. It is a necessary task to be able to perform investigations. Settings in the investigation group help you centrally manage the common properties of your investigations, such as the following: Who can access the investigations Whether investigation data is encrypted with a customer managed Key Management Service key. How long investigations and their data are retained by default. Currently, you can have one investigation group in each Region in your account. Each investigation in a Region is a part of the investigation group in that Region To create an investigation group and set up CloudWatch investigations, you must be signed in to an IAM principal that has either the AIOpsConsoleAdminPolicy or the AdministratorAccess IAM policy attached, or to an account that has similar permissions. You can configure CloudWatch alarms to start investigations and add events to investigations. If you create your investigation group with CreateInvestigationGroup and you want to enable alarms to do this, you must use PutInvestigationGroupPolicy to create a resource policy that grants this permission to CloudWatch alarms. For more information about configuring CloudWatch alarms, see Using Amazon CloudWatch alarms
update_investigation_groupupdateidentifier, regionUpdates the configuration of the specified investigation group.
delete_investigation_groupdeleteidentifier, regionDeletes the specified investigation group from your account. You can currently have one investigation group per Region in your account. After you delete an investigation group, you can later create a new investigation group in the same Region.

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
identifierstringSpecify either the name or the ARN of the investigation group that you want to delete.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in one operation. If you omit this parameter, the default of 50 is used.
nextTokenstringInclude this value, if it was returned by the previous operation, to get the next set of service operations.

SELECT examples

Returns the configuration information for the specified investigation group.

SELECT
name,
arn,
chatbot_notification_channel,
created_at,
created_by,
cross_account_configurations,
encryption_configuration,
is_cloud_trail_event_history_enabled,
last_modified_at,
last_modified_by,
retention_in_days,
role_arn,
tag_key_boundaries
FROM aws.aiops.investigation_groups
WHERE identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates an investigation group in your account. Creating an investigation group is a one-time setup task for each Region in your account. It is a necessary task to be able to perform investigations. Settings in the investigation group help you centrally manage the common properties of your investigations, such as the following: Who can access the investigations Whether investigation data is encrypted with a customer managed Key Management Service key. How long investigations and their data are retained by default. Currently, you can have one investigation group in each Region in your account. Each investigation in a Region is a part of the investigation group in that Region To create an investigation group and set up CloudWatch investigations, you must be signed in to an IAM principal that has either the AIOpsConsoleAdminPolicy or the AdministratorAccess IAM policy attached, or to an account that has similar permissions. You can configure CloudWatch alarms to start investigations and add events to investigations. If you create your investigation group with CreateInvestigationGroup and you want to enable alarms to do this, you must use PutInvestigationGroupPolicy to create a resource policy that grants this permission to CloudWatch alarms. For more information about configuring CloudWatch alarms, see Using Amazon CloudWatch alarms

INSERT INTO aws.aiops.investigation_groups (
name,
roleArn,
encryptionConfiguration,
retentionInDays,
tags,
tagKeyBoundaries,
chatbotNotificationChannel,
isCloudTrailEventHistoryEnabled,
crossAccountConfigurations,
region
)
SELECT
'{{ name }}' /* required */,
'{{ roleArn }}' /* required */,
'{{ encryptionConfiguration }}',
{{ retentionInDays }},
'{{ tags }}',
'{{ tagKeyBoundaries }}',
'{{ chatbotNotificationChannel }}',
{{ isCloudTrailEventHistoryEnabled }},
'{{ crossAccountConfigurations }}',
'{{ region }}'
RETURNING
arn
;

UPDATE examples

Updates the configuration of the specified investigation group.

UPDATE aws.aiops.investigation_groups
SET
roleArn = '{{ roleArn }}',
encryptionConfiguration = '{{ encryptionConfiguration }}',
tagKeyBoundaries = '{{ tagKeyBoundaries }}',
chatbotNotificationChannel = '{{ chatbotNotificationChannel }}',
isCloudTrailEventHistoryEnabled = {{ isCloudTrailEventHistoryEnabled }},
crossAccountConfigurations = '{{ crossAccountConfigurations }}'
WHERE
identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes the specified investigation group from your account. You can currently have one investigation group per Region in your account. After you delete an investigation group, you can later create a new investigation group in the same Region.

DELETE FROM aws.aiops.investigation_groups
WHERE identifier = '{{ identifier }}' --required
AND region = '{{ region }}' --required
;