Class CfnQueryDefinition
Creates a query definition for CloudWatch Logs Insights.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnQueryDefinition : CfnResource, IInspectable
Syntax (vb)
Public Class CfnQueryDefinition
Inherits CfnResource
Implements IInspectable
Remarks
For more information, see Analyzing Log Data with CloudWatch Logs Insights .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html
CloudformationResource: AWS::Logs::QueryDefinition
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 cfnQueryDefinition = new CfnQueryDefinition(this, "MyCfnQueryDefinition", new CfnQueryDefinitionProps {
Name = "name",
QueryString = "queryString",
// the properties below are optional
LogGroupNames = new [] { "logGroupNames" }
});
Synopsis
Constructors
CfnQueryDefinition(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnQueryDefinition(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnQueryDefinition(Construct, String, ICfnQueryDefinitionProps) |
Properties
AttrQueryDefinitionId | The ID of the query definition. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnQueryDefinition(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnQueryDefinition(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnQueryDefinition(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnQueryDefinition(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnQueryDefinition(Construct, String, ICfnQueryDefinitionProps)
public CfnQueryDefinition(Construct scope, string id, ICfnQueryDefinitionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnQueryDefinitionProps
Resource properties.
Properties
AttrQueryDefinitionId
The ID of the query definition.
public virtual string AttrQueryDefinitionId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: QueryDefinitionId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
LogGroupNames
Use this parameter if you want the query to query only certain log groups.
public virtual string[] LogGroupNames { get; set; }
Property Value
System.String[]
Name
A name for the query definition.
public virtual string Name { get; set; }
Property Value
System.String
QueryString
The query string to use for this query definition.
public virtual string QueryString { get; set; }
Property Value
System.String
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>