Class: AWSCDK::AppMesh::MeshProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::MeshProps
- Defined in:
- app_mesh/mesh_props.rb
Overview
The set of properties used when creating a Mesh.
Instance Attribute Summary collapse
-
#egress_filter ⇒ AWSCDK::AppMesh::MeshFilterType?
readonly
Egress filter to be applied to the Mesh.
-
#mesh_name ⇒ String?
readonly
The name of the Mesh being defined.
-
#service_discovery ⇒ AWSCDK::AppMesh::MeshServiceDiscovery?
readonly
Defines how upstream clients will discover VirtualNodes in the Mesh.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(egress_filter: nil, mesh_name: nil, service_discovery: nil) ⇒ MeshProps
constructor
A new instance of MeshProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(egress_filter: nil, mesh_name: nil, service_discovery: nil) ⇒ MeshProps
Returns a new instance of MeshProps.
10 11 12 13 14 15 16 17 |
# File 'app_mesh/mesh_props.rb', line 10 def initialize(egress_filter: nil, mesh_name: nil, service_discovery: nil) @egress_filter = egress_filter Jsii::Type.check_type(@egress_filter, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5NZXNoRmlsdGVyVHlwZSJ9")), "egressFilter") unless @egress_filter.nil? @mesh_name = mesh_name Jsii::Type.check_type(@mesh_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "meshName") unless @mesh_name.nil? @service_discovery = service_discovery.is_a?(Hash) ? ::AWSCDK::AppMesh::MeshServiceDiscovery.new(**service_discovery.transform_keys(&:to_sym)) : service_discovery Jsii::Type.check_type(@service_discovery, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwbWVzaC5NZXNoU2VydmljZURpc2NvdmVyeSJ9")), "serviceDiscovery") unless @service_discovery.nil? end |
Instance Attribute Details
#egress_filter ⇒ AWSCDK::AppMesh::MeshFilterType? (readonly)
Note:
Default: DROP_ALL
Egress filter to be applied to the Mesh.
23 24 25 |
# File 'app_mesh/mesh_props.rb', line 23 def egress_filter @egress_filter end |
#mesh_name ⇒ String? (readonly)
Note:
Default: - A name is automatically generated
The name of the Mesh being defined.
28 29 30 |
# File 'app_mesh/mesh_props.rb', line 28 def mesh_name @mesh_name end |
#service_discovery ⇒ AWSCDK::AppMesh::MeshServiceDiscovery? (readonly)
Note:
Default: - No Service Discovery
Defines how upstream clients will discover VirtualNodes in the Mesh.
33 34 35 |
# File 'app_mesh/mesh_props.rb', line 33 def service_discovery @service_discovery end |
Class Method Details
.jsii_properties ⇒ Object
35 36 37 38 39 40 41 |
# File 'app_mesh/mesh_props.rb', line 35 def self.jsii_properties { :egress_filter => "egressFilter", :mesh_name => "meshName", :service_discovery => "serviceDiscovery", } end |
Instance Method Details
#to_jsii ⇒ Object
43 44 45 46 47 48 49 50 51 |
# File 'app_mesh/mesh_props.rb', line 43 def to_jsii result = {} result.merge!({ "egressFilter" => @egress_filter, "meshName" => @mesh_name, "serviceDiscovery" => @service_discovery, }) result.compact end |