{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.GuardDuty.Types.NetworkInterface
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.GuardDuty.Types.NetworkInterface where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GuardDuty.Types.PrivateIpAddressDetails
import Amazonka.GuardDuty.Types.SecurityGroup
import qualified Amazonka.Prelude as Prelude

-- | Contains information about the elastic network interface of the EC2
-- instance.
--
-- /See:/ 'newNetworkInterface' smart constructor.
data NetworkInterface = NetworkInterface'
  { -- | A list of IPv6 addresses for the EC2 instance.
    NetworkInterface -> Maybe [Text]
ipv6Addresses :: Prelude.Maybe [Prelude.Text],
    -- | The ID of the network interface.
    NetworkInterface -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
    -- | The private DNS name of the EC2 instance.
    NetworkInterface -> Maybe Text
privateDnsName :: Prelude.Maybe Prelude.Text,
    -- | The private IP address of the EC2 instance.
    NetworkInterface -> Maybe Text
privateIpAddress :: Prelude.Maybe Prelude.Text,
    -- | Other private IP address information of the EC2 instance.
    NetworkInterface -> Maybe [PrivateIpAddressDetails]
privateIpAddresses :: Prelude.Maybe [PrivateIpAddressDetails],
    -- | The public DNS name of the EC2 instance.
    NetworkInterface -> Maybe Text
publicDnsName :: Prelude.Maybe Prelude.Text,
    -- | The public IP address of the EC2 instance.
    NetworkInterface -> Maybe Text
publicIp :: Prelude.Maybe Prelude.Text,
    -- | The security groups associated with the EC2 instance.
    NetworkInterface -> Maybe [SecurityGroup]
securityGroups :: Prelude.Maybe [SecurityGroup],
    -- | The subnet ID of the EC2 instance.
    NetworkInterface -> Maybe Text
subnetId :: Prelude.Maybe Prelude.Text,
    -- | The VPC ID of the EC2 instance.
    NetworkInterface -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text
  }
  deriving (NetworkInterface -> NetworkInterface -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NetworkInterface -> NetworkInterface -> Bool
$c/= :: NetworkInterface -> NetworkInterface -> Bool
== :: NetworkInterface -> NetworkInterface -> Bool
$c== :: NetworkInterface -> NetworkInterface -> Bool
Prelude.Eq, ReadPrec [NetworkInterface]
ReadPrec NetworkInterface
Int -> ReadS NetworkInterface
ReadS [NetworkInterface]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [NetworkInterface]
$creadListPrec :: ReadPrec [NetworkInterface]
readPrec :: ReadPrec NetworkInterface
$creadPrec :: ReadPrec NetworkInterface
readList :: ReadS [NetworkInterface]
$creadList :: ReadS [NetworkInterface]
readsPrec :: Int -> ReadS NetworkInterface
$creadsPrec :: Int -> ReadS NetworkInterface
Prelude.Read, Int -> NetworkInterface -> ShowS
[NetworkInterface] -> ShowS
NetworkInterface -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NetworkInterface] -> ShowS
$cshowList :: [NetworkInterface] -> ShowS
show :: NetworkInterface -> String
$cshow :: NetworkInterface -> String
showsPrec :: Int -> NetworkInterface -> ShowS
$cshowsPrec :: Int -> NetworkInterface -> ShowS
Prelude.Show, forall x. Rep NetworkInterface x -> NetworkInterface
forall x. NetworkInterface -> Rep NetworkInterface x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep NetworkInterface x -> NetworkInterface
$cfrom :: forall x. NetworkInterface -> Rep NetworkInterface x
Prelude.Generic)

