Class CfnMesh.EgressFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appmesh.CfnMesh.EgressFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMesh.EgressFilterProperty>
- Enclosing interface:
CfnMesh.EgressFilterProperty
@Stability(Stable)
public static final class CfnMesh.EgressFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMesh.EgressFilterProperty>
A builder for
CfnMesh.EgressFilterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnMesh.EgressFilterProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnMesh.EgressFilterProperty.getType()
- Parameters:
type
- The egress filter type. This parameter is required. By default, the type isDROP_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 toALLOW_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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMesh.EgressFilterProperty>
- Returns:
- a new instance of
CfnMesh.EgressFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-