Class: AWSCDK::AppMesh::LoggingFormat
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::AppMesh::LoggingFormat
- Defined in:
- app_mesh/logging_format.rb
Overview
Configuration for Envoy Access Logging Format for mesh endpoints.
Class Method Summary collapse
-
.from_json(json_logging_format) ⇒ AWSCDK::AppMesh::LoggingFormat
Generate logging format from json key pairs.
-
.from_text(text) ⇒ AWSCDK::AppMesh::LoggingFormat
Generate logging format from text pattern.
- .jsii_overridable_methods ⇒ Object
Instance Method Summary collapse
-
#bind ⇒ AWSCDK::AppMesh::LoggingFormatConfig
Called when the Access Log Format is initialized.
-
#initialize ⇒ LoggingFormat
constructor
A new instance of LoggingFormat.
Constructor Details
#initialize ⇒ LoggingFormat
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.
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.
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_methods ⇒ Object
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
#bind ⇒ AWSCDK::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 |