Class: AWSCDK::AppMesh::CfnMesh::EgressFilterProperty

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

Overview

An object that represents the egress filter rules for a service mesh.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ EgressFilterProperty

Returns a new instance of EgressFilterProperty.

Parameters:

  • type (String)

    The egress filter type.



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

#typeString (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_ALL will 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_propertiesObject



605
606
607
608
609
# File 'app_mesh/cfn_mesh.rb', line 605

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

Instance Method Details

#to_jsiiObject



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