Class CfnQueryDefinitionProps
Properties for defining a CfnQueryDefinition
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnQueryDefinitionProps : Object, ICfnQueryDefinitionProps
Syntax (vb)
Public Class CfnQueryDefinitionProps
Inherits Object
Implements ICfnQueryDefinitionProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var cfnQueryDefinitionProps = new CfnQueryDefinitionProps {
Name = "name",
QueryString = "queryString",
// the properties below are optional
LogGroupNames = new [] { "logGroupNames" }
};
Synopsis
Constructors
CfnQueryDefinitionProps() |
Properties
LogGroupNames | Use this parameter if you want the query to query only certain log groups. |
Name | A name for the query definition. |
QueryString | The query string to use for this query definition. |
Constructors
CfnQueryDefinitionProps()
public CfnQueryDefinitionProps()
Properties
LogGroupNames
Use this parameter if you want the query to query only certain log groups.
public string[] LogGroupNames { get; set; }
Property Value
System.String[]
Remarks
Name
A name for the query definition.
public string Name { get; set; }
Property Value
System.String
Remarks
You can use the name to create a folder structure for your queries. To create a folder, use a forward slash (/) to prefix your desired query name with your desired folder name. For example, / folder-name / query-name
.
QueryString
The query string to use for this query definition.
public string QueryString { get; set; }
Property Value
System.String