{-# 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 #-}
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
data AwsEc2NetworkInterfaceDetails = AwsEc2NetworkInterfaceDetails'
{
AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail]
privateIpAddresses :: Prelude.Maybe [AwsEc2NetworkInterfacePrivateIpAddressDetail],
AwsEc2NetworkInterfaceDetails -> Maybe Text
publicDnsName :: Prelude.Maybe Prelude.Text,
AwsEc2NetworkInterfaceDetails
-> Maybe [AwsEc2NetworkInterfaceSecurityGroup]
securityGroups :: Prelude.Maybe [AwsEc2NetworkInterfaceSecurityGroup],
AwsEc2NetworkInterfaceDetails -> Maybe Bool
sourceDestCheck :: Prelude.Maybe Prelude.Bool,
AwsEc2NetworkInterfaceDetails -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
AwsEc2NetworkInterfaceDetails
-> Maybe AwsEc2NetworkInterfaceAttachment
attachment :: Prelude.Maybe AwsEc2NetworkInterfaceAttachment,
AwsEc2NetworkInterfaceDetails -> Maybe Text
publicIp :: Prelude.Maybe Prelude.Text,
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)
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
}
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
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)
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
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)
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)
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)
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)
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
]
)