Class CfnQueryDefinition.Builder

java.lang.Object
software.amazon.awscdk.services.logs.CfnQueryDefinition.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnQueryDefinition>
Enclosing class:
CfnQueryDefinition

@Stability(Stable) public static final class CfnQueryDefinition.Builder extends Object implements software.amazon.jsii.Builder<CfnQueryDefinition>
A fluent builder for CfnQueryDefinition.
  • Method Details

    • create

      @Stability(Stable) public static CfnQueryDefinition.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnQueryDefinition.Builder.
    • name

      @Stability(Stable) public CfnQueryDefinition.Builder name(String name)
      A name for the query definition.

      Parameters:
      name - A name for the query definition. This parameter is required.
      Returns:
      this
    • queryString

      @Stability(Stable) public CfnQueryDefinition.Builder queryString(String queryString)
      The query string to use for this query definition.

      For more information, see CloudWatch Logs Insights Query Syntax .

      Parameters:
      queryString - The query string to use for this query definition. This parameter is required.
      Returns:
      this
    • logGroupNames

      @Stability(Stable) public CfnQueryDefinition.Builder logGroupNames(List<String> logGroupNames)
      Use this parameter if you want the query to query only certain log groups.

      Parameters:
      logGroupNames - Use this parameter if you want the query to query only certain log groups. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnQueryDefinition build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnQueryDefinition>
      Returns:
      a newly built instance of CfnQueryDefinition.