CfnQueryDefinitionMixinProps
- class aws_cdk.mixins_preview.aws_logs.mixins.CfnQueryDefinitionMixinProps(*, log_group_names=None, name=None, query_language=None, query_string=None)
Bases:
objectProperties for CfnQueryDefinitionPropsMixin.
- Parameters:
log_group_names (
Optional[Sequence[str]]) – Use this parameter if you want the query to query only certain log groups.name (
Optional[str]) – A name for the query definition. .. epigraph:: 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*.query_language (
Optional[str]) – The query language used for this query. For more information about the query languages that CloudWatch Logs supports, see Supported query languages . Default: - “CWLI”query_string (
Optional[str]) – The query string to use for this query definition. For more information, see CloudWatch Logs Insights Query Syntax .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-logs-querydefinition.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_logs import mixins as logs_mixins cfn_query_definition_mixin_props = logs_mixins.CfnQueryDefinitionMixinProps( log_group_names=["logGroupNames"], name="name", query_language="queryLanguage", query_string="queryString" )
Attributes
- log_group_names
Use this parameter if you want the query to query only certain log groups.
- name
A name for the query definition.
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*.
- query_language
The query language used for this query.
For more information about the query languages that CloudWatch Logs supports, see Supported query languages .
- query_string
The query string to use for this query definition.
For more information, see CloudWatch Logs Insights Query Syntax .