Class LogQueryWidgetProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.LogQueryWidgetProps.Jsii$Proxy
All Implemented Interfaces:
LogQueryWidgetProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
LogQueryWidgetProps

@Stability(Stable) @Internal public static final class LogQueryWidgetProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LogQueryWidgetProps
An implementation for LogQueryWidgetProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(LogQueryWidgetProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LogQueryWidgetProps.Builder.
  • Method Details

    • getLogGroupNames

      public final List<String> getLogGroupNames()
      Description copied from interface: LogQueryWidgetProps
      Names of log groups to query.
      Specified by:
      getLogGroupNames in interface LogQueryWidgetProps
    • getAccountId

      public final String getAccountId()
      Description copied from interface: LogQueryWidgetProps
      The AWS account ID where the log groups are located.

      This enables cross-account functionality for CloudWatch dashboards. Before using this feature, ensure that proper cross-account sharing is configured between the monitoring account and source account.

      For more information, see: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Unified-Cross-Account.html

      Default: - Current account

      Specified by:
      getAccountId in interface LogQueryWidgetProps
    • getHeight

      public final Number getHeight()
      Description copied from interface: LogQueryWidgetProps
      Height of the widget.

      Default: 6

      Specified by:
      getHeight in interface LogQueryWidgetProps
    • getQueryLanguage

      public final LogQueryLanguage getQueryLanguage()
      Description copied from interface: LogQueryWidgetProps
      The query language to use for the query.

      Default: LogQueryLanguage.LOGS_INSIGHTS

      Specified by:
      getQueryLanguage in interface LogQueryWidgetProps
    • getQueryLines

      public final List<String> getQueryLines()
      Description copied from interface: LogQueryWidgetProps
      A sequence of lines to use to build the query.

      The query will be built by joining the lines together using \n|.

      Default: - Exactly one of `queryString`, `queryLines` is required.

      Specified by:
      getQueryLines in interface LogQueryWidgetProps
    • getQueryString

      public final String getQueryString()
      Description copied from interface: LogQueryWidgetProps
      Full query string for log insights.

      Be sure to prepend every new line with a newline and pipe character (\n|).

      Default: - Exactly one of `queryString`, `queryLines` is required.

      Specified by:
      getQueryString in interface LogQueryWidgetProps
    • getRegion

      public final String getRegion()
      Description copied from interface: LogQueryWidgetProps
      The region the metrics of this widget should be taken from.

      Default: Current region

      Specified by:
      getRegion in interface LogQueryWidgetProps
    • getTitle

      public final String getTitle()
      Description copied from interface: LogQueryWidgetProps
      Title for the widget.

      Default: No title

      Specified by:
      getTitle in interface LogQueryWidgetProps
    • getView

      public final LogQueryVisualizationType getView()
      Description copied from interface: LogQueryWidgetProps
      The type of view to use.

      Default: LogQueryVisualizationType.TABLE

      Specified by:
      getView in interface LogQueryWidgetProps
    • getWidth

      public final Number getWidth()
      Description copied from interface: LogQueryWidgetProps
      Width of the widget, in a grid of 24 units wide.

      Default: 6

      Specified by:
      getWidth in interface LogQueryWidgetProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object