amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

Description

 
Synopsis

Documentation

data InstanceNetworkInterfaceSpecification Source #

Describes a network interface.

See: newInstanceNetworkInterfaceSpecification smart constructor.

Constructors

InstanceNetworkInterfaceSpecification' 

Fields

  • associateCarrierIpAddress :: Maybe Bool

    Indicates whether to assign a carrier IP address to the network interface.

    You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.

  • associatePublicIpAddress :: Maybe Bool

    Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

  • deleteOnTermination :: Maybe Bool

    If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

  • description :: Maybe Text

    The description of the network interface. Applies only if creating a network interface when launching an instance.

  • deviceIndex :: Maybe Int

    The position of the network interface in the attachment order. A primary network interface has a device index of 0.

    If you specify a network interface when launching an instance, you must specify the device index.

  • groups :: Maybe [Text]

    The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

  • interfaceType :: Maybe Text

    The type of network interface.

    Valid values: interface | efa

  • ipv4PrefixCount :: Maybe Int

    The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

  • ipv4Prefixes :: Maybe [Ipv4PrefixSpecificationRequest]

    The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

  • ipv6AddressCount :: Maybe Int

    A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

  • ipv6Addresses :: Maybe [InstanceIpv6Address]

    The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.

  • ipv6PrefixCount :: Maybe Int

    The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

  • ipv6Prefixes :: Maybe [Ipv6PrefixSpecificationRequest]

    The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

  • networkCardIndex :: Maybe Int

    The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

    If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.

  • networkInterfaceId :: Maybe Text

    The ID of the network interface.

    If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.

  • privateIpAddress :: Maybe Text

    The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

  • privateIpAddresses :: Maybe [PrivateIpAddressSpecification]

    The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.

  • secondaryPrivateIpAddressCount :: Maybe Int

    The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

  • subnetId :: Maybe Text

    The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.

Instances

Instances details
ToQuery InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

FromXML InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

Generic InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

Read InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

Show InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

NFData InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

Eq InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

Hashable InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

type Rep InstanceNetworkInterfaceSpecification Source # 
Instance details

Defined in Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification

type Rep InstanceNetworkInterfaceSpecification = D1 ('MetaData "InstanceNetworkInterfaceSpecification" "Amazonka.EC2.Types.InstanceNetworkInterfaceSpecification" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "InstanceNetworkInterfaceSpecification'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "associateCarrierIpAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "associatePublicIpAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "deleteOnTermination") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "deviceIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "groups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "interfaceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ipv4PrefixCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "ipv4Prefixes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Ipv4PrefixSpecificationRequest])))))) :*: (((S1 ('MetaSel ('Just "ipv6AddressCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "ipv6Addresses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InstanceIpv6Address]))) :*: (S1 ('MetaSel ('Just "ipv6PrefixCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "ipv6Prefixes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Ipv6PrefixSpecificationRequest])) :*: S1 ('MetaSel ('Just "networkCardIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "networkInterfaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "privateIpAddress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "privateIpAddresses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [PrivateIpAddressSpecification])) :*: (S1 ('MetaSel ('Just "secondaryPrivateIpAddressCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "subnetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))))

newInstanceNetworkInterfaceSpecification :: InstanceNetworkInterfaceSpecification Source #

Create a value of InstanceNetworkInterfaceSpecification with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:associateCarrierIpAddress:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_associateCarrierIpAddress - Indicates whether to assign a carrier IP address to the network interface.

You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.

$sel:associatePublicIpAddress:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_associatePublicIpAddress - Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

$sel:deleteOnTermination:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_deleteOnTermination - If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

$sel:description:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_description - The description of the network interface. Applies only if creating a network interface when launching an instance.

$sel:deviceIndex:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_deviceIndex - The position of the network interface in the attachment order. A primary network interface has a device index of 0.

If you specify a network interface when launching an instance, you must specify the device index.

$sel:groups:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_groups - The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

$sel:interfaceType:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_interfaceType - The type of network interface.

Valid values: interface | efa

$sel:ipv4PrefixCount:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_ipv4PrefixCount - The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

$sel:ipv4Prefixes:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_ipv4Prefixes - The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

$sel:ipv6AddressCount:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_ipv6AddressCount - A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

$sel:ipv6Addresses:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_ipv6Addresses - The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.

$sel:ipv6PrefixCount:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_ipv6PrefixCount - The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

$sel:ipv6Prefixes:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_ipv6Prefixes - The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

$sel:networkCardIndex:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_networkCardIndex - The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.

$sel:networkInterfaceId:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_networkInterfaceId - The ID of the network interface.

If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.

InstanceNetworkInterfaceSpecification, instanceNetworkInterfaceSpecification_privateIpAddress - The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

$sel:privateIpAddresses:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_privateIpAddresses - The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.

$sel:secondaryPrivateIpAddressCount:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_secondaryPrivateIpAddressCount - The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

$sel:subnetId:InstanceNetworkInterfaceSpecification', instanceNetworkInterfaceSpecification_subnetId - The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.

