Fugue.AWS.EC2.NetworkAcl.Entry

Module Members

allowInboundPort

(Function)

Create a NetworkAcl.Entry to allow inbound access to a single port.

Example usage:

import Fugue.AWS.EC2 as EC2

# Allow inbound TCP connection to 22/tcp from the internet.
rule: EC2.NetworkAcl.Entry.allowInboundPort {
  ruleNumber: 120,
  protocol: EC2.Protocol.TCP,
  port: 22,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       port: Int,
       protocol: Optional<Protocol>,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: port

The port number to allow inbound access to.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: cidrBlock

The IP range to allow inbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

allowInboundPorts

(Function)

Create a NetworkAclEntry to allow inbound access on a port range.

Example usage:

import Fugue.AWS.EC2 as EC2

# Allow inbound TCP connections to 5900-5999/tcp from the internet.
rule: EC2.NetworkAcl.Entry.allowInboundPorts {
  ruleNumber: 110,
  protocol: EC2.Protocol.TCP,
  from: 5900,
  to: 5999,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       protocol: Optional<Protocol>,
       from: Int,
       to: Int,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: from

The lowest port number of the port range for the entry.

Type: Int

Argument: to

The highest port number of the port range for the entry.

Type: Int

Argument: cidrBlock

The IP range to allow inbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

allowOutboundPort

(Function)

Create a NetworkAcl.Entry to allow outbound access to a single port.

Example usage:

import Fugue.AWS.EC2 as EC2

# Allow outbound TCP connection to the internet on 80/tcp.
rule: EC2.NetworkAcl.Entry.allowOutboundPort {
  ruleNumber: 120,
  protocol: EC2.Protocol.TCP,
  port: 80,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       port: Int,
       protocol: Optional<Protocol>,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: port

The port number to allow outbound access to.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: cidrBlock

The IP range to allow outbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

allowOutboundPorts

(Function)

Create a NetworkAcl.Entry to allow outbound access on a port range.

Example usage:

import Fugue.AWS.EC2 as EC2

# Allow outbound TCP connections to 5900-5999/tcp from the internet.
rule: EC2.NetworkAcl.Entry.allowInboundPorts {
  ruleNumber: 110,
  protocol: EC2.Protocol.TCP,
  from: 5900,
  to: 5999,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       protocol: Optional<Protocol>,
       from: Int,
       to: Int,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: from

The lowest port number of the port range for the entry.

Type: Int

Argument: to

The highest port number of the port range for the entry.

Type: Int

Argument: cidrBlock

The IP range to allow inbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

denyInboundPort

(Function)

Create a NetworkAcl.Entry to deny inbound access to a single port.

Example usage:

import Fugue.AWS.EC2 as EC2

# Deny inbound TCP connection to 22/tcp from the internet.
rule: EC2.NetworkAcl.Entry.denyInboundPort {
  ruleNumber: 120,
  protocol: EC2.Protocol.TCP,
  port: 22,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       port: Int,
       protocol: Optional<Protocol>,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: port

The port number to deny inbound access to.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: cidrBlock

The IP range to deny inbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

denyInboundPorts

(Function)

Create a NetworkAclEntry to deny inbound access on a port range.

Example usage:

import Fugue.AWS.EC2 as EC2

# Deny inbound TCP connections to 5900-5999/tcp from the internet.
rule: EC2.NetworkAcl.Entry.denyInboundPorts {
  ruleNumber: 110,
  protocol: EC2.Protocol.TCP,
  from: 5900,
  to: 5999,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       protocol: Optional<Protocol>,
       from: Int,
       to: Int,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: from

The lowest port number of the port range for the entry.

Type: Int

Argument: to

The highest port number of the port range for the entry.

Type: Int

Argument: cidrBlock

The IP range to deny inbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

denyOutboundPort

(Function)

Create a NetworkAcl.Entry to deny outbound access to a single port.

Example usage:

import Fugue.AWS.EC2 as EC2

# Deny outbound TCP connection to the internet on 80/tcp.
rule: EC2.NetworkAcl.Entry.denyOutboundPort {
  ruleNumber: 120,
  protocol: EC2.Protocol.TCP,
  port: 80,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       port: Int,
       protocol: Optional<Protocol>,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: port

The port number to deny outbound access to.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: cidrBlock

The IP range to deny outbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

a Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry

denyOutboundPorts

(Function)

Create a NetworkAcl.Entry to deny outbound access on a port range.

Example usage:

import Fugue.AWS.EC2 as EC2

# Deny outbound TCP connections to 5900-5999/tcp from the internet.
rule: EC2.NetworkAcl.Entry.denyInboundPorts {
  ruleNumber: 110,
  protocol: EC2.Protocol.TCP,
  from: 5900,
  to: 5999,
  cidrBlock: "0.0.0.0/0"
}

Type Signature

 fun { ruleNumber: Int,
       protocol: Optional<Protocol>,
       from: Int,
       to: Int,
       cidrBlock: Optional<String> } -> NetworkAclEntry
Argument: ruleNumber

The rule number for the entry. Must be between 1 and 32766.

Type: Int

Argument: protocol

The IP protocol for the entry. Defaults to EC2.Protocol.TCP.

Type: Optional<Protocol>

Argument: from

The lowest port number of the port range for the entry.

Type: Int

Argument: to

The highest port number of the port range for the entry.

Type: Int

Argument: cidrBlock

The IP range to deny inbound access from in CIDR notation. Defaults to “0.0.0.0/0”.

Type: Optional<String>

Returns:

A Fugue.Core.AWS.EC2.NetworkAclEntry value.

Type: NetworkAclEntry