Skip to main content

investigation_groups

Creates, updates, deletes or gets an investigation_group resource or lists investigation_groups in a region

Overview

Nameinvestigation_groups
TypeResource
DescriptionDefinition of AWS::AIOps::InvestigationGroup Resource Type
Idawscc.aiops.investigation_groups

Fields

NameDatatypeDescription
role_arnstringThe Investigation Role's ARN.
namestringUser friendly name for resources.
created_atstringThe timestamp value.
arnstringThe Investigation Group's ARN.
retention_in_daysintegerThe number of days to retain the investigation group
encryption_configobject
investigation_group_policystringInvestigation Group policy
is_cloud_trail_event_history_enabledbooleanFlag to enable cloud trail history
tag_key_boundariesarray
chatbot_notification_channelsarrayAn array of key-value pairs of notification channels to apply to this resource.
cross_account_configurationsarrayAn array of cross account configurations.
tagsarrayAn array of key-value pairs to apply to this resource.
regionstringAWS region.

For more information, see AWS::AIOps::InvestigationGroup.

Methods

NameResourceAccessible byRequired Params
create_resourceinvestigation_groupsINSERTName, region
delete_resourceinvestigation_groupsDELETEIdentifier, region
update_resourceinvestigation_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesinvestigation_groups_list_onlySELECTregion
get_resourceinvestigation_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual investigation_group.

SELECT
region,
role_arn,
name,
created_by,
created_at,
last_modified_by,
last_modified_at,
arn,
retention_in_days,
encryption_config,
investigation_group_policy,
is_cloud_trail_event_history_enabled,
tag_key_boundaries,
chatbot_notification_channels,
cross_account_configurations,
tags
FROM awscc.aiops.investigation_groups
WHERE
region = 'us-east-1' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new investigation_group resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.aiops.investigation_groups (
Name,
region
)
SELECT
'{{ name }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a investigation_group resource, using stack-deploy.

/*+ update */
UPDATE awscc.aiops.investigation_groups
SET PatchDocument = string('{{ {
"RoleArn": role_arn,
"EncryptionConfig": encryption_config,
"InvestigationGroupPolicy": investigation_group_policy,
"IsCloudTrailEventHistoryEnabled": is_cloud_trail_event_history_enabled,
"TagKeyBoundaries": tag_key_boundaries,
"ChatbotNotificationChannels": chatbot_notification_channels,
"CrossAccountConfigurations": cross_account_configurations,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.aiops.investigation_groups
WHERE
Identifier = '{{ arn }}' AND
region = 'us-east-1';

Permissions

To operate on the investigation_groups resource, the following permissions are required:

aiops:CreateInvestigationGroup,
aiops:GetInvestigationGroup,
aiops:GetInvestigationGroupPolicy,
aiops:PutInvestigationGroupPolicy,
aiops:TagResource,
aiops:ListTagsForResource,
iam:PassRole,
kms:DescribeKey,
kms:ListAliases,
kms:Decrypt,
kms:Encrypt,
kms:GenerateDataKey