instanceNetworkInterfaceSpecification_associateCarrierIpAddress :: Lens' InstanceNetworkInterfaceSpecification (Maybe Bool) Source #

Indicates whether to assign a carrier IP address to the network interface.

You can only assign a carrier IP address to a network interface that is in a subnet in a Wavelength Zone. For more information about carrier IP addresses, see Carrier IP address in the Amazon Web Services Wavelength Developer Guide.

instanceNetworkInterfaceSpecification_associatePublicIpAddress :: Lens' InstanceNetworkInterfaceSpecification (Maybe Bool) Source #

Indicates whether to assign a public IPv4 address to an instance you launch in a VPC. The public IP address can only be assigned to a network interface for eth0, and can only be assigned to a new network interface, not an existing one. You cannot specify more than one network interface in the request. If launching into a default subnet, the default value is true.

instanceNetworkInterfaceSpecification_deleteOnTermination :: Lens' InstanceNetworkInterfaceSpecification (Maybe Bool) Source #

If set to true, the interface is deleted when the instance is terminated. You can specify true only if creating a new network interface when launching an instance.

instanceNetworkInterfaceSpecification_description :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text) Source #

The description of the network interface. Applies only if creating a network interface when launching an instance.

instanceNetworkInterfaceSpecification_deviceIndex :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int) Source #

The position of the network interface in the attachment order. A primary network interface has a device index of 0.

If you specify a network interface when launching an instance, you must specify the device index.

instanceNetworkInterfaceSpecification_groups :: Lens' InstanceNetworkInterfaceSpecification (Maybe [Text]) Source #

The IDs of the security groups for the network interface. Applies only if creating a network interface when launching an instance.

instanceNetworkInterfaceSpecification_ipv4PrefixCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int) Source #

The number of IPv4 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv4Prefix option.

instanceNetworkInterfaceSpecification_ipv4Prefixes :: Lens' InstanceNetworkInterfaceSpecification (Maybe [Ipv4PrefixSpecificationRequest]) Source #

The IPv4 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

instanceNetworkInterfaceSpecification_ipv6AddressCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int) Source #

A number of IPv6 addresses to assign to the network interface. Amazon EC2 chooses the IPv6 addresses from the range of the subnet. You cannot specify this option and the option to assign specific IPv6 addresses in the same request. You can specify this option if you've specified a minimum number of instances to launch.

instanceNetworkInterfaceSpecification_ipv6Addresses :: Lens' InstanceNetworkInterfaceSpecification (Maybe [InstanceIpv6Address]) Source #

The IPv6 addresses to assign to the network interface. You cannot specify this option and the option to assign a number of IPv6 addresses in the same request. You cannot specify this option if you've specified a minimum number of instances to launch.

instanceNetworkInterfaceSpecification_ipv6PrefixCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int) Source #

The number of IPv6 delegated prefixes to be automatically assigned to the network interface. You cannot use this option if you use the Ipv6Prefix option.

instanceNetworkInterfaceSpecification_ipv6Prefixes :: Lens' InstanceNetworkInterfaceSpecification (Maybe [Ipv6PrefixSpecificationRequest]) Source #

The IPv6 delegated prefixes to be assigned to the network interface. You cannot use this option if you use the Ipv6PrefixCount option.

instanceNetworkInterfaceSpecification_networkCardIndex :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int) Source #

The index of the network card. Some instance types support multiple network cards. The primary network interface must be assigned to network card index 0. The default is network card index 0.

If you are using RequestSpotInstances to create Spot Instances, omit this parameter because you can’t specify the network card index when using this API. To specify the network card index, use RunInstances.

instanceNetworkInterfaceSpecification_networkInterfaceId :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text) Source #

The ID of the network interface.

If you are creating a Spot Fleet, omit this parameter because you can’t specify a network interface ID in a launch specification.

instanceNetworkInterfaceSpecification_privateIpAddress :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text) Source #

The private IPv4 address of the network interface. Applies only if creating a network interface when launching an instance. You cannot specify this option if you're launching more than one instance in a RunInstances request.

instanceNetworkInterfaceSpecification_privateIpAddresses :: Lens' InstanceNetworkInterfaceSpecification (Maybe [PrivateIpAddressSpecification]) Source #

The private IPv4 addresses to assign to the network interface. Only one private IPv4 address can be designated as primary. You cannot specify this option if you're launching more than one instance in a RunInstances request.

instanceNetworkInterfaceSpecification_secondaryPrivateIpAddressCount :: Lens' InstanceNetworkInterfaceSpecification (Maybe Int) Source #

The number of secondary private IPv4 addresses. You can't specify this option and specify more than one private IP address using the private IP addresses option. You cannot specify this option if you're launching more than one instance in a RunInstances request.

instanceNetworkInterfaceSpecification_subnetId :: Lens' InstanceNetworkInterfaceSpecification (Maybe Text) Source #

The ID of the subnet associated with the network interface. Applies only if creating a network interface when launching an instance.