{-# 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.SecurityHub.Types.AwsEc2NetworkInterfaceDetails
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.SecurityHub.Types.AwsEc2NetworkInterfaceDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsEc2NetworkInterfaceAttachment
import Amazonka.SecurityHub.Types.AwsEc2NetworkInterfaceIpV6AddressDetail
import Amazonka.SecurityHub.Types.AwsEc2NetworkInterfacePrivateIpAddressDetail
import Amazonka.SecurityHub.Types.AwsEc2NetworkInterfaceSecurityGroup

-- | Details about the network interface
--
-- /See:/ 'newAwsEc2NetworkInterfaceDetails' smart constructor.
data AwsEc2NetworkInterfaceDetails = AwsEc2NetworkInterfaceDetails'
  { -- | The private IPv4 addresses associated with the network interface.
    AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses :: Prelude.Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail],
    -- | The public DNS name of the network interface.
    AwsEc2NetworkInterfaceDetails -> Maybe Text
publicDnsName :: Prelude.Maybe Prelude.Text,
    -- | Security groups for the network interface.
    AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups :: Prelude.Maybe [AwsEc2NetworkInterfaceSecurityGroup],
    -- | Indicates whether traffic to or from the instance is validated.
    AwsEc2NetworkInterfaceDetails -> Maybe Bool
sourceDestCheck :: Prelude.Maybe Prelude.Bool,
    -- | The ID of the network interface.
    AwsEc2NetworkInterfaceDetails -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
    -- | The network interface attachment.
    AwsEc2NetworkInterfaceDetails
-> Maybe AwsEc2NetworkInterfaceAttachment
attachment :: Prelude.Maybe AwsEc2NetworkInterfaceAttachment,
    -- | The address of the Elastic IP address bound to the network interface.
    AwsEc2NetworkInterfaceDetails -> Maybe Text
publicIp :: Prelude.Maybe Prelude.Text,
    -- | The IPv6 addresses associated with the network interface.
    AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses :: Prelude.Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
  }
  deriving (AwsEc2NetworkInterfaceDetails
-> AwsEc2NetworkInterfaceDetails -> Bool
(AwsEc2NetworkInterfaceDetails
 -> AwsEc2NetworkInterfaceDetails -> Bool)
-> (AwsEc2NetworkInterfaceDetails
    -> AwsEc2NetworkInterfaceDetails -> Bool)
-> Eq AwsEc2NetworkInterfaceDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEc2NetworkInterfaceDetails
-> AwsEc2NetworkInterfaceDetails -> Bool
$c/= :: AwsEc2NetworkInterfaceDetails
-> AwsEc2NetworkInterfaceDetails -> Bool
== :: AwsEc2NetworkInterfaceDetails
-> AwsEc2NetworkInterfaceDetails -> Bool
$c== :: AwsEc2NetworkInterfaceDetails
-> AwsEc2NetworkInterfaceDetails -> Bool
Prelude.Eq, ReadPrec [AwsEc2NetworkInterfaceDetails]
ReadPrec AwsEc2NetworkInterfaceDetails
Int -> ReadS AwsEc2NetworkInterfaceDetails
ReadS [AwsEc2NetworkInterfaceDetails]
(Int -> ReadS AwsEc2NetworkInterfaceDetails)
-> ReadS [AwsEc2NetworkInterfaceDetails]
-> ReadPrec AwsEc2NetworkInterfaceDetails
-> ReadPrec [AwsEc2NetworkInterfaceDetails]
-> Read AwsEc2NetworkInterfaceDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEc2NetworkInterfaceDetails]
$creadListPrec :: ReadPrec [AwsEc2NetworkInterfaceDetails]
readPrec :: ReadPrec AwsEc2NetworkInterfaceDetails
$creadPrec :: ReadPrec AwsEc2NetworkInterfaceDetails
readList :: ReadS [AwsEc2NetworkInterfaceDetails]
$creadList :: ReadS [AwsEc2NetworkInterfaceDetails]
readsPrec :: Int -> ReadS AwsEc2NetworkInterfaceDetails
$creadsPrec :: Int -> ReadS AwsEc2NetworkInterfaceDetails
Prelude.Read, Int -> AwsEc2NetworkInterfaceDetails -> ShowS
[AwsEc2NetworkInterfaceDetails] -> ShowS
AwsEc2NetworkInterfaceDetails -> String
(Int -> AwsEc2NetworkInterfaceDetails -> ShowS)
-> (AwsEc2NetworkInterfaceDetails -> String)
-> ([AwsEc2NetworkInterfaceDetails] -> ShowS)
-> Show AwsEc2NetworkInterfaceDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEc2NetworkInterfaceDetails] -> ShowS
$cshowList :: [AwsEc2NetworkInterfaceDetails] -> ShowS
show :: AwsEc2NetworkInterfaceDetails -> String
$cshow :: AwsEc2NetworkInterfaceDetails -> String
showsPrec :: Int -> AwsEc2NetworkInterfaceDetails -> ShowS
$cshowsPrec :: Int -> AwsEc2NetworkInterfaceDetails -> ShowS
Prelude.Show, (forall x.
 AwsEc2NetworkInterfaceDetails
 -> Rep AwsEc2NetworkInterfaceDetails x)