-- |
-- Create a value of 'NetworkInterface' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'ipv6Addresses', 'networkInterface_ipv6Addresses' - A list of IPv6 addresses for the EC2 instance.
--
-- 'networkInterfaceId', 'networkInterface_networkInterfaceId' - The ID of the network interface.
--
-- 'privateDnsName', 'networkInterface_privateDnsName' - The private DNS name of the EC2 instance.
--
-- 'privateIpAddress', 'networkInterface_privateIpAddress' - The private IP address of the EC2 instance.
--
-- 'privateIpAddresses', 'networkInterface_privateIpAddresses' - Other private IP address information of the EC2 instance.
--
-- 'publicDnsName', 'networkInterface_publicDnsName' - The public DNS name of the EC2 instance.
--
-- 'publicIp', 'networkInterface_publicIp' - The public IP address of the EC2 instance.
--
-- 'securityGroups', 'networkInterface_securityGroups' - The security groups associated with the EC2 instance.
--
-- 'subnetId', 'networkInterface_subnetId' - The subnet ID of the EC2 instance.
--
-- 'vpcId', 'networkInterface_vpcId' - The VPC ID of the EC2 instance.
newNetworkInterface ::
  NetworkInterface
newNetworkInterface :: NetworkInterface
newNetworkInterface =
  NetworkInterface'
    { $sel:ipv6Addresses:NetworkInterface' :: Maybe [Text]
ipv6Addresses = forall a. Maybe a
Prelude.Nothing,
      $sel:networkInterfaceId:NetworkInterface' :: Maybe Text
networkInterfaceId = forall a. Maybe a
Prelude.Nothing,
      $sel:privateDnsName:NetworkInterface' :: Maybe Text
privateDnsName = forall a. Maybe a
Prelude.Nothing,
      $sel:privateIpAddress:NetworkInterface' :: Maybe Text
privateIpAddress = forall a. Maybe a
Prelude.Nothing,
      $sel:privateIpAddresses:NetworkInterface' :: Maybe [PrivateIpAddressDetails]
privateIpAddresses = forall a. Maybe a
Prelude.Nothing,
      $sel:publicDnsName:NetworkInterface' :: Maybe Text
publicDnsName = forall a. Maybe a
Prelude.Nothing,
      $sel:publicIp:NetworkInterface' :: Maybe Text
publicIp = forall a. Maybe a
Prelude.Nothing,
      $sel:securityGroups:NetworkInterface' :: Maybe [SecurityGroup]
securityGroups = forall a. Maybe a
Prelude.Nothing,
      $sel:subnetId:NetworkInterface' :: Maybe Text
subnetId = forall a. Maybe a
Prelude.Nothing,
      $sel:vpcId:NetworkInterface' :: Maybe Text
vpcId = forall a. Maybe a
Prelude.Nothing
    }

-- | A list of IPv6 addresses for the EC2 instance.
networkInterface_ipv6Addresses :: Lens.Lens' NetworkInterface (Prelude.Maybe [Prelude.Text])
networkInterface_ipv6Addresses :: Lens' NetworkInterface (Maybe [Text])
networkInterface_ipv6Addresses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe [Text]
ipv6Addresses :: Maybe [Text]
$sel:ipv6Addresses:NetworkInterface' :: NetworkInterface -> Maybe [Text]
ipv6Addresses} -> Maybe [Text]
ipv6Addresses) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe [Text]
a -> NetworkInterface
s {$sel:ipv6Addresses:NetworkInterface' :: Maybe [Text]
ipv6Addresses = Maybe [Text]
a} :: NetworkInterface) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The ID of the network interface.
networkInterface_networkInterfaceId :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_networkInterfaceId :: Lens' NetworkInterface (Maybe Text)
networkInterface_networkInterfaceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
networkInterfaceId :: Maybe Text
$sel:networkInterfaceId:NetworkInterface' :: NetworkInterface -> Maybe Text
networkInterfaceId} -> Maybe Text
networkInterfaceId) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:networkInterfaceId:NetworkInterface' :: Maybe Text
networkInterfaceId = Maybe Text
a} :: NetworkInterface)

-- | The private DNS name of the EC2 instance.
networkInterface_privateDnsName :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_privateDnsName :: Lens' NetworkInterface (Maybe Text)
networkInterface_privateDnsName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
privateDnsName :: Maybe Text
$sel:privateDnsName:NetworkInterface' :: NetworkInterface -> Maybe Text
privateDnsName} -> Maybe Text
privateDnsName) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:privateDnsName:NetworkInterface' :: Maybe Text
privateDnsName = Maybe Text
a} :: NetworkInterface)

