Interface CfnLaunchTemplate.NetworkInterfaceProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLaunchTemplate.NetworkInterfaceProperty.Jsii$Proxy
Enclosing class:
CfnLaunchTemplate

@Stability(Stable) public static interface CfnLaunchTemplate.NetworkInterfaceProperty extends software.amazon.jsii.JsiiSerializable
Specifies the parameters for a network interface.

NetworkInterface is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.ec2.*;
 NetworkInterfaceProperty networkInterfaceProperty = NetworkInterfaceProperty.builder()
         .associateCarrierIpAddress(false)
         .associatePublicIpAddress(false)
         .connectionTrackingSpecification(ConnectionTrackingSpecificationProperty.builder()
                 .tcpEstablishedTimeout(123)
                 .udpStreamTimeout(123)
                 .udpTimeout(123)
                 .build())
         .deleteOnTermination(false)
         .description("description")
         .deviceIndex(123)
         .enaSrdSpecification(EnaSrdSpecificationProperty.builder()
                 .enaSrdEnabled(false)
                 .enaSrdUdpSpecification(EnaSrdUdpSpecificationProperty.builder()
                         .enaSrdUdpEnabled(false)
                         .build())
                 .build())
         .groups(List.of("groups"))
         .interfaceType("interfaceType")
         .ipv4PrefixCount(123)
         .ipv4Prefixes(List.of(Ipv4PrefixSpecificationProperty.builder()
                 .ipv4Prefix("ipv4Prefix")
                 .build()))
         .ipv6AddressCount(123)
         .ipv6Addresses(List.of(Ipv6AddProperty.builder()
                 .ipv6Address("ipv6Address")
                 .build()))
         .ipv6PrefixCount(123)
         .ipv6Prefixes(List.of(Ipv6PrefixSpecificationProperty.builder()
                 .ipv6Prefix("ipv6Prefix")
                 .build()))
         .networkCardIndex(123)
         .networkInterfaceId("networkInterfaceId")
         .primaryIpv6(false)
         .privateIpAddress("privateIpAddress")
         .privateIpAddresses(List.of(PrivateIpAddProperty.builder()
                 .primary(false)
                 .privateIpAddress("privateIpAddress")
                 .build()))
         .secondaryPrivateIpAddressCount(123)
         .subnetId("subnetId")
         .build();
 

See Also: