Skip to main content

managed_insight_rules

Creates, updates, deletes, gets or lists a managed_insight_rules resource.

Overview

Namemanaged_insight_rules
TypeResource
Idaws.cloudwatch.managed_insight_rules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
managed_rulesarrayThe managed rules that are available for the specified Amazon Web Services resource.
next_tokenstringInclude 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:

NameAccessible byRequired ParamsOptional ParamsDescription
list_managed_insight_rulesselectregionReturns a list that contains the number of managed Contributor Insights rules in your account.
put_managed_insight_rulesreplaceregion, ManagedRulesCreates 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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

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;