AppMeshProxyConfigurationProps

class aws_cdk.aws_ecs.AppMeshProxyConfigurationProps(*, app_ports, proxy_egress_port, proxy_ingress_port, egress_ignored_i_ps=None, egress_ignored_ports=None, ignored_gid=None, ignored_uid=None)

Bases: object

Interface for setting the properties of proxy configuration.

Parameters:
  • app_ports (Sequence[Union[int, float]]) – The list of ports that the application uses. Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort.

  • proxy_egress_port (Union[int, float]) – Specifies the port that outgoing traffic from the AppPorts is directed to.

  • proxy_ingress_port (Union[int, float]) – Specifies the port that incoming traffic to the AppPorts is directed to.

  • egress_ignored_i_ps (Optional[Sequence[str]]) – The egress traffic going to these specified IP addresses is ignored and not redirected to the ProxyEgressPort. It can be an empty list.

  • egress_ignored_ports (Optional[Sequence[Union[int, float]]]) – The egress traffic going to these specified ports is ignored and not redirected to the ProxyEgressPort. It can be an empty list.

  • ignored_gid (Union[int, float, None]) – The group ID (GID) of the proxy container as defined by the user parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If IgnoredUID is specified, this field can be empty.

  • ignored_uid (Union[int, float, None]) – The user ID (UID) of the proxy container as defined by the user parameter in a container definition. This is used to ensure the proxy ignores its own traffic. If IgnoredGID is specified, this field can be empty.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

app_mesh_proxy_configuration_props = ecs.AppMeshProxyConfigurationProps(
    app_ports=[123],
    proxy_egress_port=123,
    proxy_ingress_port=123,

    # the properties below are optional
    egress_ignored_iPs=["egressIgnoredIPs"],
    egress_ignored_ports=[123],
    ignored_gID=123,
    ignored_uID=123
)

Attributes

app_ports

The list of ports that the application uses.

Network traffic to these ports is forwarded to the ProxyIngressPort and ProxyEgressPort.

egress_ignored_i_ps

The egress traffic going to these specified IP addresses is ignored and not redirected to the ProxyEgressPort.

It can be an empty list.

egress_ignored_ports

The egress traffic going to these specified ports is ignored and not redirected to the ProxyEgressPort.

It can be an empty list.

ignored_gid

The group ID (GID) of the proxy container as defined by the user parameter in a container definition.

This is used to ensure the proxy ignores its own traffic. If IgnoredUID is specified, this field can be empty.

ignored_uid

The user ID (UID) of the proxy container as defined by the user parameter in a container definition.

This is used to ensure the proxy ignores its own traffic. If IgnoredGID is specified, this field can be empty.

proxy_egress_port

Specifies the port that outgoing traffic from the AppPorts is directed to.

proxy_ingress_port

Specifies the port that incoming traffic to the AppPorts is directed to.