InstanceSecondaryNetworkInterface constructor

const InstanceSecondaryNetworkInterface({
  1. Input<bool?>? deleteOnTermination,
  2. Input<int?>? deviceIndex,
  3. Input<String?>? interfaceType,
  4. Input<String?>? macAddress,
  5. required Input<int> networkCardIndex,
  6. Input<int?>? privateIpAddressCount,
  7. Input<List<String>?>? privateIpAddresses,
  8. Input<String?>? secondaryInterfaceId,
  9. Input<String?>? secondaryNetworkId,
  10. required Input<String> secondarySubnetId,
  11. Input<bool?>? sourceDestCheck,
  12. Input<String?>? status,
})

Creates a new InstanceSecondaryNetworkInterface. deleteOnTermination Whether the network interface should be destroyed when the instance is terminated. Defaults to true. Forces replacement. deviceIndex Device index for the network interface attachment. Defaults to 0. Forces replacement. interfaceType Type of network interface. Currently only secondary is supported. Defaults to secondary. Forces replacement. macAddress Optional. networkCardIndex Network card index for the interface. Each network card can have one secondary interface. Forces replacement. privateIpAddressCount Number of private IP addresses to assign to the network interface. Defaults to 1. Forces replacement. privateIpAddresses List of private IP addresses to assign to the network interface. If not specified, AWS will automatically assign IP addresses based on privateIpAddressCount. Forces replacement. secondaryInterfaceId Optional. secondaryNetworkId Optional. secondarySubnetId ID of the secondary subnet in which to create the network interface. Forces replacement. sourceDestCheck Controls if traffic is routed to the instance when the destination address does not match the instance. Used for NAT or VPNs. Defaults true. status Optional.

Implementation

const InstanceSecondaryNetworkInterface({
  this.deleteOnTermination,
  this.deviceIndex,
  this.interfaceType,
  this.macAddress,
  required this.networkCardIndex,
  this.privateIpAddressCount,
  this.privateIpAddresses,
  this.secondaryInterfaceId,
  this.secondaryNetworkId,
  required this.secondarySubnetId,
  this.sourceDestCheck,
  this.status,
});