Interface CfnQueryDefinitionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnQueryDefinitionProps.Jsii$Proxy
CfnQueryDefinition.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;
CfnQueryDefinitionProps cfnQueryDefinitionProps = CfnQueryDefinitionProps.builder()
.name("name")
.queryString("queryString")
// the properties below are optional
.logGroupNames(List.of("logGroupNames"))
.parameters(List.of(QueryParameterProperty.builder()
.name("name")
// the properties below are optional
.defaultValue("defaultValue")
.description("description")
.build()))
.queryLanguage("queryLanguage")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnQueryDefinitionPropsstatic final classAn implementation forCfnQueryDefinitionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Use this parameter if you want the query to query only certain log groups.getName()A name for the query definition.default ObjectUse this parameter to include specific query parameters as part of your query definition.default StringThe query language used for this query.The query string to use for this query definition.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getName
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*.- See Also:
-
getQueryString
The query string to use for this query definition.For more information, see CloudWatch Logs Insights Query Syntax .
- See Also:
-
getLogGroupNames
Use this parameter if you want the query to query only certain log groups.Returns union: Listinvalid input: '<'either
StringorILogGroupRef>- See Also:
-
getParameters
Use this parameter to include specific query parameters as part of your query definition.Query parameters are supported only for Logs Insights QL queries. Query parameters allow you to use placeholder variables in your query string that are substituted with values at execution time. Use the {{parameterName}} syntax in your query string to reference a parameter.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnQueryDefinition.QueryParameterProperty>- See Also:
-
getQueryLanguage
The query language used for this query.For more information about the query languages that CloudWatch Logs supports, see Supported query languages .
Default: - "CWLI"
- See Also:
-
builder
- Returns:
- a
CfnQueryDefinitionProps.BuilderofCfnQueryDefinitionProps
-