Class: AWSCDK::AppMesh::CfnMesh::EgressFilterProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppMesh::CfnMesh::EgressFilterProperty
- Defined in:
- app_mesh/cfn_mesh.rb
Overview
An object that represents the egress filter rules for a service mesh.
Instance Attribute Summary collapse
-
#type ⇒ String
readonly
The egress filter type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:) ⇒ EgressFilterProperty
constructor
A new instance of EgressFilterProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:) ⇒ EgressFilterProperty
Returns a new instance of EgressFilterProperty.
590 591 592 593 |
# File 'app_mesh/cfn_mesh.rb', line 590 def initialize(type:) @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") end |
Instance Attribute Details
#type ⇒ String (readonly)
The egress filter type.
By default, the type is DROP_ALL , which allows egress only from virtual nodes to other defined resources in the service mesh (and any traffic to *.amazonaws.com for AWS API calls). You can set the egress filter type to ALLOW_ALL to allow egress to any endpoint inside or outside of the service mesh.
If you specify any backends on a virtual node when using
ALLOW_ALL, you must specifiy all egress for that virtual node as backends. Otherwise,ALLOW_ALLwill no longer work for that virtual node.
603 604 605 |
# File 'app_mesh/cfn_mesh.rb', line 603 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
605 606 607 608 609 |
# File 'app_mesh/cfn_mesh.rb', line 605 def self.jsii_properties { :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
611 612 613 614 615 616 617 |
# File 'app_mesh/cfn_mesh.rb', line 611 def to_jsii result = {} result.merge!({ "type" => @type, }) result.compact end |