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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.aiops.investigation_groups
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

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