1. Registry
  2. Packages
  3. AWS
  4. API Docs
  5. cloudwatchomni
  6. View
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi
aws logo aws logo
Viewing docs for AWS v7.55.0
published on Friday, Nov 13, 2026 by Pulumi

    Manages an Amazon CloudWatch Omni view.

    A view is a named, reusable SQL query over CloudWatch telemetry. It stores the query, not the data: each time the view is queried, its definition runs against the underlying data. See the CloudWatch SQL query reference for the query syntax.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.cloudwatchomni.View("example", {
        name: "view.app_errors",
        definition: "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'",
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.cloudwatchomni.View("example",
        name="view.app_errors",
        definition="SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatchomni"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudwatchomni.NewView(ctx, "example", &cloudwatchomni.ViewArgs{
    			Name:       pulumi.String("view.app_errors"),
    			Definition: pulumi.String("SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'"),
    		})
    		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.CloudWatchOmni.View("example", new()
        {
            Name = "view.app_errors",
            Definition = "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudwatchomni.View;
    import com.pulumi.aws.cloudwatchomni.ViewArgs;
    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 View("example", ViewArgs.builder()
                .name("view.app_errors")
                .definition("SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'")
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:cloudwatchomni:View
        properties:
          name: view.app_errors
          definition: SELECT `@timestamp`, `@message` FROM "logs.default" WHERE `@logGroupName` = '/my/app'
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_cloudwatchomni_view" "example" {
      lifecycle {
        create_before_destroy = true
      }
      name       = "view.app_errors"
      definition = "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'"
    }
    

    With Description and Tags

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const example = new aws.cloudwatchomni.View("example", {
        name: "view.app_errors",
        definition: "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'",
        description: "Error lines from /my/app",
        tags: {
            team: "payments",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example = aws.cloudwatchomni.View("example",
        name="view.app_errors",
        definition="SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'",
        description="Error lines from /my/app",
        tags={
            "team": "payments",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/cloudwatchomni"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudwatchomni.NewView(ctx, "example", &cloudwatchomni.ViewArgs{
    			Name:        pulumi.String("view.app_errors"),
    			Definition:  pulumi.String("SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'"),
    			Description: pulumi.String("Error lines from /my/app"),
    			Tags: pulumi.StringMap{
    				"team": pulumi.String("payments"),
    			},
    		})
    		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.CloudWatchOmni.View("example", new()
        {
            Name = "view.app_errors",
            Definition = "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'",
            Description = "Error lines from /my/app",
            Tags = 
            {
                { "team", "payments" },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.cloudwatchomni.View;
    import com.pulumi.aws.cloudwatchomni.ViewArgs;
    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 View("example", ViewArgs.builder()
                .name("view.app_errors")
                .definition("SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'")
                .description("Error lines from /my/app")
                .tags(Map.of("team", "payments"))
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:cloudwatchomni:View
        properties:
          name: view.app_errors
          definition: SELECT `@timestamp`, `@message` FROM "logs.default" WHERE `@logGroupName` = '/my/app'
          description: Error lines from /my/app
          tags:
            team: payments
    
    terraform {
      required_providers {
        aws = {
          source = "pulumi/aws"
        }
      }
    }
    
    resource "aws_cloudwatchomni_view" "example" {
      lifecycle {
        create_before_destroy = true
      }
      name        = "view.app_errors"
      definition  = "SELECT `@timestamp`, `@message` FROM \"logs.default\" WHERE `@logGroupName` = '/my/app'"
      description = "Error lines from /my/app"
      tags = {
        "team" = "payments"
      }
    }
    

    Querying a View

    Reference a view by name in the FROM clause of a telemetry query, quoting the name because it contains a dot (for example, FROM "view.app_errors"). Bound @timestamp on both sides in the WHERE clause; the service rejects queries with an open-ended time range.

    Create View Resource

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

    Constructor syntax

    new View(name: string, args: ViewArgs, opts?: CustomResourceOptions);
    @overload
    def View(resource_name: str,
             args: ViewArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def View(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             definition: Optional[str] = None,
             description: Optional[str] = None,
             name: Optional[str] = None,
             region: Optional[str] = None,
             tags: Optional[Mapping[str, str]] = None)
    func NewView(ctx *Context, name string, args ViewArgs, opts ...ResourceOption) (*View, error)
    public View(string name, ViewArgs args, CustomResourceOptions? opts = null)
    public View(String name, ViewArgs args)
    public View(String name, ViewArgs args, CustomResourceOptions options)
    
    type: aws:cloudwatchomni:View
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws_cloudwatchomni_view" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ViewArgs
    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 ViewArgs
    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 ViewArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ViewArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ViewArgs
    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 awsViewResource = new Aws.CloudWatchOmni.View("awsViewResource", new()
    {
        Definition = "string",
        Description = "string",
        Name = "string",
        Region = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := cloudwatchomni.NewView(ctx, "awsViewResource", &cloudwatchomni.ViewArgs{
    	Definition:  pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Region:      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    resource "aws_cloudwatchomni_view" "awsViewResource" {
      lifecycle {
        create_before_destroy = true
      }
      definition  = "string"
      description = "string"
      name        = "string"
      region      = "string"
      tags = {
        "string" = "string"
      }
    }
    
    var awsViewResource = new com.pulumi.aws.cloudwatchomni.View("awsViewResource", com.pulumi.aws.cloudwatchomni.ViewArgs.builder()
        .definition("string")
        .description("string")
        .name("string")
        .region("string")
        .tags(Map.of("string", "string"))
        .build());
    
    aws_view_resource = aws.cloudwatchomni.View("awsViewResource",
        definition="string",
        description="string",
        name="string",
        region="string",
        tags={
            "string": "string",
        })
    
    const awsViewResource = new aws.cloudwatchomni.View("awsViewResource", {
        definition: "string",
        description: "string",
        name: "string",
        region: "string",
        tags: {
            string: "string",
        },
    });
    
    type: aws:cloudwatchomni:View
    properties:
        definition: string
        description: string
        name: string
        region: string
        tags:
            string: string
    

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

    Definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    Description string
    Description of the view. Must be 1 to 1024 characters.
    Name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    Definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    Description string
    Description of the view. Must be 1 to 1024 characters.
    Name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description string
    Description of the view. Must be 1 to 1024 characters.
    name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    definition String
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description String
    Description of the view. Must be 1 to 1024 characters.
    name String

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description string
    Description of the view. Must be 1 to 1024 characters.
    name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    definition str
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description str
    Description of the view. Must be 1 to 1024 characters.
    name str

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.
    definition String
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description String
    Description of the view. Must be 1 to 1024 characters.
    name String

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned to the resource. If configured with a provider defaultTags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

    Outputs

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

    Arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll Dictionary<string, string>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Type string
    Type of the view. Views created with Terraform are USER views.
    Arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    Id string
    The provider-assigned unique ID for this managed resource.
    TagsAll map[string]string
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    Type string
    Type of the view. Views created with Terraform are USER views.
    arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    id string
    The provider-assigned unique ID for this managed resource.
    tags_all map(string)
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    type string
    Type of the view. Views created with Terraform are USER views.
    arn String
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String,String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    type String
    Type of the view. Views created with Terraform are USER views.
    arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    id string
    The provider-assigned unique ID for this managed resource.
    tagsAll {[key: string]: string}
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    type string
    Type of the view. Views created with Terraform are USER views.
    arn str
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    id str
    The provider-assigned unique ID for this managed resource.
    tags_all Mapping[str, str]
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    type str
    Type of the view. Views created with Terraform are USER views.
    arn String
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    id String
    The provider-assigned unique ID for this managed resource.
    tagsAll Map<String>
    Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
    type String
    Type of the view. Views created with Terraform are USER views.

    Look up Existing View Resource

    Get an existing View 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?: ViewState, opts?: CustomResourceOptions): View
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            arn: Optional[str] = None,
            definition: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            region: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tags_all: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None) -> View
    func GetView(ctx *Context, name string, id IDInput, state *ViewState, opts ...ResourceOption) (*View, error)
    public static View Get(string name, Input<string> id, ViewState? state, CustomResourceOptions? opts = null)
    public static View get(String name, Output<String> id, ViewState state, CustomResourceOptions options)
    resources:  _:    type: aws:cloudwatchomni:View    get:      id: ${id}
    import {
      to = aws_cloudwatchomni_view.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:
    Arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    Definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    Description string
    Description of the view. Must be 1 to 1024 characters.
    Name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags Dictionary<string, string>
    Map of tags assigned 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.
    Type string
    Type of the view. Views created with Terraform are USER views.
    Arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    Definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    Description string
    Description of the view. Must be 1 to 1024 characters.
    Name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    Region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    Tags map[string]string
    Map of tags assigned 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.
    Type string
    Type of the view. Views created with Terraform are USER views.
    arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description string
    Description of the view. Must be 1 to 1024 characters.
    name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags map(string)
    Map of tags assigned 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.
    type string
    Type of the view. Views created with Terraform are USER views.
    arn String
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    definition String
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description String
    Description of the view. Must be 1 to 1024 characters.
    name String

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String,String>
    Map of tags assigned 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.
    type String
    Type of the view. Views created with Terraform are USER views.
    arn string
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    definition string
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description string
    Description of the view. Must be 1 to 1024 characters.
    name string

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region string
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags {[key: string]: string}
    Map of tags assigned 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.
    type string
    Type of the view. Views created with Terraform are USER views.
    arn str
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    definition str
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description str
    Description of the view. Must be 1 to 1024 characters.
    name str

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region str
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Mapping[str, str]
    Map of tags assigned 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.
    type str
    Type of the view. Views created with Terraform are USER views.
    arn String
    ARN of the view. Contains an identifier generated by CloudWatch, in the form arn:aws:cloudwatch:<region>:<account>:view/<name>/<id>.
    definition String
    SQL query that defines the view. Must be 1 to 10000 characters. The service validates the query when the view is created or updated.
    description String
    Description of the view. Must be 1 to 1024 characters.
    name String

    Name of the view. Must start with view. followed by a lowercase letter or digit, contain only lowercase letters, digits, underscores and hyphens, and be 6 to 256 characters long. Unique within the account and Region. Changing this value forces replacement.

    The following arguments are optional:

    region String
    Region where this resource will be managed. Defaults to the Region set in the provider configuration.
    tags Map<String>
    Map of tags assigned 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.
    type String
    Type of the view. Views created with Terraform are USER views.

    Import

    Identity Schema

    Required

    • name (String) Name of the view.

    Optional

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

    Using pulumi import, import CloudWatch Omni views using the name. For example:

    $ pulumi import aws:cloudwatchomni/view:View example view.app_errors
    

    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 aws logo
    Viewing docs for AWS v7.55.0
    published on Friday, Nov 13, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial