Class: AWSCDK::AppMesh::LoggingFormat

Inherits:
Jsii::Object
  • Object
show all
Defined in:
app_mesh/logging_format.rb

Overview

Configuration for Envoy Access Logging Format for mesh endpoints.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoggingFormat

Returns a new instance of LoggingFormat.



8
9
10
# File 'app_mesh/logging_format.rb', line 8

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.from_json(json_logging_format) ⇒ AWSCDK::AppMesh::LoggingFormat

Generate logging format from json key pairs.

Parameters:

  • json_logging_format (Hash{String => String})

Returns:

  • (AWSCDK::AppMesh::LoggingFormat)


22
23
24
25
# File 'app_mesh/logging_format.rb', line 22

def self.from_json(json_logging_format)
  Jsii::Type.check_type(json_logging_format, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "jsonLoggingFormat")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.LoggingFormat", "fromJson", [json_logging_format])
end

.from_text(text) ⇒ AWSCDK::AppMesh::LoggingFormat

Generate logging format from text pattern.

Parameters:

  • text (String)

Returns:

  • (AWSCDK::AppMesh::LoggingFormat)


31
32
33
34
# File 'app_mesh/logging_format.rb', line 31

def self.from_text(text)
  Jsii::Type.check_type(text, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "text")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.LoggingFormat", "fromText", [text])
end

.jsii_overridable_methodsObject



12
13
14
15
16
# File 'app_mesh/logging_format.rb', line 12

def self.jsii_overridable_methods
  {
    :bind => { kind: :method, name: "bind", is_optional: false },
  }
end

Instance Method Details

#bindAWSCDK::AppMesh::LoggingFormatConfig

Called when the Access Log Format is initialized.

Can be used to enforce mutual exclusivity with future properties



42
43
44
# File 'app_mesh/logging_format.rb', line 42

def bind()
  jsii_call_method("bind", [])
end