Class: AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewaySpecProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewaySpecProperty
- Defined in:
- app_mesh/cfn_virtual_gateway.rb
Overview
An object that represents the specification of a service mesh resource.
Instance Attribute Summary collapse
-
#backend_defaults ⇒ AWSCDK::IResolvable, ...
readonly
A reference to an object that represents the defaults for backends.
-
#listeners ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerProperty>
readonly
The listeners that the mesh endpoint is expected to receive inbound traffic from.
-
#logging ⇒ AWSCDK::IResolvable, ...
readonly
An object that represents logging information.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(listeners:, backend_defaults: nil, logging: nil) ⇒ VirtualGatewaySpecProperty
constructor
A new instance of VirtualGatewaySpecProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(listeners:, backend_defaults: nil, logging: nil) ⇒ VirtualGatewaySpecProperty
Returns a new instance of VirtualGatewaySpecProperty.
1749 1750 1751 1752 1753 1754 1755 1756 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1749 def initialize(listeners:, backend_defaults: nil, logging: nil) @listeners = listeners Jsii::Type.check_type(@listeners, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5DZm5WaXJ0dWFsR2F0ZXdheS5WaXJ0dWFsR2F0ZXdheUxpc3RlbmVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "listeners") @backend_defaults = backend_defaults.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayBackendDefaultsProperty.new(**backend_defaults.transform_keys(&:to_sym)) : backend_defaults Jsii::Type.check_type(@backend_defaults, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5QmFja2VuZERlZmF1bHRzUHJvcGVydHkifV19fQ==")), "backendDefaults") unless @backend_defaults.nil? @logging = logging.is_a?(Hash) ? ::AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayLoggingProperty.new(**logging.transform_keys(&:to_sym)) : logging Jsii::Type.check_type(@logging, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBtZXNoLkNmblZpcnR1YWxHYXRld2F5LlZpcnR1YWxHYXRld2F5TG9nZ2luZ1Byb3BlcnR5In1dfX0=")), "logging") unless @logging.nil? end |
Instance Attribute Details
#backend_defaults ⇒ AWSCDK::IResolvable, ... (readonly)
A reference to an object that represents the defaults for backends.
1769 1770 1771 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1769 def backend_defaults @backend_defaults end |
#listeners ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::AppMesh::CfnVirtualGateway::VirtualGatewayListenerProperty> (readonly)
The listeners that the mesh endpoint is expected to receive inbound traffic from.
You can specify one listener.
1764 1765 1766 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1764 def listeners @listeners end |
#logging ⇒ AWSCDK::IResolvable, ... (readonly)
An object that represents logging information.
1774 1775 1776 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1774 def logging @logging end |
Class Method Details
.jsii_properties ⇒ Object
1776 1777 1778 1779 1780 1781 1782 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1776 def self.jsii_properties { :listeners => "listeners", :backend_defaults => "backendDefaults", :logging => "logging", } end |
Instance Method Details
#to_jsii ⇒ Object
1784 1785 1786 1787 1788 1789 1790 1791 1792 |
# File 'app_mesh/cfn_virtual_gateway.rb', line 1784 def to_jsii result = {} result.merge!({ "listeners" => @listeners, "backendDefaults" => @backend_defaults, "logging" => @logging, }) result.compact end |