1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. cloudwatch
  6. View

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi

    Resource Type definition for AWS::CloudWatch::View. A view is a named, reusable SQL query that can be referenced from CloudWatch telemetry queries. View names must be unique within the account and region.

    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,
             tags: Optional[Sequence[_root_inputs.TagArgs]] = 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-native:cloudwatch:View
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "aws-native_cloudwatch_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.

    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
    The SQL query that defines the view.
    Description string
    A description of the view.
    Name string
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    Tags List<Pulumi.AwsNative.Inputs.Tag>
    An array of key-value pairs to apply to the view.
    Definition string
    The SQL query that defines the view.
    Description string
    A description of the view.
    Name string
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    Tags TagArgs
    An array of key-value pairs to apply to the view.
    definition string
    The SQL query that defines the view.
    description string
    A description of the view.
    name string
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    tags list(object)
    An array of key-value pairs to apply to the view.
    definition String
    The SQL query that defines the view.
    description String
    A description of the view.
    name String
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    tags List<Tag>
    An array of key-value pairs to apply to the view.
    definition string
    The SQL query that defines the view.
    description string
    A description of the view.
    name string
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    tags Tag[]
    An array of key-value pairs to apply to the view.
    definition str
    The SQL query that defines the view.
    description str
    A description of the view.
    name str
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    tags Sequence[TagArgs]
    An array of key-value pairs to apply to the view.
    definition String
    The SQL query that defines the view.
    description String
    A description of the view.
    name String
    The name of the view. Must begin with the "view." prefix followed by lowercase alphanumeric characters, hyphens, and underscores. View names must be unique within the account and region. If not specified, a name is generated.
    tags List<Property Map>
    An array of key-value pairs to apply to the view.

    Outputs

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

    Arn string
    The Amazon Resource Name (ARN) of the view.
    CreatedAt string
    The timestamp when the view was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type Pulumi.AwsNative.CloudWatch.ViewType
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    UpdatedAt string
    The timestamp when the view was last updated.
    Arn string
    The Amazon Resource Name (ARN) of the view.
    CreatedAt string
    The timestamp when the view was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Type ViewType
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    UpdatedAt string
    The timestamp when the view was last updated.
    arn string
    The Amazon Resource Name (ARN) of the view.
    created_at string
    The timestamp when the view was created.
    id string
    The provider-assigned unique ID for this managed resource.
    type "USER" | "MANAGED"
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    updated_at string
    The timestamp when the view was last updated.
    arn String
    The Amazon Resource Name (ARN) of the view.
    createdAt String
    The timestamp when the view was created.
    id String
    The provider-assigned unique ID for this managed resource.
    type ViewType
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    updatedAt String
    The timestamp when the view was last updated.
    arn string
    The Amazon Resource Name (ARN) of the view.
    createdAt string
    The timestamp when the view was created.
    id string
    The provider-assigned unique ID for this managed resource.
    type ViewType
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    updatedAt string
    The timestamp when the view was last updated.
    arn str
    The Amazon Resource Name (ARN) of the view.
    created_at str
    The timestamp when the view was created.
    id str
    The provider-assigned unique ID for this managed resource.
    type ViewType
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    updated_at str
    The timestamp when the view was last updated.
    arn String
    The Amazon Resource Name (ARN) of the view.
    createdAt String
    The timestamp when the view was created.
    id String
    The provider-assigned unique ID for this managed resource.
    type "USER" | "MANAGED"
    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
    updatedAt String
    The timestamp when the view was last updated.

    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>, opts?: CustomResourceOptions): View
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = 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, CustomResourceOptions? opts = null)
    public static View get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingView:    type: aws-native:cloudwatch:View    get:      id: ${id}
    import {
      to = aws-native_cloudwatch_view.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state ViewState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Supporting Types

    Tag, TagArgs

    A set of tags to apply to the resource.

    Key string
    The key name of the tag
    Value string
    The value of the tag
    Key string
    The key name of the tag
    Value string
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag
    key string
    The key name of the tag
    value string
    The value of the tag
    key str
    The key name of the tag
    value str
    The value of the tag
    key String
    The key name of the tag
    value String
    The value of the tag

    ViewType

    The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.

    NameValue
    UserUSER
    ManagedMANAGED
    NameValue
    ViewTypeUserUSER
    ViewTypeManagedMANAGED
    Value
    USER
    MANAGED
    NameValue
    UserUSER
    ManagedMANAGED
    NameValue
    UserUSER
    ManagedMANAGED
    NameValue
    USERUSER
    MANAGEDMANAGED
    Value
    USER
    MANAGED

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial