AIOps / Client / get_investigation_group_policy

get_investigation_group_policy

AIOps.Client.get_investigation_group_policy(**kwargs)

Returns the JSON of the IAM resource policy associated with the specified investigation group in a string. For example, {\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"aiops.alarms.cloudwatch.amazonaws.com\"},\"Action\":[\"aiops:CreateInvestigation\",\"aiops:CreateInvestigationEvent\"],\"Resource\":\"*\",\"Condition\":{\"StringEquals\":{\"aws:SourceAccount\":\"111122223333\"},\"ArnLike\":{\"aws:SourceArn\":\"arn:aws:cloudwatch:us-east-1:111122223333:alarm:*\"}}}]}.

See also: AWS API Documentation

Request Syntax

response = client.get_investigation_group_policy(
    identifier='string'
)
Parameters:

identifier (string) –

[REQUIRED]

Specify either the name or the ARN of the investigation group that you want to view the policy of.

Return type:

dict

Returns:

Response Syntax

{
    'investigationGroupArn': 'string',
    'policy': 'string'
}

Response Structure

  • (dict) –

    • investigationGroupArn (string) –

      The Amazon Resource Name (ARN) of the investigation group that you want to view the policy of.

    • policy (string) –

      The policy, in JSON format.

Exceptions