1. Packages
  2. AWS
  3. API Docs
  4. cloudwatch
  5. ContributorManagedInsightRule
AWS v6.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

aws.cloudwatch.ContributorManagedInsightRule

Explore with Pulumi AI

Resource for managing an AWS CloudWatch Contributor Managed Insight Rule.

Example Usage

Basic Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
  example:
    type: aws:cloudwatch:ContributorManagedInsightRule
    properties:
      resourceArn: ${test.arn}
      templateName: VpcEndpointService-BytesByEndpointId-v1
      ruleState: DISABLED
Copy

Create ContributorManagedInsightRule Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ContributorManagedInsightRule(name: string, args: ContributorManagedInsightRuleArgs, opts?: CustomResourceOptions);
@overload
def ContributorManagedInsightRule(resource_name: str,
                                  args: ContributorManagedInsightRuleArgs,
                                  opts: Optional[ResourceOptions] = None)

@overload
def ContributorManagedInsightRule(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  resource_arn: Optional[str] = None,
                                  template_name: Optional[str] = None,
                                  state: Optional[str] = None,
                                  tags: Optional[Mapping[str, str]] = None)
func NewContributorManagedInsightRule(ctx *Context, name string, args ContributorManagedInsightRuleArgs, opts ...ResourceOption) (*ContributorManagedInsightRule, error)
public ContributorManagedInsightRule(string name, ContributorManagedInsightRuleArgs args, CustomResourceOptions? opts = null)
public ContributorManagedInsightRule(String name, ContributorManagedInsightRuleArgs args)
public ContributorManagedInsightRule(String name, ContributorManagedInsightRuleArgs args, CustomResourceOptions options)
type: aws:cloudwatch:ContributorManagedInsightRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ContributorManagedInsightRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ContributorManagedInsightRuleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ContributorManagedInsightRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ContributorManagedInsightRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ContributorManagedInsightRuleArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var contributorManagedInsightRuleResource = new Aws.CloudWatch.ContributorManagedInsightRule("contributorManagedInsightRuleResource", new()
{
    ResourceArn = "string",
    TemplateName = "string",
    State = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := cloudwatch.NewContributorManagedInsightRule(ctx, "contributorManagedInsightRuleResource", &cloudwatch.ContributorManagedInsightRuleArgs{
	ResourceArn:  pulumi.String("string"),
	TemplateName: pulumi.String("string"),
	State:        pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var contributorManagedInsightRuleResource = new ContributorManagedInsightRule("contributorManagedInsightRuleResource", ContributorManagedInsightRuleArgs.builder()
    .resourceArn("string")
    .templateName("string")
    .state("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
contributor_managed_insight_rule_resource = aws.cloudwatch.ContributorManagedInsightRule("contributorManagedInsightRuleResource",
    resource_arn="string",
    template_name="string",
    state="string",
    tags={
        "string": "string",
    })
Copy
const contributorManagedInsightRuleResource = new aws.cloudwatch.ContributorManagedInsightRule("contributorManagedInsightRuleResource", {
    resourceArn: "string",
    templateName: "string",
    state: "string",
    tags: {
        string: "string",
    },
});
Copy
type: aws:cloudwatch:ContributorManagedInsightRule
properties:
    resourceArn: string
    state: string
    tags:
        string: string
    templateName: string
Copy

ContributorManagedInsightRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ContributorManagedInsightRule resource accepts the following input properties:

ResourceArn This property is required. string
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
TemplateName This property is required. string

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

State string
Tags Dictionary<string, string>
ResourceArn This property is required. string
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
TemplateName This property is required. string

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

State string
Tags map[string]string
resourceArn This property is required. String
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
templateName This property is required. String

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

state String
tags Map<String,String>
resourceArn This property is required. string
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
templateName This property is required. string

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

state string
tags {[key: string]: string}
resource_arn This property is required. str
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
template_name This property is required. str

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

state str
tags Mapping[str, str]
resourceArn This property is required. String
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
templateName This property is required. String

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

state String
tags Map<String>

Outputs

All input properties are implicitly available as output properties. Additionally, the ContributorManagedInsightRule resource produces the following output properties:

Arn string
ARN of the Contributor Managed Insight Rule.
Id string
The provider-assigned unique ID for this managed resource.
RuleName string
TagsAll Dictionary<string, string>

Deprecated: Please use tags instead.

Arn string
ARN of the Contributor Managed Insight Rule.
Id string
The provider-assigned unique ID for this managed resource.
RuleName string
TagsAll map[string]string

Deprecated: Please use tags instead.

arn String
ARN of the Contributor Managed Insight Rule.
id String
The provider-assigned unique ID for this managed resource.
ruleName String
tagsAll Map<String,String>

Deprecated: Please use tags instead.

arn string
ARN of the Contributor Managed Insight Rule.
id string
The provider-assigned unique ID for this managed resource.
ruleName string
tagsAll {[key: string]: string}

Deprecated: Please use tags instead.

arn str
ARN of the Contributor Managed Insight Rule.
id str
The provider-assigned unique ID for this managed resource.
rule_name str
tags_all Mapping[str, str]

Deprecated: Please use tags instead.

arn String
ARN of the Contributor Managed Insight Rule.
id String
The provider-assigned unique ID for this managed resource.
ruleName String
tagsAll Map<String>

Deprecated: Please use tags instead.

Look up Existing ContributorManagedInsightRule Resource

Get an existing ContributorManagedInsightRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ContributorManagedInsightRuleState, opts?: CustomResourceOptions): ContributorManagedInsightRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        arn: Optional[str] = None,
        resource_arn: Optional[str] = None,
        rule_name: Optional[str] = None,
        state: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tags_all: Optional[Mapping[str, str]] = None,
        template_name: Optional[str] = None) -> ContributorManagedInsightRule
func GetContributorManagedInsightRule(ctx *Context, name string, id IDInput, state *ContributorManagedInsightRuleState, opts ...ResourceOption) (*ContributorManagedInsightRule, error)
public static ContributorManagedInsightRule Get(string name, Input<string> id, ContributorManagedInsightRuleState? state, CustomResourceOptions? opts = null)
public static ContributorManagedInsightRule get(String name, Output<String> id, ContributorManagedInsightRuleState state, CustomResourceOptions options)
resources:  _:    type: aws:cloudwatch:ContributorManagedInsightRule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Arn string
ARN of the Contributor Managed Insight Rule.
ResourceArn string
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
RuleName string
State string
Tags Dictionary<string, string>
TagsAll Dictionary<string, string>

Deprecated: Please use tags instead.

TemplateName string

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

Arn string
ARN of the Contributor Managed Insight Rule.
ResourceArn string
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
RuleName string
State string
Tags map[string]string
TagsAll map[string]string

Deprecated: Please use tags instead.

TemplateName string

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

arn String
ARN of the Contributor Managed Insight Rule.
resourceArn String
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
ruleName String
state String
tags Map<String,String>
tagsAll Map<String,String>

Deprecated: Please use tags instead.

templateName String

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

arn string
ARN of the Contributor Managed Insight Rule.
resourceArn string
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
ruleName string
state string
tags {[key: string]: string}
tagsAll {[key: string]: string}

Deprecated: Please use tags instead.

templateName string

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

arn str
ARN of the Contributor Managed Insight Rule.
resource_arn str
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
rule_name str
state str
tags Mapping[str, str]
tags_all Mapping[str, str]

Deprecated: Please use tags instead.

template_name str

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

arn String
ARN of the Contributor Managed Insight Rule.
resourceArn String
ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
ruleName String
state String
tags Map<String>
tagsAll Map<String>

Deprecated: Please use tags instead.

templateName String

Template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules.

The following arguments are optional:

Import

Using pulumi import, import CloudWatch Contributor Managed Insight Rule using the resource_arn. For example:

$ pulumi import aws:cloudwatch/contributorManagedInsightRule:ContributorManagedInsightRule example contributor_managed_insight_rule-id-12345678
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.