Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayLoggingProperty

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

Overview

An object that represents logging information.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_log: nil) ⇒ VirtualGatewayLoggingProperty

Returns a new instance of VirtualGatewayLoggingProperty.

Parameters:



1669
1670
1671
1672
# File 'app_mesh/cfn_virtual_gateway.rb', line 1669

def initialize(access_log: nil)
  @access_log = access_log.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayAccessLogProperty.new(**access_log.transform_keys(&:to_sym)) : access_log
  Jsii::Type.check_type(@access_log, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5QWNjZXNzTG9nUHJvcGVydHkifV19fQ==")), "accessLog") unless @access_log.nil?
end

Instance Attribute Details

Class Method Details

.jsii_propertiesObject



1680
1681
1682
1683
1684
# File 'app_mesh/cfn_virtual_gateway.rb', line 1680

def self.jsii_properties
  {
    :access_log => "accessLog",
  }
end

Instance Method Details

#to_jsiiObject



1686
1687
1688
1689
1690
1691
1692
# File 'app_mesh/cfn_virtual_gateway.rb', line 1686

def to_jsii
  result = {}
  result.merge!({
    "accessLog" => @access_log,
  })
  result.compact
end