AWS::CloudWatch::View

CloudWatch View

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.

Properties

4 configurable properties. 1 required. Click a row to see details.

Filter:
PropertyTypeFlags
Definition
string
Required
Description
string
Name
string
Create-only
Tags
Array<Tag>

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
ArnstringThe Amazon Resource Name (ARN) of the view.
CreatedAtstringThe timestamp when the view was created.
TypestringThe ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
UpdatedAtstringThe timestamp when the view was last updated.

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::CloudWatch::View

Resources:
  MyResource:
    Type: AWS::CloudWatch::View
    Properties:
      Definition: "value"
      Tags:
        - Key: Environment
          Value: Production
      Description: !Ref "AWS::StackName"
      Name: !Ref "AWS::StackName"

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

cloudwatch:CreateViewcloudwatch:TagResource

read

cloudwatch:GetViewcloudwatch:ListTagsForResource

update

cloudwatch:UpdateViewcloudwatch:GetViewcloudwatch:TagResourcecloudwatch:UntagResourcecloudwatch:ListTagsForResource

delete

cloudwatch:DeleteViewcloudwatch:GetViewcloudwatch:ListTagsForResource

list

cloudwatch:ListViews

Get the CloudWatch Cheat Sheet

Everything you need to know about CloudWatch on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceCloudWatch
Properties8
Required1
TaggingSupported
Primary IDName

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

Name

External Links