{-# 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.S3Outposts.Types.Endpoint where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.S3Outposts.Types.EndpointAccessType
import Amazonka.S3Outposts.Types.EndpointStatus
import Amazonka.S3Outposts.Types.NetworkInterface
data Endpoint = Endpoint'
{
Endpoint -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
Endpoint -> Maybe EndpointStatus
status :: Prelude.Maybe EndpointStatus,
Endpoint -> Maybe Text
vpcId :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe [NetworkInterface]
networkInterfaces :: Prelude.Maybe [NetworkInterface],
Endpoint -> Maybe Text
outpostsId :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
subnetId :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
securityGroupId :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe EndpointAccessType
accessType :: Prelude.Maybe EndpointAccessType,
Endpoint -> Maybe Text
customerOwnedIpv4Pool :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
cidrBlock :: Prelude.Maybe Prelude.Text,
Endpoint -> Maybe Text
endpointArn :: Prelude.Maybe Prelude.Text
}
deriving (Endpoint -> Endpoint -> Bool
(Endpoint -> Endpoint -> Bool)
-> (Endpoint -> Endpoint -> Bool) -> Eq Endpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Endpoint -> Endpoint -> Bool
$c/= :: Endpoint -> Endpoint -> Bool
== :: Endpoint -> Endpoint -> Bool
$c== :: Endpoint -> Endpoint -> Bool
Prelude.Eq, ReadPrec [Endpoint]
ReadPrec Endpoint
Int -> ReadS Endpoint
ReadS [Endpoint]
(Int -> ReadS Endpoint)
-> ReadS [Endpoint]
-> ReadPrec Endpoint
-> ReadPrec [Endpoint]
-> Read Endpoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Endpoint]
$creadListPrec :: ReadPrec [Endpoint]
readPrec :: ReadPrec Endpoint
$creadPrec :: ReadPrec Endpoint
readList :: ReadS [Endpoint]
$creadList :: ReadS [Endpoint]
readsPrec :: Int -> ReadS Endpoint
$creadsPrec :: Int -> ReadS Endpoint
Prelude.Read, Int -> Endpoint -> ShowS
[Endpoint] -> ShowS
Endpoint -> String
(Int -> Endpoint -> ShowS)
-> (Endpoint -> String) -> ([Endpoint] -> ShowS) -> Show Endpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Endpoint] -> ShowS
$cshowList :: [Endpoint] -> ShowS
show :: Endpoint -> String
$cshow :: Endpoint -> String
showsPrec :: Int -> Endpoint -> ShowS
$cshowsPrec :: Int -> Endpoint -> ShowS
Prelude.Show, (forall x. Endpoint -> Rep Endpoint x)
-> (forall x. Rep Endpoint x -> Endpoint) -> Generic Endpoint
forall x. Rep Endpoint x -> Endpoint
forall x. Endpoint -> Rep Endpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Endpoint x -> Endpoint
$cfrom :: forall x. Endpoint -> Rep Endpoint x
Prelude.Generic)
newEndpoint ::
Endpoint
newEndpoint :: Endpoint
newEndpoint =
Endpoint' :: Maybe POSIX
-> Maybe EndpointStatus
-> Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint
Endpoint'
{ $sel:creationTime:Endpoint' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:Endpoint' :: Maybe EndpointStatus
status = Maybe EndpointStatus
forall a. Maybe a
Prelude.Nothing,
$sel:vpcId:Endpoint' :: Maybe Text
vpcId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:networkInterfaces:Endpoint' :: Maybe [NetworkInterface]
networkInterfaces = Maybe [NetworkInterface]
forall a. Maybe a
Prelude.Nothing,
$sel:outpostsId:Endpoint' :: Maybe Text
outpostsId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:subnetId:Endpoint' :: Maybe Text
subnetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:securityGroupId:Endpoint' :: Maybe Text
securityGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:accessType:Endpoint' :: Maybe EndpointAccessType
accessType = Maybe EndpointAccessType
forall a. Maybe a
Prelude.Nothing,
$sel:customerOwnedIpv4Pool:Endpoint' :: Maybe Text
customerOwnedIpv4Pool = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cidrBlock:Endpoint' :: Maybe Text
cidrBlock = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endpointArn:Endpoint' :: Maybe Text
endpointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
endpoint_creationTime :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.UTCTime)
endpoint_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Endpoint -> f Endpoint
endpoint_creationTime = (Endpoint -> Maybe POSIX)
-> (Endpoint -> Maybe POSIX -> Endpoint)
-> Lens Endpoint Endpoint (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Endpoint' :: Endpoint -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Endpoint
s@Endpoint' {} Maybe POSIX
a -> Endpoint
s {$sel:creationTime:Endpoint' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Endpoint) ((Maybe POSIX -> f (Maybe POSIX)) -> Endpoint -> f Endpoint)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Endpoint
-> f Endpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
endpoint_status :: Lens.Lens' Endpoint (Prelude.Maybe EndpointStatus)
endpoint_status :: (Maybe EndpointStatus -> f (Maybe EndpointStatus))
-> Endpoint -> f Endpoint
endpoint_status = (Endpoint -> Maybe EndpointStatus)
-> (Endpoint -> Maybe EndpointStatus -> Endpoint)
-> Lens
Endpoint Endpoint (Maybe EndpointStatus) (Maybe EndpointStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe EndpointStatus
status :: Maybe EndpointStatus
$sel:status:Endpoint' :: Endpoint -> Maybe EndpointStatus
status} -> Maybe EndpointStatus
status) (\s :: Endpoint
s@Endpoint' {} Maybe EndpointStatus
a -> Endpoint
s {$sel:status:Endpoint' :: Maybe EndpointStatus
status = Maybe EndpointStatus
a} :: Endpoint)
endpoint_vpcId :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_vpcId :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_vpcId = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
vpcId :: Maybe Text
$sel:vpcId:Endpoint' :: Endpoint -> Maybe Text
vpcId} -> Maybe Text
vpcId) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:vpcId:Endpoint' :: Maybe Text
vpcId = Maybe Text
a} :: Endpoint)
endpoint_networkInterfaces :: Lens.Lens' Endpoint (Prelude.Maybe [NetworkInterface])
endpoint_networkInterfaces :: (Maybe [NetworkInterface] -> f (Maybe [NetworkInterface]))
-> Endpoint -> f Endpoint
endpoint_networkInterfaces = (Endpoint -> Maybe [NetworkInterface])
-> (Endpoint -> Maybe [NetworkInterface] -> Endpoint)
-> Lens
Endpoint
Endpoint
(Maybe [NetworkInterface])
(Maybe [NetworkInterface])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe [NetworkInterface]
networkInterfaces :: Maybe [NetworkInterface]
$sel:networkInterfaces:Endpoint' :: Endpoint -> Maybe [NetworkInterface]
networkInterfaces} -> Maybe [NetworkInterface]
networkInterfaces) (\s :: Endpoint
s@Endpoint' {} Maybe [NetworkInterface]
a -> Endpoint
s {$sel:networkInterfaces:Endpoint' :: Maybe [NetworkInterface]
networkInterfaces = Maybe [NetworkInterface]
a} :: Endpoint) ((Maybe [NetworkInterface] -> f (Maybe [NetworkInterface]))
-> Endpoint -> f Endpoint)
-> ((Maybe [NetworkInterface] -> f (Maybe [NetworkInterface]))
-> Maybe [NetworkInterface] -> f (Maybe [NetworkInterface]))
-> (Maybe [NetworkInterface] -> f (Maybe [NetworkInterface]))
-> Endpoint
-> f Endpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[NetworkInterface]
[NetworkInterface]
[NetworkInterface]
[NetworkInterface]
-> Iso
(Maybe [NetworkInterface])
(Maybe [NetworkInterface])
(Maybe [NetworkInterface])
(Maybe [NetworkInterface])
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
[NetworkInterface]
[NetworkInterface]
[NetworkInterface]
[NetworkInterface]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
endpoint_outpostsId :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_outpostsId :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_outpostsId = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
outpostsId :: Maybe Text
$sel:outpostsId:Endpoint' :: Endpoint -> Maybe Text
outpostsId} -> Maybe Text
outpostsId) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:outpostsId:Endpoint' :: Maybe Text
outpostsId = Maybe Text
a} :: Endpoint)
endpoint_subnetId :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_subnetId :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_subnetId = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
subnetId :: Maybe Text
$sel:subnetId:Endpoint' :: Endpoint -> Maybe Text
subnetId} -> Maybe Text
subnetId) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:subnetId:Endpoint' :: Maybe Text
subnetId = Maybe Text
a} :: Endpoint)
endpoint_securityGroupId :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_securityGroupId :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_securityGroupId = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
securityGroupId :: Maybe Text
$sel:securityGroupId:Endpoint' :: Endpoint -> Maybe Text
securityGroupId} -> Maybe Text
securityGroupId) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:securityGroupId:Endpoint' :: Maybe Text
securityGroupId = Maybe Text
a} :: Endpoint)
endpoint_accessType :: Lens.Lens' Endpoint (Prelude.Maybe EndpointAccessType)
endpoint_accessType :: (Maybe EndpointAccessType -> f (Maybe EndpointAccessType))
-> Endpoint -> f Endpoint
endpoint_accessType = (Endpoint -> Maybe EndpointAccessType)
-> (Endpoint -> Maybe EndpointAccessType -> Endpoint)
-> Lens
Endpoint
Endpoint
(Maybe EndpointAccessType)
(Maybe EndpointAccessType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe EndpointAccessType
accessType :: Maybe EndpointAccessType
$sel:accessType:Endpoint' :: Endpoint -> Maybe EndpointAccessType
accessType} -> Maybe EndpointAccessType
accessType) (\s :: Endpoint
s@Endpoint' {} Maybe EndpointAccessType
a -> Endpoint
s {$sel:accessType:Endpoint' :: Maybe EndpointAccessType
accessType = Maybe EndpointAccessType
a} :: Endpoint)
endpoint_customerOwnedIpv4Pool :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_customerOwnedIpv4Pool :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_customerOwnedIpv4Pool = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
customerOwnedIpv4Pool :: Maybe Text
$sel:customerOwnedIpv4Pool:Endpoint' :: Endpoint -> Maybe Text
customerOwnedIpv4Pool} -> Maybe Text
customerOwnedIpv4Pool) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:customerOwnedIpv4Pool:Endpoint' :: Maybe Text
customerOwnedIpv4Pool = Maybe Text
a} :: Endpoint)
endpoint_cidrBlock :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_cidrBlock :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_cidrBlock = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
cidrBlock :: Maybe Text
$sel:cidrBlock:Endpoint' :: Endpoint -> Maybe Text
cidrBlock} -> Maybe Text
cidrBlock) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:cidrBlock:Endpoint' :: Maybe Text
cidrBlock = Maybe Text
a} :: Endpoint)
endpoint_endpointArn :: Lens.Lens' Endpoint (Prelude.Maybe Prelude.Text)
endpoint_endpointArn :: (Maybe Text -> f (Maybe Text)) -> Endpoint -> f Endpoint
endpoint_endpointArn = (Endpoint -> Maybe Text)
-> (Endpoint -> Maybe Text -> Endpoint)
-> Lens Endpoint Endpoint (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Endpoint' {Maybe Text
endpointArn :: Maybe Text
$sel:endpointArn:Endpoint' :: Endpoint -> Maybe Text
endpointArn} -> Maybe Text
endpointArn) (\s :: Endpoint
s@Endpoint' {} Maybe Text
a -> Endpoint
s {$sel:endpointArn:Endpoint' :: Maybe Text
endpointArn = Maybe Text
a} :: Endpoint)
instance Core.FromJSON Endpoint where
parseJSON :: Value -> Parser Endpoint
parseJSON =
String -> (Object -> Parser Endpoint) -> Value -> Parser Endpoint
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Endpoint"
( \Object
x ->
Maybe POSIX
-> Maybe EndpointStatus
-> Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint
Endpoint'
(Maybe POSIX
-> Maybe EndpointStatus
-> Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe POSIX)
-> Parser
(Maybe EndpointStatus
-> Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
Parser
(Maybe EndpointStatus
-> Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe EndpointStatus)
-> Parser
(Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EndpointStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe Text
-> Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
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
"VpcId")
Parser
(Maybe [NetworkInterface]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe [NetworkInterface])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [NetworkInterface]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NetworkInterfaces"
Parser (Maybe (Maybe [NetworkInterface]))
-> Maybe [NetworkInterface] -> Parser (Maybe [NetworkInterface])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [NetworkInterface]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
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
"OutpostsId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
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
"SubnetId")
Parser
(Maybe Text
-> Maybe EndpointAccessType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Endpoint)
-> Parser (Maybe Text)
-> Parser
(Maybe EndpointAccessType
-> Maybe Text -> Maybe Text -> Maybe Text -> Endpoint)
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
"SecurityGroupId")
Parser
(Maybe EndpointAccessType
-> Maybe Text -> Maybe Text -> Maybe Text -> Endpoint)
-> Parser (Maybe EndpointAccessType)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> Endpoint)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EndpointAccessType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccessType")
Parser (Maybe Text -> Maybe Text -> Maybe Text -> Endpoint)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Endpoint)
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
"CustomerOwnedIpv4Pool")
Parser (Maybe Text -> Maybe Text -> Endpoint)
-> Parser (Maybe Text) -> Parser (Maybe Text -> Endpoint)
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
"CidrBlock")
Parser (Maybe Text -> Endpoint)
-> Parser (Maybe Text) -> Parser Endpoint
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
"EndpointArn")
)
instance Prelude.Hashable Endpoint
instance Prelude.NFData Endpoint