Module Values.PutInvestigationGroupPolicyRequestSource

Creates an IAM resource policy and assigns it to the specified investigation group. If you create your investigation group with CreateInvestigationGroup and you want to enable CloudWatch alarms to create investigations and add events to investigations, you must use this operation to create a policy similar to this example. { "Version": "2008-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "Service": "aiops.alarms.cloudwatch.amazonaws.com" }, "Action": [ "aiops:CreateInvestigation", "aiops:CreateInvestigationEvent" ], "Resource": "*", "Condition": { "StringEquals": { "aws:SourceAccount": "account-id" }, "ArnLike": { "aws:SourceArn": "arn:aws:cloudwatch:region:account-id:alarm:*" } } } ] }

Sourcetype nonrec t = {
  1. identifier : InvestigationGroupIdentifier.t;
    (*

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

    *)
  2. policy : InvestigationGroupPolicyDocument.t;
    (*

    The policy, in JSON format.

    *)
}
Sourceval context_ : string
Sourceval to_value : t -> [> `Structure of (string * [> `String of InvestigationGroupIdentifier.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t