{-# 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.AwsEc2EipDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data AwsEc2EipDetails = AwsEc2EipDetails'
{
AwsEc2EipDetails -> Maybe Text
associationId :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
networkInterfaceOwnerId :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
allocationId :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
networkBorderGroup :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
domain :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
networkInterfaceId :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
publicIpv4Pool :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
privateIpAddress :: Prelude.Maybe Prelude.Text,
AwsEc2EipDetails -> Maybe Text
publicIp :: Prelude.Maybe Prelude.Text
}
deriving (AwsEc2EipDetails -> AwsEc2EipDetails -> Bool
(AwsEc2EipDetails -> AwsEc2EipDetails -> Bool)
-> (AwsEc2EipDetails -> AwsEc2EipDetails -> Bool)
-> Eq AwsEc2EipDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsEc2EipDetails -> AwsEc2EipDetails -> Bool
$c/= :: AwsEc2EipDetails -> AwsEc2EipDetails -> Bool
== :: AwsEc2EipDetails -> AwsEc2EipDetails -> Bool
$c== :: AwsEc2EipDetails -> AwsEc2EipDetails -> Bool
Prelude.Eq, ReadPrec [AwsEc2EipDetails]
ReadPrec AwsEc2EipDetails
Int -> ReadS AwsEc2EipDetails
ReadS [AwsEc2EipDetails]
(Int -> ReadS AwsEc2EipDetails)
-> ReadS [AwsEc2EipDetails]
-> ReadPrec AwsEc2EipDetails
-> ReadPrec [AwsEc2EipDetails]
-> Read AwsEc2EipDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsEc2EipDetails]
$creadListPrec :: ReadPrec [AwsEc2EipDetails]
readPrec :: ReadPrec AwsEc2EipDetails
$creadPrec :: ReadPrec AwsEc2EipDetails
readList :: ReadS [AwsEc2EipDetails]
$creadList :: ReadS [AwsEc2EipDetails]
readsPrec :: Int -> ReadS AwsEc2EipDetails
$creadsPrec :: Int -> ReadS AwsEc2EipDetails
Prelude.Read, Int -> AwsEc2EipDetails -> ShowS
[AwsEc2EipDetails] -> ShowS
AwsEc2EipDetails -> String
(Int -> AwsEc2EipDetails -> ShowS)
-> (AwsEc2EipDetails -> String)
-> ([AwsEc2EipDetails] -> ShowS)
-> Show AwsEc2EipDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsEc2EipDetails] -> ShowS
$cshowList :: [AwsEc2EipDetails] -> ShowS
show :: AwsEc2EipDetails -> String
$cshow :: AwsEc2EipDetails -> String
showsPrec :: Int -> AwsEc2EipDetails -> ShowS
$cshowsPrec :: Int -> AwsEc2EipDetails -> ShowS
Prelude.Show, (forall x. AwsEc2EipDetails -> Rep AwsEc2EipDetails x)
-> (forall x. Rep AwsEc2EipDetails x -> AwsEc2EipDetails)
-> Generic AwsEc2EipDetails
forall x. Rep AwsEc2EipDetails x -> AwsEc2EipDetails
forall x. AwsEc2EipDetails -> Rep AwsEc2EipDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AwsEc2EipDetails x -> AwsEc2EipDetails
$cfrom :: forall x. AwsEc2EipDetails -> Rep AwsEc2EipDetails x
Prelude.Generic)
newAwsEc2EipDetails ::
AwsEc2EipDetails
newAwsEc2EipDetails :: AwsEc2EipDetails
newAwsEc2EipDetails =
AwsEc2EipDetails' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails
AwsEc2EipDetails'
{ $sel:associationId:AwsEc2EipDetails' :: Maybe Text
associationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:AwsEc2EipDetails' :: Maybe Text
instanceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceOwnerId:AwsEc2EipDetails' :: Maybe Text
networkInterfaceOwnerId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:allocationId:AwsEc2EipDetails' :: Maybe Text
allocationId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkBorderGroup:AwsEc2EipDetails' :: Maybe Text
networkBorderGroup = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:domain:AwsEc2EipDetails' :: Maybe Text
domain = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaceId:AwsEc2EipDetails' :: Maybe Text
networkInterfaceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:publicIpv4Pool:AwsEc2EipDetails' :: Maybe Text
publicIpv4Pool = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:privateIpAddress:AwsEc2EipDetails' :: Maybe Text
privateIpAddress = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:publicIp:AwsEc2EipDetails' :: Maybe Text
publicIp = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
awsEc2EipDetails_associationId :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_associationId :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_associationId = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
associationId :: Maybe Text
$sel:associationId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
associationId} -> Maybe Text
associationId) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:associationId:AwsEc2EipDetails' :: Maybe Text
associationId = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_instanceId :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_instanceId :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_instanceId = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:instanceId:AwsEc2EipDetails' :: Maybe Text
instanceId = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_networkInterfaceOwnerId :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_networkInterfaceOwnerId :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_networkInterfaceOwnerId = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
networkInterfaceOwnerId :: Maybe Text
$sel:networkInterfaceOwnerId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
networkInterfaceOwnerId} -> Maybe Text
networkInterfaceOwnerId) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:networkInterfaceOwnerId:AwsEc2EipDetails' :: Maybe Text
networkInterfaceOwnerId = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_allocationId :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_allocationId :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_allocationId = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
allocationId :: Maybe Text
$sel:allocationId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
allocationId} -> Maybe Text
allocationId) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:allocationId:AwsEc2EipDetails' :: Maybe Text
allocationId = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_networkBorderGroup :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_networkBorderGroup :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_networkBorderGroup = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
networkBorderGroup :: Maybe Text
$sel:networkBorderGroup:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
networkBorderGroup} -> Maybe Text
networkBorderGroup) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:networkBorderGroup:AwsEc2EipDetails' :: Maybe Text
networkBorderGroup = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_domain :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_domain :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_domain = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
domain :: Maybe Text
$sel:domain:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
domain} -> Maybe Text
domain) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:domain:AwsEc2EipDetails' :: Maybe Text
domain = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_networkInterfaceId :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_networkInterfaceId :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_networkInterfaceId = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
networkInterfaceId :: Maybe Text
$sel:networkInterfaceId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
networkInterfaceId} -> Maybe Text
networkInterfaceId) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:networkInterfaceId:AwsEc2EipDetails' :: Maybe Text
networkInterfaceId = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_publicIpv4Pool :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_publicIpv4Pool :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_publicIpv4Pool = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
publicIpv4Pool :: Maybe Text
$sel:publicIpv4Pool:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
publicIpv4Pool} -> Maybe Text
publicIpv4Pool) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:publicIpv4Pool:AwsEc2EipDetails' :: Maybe Text
publicIpv4Pool = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_privateIpAddress :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_privateIpAddress :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_privateIpAddress = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
privateIpAddress :: Maybe Text
$sel:privateIpAddress:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
privateIpAddress} -> Maybe Text
privateIpAddress) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:privateIpAddress:AwsEc2EipDetails' :: Maybe Text
privateIpAddress = Maybe Text
a} :: AwsEc2EipDetails)
awsEc2EipDetails_publicIp :: Lens.Lens' AwsEc2EipDetails (Prelude.Maybe Prelude.Text)
awsEc2EipDetails_publicIp :: (Maybe Text -> f (Maybe Text))
-> AwsEc2EipDetails -> f AwsEc2EipDetails
awsEc2EipDetails_publicIp = (AwsEc2EipDetails -> Maybe Text)
-> (AwsEc2EipDetails -> Maybe Text -> AwsEc2EipDetails)
-> Lens AwsEc2EipDetails AwsEc2EipDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsEc2EipDetails' {Maybe Text
publicIp :: Maybe Text
$sel:publicIp:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
publicIp} -> Maybe Text
publicIp) (\s :: AwsEc2EipDetails
s@AwsEc2EipDetails' {} Maybe Text
a -> AwsEc2EipDetails
s {$sel:publicIp:AwsEc2EipDetails' :: Maybe Text
publicIp = Maybe Text
a} :: AwsEc2EipDetails)
instance Core.FromJSON AwsEc2EipDetails where
parseJSON :: Value -> Parser AwsEc2EipDetails
parseJSON =
String
-> (Object -> Parser AwsEc2EipDetails)
-> Value
-> Parser AwsEc2EipDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"AwsEc2EipDetails"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails
AwsEc2EipDetails'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
forall (f :: * -> *) a b. Functor 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
"AssociationId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
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
"InstanceId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
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
"NetworkInterfaceOwnerId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
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
"AllocationId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
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
"NetworkBorderGroup")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> AwsEc2EipDetails)
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
"Domain")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> AwsEc2EipDetails)
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 Text -> Maybe Text -> Maybe Text -> AwsEc2EipDetails)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> AwsEc2EipDetails)
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
"PublicIpv4Pool")
Parser (Maybe Text -> Maybe Text -> AwsEc2EipDetails)
-> Parser (Maybe Text) -> Parser (Maybe Text -> AwsEc2EipDetails)
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
"PrivateIpAddress")
Parser (Maybe Text -> AwsEc2EipDetails)
-> Parser (Maybe Text) -> Parser AwsEc2EipDetails
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")
)
instance Prelude.Hashable AwsEc2EipDetails
instance Prelude.NFData AwsEc2EipDetails
instance Core.ToJSON AwsEc2EipDetails where
toJSON :: AwsEc2EipDetails -> Value
toJSON AwsEc2EipDetails' {Maybe Text
publicIp :: Maybe Text
privateIpAddress :: Maybe Text
publicIpv4Pool :: Maybe Text
networkInterfaceId :: Maybe Text
domain :: Maybe Text
networkBorderGroup :: Maybe Text
allocationId :: Maybe Text
networkInterfaceOwnerId :: Maybe Text
instanceId :: Maybe Text
associationId :: Maybe Text
$sel:publicIp:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:privateIpAddress:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:publicIpv4Pool:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:networkInterfaceId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:domain:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:networkBorderGroup:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:allocationId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:networkInterfaceOwnerId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:instanceId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
$sel:associationId:AwsEc2EipDetails' :: AwsEc2EipDetails -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AssociationId" 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
associationId,
(Text
"InstanceId" 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
instanceId,
(Text
"NetworkInterfaceOwnerId" 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
networkInterfaceOwnerId,
(Text
"AllocationId" 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
allocationId,
(Text
"NetworkBorderGroup" 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
networkBorderGroup,
(Text
"Domain" 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
domain,
(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
"PublicIpv4Pool" 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
publicIpv4Pool,
(Text
"PrivateIpAddress" 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
privateIpAddress,
(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
]
)