-- | The private IP address of the EC2 instance.
networkInterface_privateIpAddress :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_privateIpAddress :: Lens' NetworkInterface (Maybe Text)
networkInterface_privateIpAddress = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
privateIpAddress :: Maybe Text
$sel:privateIpAddress:NetworkInterface' :: NetworkInterface -> Maybe Text
privateIpAddress} -> Maybe Text
privateIpAddress) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:privateIpAddress:NetworkInterface' :: Maybe Text
privateIpAddress = Maybe Text
a} :: NetworkInterface)

-- | Other private IP address information of the EC2 instance.
networkInterface_privateIpAddresses :: Lens.Lens' NetworkInterface (Prelude.Maybe [PrivateIpAddressDetails])
networkInterface_privateIpAddresses :: Lens' NetworkInterface (Maybe [PrivateIpAddressDetails])
networkInterface_privateIpAddresses = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe [PrivateIpAddressDetails]
privateIpAddresses :: Maybe [PrivateIpAddressDetails]
$sel:privateIpAddresses:NetworkInterface' :: NetworkInterface -> Maybe [PrivateIpAddressDetails]
privateIpAddresses} -> Maybe [PrivateIpAddressDetails]
privateIpAddresses) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe [PrivateIpAddressDetails]
a -> NetworkInterface
s {$sel:privateIpAddresses:NetworkInterface' :: Maybe [PrivateIpAddressDetails]
privateIpAddresses = Maybe [PrivateIpAddressDetails]
a} :: NetworkInterface) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The public DNS name of the EC2 instance.
networkInterface_publicDnsName :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_publicDnsName :: Lens' NetworkInterface (Maybe Text)
networkInterface_publicDnsName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
publicDnsName :: Maybe Text
$sel:publicDnsName:NetworkInterface' :: NetworkInterface -> Maybe Text
publicDnsName} -> Maybe Text
publicDnsName) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:publicDnsName:NetworkInterface' :: Maybe Text
publicDnsName = Maybe Text
a} :: NetworkInterface)

-- | The public IP address of the EC2 instance.
networkInterface_publicIp :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_publicIp :: Lens' NetworkInterface (Maybe Text)
networkInterface_publicIp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
publicIp :: Maybe Text
$sel:publicIp:NetworkInterface' :: NetworkInterface -> Maybe Text
publicIp} -> Maybe Text
publicIp) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:publicIp:NetworkInterface' :: Maybe Text
publicIp = Maybe Text
a} :: NetworkInterface)

-- | The security groups associated with the EC2 instance.
networkInterface_securityGroups :: Lens.Lens' NetworkInterface (Prelude.Maybe [SecurityGroup])
networkInterface_securityGroups :: Lens' NetworkInterface (Maybe [SecurityGroup])
networkInterface_securityGroups = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe [SecurityGroup]
securityGroups :: Maybe [SecurityGroup]
$sel:securityGroups:NetworkInterface' :: NetworkInterface -> Maybe [SecurityGroup]
securityGroups} -> Maybe [SecurityGroup]
securityGroups) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe [SecurityGroup]
a -> NetworkInterface
s {$sel:securityGroups:NetworkInterface' :: Maybe [SecurityGroup]
securityGroups = Maybe [SecurityGroup]
a} :: NetworkInterface) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The subnet ID of the EC2 instance.
networkInterface_subnetId :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_subnetId :: Lens' NetworkInterface (Maybe Text)
networkInterface_subnetId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
subnetId :: Maybe Text
$sel:subnetId:NetworkInterface' :: NetworkInterface -> Maybe Text
subnetId} -> Maybe Text
subnetId) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:subnetId:NetworkInterface' :: Maybe Text
subnetId = Maybe Text
a} :: NetworkInterface)

