Skip to content
v2.274.0

CfnViewProps Struct ​

Properties for defining a CfnView.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const cfnViewProps: cloudwatch.CfnViewProps = {
  definition: 'definition',

  // the properties below are optional
  description: 'description',
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};

Properties ​

definitionstringdefinitionstrdefinitionStringDefinitionstringDefinition*stringrequired#
The SQL query that defines the view.
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string#
A description of the view.
namestringnamestrnameStringNamestringName*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.

tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
An array of key-value pairs to apply to the view.