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

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.

    Using getView

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getView(args: GetViewArgs, opts?: InvokeOptions): Promise<GetViewResult>
    function getViewOutput(args: GetViewOutputArgs, opts?: InvokeOutputOptions): Output<GetViewResult>
    def get_view(name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetViewResult
    def get_view_output(name: pulumi.Input[Optional[str]] = None,
                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetViewResult]
    func LookupView(ctx *Context, args *LookupViewArgs, opts ...InvokeOption) (*LookupViewResult, error)
    func LookupViewOutput(ctx *Context, args *LookupViewOutputArgs, opts ...InvokeOption) LookupViewResultOutput

    > Note: This function is named LookupView in the Go SDK.

    public static class GetView 
    {
        public static Task<GetViewResult> InvokeAsync(GetViewArgs args, InvokeOptions? opts = null)
        public static Output<GetViewResult> Invoke(GetViewInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetViewResult> Invoke(GetViewInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetViewResult> getView(GetViewArgs args, InvokeOptions options)
    public static Output<GetViewResult> getView(GetViewArgs args, InvokeOptions options)
    public static Output<GetViewResult> getView(GetViewArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: aws-native:cloudwatch:getView
      arguments:
        # arguments dictionary
    data "aws-native_cloudwatch_get_view" "name" {
        # arguments
    }

    The following arguments are supported:

    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.
    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.
    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.
    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.
    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.
    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.
    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.

    getView Result

    The following output properties are available:

    Arn string
    The Amazon Resource Name (ARN) of the view.
    CreatedAt string
    The timestamp when the view was created.
    Definition string
    The SQL query that defines the view.
    Description string
    A description of the view.
    Tags List<Pulumi.AwsNative.Outputs.Tag>
    An array of key-value pairs to apply to the view.
    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.
    Definition string
    The SQL query that defines the view.
    Description string
    A description of the view.
    Tags Tag
    An array of key-value pairs to apply to the view.
    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.
    definition string
    The SQL query that defines the view.
    description string
    A description of the view.
    tags list(object)
    An array of key-value pairs to apply to the view.
    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.
    definition String
    The SQL query that defines the view.
    description String
    A description of the view.
    tags List<Tag>
    An array of key-value pairs to apply to the view.
    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.
    definition string
    The SQL query that defines the view.
    description string
    A description of the view.
    tags Tag[]
    An array of key-value pairs to apply to the view.
    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.
    definition str
    The SQL query that defines the view.
    description str
    A description of the view.
    tags Sequence[root_Tag]
    An array of key-value pairs to apply to the view.
    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.
    definition String
    The SQL query that defines the view.
    description String
    A description of the view.
    tags List<Property Map>
    An array of key-value pairs to apply to the view.
    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.

    Supporting Types

    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 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

    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