AWS v6.83.0 published on Monday, Jun 16, 2025 by Pulumi
aws.cloudwatch.getContributorManagedInsightRules
Explore with Pulumi AI
Data source for managing an AWS CloudWatch Contributor Managed Insight Rules.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.cloudwatch.getContributorManagedInsightRules({
resourceArn: "arn:aws:ec2:us-west-2:123456789012:resource-name/resourceid",
});
import pulumi
import pulumi_aws as aws
example = aws.cloudwatch.get_contributor_managed_insight_rules(resource_arn="arn:aws:ec2:us-west-2:123456789012:resource-name/resourceid")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/cloudwatch"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudwatch.GetContributorManagedInsightRules(ctx, &cloudwatch.GetContributorManagedInsightRulesArgs{
ResourceArn: "arn:aws:ec2:us-west-2:123456789012:resource-name/resourceid",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.CloudWatch.GetContributorManagedInsightRules.Invoke(new()
{
ResourceArn = "arn:aws:ec2:us-west-2:123456789012:resource-name/resourceid",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.cloudwatch.CloudwatchFunctions;
import com.pulumi.aws.cloudwatch.inputs.GetContributorManagedInsightRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = CloudwatchFunctions.getContributorManagedInsightRules(GetContributorManagedInsightRulesArgs.builder()
.resourceArn("arn:aws:ec2:us-west-2:123456789012:resource-name/resourceid")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:cloudwatch:getContributorManagedInsightRules
arguments:
resourceArn: arn:aws:ec2:us-west-2:123456789012:resource-name/resourceid
Using getContributorManagedInsightRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getContributorManagedInsightRules(args: GetContributorManagedInsightRulesArgs, opts?: InvokeOptions): Promise<GetContributorManagedInsightRulesResult>
function getContributorManagedInsightRulesOutput(args: GetContributorManagedInsightRulesOutputArgs, opts?: InvokeOptions): Output<GetContributorManagedInsightRulesResult>
def get_contributor_managed_insight_rules(resource_arn: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContributorManagedInsightRulesResult
def get_contributor_managed_insight_rules_output(resource_arn: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContributorManagedInsightRulesResult]
func GetContributorManagedInsightRules(ctx *Context, args *GetContributorManagedInsightRulesArgs, opts ...InvokeOption) (*GetContributorManagedInsightRulesResult, error)
func GetContributorManagedInsightRulesOutput(ctx *Context, args *GetContributorManagedInsightRulesOutputArgs, opts ...InvokeOption) GetContributorManagedInsightRulesResultOutput
> Note: This function is named GetContributorManagedInsightRules
in the Go SDK.
public static class GetContributorManagedInsightRules
{
public static Task<GetContributorManagedInsightRulesResult> InvokeAsync(GetContributorManagedInsightRulesArgs args, InvokeOptions? opts = null)
public static Output<GetContributorManagedInsightRulesResult> Invoke(GetContributorManagedInsightRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetContributorManagedInsightRulesResult> getContributorManagedInsightRules(GetContributorManagedInsightRulesArgs args, InvokeOptions options)
public static Output<GetContributorManagedInsightRulesResult> getContributorManagedInsightRules(GetContributorManagedInsightRulesArgs args, InvokeOptions options)
fn::invoke:
function: aws:cloudwatch/getContributorManagedInsightRules:getContributorManagedInsightRules
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Arn string - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- Resource
Arn string - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- resource
Arn String - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- resource
Arn string - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- resource_
arn str - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- resource
Arn String - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
getContributorManagedInsightRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Rules List<GetContributor Managed Insight Rules Managed Rule> - Managed rules that are available for the specified Amazon Web Services resource. See
managed_rules reference
below for details. - Resource
Arn string - If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
Rules []GetContributor Managed Insight Rules Managed Rule - Managed rules that are available for the specified Amazon Web Services resource. See
managed_rules reference
below for details. - Resource
Arn string - If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Rules List<GetContributor Managed Insight Rules Managed Rule> - Managed rules that are available for the specified Amazon Web Services resource. See
managed_rules reference
below for details. - resource
Arn String - If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
Rules GetContributor Managed Insight Rules Managed Rule[] - Managed rules that are available for the specified Amazon Web Services resource. See
managed_rules reference
below for details. - resource
Arn string - If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
rules Sequence[GetContributor Managed Insight Rules Managed Rule] - Managed rules that are available for the specified Amazon Web Services resource. See
managed_rules reference
below for details. - resource_
arn str - If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
Rules List<Property Map> - Managed rules that are available for the specified Amazon Web Services resource. See
managed_rules reference
below for details. - resource
Arn String - If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
Supporting Types
GetContributorManagedInsightRulesManagedRule
- Resource
Arn string - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- Rule
States List<GetContributor Managed Insight Rules Managed Rule Rule State> - Describes the state of a managed rule. If the rule is enabled, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource. See
rule_state reference
below for details. - Template
Name string - Template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
- Resource
Arn string - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- Rule
States []GetContributor Managed Insight Rules Managed Rule Rule State - Describes the state of a managed rule. If the rule is enabled, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource. See
rule_state reference
below for details. - Template
Name string - Template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
- resource
Arn String - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- rule
States List<GetContributor Managed Insight Rules Managed Rule Rule State> - Describes the state of a managed rule. If the rule is enabled, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource. See
rule_state reference
below for details. - template
Name String - Template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
- resource
Arn string - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- rule
States GetContributor Managed Insight Rules Managed Rule Rule State[] - Describes the state of a managed rule. If the rule is enabled, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource. See
rule_state reference
below for details. - template
Name string - Template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
- resource_
arn str - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- rule_
states Sequence[GetContributor Managed Insight Rules Managed Rule Rule State] - Describes the state of a managed rule. If the rule is enabled, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource. See
rule_state reference
below for details. - template_
name str - Template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
- resource
Arn String - ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- rule
States List<Property Map> - Describes the state of a managed rule. If the rule is enabled, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource. See
rule_state reference
below for details. - template
Name String - Template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
GetContributorManagedInsightRulesManagedRuleRuleState
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.