AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
New-EC2NetworkInterface-SubnetId <String>-Description <String>-PrivateIpAddress <String>-Group <String[]>-InterfaceType <NetworkInterfaceCreationType>-Ipv4PrefixCount <Int32>-Ipv4Prefix <Ipv4PrefixSpecificationRequest[]>-Ipv6AddressCount <Int32>-Ipv6Address <InstanceIpv6Address[]>-Ipv6PrefixCount <Int32>-Ipv6Prefix <Ipv6PrefixSpecificationRequest[]>-PrivateIpAddressSet <PrivateIpAddressSpecification[]>-SecondaryPrivateIpAddressCount <Int32>-TagSpecification <TagSpecification[]>-ClientToken <String>-Select <String>-PassThru <SwitchParameter>-Force <SwitchParameter>
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 2 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | 4 |
Accept pipeline input? | True (ByPropertyName) |
Aliases | GroupId, Groups |
interface
.The only supported values are efa
and trunk
. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Ipv4PrefixCount
option. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Ipv4Prefixes |
Ipv4 Prefixes
option. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Ipv6Addresses |
AssignIpv6AddressOnCreation
attribute set to true
, you can specify 0
to override this setting. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Ipv6PrefixCount
option. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | Ipv6Prefixes |
Ipv6Prefixes
option. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
privateIpAddresses
as primary (only one IP address can be designated as primary). Required? | False |
Position? | 3 |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | PrivateIpAddresses |
privateIpAddresses
.The number of IP addresses you can assign to a network interface varies by instance type. For more information, see IP Addresses Per ENI Per Instance Type in the Amazon Virtual Private Cloud User Guide. Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | True |
Position? | 1 |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | TagSpecifications |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AK |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByValue, ByPropertyName) |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | AWSProfilesLocation, ProfilesLocation |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | StoredCredentials, AWSProfileName |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | RegionToCall |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | SK, SecretAccessKey |
Required? | False |
Position? | Named |
Accept pipeline input? | True (ByPropertyName) |
Aliases | ST |
New-EC2NetworkInterface -SubnetId subnet-1a2b3c4d -Description "my network interface" -Group sg-12345678 -PrivateIpAddress 10.0.0.17
Association :
Attachment :
AvailabilityZone : us-west-2c
Description : my network interface
Groups : {my-security-group}
MacAddress : 0a:72:bc:1a:cd:7f
NetworkInterfaceId : eni-12345678
OwnerId : 123456789012
PrivateDnsName : ip-10-0-0-17.us-west-2.compute.internal
PrivateIpAddress : 10.0.0.17
PrivateIpAddresses : {}
RequesterId :
RequesterManaged : False
SourceDestCheck : True
Status : pending
SubnetId : subnet-1a2b3c4d
TagSet : {}
VpcId : vpc-12345678This example creates the specified network interface.
AWS Tools for PowerShell: 2.x.y.z