Class: AWSCDK::Logs::QueryString

Inherits:
Jsii::Object
  • Object
show all
Defined in:
logs/query_string.rb

Overview

Define a QueryString.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(props = nil) ⇒ QueryString

Returns a new instance of QueryString.

Parameters:



9
10
11
12
13
# File 'logs/query_string.rb', line 9

def initialize(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::Logs::QueryStringProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5RdWVyeVN0cmluZ1Byb3BzIn0=")), "props") unless props.nil?
  Jsii::Object.instance_method(:initialize).bind(self).call(props)
end

Class Method Details

.jsii_overridable_methodsObject



15
16
17
18
19
20
21
# File 'logs/query_string.rb', line 15

def self.jsii_overridable_methods
  {
    :has_stats_and_stats_statements => { kind: :property, name: "hasStatsAndStatsStatements", is_optional: false },
    :stats_statements_length => { kind: :property, name: "statsStatementsLength", is_optional: true },
    :to_string => { kind: :method, name: "toString", is_optional: false },
  }
end

Instance Method Details

#has_stats_and_stats_statementsBoolean

If the props for the query string have both stats and statsStatements.

Returns:

  • (Boolean)


26
27
28
# File 'logs/query_string.rb', line 26

def has_stats_and_stats_statements()
  jsii_get_property("hasStatsAndStatsStatements")
end

#stats_statements_lengthNumeric?

Length of statsStatements.

Returns:

  • (Numeric, nil)


33
34
35
# File 'logs/query_string.rb', line 33

def stats_statements_length()
  jsii_get_property("statsStatementsLength")
end

#to_stringString

String representation of this QueryString.

Returns:

  • (String)


40
41
42
# File 'logs/query_string.rb', line 40

def to_string()
  jsii_call_method("toString", [])
end