-- | The VPC ID of the EC2 instance.
networkInterface_vpcId :: Lens.Lens' NetworkInterface (Prelude.Maybe Prelude.Text)
networkInterface_vpcId :: Lens' NetworkInterface (Maybe Text)
networkInterface_vpcId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\NetworkInterface' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:NetworkInterface' :: NetworkInterface -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: NetworkInterface
s@NetworkInterface' {} Maybe Text
a -> NetworkInterface
s {$sel:vpcId:NetworkInterface' :: Maybe Text
vpcId = Maybe Text
a} :: NetworkInterface)

instance Data.FromJSON NetworkInterface where
  parseJSON :: Value -> Parser NetworkInterface
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"NetworkInterface"
      ( \Object
x ->
          Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [PrivateIpAddressDetails]
-> Maybe Text
-> Maybe Text
-> Maybe [SecurityGroup]
-> Maybe Text
-> Maybe Text
-> NetworkInterface
NetworkInterface'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ipv6Addresses" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"networkInterfaceId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"privateDnsName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"privateIpAddress")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"privateIpAddresses"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"publicDnsName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"publicIp")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"securityGroups" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"subnetId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"vpcId")
      )

instance Prelude.Hashable NetworkInterface where
  hashWithSalt :: Int -> NetworkInterface -> Int
hashWithSalt Int
_salt NetworkInterface' {Maybe [Text]
Maybe [PrivateIpAddressDetails]
Maybe [SecurityGroup]
Maybe Text
vpcId :: Maybe Text
subnetId :: Maybe Text
securityGroups :: Maybe [SecurityGroup]
publicIp :: Maybe Text
publicDnsName :: Maybe Text
privateIpAddresses :: Maybe [PrivateIpAddressDetails]
privateIpAddress :: Maybe Text
privateDnsName :: Maybe Text
networkInterfaceId :: Maybe Text
ipv6Addresses :: Maybe [Text]
$sel:vpcId:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:subnetId:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:securityGroups:NetworkInterface' :: NetworkInterface -> Maybe [SecurityGroup]
$sel:publicIp:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:publicDnsName:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:privateIpAddresses:NetworkInterface' :: NetworkInterface -> Maybe [PrivateIpAddressDetails]
$sel:privateIpAddress:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:privateDnsName:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:networkInterfaceId:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:ipv6Addresses:NetworkInterface' :: NetworkInterface -> Maybe [Text]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
ipv6Addresses
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
networkInterfaceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
privateDnsName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
privateIpAddress
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [PrivateIpAddressDetails]
privateIpAddresses
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
publicDnsName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
publicIp
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SecurityGroup]
securityGroups
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
subnetId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
vpcId

instance Prelude.NFData NetworkInterface where
  rnf :: NetworkInterface -> ()
rnf NetworkInterface' {Maybe [Text]
Maybe [PrivateIpAddressDetails]
Maybe [SecurityGroup]
Maybe Text
vpcId :: Maybe Text
subnetId :: Maybe Text
securityGroups :: Maybe [SecurityGroup]
publicIp :: Maybe Text
publicDnsName :: Maybe Text
privateIpAddresses :: Maybe [PrivateIpAddressDetails]
privateIpAddress :: Maybe Text
privateDnsName :: Maybe Text
networkInterfaceId :: Maybe Text
ipv6Addresses :: Maybe [Text]
$sel:vpcId:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:subnetId:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:securityGroups:NetworkInterface' :: NetworkInterface -> Maybe [SecurityGroup]
$sel:publicIp:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:publicDnsName:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:privateIpAddresses:NetworkInterface' :: NetworkInterface -> Maybe [PrivateIpAddressDetails]
$sel:privateIpAddress:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:privateDnsName:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:networkInterfaceId:NetworkInterface' :: NetworkInterface -> Maybe Text
$sel:ipv6Addresses:NetworkInterface' :: NetworkInterface -> Maybe [Text]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
ipv6Addresses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
networkInterfaceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
privateDnsName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
privateIpAddress
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [PrivateIpAddressDetails]
privateIpAddresses
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
publicDnsName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
publicIp
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [SecurityGroup]
securityGroups
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
subnetId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
vpcId