managed_insight_rules
Creates, updates, deletes, gets or lists a managed_insight_rules resource.
Overview
| Name | managed_insight_rules |
| Type | Resource |
| Id | aws.cloudwatch.managed_insight_rules |
Fields
The following fields are returned by SELECT queries:
- list_managed_insight_rules
| Name | Datatype | Description |
|---|---|---|
managed_rules | array | The managed rules that are available for the specified Amazon Web Services resource. |
next_token | string | Include this value to get the next set of rules if the value was returned by the previous operation. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_managed_insight_rules | select | region | Returns a list that contains the number of managed Contributor Insights rules in your account. | |
put_managed_insight_rules | replace | region, ManagedRules | Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. When you enable a managed rule, you create a Contributor Insights rule that collects data from Amazon Web Services services. You cannot edit these rules with PutInsightRule. The rules can be enabled, disabled, and deleted using EnableInsightRules, DisableInsightRules, and DeleteInsightRules. If a previously created managed rule is currently disabled, a subsequent call to this API will re-enable it. Use ListManagedInsightRules to describe all available rules. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_managed_insight_rules
Returns a list that contains the number of managed Contributor Insights rules in your account.
SELECT
managed_rules,
next_token
FROM aws.cloudwatch.managed_insight_rules
WHERE region = '{{ region }}' -- required
;
REPLACE examples
- put_managed_insight_rules
Creates a managed Contributor Insights rule for a specified Amazon Web Services resource. When you enable a managed rule, you create a Contributor Insights rule that collects data from Amazon Web Services services. You cannot edit these rules with PutInsightRule. The rules can be enabled, disabled, and deleted using EnableInsightRules, DisableInsightRules, and DeleteInsightRules. If a previously created managed rule is currently disabled, a subsequent call to this API will re-enable it. Use ListManagedInsightRules to describe all available rules.
REPLACE aws.cloudwatch.managed_insight_rules
SET
ManagedRules = '{{ ManagedRules }}'
WHERE
region = '{{ region }}' --required
AND ManagedRules = '{{ ManagedRules }}' --required
RETURNING
failures;