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 dictionaryThe following arguments are supported:
- ResourceArn string
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- ResourceArn string
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- resourceArn String
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- resourceArn string
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- resource_arn str
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- resourceArn String
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
getContributorManagedInsightRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- ManagedRules List<GetContributor Managed Insight Rules Managed Rule> 
- Managed rules that are available for the specified Amazon Web Services resource. See managed_rules referencebelow for details.
- ResourceArn 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.
- ManagedRules []GetContributor Managed Insight Rules Managed Rule 
- Managed rules that are available for the specified Amazon Web Services resource. See managed_rules referencebelow for details.
- ResourceArn 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.
- managedRules List<GetContributor Managed Insight Rules Managed Rule> 
- Managed rules that are available for the specified Amazon Web Services resource. See managed_rules referencebelow for details.
- resourceArn 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.
- managedRules GetContributor Managed Insight Rules Managed Rule[] 
- Managed rules that are available for the specified Amazon Web Services resource. See managed_rules referencebelow for details.
- resourceArn 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 referencebelow 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.
- managedRules List<Property Map>
- Managed rules that are available for the specified Amazon Web Services resource. See managed_rules referencebelow for details.
- resourceArn String
- If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
Supporting Types
GetContributorManagedInsightRulesManagedRule      
- ResourceArn string
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- RuleStates 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 referencebelow for details.
- TemplateName string
- Template name for the managed rule. Used to enable managed rules using PutManagedInsightRules.
- ResourceArn string
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- RuleStates []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 referencebelow for details.
- TemplateName string
- Template name for the managed rule. Used to enable managed rules using PutManagedInsightRules.
- resourceArn String
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- ruleStates 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 referencebelow for details.
- templateName String
- Template name for the managed rule. Used to enable managed rules using PutManagedInsightRules.
- resourceArn string
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- ruleStates 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 referencebelow for details.
- templateName 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. - The following arguments are optional: - There are no optional arguments. 
- 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 referencebelow for details.
- template_name str
- Template name for the managed rule. Used to enable managed rules using PutManagedInsightRules.
- resourceArn String
- ARN of an Amazon Web Services resource that has managed Contributor Insights rules. - The following arguments are optional: - There are no optional arguments. 
- ruleStates 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 referencebelow for details.
- templateName 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 awsTerraform Provider.