This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::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.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::CloudWatch::View", "Properties" : { "Definition" :String, "Description" :String, "Name" :String, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::CloudWatch::View Properties: Definition:StringDescription:StringName:StringTags:- Tag
Properties
Definition-
The SQL query that defines the view.
Required: Yes
Type: String
Minimum:
1Maximum:
10000Update requires: No interruption
Description-
A description of the view.
Required: No
Type: String
Maximum:
1024Update requires: No interruption
Name-
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.
Required: No
Type: String
Pattern:
^view\.[a-z0-9][a-z0-9_-]{0,250}$Minimum:
6Maximum:
256Update requires: Replacement
-
An array of key-value pairs to apply to the view.
Required: No
Type: Array of Tag
Maximum:
50Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the value of the Name property.
For more information about using the Ref function, see Ref.
Fn::GetAtt
The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.
Arn-
The Amazon Resource Name (ARN) of the view.
CreatedAt-
The timestamp when the view was created.
Type-
The ownership category of the view. Views created through CloudFormation are always USER views; MANAGED views are provisioned by AWS.
UpdatedAt-
The timestamp when the view was last updated.