1. Packages
  2. Packages
  3. AWS
  4. API Docs
  5. observabilityadmin
  6. TelemetryRule
Viewing docs for AWS v7.32.0
published on Friday, May 29, 2026 by Pulumi
aws logo
Viewing docs for AWS v7.32.0
published on Friday, May 29, 2026 by Pulumi

    Manages an AWS CloudWatch Observability Admin Telemetry Rule.

    NOTE: Before using this resource, telemetry evaluation must be enabled for your AWS account. You can use the aws.observabilityadmin.TelemetryEvaluation or aws.observabilityadmin.TelemetryEvaluationForOrganization resource to enable it.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.observabilityadmin.TelemetryEvaluation("example", {});
    const exampleTelemetryRule = new aws.observabilityadmin.TelemetryRule("example", {
        ruleName: "example-telemetry-rule",
        rule: {
            telemetryType: "Logs",
            resourceType: "AWS::EC2::VPC",
        },
    }, {
        dependsOn: [example],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.observabilityadmin.TelemetryEvaluation("example")
    example_telemetry_rule = aws.observabilityadmin.TelemetryRule("example",
        rule_name="example-telemetry-rule",
        rule={
            "telemetry_type": "Logs",
            "resource_type": "AWS::EC2::VPC",
        },
        opts = pulumi.ResourceOptions(depends_on=[example]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/observabilityadmin"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := observabilityadmin.NewTelemetryEvaluation(ctx, "example", nil)
    		if err != nil {
    			return err
    		}
    		_, err = observabilityadmin.NewTelemetryRule(ctx, "example", &observabilityadmin.TelemetryRuleArgs{
    			RuleName: pulumi.String("example-telemetry-rule"),
    			Rule: &observabilityadmin.TelemetryRuleRuleArgs{
    				TelemetryType: pulumi.String("Logs"),
    				ResourceType:  pulumi.String("AWS::EC2::VPC"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			example,
    		}))
    		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 = new Aws.Observabilityadmin.TelemetryEvaluation("example");
    
        var exampleTelemetryRule = new Aws.Observabilityadmin.TelemetryRule("example", new()
        {
            RuleName = "example-telemetry-rule",
            Rule = new Aws.Observabilityadmin.Inputs.TelemetryRuleRuleArgs
            {
                TelemetryType = "Logs",
                ResourceType = "AWS::EC2::VPC",
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                example,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.observabilityadmin.TelemetryEvaluation;
    import com.pulumi.aws.observabilityadmin.TelemetryRule;
    import com.pulumi.aws.observabilityadmin.TelemetryRuleArgs;
    import com.pulumi.aws.observabilityadmin.inputs.TelemetryRuleRuleArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var example = new TelemetryEvaluation("example");
    
            var exampleTelemetryRule = new TelemetryRule("exampleTelemetryRule", TelemetryRuleArgs.builder()
                .ruleName("example-telemetry-rule")
                .rule(TelemetryRuleRuleArgs.builder()
                    .telemetryType("Logs")
                    .resourceType("AWS::EC2::VPC")
                    .build())
                .build(), CustomResourceOptions.builder()
                    .dependsOn(example)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:observabilityadmin:TelemetryEvaluation
      exampleTelemetryRule:
        type: aws:observabilityadmin:TelemetryRule
        name: example
        properties:
          ruleName: example-telemetry-rule
          rule:
            telemetryType: Logs
            resourceType: AWS::EC2::VPC
        options:
          dependsOn:
            - ${example}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_observabilityadmin_telemetryevaluation" "example" {
    }
    resource "aws_observabilityadmin_telemetryrule" "example" {
      depends_on = [aws_observabilityadmin_telemetryevaluation.example]
      rule_name  = "example-telemetry-rule"
      rule = {
        telemetry_type = "Logs"
        resource_type  = "AWS::EC2::VPC"
      }
    }
    

    With Tags

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.observabilityadmin.TelemetryEvaluation("example", {});
    const exampleTelemetryRule = new aws.observabilityadmin.TelemetryRule("example", {
        ruleName: "vpc-logs-rule",
        rule: {
            telemetryType: "Logs",
            resourceType: "AWS::EC2::VPC",
        },
        tags: {
            Environment: "production",
            Purpose: "monitoring",
        },
    }, {
        dependsOn: [example],
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.observabilityadmin.TelemetryEvaluation("example")
    example_telemetry_rule = aws.observabilityadmin.TelemetryRule("example",
        rule_name="vpc-logs-rule",
        rule={
            "telemetry_type": "Logs",
            "resource_type": "AWS::EC2::VPC",
        },
        tags={
            "Environment": "production",
            "Purpose": "monitoring",
        },
        opts = pulumi.ResourceOptions(depends_on=[example]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/observabilityadmin"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := observabilityadmin.NewTelemetryEvaluation(ctx, "example", nil)
    		if err != nil {
    			return err
    		}
    		_, err = observabilityadmin.NewTelemetryRule(ctx, "example", &observabilityadmin.TelemetryRuleArgs{
    			RuleName: pulumi.String("vpc-logs-rule"),
    			Rule: &observabilityadmin.TelemetryRuleRuleArgs{
    				TelemetryType: pulumi.String("Logs"),
    				ResourceType:  pulumi.String("AWS::EC2::VPC"),
    			},
    			Tags: pulumi.StringMap{
    				"Environment": pulumi.String("production"),
    				"Purpose":     pulumi.String("monitoring"),
    			},
    		}, pulumi.DependsOn([]pulumi.Resource{
    			example,
    		}))
    		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 = new Aws.Observabilityadmin.TelemetryEvaluation("example");
    
        var exampleTelemetryRule = new Aws.Observabilityadmin.TelemetryRule("example", new()
        {
            RuleName = "vpc-logs-rule",
            Rule = new Aws.Observabilityadmin.Inputs.TelemetryRuleRuleArgs
            {
                TelemetryType = "Logs",
                ResourceType = "AWS::EC2::VPC",
            },
            Tags = 
            {
                { "Environment", "production" },
                { "Purpose", "monitoring" },
            },
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                example,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.observabilityadmin.TelemetryEvaluation;
    import com.pulumi.aws.observabilityadmin.TelemetryRule;
    import com.pulumi.aws.observabilityadmin.TelemetryRuleArgs;
    import com.pulumi.aws.observabilityadmin.inputs.TelemetryRuleRuleArgs;
    import com.pulumi.resources.CustomResourceOptions;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            var example = new TelemetryEvaluation("example");
    
            var exampleTelemetryRule = new TelemetryRule("exampleTelemetryRule", TelemetryRuleArgs.builder()
                .ruleName("vpc-logs-rule")
                .rule(TelemetryRuleRuleArgs.builder()
                    .telemetryType("Logs")
                    .resourceType("AWS::EC2::VPC")
                    .build())
                .tags(Map.ofEntries(
                    Map.entry("Environment", "production"),
                    Map.entry("Purpose", "monitoring")
                ))
                .build(), CustomResourceOptions.builder()
                    .dependsOn(example)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: aws:observabilityadmin:TelemetryEvaluation
      exampleTelemetryRule:
        type: aws:observabilityadmin:TelemetryRule
        name: example
        properties:
          ruleName: vpc-logs-rule
          rule:
            telemetryType: Logs
            resourceType: AWS::EC2::VPC
          tags:
            Environment: production
            Purpose: monitoring
        options:
          dependsOn:
            - ${example}
    
    pulumi {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_observabilityadmin_telemetryevaluation" "example" {
    }
    resource "aws_observabilityadmin_telemetryrule" "example" {
      depends_on = [aws_observabilityadmin_telemetryevaluation.example]
      rule_name  = "vpc-logs-rule"
      rule = {
        telemetry_type = "Logs"
        resource_type  = "AWS::EC2::VPC"
      }
      tags = {
        "Environment" = "production"
        "Purpose"     = "monitoring"
      }
    }
    

    Create TelemetryRule Resource

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

    Constructor syntax

    new TelemetryRule(name: string, args: TelemetryRuleArgs, opts?: CustomResourceOptions);
    @overload
    def TelemetryRule(resource_name: str,
                      args: TelemetryRuleArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def TelemetryRule(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      rule: Optional[TelemetryRuleRuleArgs] = None,
                      rule_name: Optional[str] = None,
                      region: Optional[str] = None,
                      tags: Optional[Mapping[str, str]] = None,
                      timeouts: Optional[TelemetryRuleTimeoutsArgs] = None)
    func NewTelemetryRule(ctx *Context, name string, args TelemetryRuleArgs, opts ...ResourceOption) (*TelemetryRule, error)
    public TelemetryRule(string name, TelemetryRuleArgs args, CustomResourceOptions? opts = null)
    public TelemetryRule(String name, TelemetryRuleArgs args)
    public TelemetryRule(String name, TelemetryRuleArgs args, CustomResourceOptions options)
    
    type: aws:observabilityadmin:TelemetryRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_observabilityadmin_telemetryrule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TelemetryRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TelemetryRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TelemetryRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TelemetryRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TelemetryRuleArgs
    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 telemetryRuleResource = new Aws.Observabilityadmin.TelemetryRule("telemetryRuleResource", new()
    {
        Rule = new Aws.Observabilityadmin.Inputs.TelemetryRuleRuleArgs
        {
            TelemetryType = "string",
            ResourceType = "string",
        },
        RuleName = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Timeouts = new Aws.Observabilityadmin.Inputs.TelemetryRuleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := observabilityadmin.NewTelemetryRule(ctx, "telemetryRuleResource", &observabilityadmin.TelemetryRuleArgs{
    	Rule: &observabilityadmin.TelemetryRuleRuleArgs{
    		TelemetryType: pulumi.String("string"),
    		ResourceType:  pulumi.String("string"),
    	},
    	RuleName: pulumi.String("string"),
    	Region:   pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Timeouts: &observabilityadmin.TelemetryRuleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "aws_observabilityadmin_telemetryrule" "telemetryRuleResource" {
      rule = {
        telemetry_type = "string"
        resource_type  = "string"
      }
      rule_name = "string"
      region    = "string"
      tags = {
        "string" = "string"
      }
      timeouts = {
        create = "string"
        delete = "string"
        update = "string"
      }
    }
    
    var telemetryRuleResource = new TelemetryRule("telemetryRuleResource", TelemetryRuleArgs.builder()
        .rule(TelemetryRuleRuleArgs.builder()
            .telemetryType("string")
            .resourceType("string")
            .build())
        .ruleName("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .timeouts(TelemetryRuleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    telemetry_rule_resource = aws.observabilityadmin.TelemetryRule("telemetryRuleResource",
        rule={
            "telemetry_type": "string",
            "resource_type": "string",
        },
        rule_name="string",
        region="string",
        tags={
            "string": "string",
        },
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const telemetryRuleResource = new aws.observabilityadmin.TelemetryRule("telemetryRuleResource", {
        rule: {
            telemetryType: "string",
            resourceType: "string",
        },
        ruleName: "string",
        region: "string",
        tags: {
            string: "string",
        },
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: aws:observabilityadmin:TelemetryRule
    properties:
        region: string
        rule:
            resourceType: string
            telemetryType: string
        ruleName: string
        tags:
            string: string
        timeouts:
            create: string
            delete: string
            update: string
    

    TelemetryRule 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 TelemetryRule resource accepts the following input properties:

    Rule TelemetryRuleRule
    Configuration block for the telemetry rule. See rule below.
    RuleName string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    Region string
    AWS region. If not specified, the provider region is used.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts TelemetryRuleTimeouts
    Rule TelemetryRuleRuleArgs
    Configuration block for the telemetry rule. See rule below.
    RuleName string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    Region string
    AWS region. If not specified, the provider region is used.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Timeouts TelemetryRuleTimeoutsArgs
    rule object
    Configuration block for the telemetry rule. See rule below.
    rule_name string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    region string
    AWS region. If not specified, the provider region is used.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts object
    rule TelemetryRuleRule
    Configuration block for the telemetry rule. See rule below.
    ruleName String
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    region String
    AWS region. If not specified, the provider region is used.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts TelemetryRuleTimeouts
    rule TelemetryRuleRule
    Configuration block for the telemetry rule. See rule below.
    ruleName string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    region string
    AWS region. If not specified, the provider region is used.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts TelemetryRuleTimeouts
    rule TelemetryRuleRuleArgs
    Configuration block for the telemetry rule. See rule below.
    rule_name str
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    region str
    AWS region. If not specified, the provider region is used.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts TelemetryRuleTimeoutsArgs
    rule Property Map
    Configuration block for the telemetry rule. See rule below.
    ruleName String
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    region String
    AWS region. If not specified, the provider region is used.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleArn string
    ARN of the telemetry rule.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleArn string
    ARN of the telemetry rule.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id string
    The provider-assigned unique ID for this managed resource.
    rule_arn string
    ARN of the telemetry rule.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleArn String
    ARN of the telemetry rule.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleArn string
    ARN of the telemetry rule.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_arn str
    ARN of the telemetry rule.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleArn String
    ARN of the telemetry rule.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.

    Look up Existing TelemetryRule Resource

    Get an existing TelemetryRule 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?: TelemetryRuleState, opts?: CustomResourceOptions): TelemetryRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            region: Optional[str] = None,
            rule: Optional[TelemetryRuleRuleArgs] = None,
            rule_arn: Optional[str] = None,
            rule_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            timeouts: Optional[TelemetryRuleTimeoutsArgs] = None) -> TelemetryRule
    func GetTelemetryRule(ctx *Context, name string, id IDInput, state *TelemetryRuleState, opts ...ResourceOption) (*TelemetryRule, error)
    public static TelemetryRule Get(string name, Input<string> id, TelemetryRuleState? state, CustomResourceOptions? opts = null)
    public static TelemetryRule get(String name, Output<String> id, TelemetryRuleState state, CustomResourceOptions options)
    resources:  _:    type: aws:observabilityadmin:TelemetryRule    get:      id: ${id}
    import {
      to = aws_observabilityadmin_telemetryrule.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    Region string
    AWS region. If not specified, the provider region is used.
    Rule TelemetryRuleRule
    Configuration block for the telemetry rule. See rule below.
    RuleArn string
    ARN of the telemetry rule.
    RuleName string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    Tags Dictionary<string, string>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Timeouts TelemetryRuleTimeouts
    Region string
    AWS region. If not specified, the provider region is used.
    Rule TelemetryRuleRuleArgs
    Configuration block for the telemetry rule. See rule below.
    RuleArn string
    ARN of the telemetry rule.
    RuleName string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    Tags map[string]string
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Timeouts TelemetryRuleTimeoutsArgs
    region string
    AWS region. If not specified, the provider region is used.
    rule object
    Configuration block for the telemetry rule. See rule below.
    rule_arn string
    ARN of the telemetry rule.
    rule_name string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    tags map(string)
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts object
    region String
    AWS region. If not specified, the provider region is used.
    rule TelemetryRuleRule
    Configuration block for the telemetry rule. See rule below.
    ruleArn String
    ARN of the telemetry rule.
    ruleName String
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    tags Map<String,String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts TelemetryRuleTimeouts
    region string
    AWS region. If not specified, the provider region is used.
    rule TelemetryRuleRule
    Configuration block for the telemetry rule. See rule below.
    ruleArn string
    ARN of the telemetry rule.
    ruleName string
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    tags {[key: string]: string}
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts TelemetryRuleTimeouts
    region str
    AWS region. If not specified, the provider region is used.
    rule TelemetryRuleRuleArgs
    Configuration block for the telemetry rule. See rule below.
    rule_arn str
    ARN of the telemetry rule.
    rule_name str
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    tags Mapping[str, str]
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts TelemetryRuleTimeoutsArgs
    region String
    AWS region. If not specified, the provider region is used.
    rule Property Map
    Configuration block for the telemetry rule. See rule below.
    ruleArn String
    ARN of the telemetry rule.
    ruleName String
    Name of the telemetry rule. Must be between 1 and 100 characters and contain only alphanumeric characters, hyphens, underscores, periods, hash symbols, and forward slashes.
    tags Map<String>
    Map of tags to assign to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    timeouts Property Map

    Supporting Types

    TelemetryRuleRule, TelemetryRuleRuleArgs

    TelemetryType string
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    ResourceType string

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    TelemetryType string
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    ResourceType string

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    telemetry_type string
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    resource_type string

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    telemetryType String
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    resourceType String

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    telemetryType string
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    resourceType string

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    telemetry_type str
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    resource_type str

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    telemetryType String
    Type of telemetry data. Valid values: Logs, Metrics, Traces.
    resourceType String

    AWS resource type to apply the rule to. Currently supported: AWS::EC2::VPC with Logs.

    Note: This resource is currently in early development. Additional resource types and configuration options will be added in future releases.

    TelemetryRuleTimeouts, TelemetryRuleTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Import

    Identity Schema

    Required

    • ruleName (String) Name of the telemetry rule.

    Optional

    • accountId (String) AWS Account where this resource is managed.
    • region (String) Region where this resource is managed.

    Using pulumi import, import CloudWatch Observability Admin Telemetry Rules using ruleName. For example:

    $ pulumi import aws:observabilityadmin/telemetryRule:TelemetryRule example example-telemetry-rule
    

    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.
    aws logo
    Viewing docs for AWS v7.32.0
    published on Friday, May 29, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial