Fugue.AWS.EC2.IpPermission.Target

Module Members

ipRange

(Function)

Create an IpPermissionTarget from a single IP range.

Example usage:

target: EC2.IpPermission.Target.ipRange("8.8.8.8/24")

Type Signature

 fun (String) -> IpPermissionTarget
Argument: cidr

The IP range in CIDR notation.

Type: String

Returns:

An EC2.IpPermissionTarget.

Type: IpPermissionTarget

ipRanges

(Function)

IP Permission Target (Constructor)

Example usage:

target: EC2.IpPermission.Target.ipRanges(["0.0.0.0/0"])

Type Signature

 fun (List<String>) -> IpPermissionTarget
Argument: ips

A list of CIDR-notated IP ranges.

Type: List<String>

Returns:

A Fugue.Core.AWS.EC2.IpPermissionTarget, for use in SecurityGroup rules.

Type: IpPermissionTarget

prefixList

(Function)

Create an IpPermissionTarget for a PrefixList

Example usage: target: EC2.IpPermission.Target.prefixList(my-s3PrefixList)

arg list A PrefixList to target

Type Signature

 fun (PrefixList) -> IpPermissionTarget
Argument: list
Type: PrefixList
Returns:

An EC2.IpPermissionTarget.

Type: IpPermissionTarget

prefixLists

(Function)

Create an IpPermissionTarget for one or more PrefixLists

Example usage: target: EC2.IpPermission.Target.prefixLists([my-s3PrefixList, my-ddbPrefixList])

arg lists A list of PrefixLists to target

Type Signature

 fun (List<PrefixList>) -> IpPermissionTarget
Argument: lists
Type: List<PrefixList>
Returns:

An EC2.IpPermissionTarget.

Type: IpPermissionTarget

securityGroup

(Function)

Create an IpPermissionTarget from a single SecurityGroup.

Example usage:

target: EC2.IpPermission.Target.securityGroup(my-group)

Type Signature

 fun (SecurityGroup) -> IpPermissionTarget
Argument: group

The security group to target

Type: SecurityGroup

Returns:

An EC2.IpPermissionTarget.

Type: IpPermissionTarget

securityGroups

(Function)

IP Permission Target (Constructor)

Type Signature

 fun (List<SecurityGroup>) -> IpPermissionTarget
Argument: groups

A list of Security Groups.

Type: List<SecurityGroup>

Returns:

A Fugue.Core.AWS.EC2.IpPermissionTarget, for use in SecurityGroup rules.

Type: IpPermissionTarget

subnet

(Function)

Create an IpPermissionTarget from a subnet.

The created target will have an IP range corresponding to the CIDR block of the specified subnet.

Example usage:

target: EC2.IpPermission.Target.subnet(my-subnet)

Type Signature

 fun (Subnet) -> IpPermissionTarget
Argument: net

The subnet to target.

Type: Subnet

Returns:

An EC2.IpPermissionTarget.

Type: IpPermissionTarget

subnets

(Function)

Create an IpPermissionTarget from a list of Subnets.

The created target will have an IP range corresponding to the CIDR block of each subnet.

Example usage:

target: EC2.IpPermission.Target.subnets([my-subnet1, my-subnet2])

Type Signature

 fun (List<Subnet>) -> IpPermissionTarget
Argument: nets

The subnets to target.

Type: List<Subnet>

Returns:

An EC2.IpPermissionTarget.

Type: IpPermissionTarget

all

(Value)

IpPermissionTarget all:
  ipRanges(["0.0.0.0/0"])

An IpPermissionTarget that matches all IPv4 addresses.

Type Signature

 IpPermissionTarget