Class: AWSCDK::AppMesh::AccessLog

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

Overview

Configuration for Envoy Access logs for mesh endpoints.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAccessLog

Returns a new instance of AccessLog.



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

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

Class Method Details

.from_file_path(file_path, logging_format = nil) ⇒ AWSCDK::AppMesh::AccessLog

Note:

Default: - no file based access logging

Path to a file to write access logs to.

Parameters:

Returns:

  • (AWSCDK::AppMesh::AccessLog)


24
25
26
27
28
# File 'app_mesh/access_log.rb', line 24

def self.from_file_path(file_path, logging_format = nil)
  Jsii::Type.check_type(file_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filePath")
  Jsii::Type.check_type(logging_format, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5Mb2dnaW5nRm9ybWF0In0=")), "loggingFormat") unless logging_format.nil?
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_appmesh.AccessLog", "fromFilePath", [file_path, logging_format])
end

.jsii_overridable_methodsObject



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

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

Instance Method Details

#bind(scope) ⇒ AWSCDK::AppMesh::AccessLogConfig

Called when the AccessLog type is initialized.

Can be used to enforce mutual exclusivity with future properties

Parameters:

  • scope (Constructs::Construct)

Returns:



37
38
39
40
# File 'app_mesh/access_log.rb', line 37

def bind(scope)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  jsii_call_method("bind", [scope])
end