Fugue.AWS.EC2.Instance.PrimaryNetworkInterface

Table of Contents

Module Members

new

(Function)

new PrimaryInstanceNetworkInterface (Constructor)

Call this constructor to create a new Fugue.AWS.EC2.PrimaryInstanceNetworkInterface value. Note that PrimaryInstanceNetworkInterface values may only be used with EC2.Instance.newWithNetworkInterfaces.

Type Signature

 fun { subnet: Subnet,
       associatePublicIpAddress: Optional<Bool>,
       description: Optional<String>,
       privateIpAddress: Optional<String>,
       sourceDestCheck: Optional<Bool>,
       privateIpAddresses: Optional<List<String>>,
       tags: Optional<List<Tag>>,
       securityGroups: List<SecurityGroup>,
       numSecondaryPrivateIpAddresses: Optional<Int>,
       elasticIPs: Optional<List<ElasticIpAttachment>> } -> PrimaryInstanceNetworkInterface
Argument: subnet

The subnet in which to launch the network interface.

Type: Subnet

Argument: associatePublicIpAddress

Whether the network interface launches with a public IP address. An Internet Gateway must be attached to the insterfaces VPC if associatePublicIpAddress is set to True.

Type: Optional<Bool>

Argument: description

A plaintext description for the network interface. Mutable.

Type: Optional<String>

Argument: privateIpAddress

The primary private IP address for the network interface. If no IP address is specified, AWS will select one at random from the subnet’s IPv4 CIDR range.

Type: Optional<String>

Argument: sourceDestCheck

Specifies whether source/destination checking is done for network traffic received by the network interface. If the network interface is going to perform NAT, it must accept traffic for sources & destinations other than itself, so this must be disabled. Mutable.

Type: Optional<Bool>

Argument: privateIpAddresses

A list of secondary private IPv4 addresses. Mutable.

Type: Optional<List<String>>

Argument: tags

AWS tags to apply to the network interface. Mutable.

Type: Optional<List<Tag>>

Argument: securityGroups

Security groups to apply to the network interface. At least one security group must be specified. Mutable.

Type: List<SecurityGroup>

Argument: numSecondaryPrivateIpAddresses

The total number of secondary private IPv4 addresses to assign to this network interface. This is the number of randomly selected addresses plus the number of addresses specified in privateIpAddresses. The random addresses are chosen from the subnet’s CIDR block. If not specified, this will default to the total number of addresses in privateIpAddresses. Mutable.

Type: Optional<Int>

Argument: elasticIPs

A list of EC2 ElasticIpAttachments describing associations between private IPs associated with this network interface and EC2 ElasticIPs. Mutable.

Type: Optional<List<ElasticIpAttachment>>

Returns:

a Fugue.Core.AWS.EC2.PrimaryInstanceNetworkInterface value.

Type: PrimaryInstanceNetworkInterface