-> (forall x.
    Rep AwsEc2NetworkInterfaceDetails x
    -> AwsEc2NetworkInterfaceDetails)
-> Generic AwsEc2NetworkInterfaceDetails
forall x.
Rep AwsEc2NetworkInterfaceDetails x
-> AwsEc2NetworkInterfaceDetails
forall x.
AwsEc2NetworkInterfaceDetails
-> Rep AwsEc2NetworkInterfaceDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsEc2NetworkInterfaceDetails x
-> AwsEc2NetworkInterfaceDetails
$cfrom :: forall x.
AwsEc2NetworkInterfaceDetails
-> Rep AwsEc2NetworkInterfaceDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsEc2NetworkInterfaceDetails' 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:
--
-- 'privateIpAddresses', 'awsEc2NetworkInterfaceDetails_privateIpAddresses' - The private IPv4 addresses associated with the network interface.
--
-- 'publicDnsName', 'awsEc2NetworkInterfaceDetails_publicDnsName' - The public DNS name of the network interface.
--
-- 'securityGroups', 'awsEc2NetworkInterfaceDetails_securityGroups' - Security groups for the network interface.
--
-- 'sourceDestCheck', 'awsEc2NetworkInterfaceDetails_sourceDestCheck' - Indicates whether traffic to or from the instance is validated.
--
-- 'networkInterfaceId', 'awsEc2NetworkInterfaceDetails_networkInterfaceId' - The ID of the network interface.
--
-- 'attachment', 'awsEc2NetworkInterfaceDetails_attachment' - The network interface attachment.
--
-- 'publicIp', 'awsEc2NetworkInterfaceDetails_publicIp' - The address of the Elastic IP address bound to the network interface.
--
-- 'ipV6Addresses', 'awsEc2NetworkInterfaceDetails_ipV6Addresses' - The IPv6 addresses associated with the network interface.
newAwsEc2NetworkInterfaceDetails ::
  AwsEc2NetworkInterfaceDetails
newAwsEc2NetworkInterfaceDetails :: AwsEc2NetworkInterfaceDetails
newAwsEc2NetworkInterfaceDetails =
  AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
-> Maybe Text
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
-> Maybe Bool
-> Maybe Text
-> Maybe AwsEc2NetworkInterfaceAttachment
-> Maybe Text
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
-> AwsEc2NetworkInterfaceDetails
AwsEc2NetworkInterfaceDetails'
    { $sel:privateIpAddresses:AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses =
        Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
forall a. Maybe a
Prelude.Nothing,
      $sel:publicDnsName:AwsEc2NetworkInterfaceDetails' :: Maybe Text
publicDnsName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:securityGroups:AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups = Maybe [AwsEc2NetworkInterfaceSecurityGroup]
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceDestCheck:AwsEc2NetworkInterfaceDetails' :: Maybe Bool
sourceDestCheck = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:networkInterfaceId:AwsEc2NetworkInterfaceDetails' :: Maybe Text
networkInterfaceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:attachment:AwsEc2NetworkInterfaceDetails' :: Maybe AwsEc2NetworkInterfaceAttachment
attachment = Maybe AwsEc2NetworkInterfaceAttachment
forall a. Maybe a
Prelude.Nothing,
      $sel:publicIp:AwsEc2NetworkInterfaceDetails' :: Maybe Text
publicIp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ipV6Addresses:AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses = Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
forall a. Maybe a
Prelude.Nothing
    }

-- | The private IPv4 addresses associated with the network interface.
awsEc2NetworkInterfaceDetails_privateIpAddresses :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
awsEc2NetworkInterfaceDetails_privateIpAddresses :: (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
 -> f (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_privateIpAddresses = (AwsEc2NetworkInterfaceDetails
 -> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
    -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
     (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses :: Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
$sel:privateIpAddresses:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses} -> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
a -> AwsEc2NetworkInterfaceDetails
s {$sel:privateIpAddresses:AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses = Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
a} :: AwsEc2NetworkInterfaceDetails) ((Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  -> f (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
 -> AwsEc2NetworkInterfaceDetails
 -> f AwsEc2NetworkInterfaceDetails)
-> ((Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
     -> f (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
    -> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
    -> f (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
-> (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
    -> f (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
-> AwsEc2NetworkInterfaceDetails
-> f AwsEc2NetworkInterfaceDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
-> Iso
     (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
     (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
     (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
     (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
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 AnIso
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
  [AwsEc2NetworkInterfacePrivateIpAddressDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The public DNS name of the network interface.
awsEc2NetworkInterfaceDetails_publicDnsName :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe Prelude.Text)
awsEc2NetworkInterfaceDetails_publicDnsName :: (Maybe Text -> f (Maybe Text))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_publicDnsName = (AwsEc2NetworkInterfaceDetails -> Maybe Text)
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe Text -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe Text
publicDnsName :: Maybe Text
$sel:publicDnsName:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Text
publicDnsName} -> Maybe Text
publicDnsName) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe Text
a -> AwsEc2NetworkInterfaceDetails
s {$sel:publicDnsName:AwsEc2NetworkInterfaceDetails' :: Maybe Text
publicDnsName = Maybe Text
a} :: AwsEc2NetworkInterfaceDetails)

-- | Security groups for the network interface.
awsEc2NetworkInterfaceDetails_securityGroups :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe [AwsEc2NetworkInterfaceSecurityGroup])
awsEc2NetworkInterfaceDetails_securityGroups :: (Maybe [AwsEc2NetworkInterfaceSecurityGroup]
 -> f (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_securityGroups = (AwsEc2NetworkInterfaceDetails
 -> Maybe [AwsEc2NetworkInterfaceSecurityGroup])
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
    -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups :: Maybe [AwsEc2NetworkInterfaceSecurityGroup]
$sel:securityGroups:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups} -> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe [AwsEc2NetworkInterfaceSecurityGroup]
a -> AwsEc2NetworkInterfaceDetails
s {$sel:securityGroups:AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups = Maybe [AwsEc2NetworkInterfaceSecurityGroup]
a} :: AwsEc2NetworkInterfaceDetails) ((Maybe [AwsEc2NetworkInterfaceSecurityGroup]
  -> f (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
 -> AwsEc2NetworkInterfaceDetails
 -> f AwsEc2NetworkInterfaceDetails)
-> ((Maybe [AwsEc2NetworkInterfaceSecurityGroup]
     -> f (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
    -> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
    -> f (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
-> (Maybe [AwsEc2NetworkInterfaceSecurityGroup]
    -> f (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
-> AwsEc2NetworkInterfaceDetails
-> f AwsEc2NetworkInterfaceDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsEc2NetworkInterfaceSecurityGroup]
  [AwsEc2NetworkInterfaceSecurityGroup]
  [AwsEc2NetworkInterfaceSecurityGroup]
  [AwsEc2NetworkInterfaceSecurityGroup]
-> Iso
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
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 AnIso
  [AwsEc2NetworkInterfaceSecurityGroup]
  [AwsEc2NetworkInterfaceSecurityGroup]
  [AwsEc2NetworkInterfaceSecurityGroup]
  [AwsEc2NetworkInterfaceSecurityGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Indicates whether traffic to or from the instance is validated.
awsEc2NetworkInterfaceDetails_sourceDestCheck :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe Prelude.Bool)
awsEc2NetworkInterfaceDetails_sourceDestCheck :: (Maybe Bool -> f (Maybe Bool))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_sourceDestCheck = (AwsEc2NetworkInterfaceDetails -> Maybe Bool)
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe Bool -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe Bool
sourceDestCheck :: Maybe Bool
$sel:sourceDestCheck:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Bool
sourceDestCheck} -> Maybe Bool
sourceDestCheck) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe Bool
a -> AwsEc2NetworkInterfaceDetails
s {$sel:sourceDestCheck:AwsEc2NetworkInterfaceDetails' :: Maybe Bool
sourceDestCheck = Maybe Bool
a} :: AwsEc2NetworkInterfaceDetails)

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

-- | The network interface attachment.
awsEc2NetworkInterfaceDetails_attachment :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe AwsEc2NetworkInterfaceAttachment)
awsEc2NetworkInterfaceDetails_attachment :: (Maybe AwsEc2NetworkInterfaceAttachment
 -> f (Maybe AwsEc2NetworkInterfaceAttachment))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_attachment = (AwsEc2NetworkInterfaceDetails
 -> Maybe AwsEc2NetworkInterfaceAttachment)
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe AwsEc2NetworkInterfaceAttachment
    -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe AwsEc2NetworkInterfaceAttachment)
     (Maybe AwsEc2NetworkInterfaceAttachment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe AwsEc2NetworkInterfaceAttachment
attachment :: Maybe AwsEc2NetworkInterfaceAttachment
$sel:attachment:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe AwsEc2NetworkInterfaceAttachment
attachment} -> Maybe AwsEc2NetworkInterfaceAttachment
attachment) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe AwsEc2NetworkInterfaceAttachment
a -> AwsEc2NetworkInterfaceDetails
s {$sel:attachment:AwsEc2NetworkInterfaceDetails' :: Maybe AwsEc2NetworkInterfaceAttachment
attachment = Maybe AwsEc2NetworkInterfaceAttachment
a} :: AwsEc2NetworkInterfaceDetails)

-- | The address of the Elastic IP address bound to the network interface.
awsEc2NetworkInterfaceDetails_publicIp :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe Prelude.Text)
awsEc2NetworkInterfaceDetails_publicIp :: (Maybe Text -> f (Maybe Text))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_publicIp = (AwsEc2NetworkInterfaceDetails -> Maybe Text)
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe Text -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe Text
publicIp :: Maybe Text
$sel:publicIp:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Text
publicIp} -> Maybe Text
publicIp) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe Text
a -> AwsEc2NetworkInterfaceDetails
s {$sel:publicIp:AwsEc2NetworkInterfaceDetails' :: Maybe Text
publicIp = Maybe Text
a} :: AwsEc2NetworkInterfaceDetails)

-- | The IPv6 addresses associated with the network interface.
awsEc2NetworkInterfaceDetails_ipV6Addresses :: Lens.Lens' AwsEc2NetworkInterfaceDetails (Prelude.Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
awsEc2NetworkInterfaceDetails_ipV6Addresses :: (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
 -> f (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
-> AwsEc2NetworkInterfaceDetails -> f AwsEc2NetworkInterfaceDetails
awsEc2NetworkInterfaceDetails_ipV6Addresses = (AwsEc2NetworkInterfaceDetails
 -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
-> (AwsEc2NetworkInterfaceDetails
    -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
    -> AwsEc2NetworkInterfaceDetails)
-> Lens
     AwsEc2NetworkInterfaceDetails
     AwsEc2NetworkInterfaceDetails
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2NetworkInterfaceDetails' {Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses :: Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
$sel:ipV6Addresses:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses} -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses) (\s :: AwsEc2NetworkInterfaceDetails
s@AwsEc2NetworkInterfaceDetails' {} Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
a -> AwsEc2NetworkInterfaceDetails
s {$sel:ipV6Addresses:AwsEc2NetworkInterfaceDetails' :: Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses = Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
a} :: AwsEc2NetworkInterfaceDetails) ((Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
  -> f (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
 -> AwsEc2NetworkInterfaceDetails
 -> f AwsEc2NetworkInterfaceDetails)
-> ((Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
     -> f (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
    -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
    -> f (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
-> (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
    -> f (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
-> AwsEc2NetworkInterfaceDetails
-> f AwsEc2NetworkInterfaceDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
-> Iso
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
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 AnIso
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
  [AwsEc2NetworkInterfaceIpV6AddressDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON AwsEc2NetworkInterfaceDetails where
  parseJSON :: Value -> Parser AwsEc2NetworkInterfaceDetails
parseJSON =
    String
-> (Object -> Parser AwsEc2NetworkInterfaceDetails)
-> Value
-> Parser AwsEc2NetworkInterfaceDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsEc2NetworkInterfaceDetails"
      ( \Object
x ->
          Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
-> Maybe Text
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
-> Maybe Bool
-> Maybe Text
-> Maybe AwsEc2NetworkInterfaceAttachment
-> Maybe Text
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
-> AwsEc2NetworkInterfaceDetails
AwsEc2NetworkInterfaceDetails'
            (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
 -> Maybe Text
 -> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
 -> Maybe Bool
 -> Maybe Text
 -> Maybe AwsEc2NetworkInterfaceAttachment
 -> Maybe Text
 -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
 -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
-> Parser
     (Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
      -> Maybe Bool
      -> Maybe Text
      -> Maybe AwsEc2NetworkInterfaceAttachment
      -> Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Parser
     (Maybe (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PrivateIpAddresses"
                            Parser
  (Maybe (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]))
-> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
-> Parser (Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
   -> Maybe Bool
   -> Maybe Text
   -> Maybe AwsEc2NetworkInterfaceAttachment
   -> Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [AwsEc2NetworkInterfaceSecurityGroup]
      -> Maybe Bool
      -> Maybe Text
      -> Maybe AwsEc2NetworkInterfaceAttachment
      -> Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PublicDnsName")
            Parser
  (Maybe [AwsEc2NetworkInterfaceSecurityGroup]
   -> Maybe Bool
   -> Maybe Text
   -> Maybe AwsEc2NetworkInterfaceAttachment
   -> Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
-> Parser
     (Maybe Bool
      -> Maybe Text
      -> Maybe AwsEc2NetworkInterfaceAttachment
      -> Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SecurityGroups" Parser (Maybe (Maybe [AwsEc2NetworkInterfaceSecurityGroup]))
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
-> Parser (Maybe [AwsEc2NetworkInterfaceSecurityGroup])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsEc2NetworkInterfaceSecurityGroup]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe Bool
   -> Maybe Text
   -> Maybe AwsEc2NetworkInterfaceAttachment
   -> Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe Bool)
-> Parser
     (Maybe Text
      -> Maybe AwsEc2NetworkInterfaceAttachment
      -> Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceDestCheck")
            Parser
  (Maybe Text
   -> Maybe AwsEc2NetworkInterfaceAttachment
   -> Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsEc2NetworkInterfaceAttachment
      -> Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NetworkInterfaceId")
            Parser
  (Maybe AwsEc2NetworkInterfaceAttachment
   -> Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe AwsEc2NetworkInterfaceAttachment)
-> Parser
     (Maybe Text
      -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AwsEc2NetworkInterfaceAttachment)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Attachment")
            Parser
  (Maybe Text
   -> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
      -> AwsEc2NetworkInterfaceDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"PublicIp")
            Parser
  (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
   -> AwsEc2NetworkInterfaceDetails)
-> Parser (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
-> Parser AwsEc2NetworkInterfaceDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"IpV6Addresses" Parser (Maybe (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]))
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
-> Parser (Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
forall a. Monoid a => a
Prelude.mempty)
      )

instance
  Prelude.Hashable
    AwsEc2NetworkInterfaceDetails

instance Prelude.NFData AwsEc2NetworkInterfaceDetails

instance Core.ToJSON AwsEc2NetworkInterfaceDetails where
  toJSON :: AwsEc2NetworkInterfaceDetails -> Value
toJSON AwsEc2NetworkInterfaceDetails' {Maybe Bool
Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
Maybe [AwsEc2NetworkInterfaceSecurityGroup]
Maybe Text
Maybe AwsEc2NetworkInterfaceAttachment
ipV6Addresses :: Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
publicIp :: Maybe Text
attachment :: Maybe AwsEc2NetworkInterfaceAttachment
networkInterfaceId :: Maybe Text
sourceDestCheck :: Maybe Bool
securityGroups :: Maybe [AwsEc2NetworkInterfaceSecurityGroup]
publicDnsName :: Maybe Text
privateIpAddresses :: Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
$sel:ipV6Addresses:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
$sel:publicIp:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Text
$sel:attachment:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe AwsEc2NetworkInterfaceAttachment
$sel:networkInterfaceId:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Text
$sel:sourceDestCheck:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Bool
$sel:securityGroups:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
$sel:publicDnsName:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails -> Maybe Text
$sel:privateIpAddresses:AwsEc2NetworkInterfaceDetails' :: AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"PrivateIpAddresses" Text -> [AwsEc2NetworkInterfacePrivateIpAddressDetail] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([AwsEc2NetworkInterfacePrivateIpAddressDetail] -> Pair)
-> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses,
            (Text
"PublicDnsName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
publicDnsName,
            (Text
"SecurityGroups" Text -> [AwsEc2NetworkInterfaceSecurityGroup] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([AwsEc2NetworkInterfaceSecurityGroup] -> Pair)
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups,
            (Text
"SourceDestCheck" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
sourceDestCheck,
            (Text
"NetworkInterfaceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
networkInterfaceId,
            (Text
"Attachment" Text -> AwsEc2NetworkInterfaceAttachment -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AwsEc2NetworkInterfaceAttachment -> Pair)
-> Maybe AwsEc2NetworkInterfaceAttachment -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsEc2NetworkInterfaceAttachment
attachment,
            (Text
"PublicIp" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
publicIp,
            (Text
"IpV6Addresses" Text -> [AwsEc2NetworkInterfaceIpV6AddressDetail] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([AwsEc2NetworkInterfaceIpV6AddressDetail] -> Pair)
-> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AwsEc2NetworkInterfaceIpV6AddressDetail]
ipV6Addresses
          ]
      )