{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Neptune.CreateDBClusterEndpoint
(
CreateDBClusterEndpoint (..),
newCreateDBClusterEndpoint,
createDBClusterEndpoint_staticMembers,
createDBClusterEndpoint_excludedMembers,
createDBClusterEndpoint_tags,
createDBClusterEndpoint_dbClusterIdentifier,
createDBClusterEndpoint_dbClusterEndpointIdentifier,
createDBClusterEndpoint_endpointType,
CreateDBClusterEndpointResponse (..),
newCreateDBClusterEndpointResponse,
createDBClusterEndpointResponse_status,
createDBClusterEndpointResponse_dbClusterIdentifier,
createDBClusterEndpointResponse_dbClusterEndpointArn,
createDBClusterEndpointResponse_customEndpointType,
createDBClusterEndpointResponse_staticMembers,
createDBClusterEndpointResponse_endpointType,
createDBClusterEndpointResponse_dbClusterEndpointIdentifier,
createDBClusterEndpointResponse_endpoint,
createDBClusterEndpointResponse_dbClusterEndpointResourceIdentifier,
createDBClusterEndpointResponse_excludedMembers,
createDBClusterEndpointResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Neptune.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateDBClusterEndpoint = CreateDBClusterEndpoint'
{
CreateDBClusterEndpoint -> Maybe [Text]
staticMembers :: Prelude.Maybe [Prelude.Text],
CreateDBClusterEndpoint -> Maybe [Text]
excludedMembers :: Prelude.Maybe [Prelude.Text],
CreateDBClusterEndpoint -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateDBClusterEndpoint -> Text
dbClusterIdentifier :: Prelude.Text,
CreateDBClusterEndpoint -> Text
dbClusterEndpointIdentifier :: Prelude.Text,
CreateDBClusterEndpoint -> Text
endpointType :: Prelude.Text
}
deriving (CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool
(CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool)
-> (CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool)
-> Eq CreateDBClusterEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool
$c/= :: CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool
== :: CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool
$c== :: CreateDBClusterEndpoint -> CreateDBClusterEndpoint -> Bool
Prelude.Eq, ReadPrec [CreateDBClusterEndpoint]
ReadPrec CreateDBClusterEndpoint
Int -> ReadS CreateDBClusterEndpoint
ReadS [CreateDBClusterEndpoint]
(Int -> ReadS CreateDBClusterEndpoint)
-> ReadS [CreateDBClusterEndpoint]
-> ReadPrec CreateDBClusterEndpoint
-> ReadPrec [CreateDBClusterEndpoint]
-> Read CreateDBClusterEndpoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDBClusterEndpoint]
$creadListPrec :: ReadPrec [CreateDBClusterEndpoint]
readPrec :: ReadPrec CreateDBClusterEndpoint
$creadPrec :: ReadPrec CreateDBClusterEndpoint
readList :: ReadS [CreateDBClusterEndpoint]
$creadList :: ReadS [CreateDBClusterEndpoint]
readsPrec :: Int -> ReadS CreateDBClusterEndpoint
$creadsPrec :: Int -> ReadS CreateDBClusterEndpoint
Prelude.Read, Int -> CreateDBClusterEndpoint -> ShowS
[CreateDBClusterEndpoint] -> ShowS
CreateDBClusterEndpoint -> String
(Int -> CreateDBClusterEndpoint -> ShowS)
-> (CreateDBClusterEndpoint -> String)
-> ([CreateDBClusterEndpoint] -> ShowS)
-> Show CreateDBClusterEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDBClusterEndpoint] -> ShowS
$cshowList :: [CreateDBClusterEndpoint] -> ShowS
show :: CreateDBClusterEndpoint -> String
$cshow :: CreateDBClusterEndpoint -> String
showsPrec :: Int -> CreateDBClusterEndpoint -> ShowS
$cshowsPrec :: Int -> CreateDBClusterEndpoint -> ShowS
Prelude.Show, (forall x.
CreateDBClusterEndpoint -> Rep CreateDBClusterEndpoint x)
-> (forall x.
Rep CreateDBClusterEndpoint x -> CreateDBClusterEndpoint)
-> Generic CreateDBClusterEndpoint
forall x. Rep CreateDBClusterEndpoint x -> CreateDBClusterEndpoint
forall x. CreateDBClusterEndpoint -> Rep CreateDBClusterEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDBClusterEndpoint x -> CreateDBClusterEndpoint
$cfrom :: forall x. CreateDBClusterEndpoint -> Rep CreateDBClusterEndpoint x
Prelude.Generic)
newCreateDBClusterEndpoint ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateDBClusterEndpoint
newCreateDBClusterEndpoint :: Text -> Text -> Text -> CreateDBClusterEndpoint
newCreateDBClusterEndpoint
Text
pDBClusterIdentifier_
Text
pDBClusterEndpointIdentifier_
Text
pEndpointType_ =
CreateDBClusterEndpoint' :: Maybe [Text]
-> Maybe [Text]
-> Maybe [Tag]
-> Text
-> Text
-> Text
-> CreateDBClusterEndpoint
CreateDBClusterEndpoint'
{ $sel:staticMembers:CreateDBClusterEndpoint' :: Maybe [Text]
staticMembers =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:excludedMembers:CreateDBClusterEndpoint' :: Maybe [Text]
excludedMembers = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDBClusterEndpoint' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterIdentifier:CreateDBClusterEndpoint' :: Text
dbClusterIdentifier = Text
pDBClusterIdentifier_,
$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpoint' :: Text
dbClusterEndpointIdentifier =
Text
pDBClusterEndpointIdentifier_,
$sel:endpointType:CreateDBClusterEndpoint' :: Text
endpointType = Text
pEndpointType_
}
createDBClusterEndpoint_staticMembers :: Lens.Lens' CreateDBClusterEndpoint (Prelude.Maybe [Prelude.Text])
createDBClusterEndpoint_staticMembers :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint
createDBClusterEndpoint_staticMembers = (CreateDBClusterEndpoint -> Maybe [Text])
-> (CreateDBClusterEndpoint
-> Maybe [Text] -> CreateDBClusterEndpoint)
-> Lens
CreateDBClusterEndpoint
CreateDBClusterEndpoint
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpoint' {Maybe [Text]
staticMembers :: Maybe [Text]
$sel:staticMembers:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Maybe [Text]
staticMembers} -> Maybe [Text]
staticMembers) (\s :: CreateDBClusterEndpoint
s@CreateDBClusterEndpoint' {} Maybe [Text]
a -> CreateDBClusterEndpoint
s {$sel:staticMembers:CreateDBClusterEndpoint' :: Maybe [Text]
staticMembers = Maybe [Text]
a} :: CreateDBClusterEndpoint) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpoint
-> f CreateDBClusterEndpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDBClusterEndpoint_excludedMembers :: Lens.Lens' CreateDBClusterEndpoint (Prelude.Maybe [Prelude.Text])
createDBClusterEndpoint_excludedMembers :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint
createDBClusterEndpoint_excludedMembers = (CreateDBClusterEndpoint -> Maybe [Text])
-> (CreateDBClusterEndpoint
-> Maybe [Text] -> CreateDBClusterEndpoint)
-> Lens
CreateDBClusterEndpoint
CreateDBClusterEndpoint
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpoint' {Maybe [Text]
excludedMembers :: Maybe [Text]
$sel:excludedMembers:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Maybe [Text]
excludedMembers} -> Maybe [Text]
excludedMembers) (\s :: CreateDBClusterEndpoint
s@CreateDBClusterEndpoint' {} Maybe [Text]
a -> CreateDBClusterEndpoint
s {$sel:excludedMembers:CreateDBClusterEndpoint' :: Maybe [Text]
excludedMembers = Maybe [Text]
a} :: CreateDBClusterEndpoint) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpoint
-> f CreateDBClusterEndpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDBClusterEndpoint_tags :: Lens.Lens' CreateDBClusterEndpoint (Prelude.Maybe [Tag])
createDBClusterEndpoint_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint
createDBClusterEndpoint_tags = (CreateDBClusterEndpoint -> Maybe [Tag])
-> (CreateDBClusterEndpoint
-> Maybe [Tag] -> CreateDBClusterEndpoint)
-> Lens
CreateDBClusterEndpoint
CreateDBClusterEndpoint
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpoint' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateDBClusterEndpoint
s@CreateDBClusterEndpoint' {} Maybe [Tag]
a -> CreateDBClusterEndpoint
s {$sel:tags:CreateDBClusterEndpoint' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateDBClusterEndpoint) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDBClusterEndpoint
-> f CreateDBClusterEndpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDBClusterEndpoint_dbClusterIdentifier :: Lens.Lens' CreateDBClusterEndpoint Prelude.Text
createDBClusterEndpoint_dbClusterIdentifier :: (Text -> f Text)
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint
createDBClusterEndpoint_dbClusterIdentifier = (CreateDBClusterEndpoint -> Text)
-> (CreateDBClusterEndpoint -> Text -> CreateDBClusterEndpoint)
-> Lens CreateDBClusterEndpoint CreateDBClusterEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpoint' {Text
dbClusterIdentifier :: Text
$sel:dbClusterIdentifier:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Text
dbClusterIdentifier} -> Text
dbClusterIdentifier) (\s :: CreateDBClusterEndpoint
s@CreateDBClusterEndpoint' {} Text
a -> CreateDBClusterEndpoint
s {$sel:dbClusterIdentifier:CreateDBClusterEndpoint' :: Text
dbClusterIdentifier = Text
a} :: CreateDBClusterEndpoint)
createDBClusterEndpoint_dbClusterEndpointIdentifier :: Lens.Lens' CreateDBClusterEndpoint Prelude.Text
createDBClusterEndpoint_dbClusterEndpointIdentifier :: (Text -> f Text)
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint
createDBClusterEndpoint_dbClusterEndpointIdentifier = (CreateDBClusterEndpoint -> Text)
-> (CreateDBClusterEndpoint -> Text -> CreateDBClusterEndpoint)
-> Lens CreateDBClusterEndpoint CreateDBClusterEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpoint' {Text
dbClusterEndpointIdentifier :: Text
$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Text
dbClusterEndpointIdentifier} -> Text
dbClusterEndpointIdentifier) (\s :: CreateDBClusterEndpoint
s@CreateDBClusterEndpoint' {} Text
a -> CreateDBClusterEndpoint
s {$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpoint' :: Text
dbClusterEndpointIdentifier = Text
a} :: CreateDBClusterEndpoint)
createDBClusterEndpoint_endpointType :: Lens.Lens' CreateDBClusterEndpoint Prelude.Text
createDBClusterEndpoint_endpointType :: (Text -> f Text)
-> CreateDBClusterEndpoint -> f CreateDBClusterEndpoint
createDBClusterEndpoint_endpointType = (CreateDBClusterEndpoint -> Text)
-> (CreateDBClusterEndpoint -> Text -> CreateDBClusterEndpoint)
-> Lens CreateDBClusterEndpoint CreateDBClusterEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpoint' {Text
endpointType :: Text
$sel:endpointType:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Text
endpointType} -> Text
endpointType) (\s :: CreateDBClusterEndpoint
s@CreateDBClusterEndpoint' {} Text
a -> CreateDBClusterEndpoint
s {$sel:endpointType:CreateDBClusterEndpoint' :: Text
endpointType = Text
a} :: CreateDBClusterEndpoint)
instance Core.AWSRequest CreateDBClusterEndpoint where
type
AWSResponse CreateDBClusterEndpoint =
CreateDBClusterEndpointResponse
request :: CreateDBClusterEndpoint -> Request CreateDBClusterEndpoint
request = Service
-> CreateDBClusterEndpoint -> Request CreateDBClusterEndpoint
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDBClusterEndpoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDBClusterEndpoint)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateDBClusterEndpoint))
-> Logger
-> Service
-> Proxy CreateDBClusterEndpoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDBClusterEndpoint)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"CreateDBClusterEndpointResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterIdentifier")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterEndpointArn")
Either
String
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"CustomEndpointType")
Either
String
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StaticMembers" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EndpointType")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterEndpointIdentifier")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [Text] -> Int -> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Endpoint")
Either
String
(Maybe Text
-> Maybe [Text] -> Int -> CreateDBClusterEndpointResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Text] -> Int -> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBClusterEndpointResourceIdentifier")
Either
String (Maybe [Text] -> Int -> CreateDBClusterEndpointResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> CreateDBClusterEndpointResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ExcludedMembers" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Int -> CreateDBClusterEndpointResponse)
-> Either String Int
-> Either String CreateDBClusterEndpointResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable CreateDBClusterEndpoint
instance Prelude.NFData CreateDBClusterEndpoint
instance Core.ToHeaders CreateDBClusterEndpoint where
toHeaders :: CreateDBClusterEndpoint -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateDBClusterEndpoint -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateDBClusterEndpoint where
toPath :: CreateDBClusterEndpoint -> ByteString
toPath = ByteString -> CreateDBClusterEndpoint -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateDBClusterEndpoint where
toQuery :: CreateDBClusterEndpoint -> QueryString
toQuery CreateDBClusterEndpoint' {Maybe [Text]
Maybe [Tag]
Text
endpointType :: Text
dbClusterEndpointIdentifier :: Text
dbClusterIdentifier :: Text
tags :: Maybe [Tag]
excludedMembers :: Maybe [Text]
staticMembers :: Maybe [Text]
$sel:endpointType:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Text
$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Text
$sel:dbClusterIdentifier:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Text
$sel:tags:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Maybe [Tag]
$sel:excludedMembers:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Maybe [Text]
$sel:staticMembers:CreateDBClusterEndpoint' :: CreateDBClusterEndpoint -> Maybe [Text]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateDBClusterEndpoint" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"StaticMembers"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
staticMembers
),
ByteString
"ExcludedMembers"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
excludedMembers
),
ByteString
"Tags"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
(ByteString -> [Tag] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"Tag" ([Tag] -> QueryString) -> Maybe [Tag] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags),
ByteString
"DBClusterIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbClusterIdentifier,
ByteString
"DBClusterEndpointIdentifier"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbClusterEndpointIdentifier,
ByteString
"EndpointType" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
endpointType
]
data CreateDBClusterEndpointResponse = CreateDBClusterEndpointResponse'
{
CreateDBClusterEndpointResponse -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe Text
dbClusterIdentifier :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe Text
dbClusterEndpointArn :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe Text
customEndpointType :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe [Text]
staticMembers :: Prelude.Maybe [Prelude.Text],
CreateDBClusterEndpointResponse -> Maybe Text
endpointType :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe Text
dbClusterEndpointIdentifier :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe Text
endpoint :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe Text
dbClusterEndpointResourceIdentifier :: Prelude.Maybe Prelude.Text,
CreateDBClusterEndpointResponse -> Maybe [Text]
excludedMembers :: Prelude.Maybe [Prelude.Text],
CreateDBClusterEndpointResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool
(CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool)
-> (CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool)
-> Eq CreateDBClusterEndpointResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool
$c/= :: CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool
== :: CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool
$c== :: CreateDBClusterEndpointResponse
-> CreateDBClusterEndpointResponse -> Bool
Prelude.Eq, ReadPrec [CreateDBClusterEndpointResponse]
ReadPrec CreateDBClusterEndpointResponse
Int -> ReadS CreateDBClusterEndpointResponse
ReadS [CreateDBClusterEndpointResponse]
(Int -> ReadS CreateDBClusterEndpointResponse)
-> ReadS [CreateDBClusterEndpointResponse]
-> ReadPrec CreateDBClusterEndpointResponse
-> ReadPrec [CreateDBClusterEndpointResponse]
-> Read CreateDBClusterEndpointResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDBClusterEndpointResponse]
$creadListPrec :: ReadPrec [CreateDBClusterEndpointResponse]
readPrec :: ReadPrec CreateDBClusterEndpointResponse
$creadPrec :: ReadPrec CreateDBClusterEndpointResponse
readList :: ReadS [CreateDBClusterEndpointResponse]
$creadList :: ReadS [CreateDBClusterEndpointResponse]
readsPrec :: Int -> ReadS CreateDBClusterEndpointResponse
$creadsPrec :: Int -> ReadS CreateDBClusterEndpointResponse
Prelude.Read, Int -> CreateDBClusterEndpointResponse -> ShowS
[CreateDBClusterEndpointResponse] -> ShowS
CreateDBClusterEndpointResponse -> String
(Int -> CreateDBClusterEndpointResponse -> ShowS)
-> (CreateDBClusterEndpointResponse -> String)
-> ([CreateDBClusterEndpointResponse] -> ShowS)
-> Show CreateDBClusterEndpointResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDBClusterEndpointResponse] -> ShowS
$cshowList :: [CreateDBClusterEndpointResponse] -> ShowS
show :: CreateDBClusterEndpointResponse -> String
$cshow :: CreateDBClusterEndpointResponse -> String
showsPrec :: Int -> CreateDBClusterEndpointResponse -> ShowS
$cshowsPrec :: Int -> CreateDBClusterEndpointResponse -> ShowS
Prelude.Show, (forall x.
CreateDBClusterEndpointResponse
-> Rep CreateDBClusterEndpointResponse x)
-> (forall x.
Rep CreateDBClusterEndpointResponse x
-> CreateDBClusterEndpointResponse)
-> Generic CreateDBClusterEndpointResponse
forall x.
Rep CreateDBClusterEndpointResponse x
-> CreateDBClusterEndpointResponse
forall x.
CreateDBClusterEndpointResponse
-> Rep CreateDBClusterEndpointResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDBClusterEndpointResponse x
-> CreateDBClusterEndpointResponse
$cfrom :: forall x.
CreateDBClusterEndpointResponse
-> Rep CreateDBClusterEndpointResponse x
Prelude.Generic)
newCreateDBClusterEndpointResponse ::
Prelude.Int ->
CreateDBClusterEndpointResponse
newCreateDBClusterEndpointResponse :: Int -> CreateDBClusterEndpointResponse
newCreateDBClusterEndpointResponse Int
pHttpStatus_ =
CreateDBClusterEndpointResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Int
-> CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse'
{ $sel:status:CreateDBClusterEndpointResponse' :: Maybe Text
status =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterIdentifier:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterEndpointArn:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterEndpointArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:customEndpointType:CreateDBClusterEndpointResponse' :: Maybe Text
customEndpointType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:staticMembers:CreateDBClusterEndpointResponse' :: Maybe [Text]
staticMembers = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:endpointType:CreateDBClusterEndpointResponse' :: Maybe Text
endpointType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterEndpointIdentifier =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endpoint:CreateDBClusterEndpointResponse' :: Maybe Text
endpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dbClusterEndpointResourceIdentifier:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterEndpointResourceIdentifier =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:excludedMembers:CreateDBClusterEndpointResponse' :: Maybe [Text]
excludedMembers = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDBClusterEndpointResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDBClusterEndpointResponse_status :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_status :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_status = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
status :: Maybe Text
$sel:status:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
status} -> Maybe Text
status) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:status:CreateDBClusterEndpointResponse' :: Maybe Text
status = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_dbClusterIdentifier :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_dbClusterIdentifier :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_dbClusterIdentifier = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
dbClusterIdentifier :: Maybe Text
$sel:dbClusterIdentifier:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
dbClusterIdentifier} -> Maybe Text
dbClusterIdentifier) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:dbClusterIdentifier:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterIdentifier = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_dbClusterEndpointArn :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_dbClusterEndpointArn :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_dbClusterEndpointArn = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
dbClusterEndpointArn :: Maybe Text
$sel:dbClusterEndpointArn:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
dbClusterEndpointArn} -> Maybe Text
dbClusterEndpointArn) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:dbClusterEndpointArn:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterEndpointArn = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_customEndpointType :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_customEndpointType :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_customEndpointType = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
customEndpointType :: Maybe Text
$sel:customEndpointType:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
customEndpointType} -> Maybe Text
customEndpointType) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:customEndpointType:CreateDBClusterEndpointResponse' :: Maybe Text
customEndpointType = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_staticMembers :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe [Prelude.Text])
createDBClusterEndpointResponse_staticMembers :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_staticMembers = (CreateDBClusterEndpointResponse -> Maybe [Text])
-> (CreateDBClusterEndpointResponse
-> Maybe [Text] -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe [Text]
staticMembers :: Maybe [Text]
$sel:staticMembers:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe [Text]
staticMembers} -> Maybe [Text]
staticMembers) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe [Text]
a -> CreateDBClusterEndpointResponse
s {$sel:staticMembers:CreateDBClusterEndpointResponse' :: Maybe [Text]
staticMembers = Maybe [Text]
a} :: CreateDBClusterEndpointResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDBClusterEndpointResponse_endpointType :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_endpointType :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_endpointType = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
endpointType :: Maybe Text
$sel:endpointType:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
endpointType} -> Maybe Text
endpointType) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:endpointType:CreateDBClusterEndpointResponse' :: Maybe Text
endpointType = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_dbClusterEndpointIdentifier :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_dbClusterEndpointIdentifier :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_dbClusterEndpointIdentifier = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
dbClusterEndpointIdentifier :: Maybe Text
$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
dbClusterEndpointIdentifier} -> Maybe Text
dbClusterEndpointIdentifier) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:dbClusterEndpointIdentifier:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterEndpointIdentifier = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_endpoint :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_endpoint :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_endpoint = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
endpoint :: Maybe Text
$sel:endpoint:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
endpoint} -> Maybe Text
endpoint) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:endpoint:CreateDBClusterEndpointResponse' :: Maybe Text
endpoint = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_dbClusterEndpointResourceIdentifier :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe Prelude.Text)
createDBClusterEndpointResponse_dbClusterEndpointResourceIdentifier :: (Maybe Text -> f (Maybe Text))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_dbClusterEndpointResourceIdentifier = (CreateDBClusterEndpointResponse -> Maybe Text)
-> (CreateDBClusterEndpointResponse
-> Maybe Text -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe Text
dbClusterEndpointResourceIdentifier :: Maybe Text
$sel:dbClusterEndpointResourceIdentifier:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe Text
dbClusterEndpointResourceIdentifier} -> Maybe Text
dbClusterEndpointResourceIdentifier) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe Text
a -> CreateDBClusterEndpointResponse
s {$sel:dbClusterEndpointResourceIdentifier:CreateDBClusterEndpointResponse' :: Maybe Text
dbClusterEndpointResourceIdentifier = Maybe Text
a} :: CreateDBClusterEndpointResponse)
createDBClusterEndpointResponse_excludedMembers :: Lens.Lens' CreateDBClusterEndpointResponse (Prelude.Maybe [Prelude.Text])
createDBClusterEndpointResponse_excludedMembers :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_excludedMembers = (CreateDBClusterEndpointResponse -> Maybe [Text])
-> (CreateDBClusterEndpointResponse
-> Maybe [Text] -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Maybe [Text]
excludedMembers :: Maybe [Text]
$sel:excludedMembers:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Maybe [Text]
excludedMembers} -> Maybe [Text]
excludedMembers) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Maybe [Text]
a -> CreateDBClusterEndpointResponse
s {$sel:excludedMembers:CreateDBClusterEndpointResponse' :: Maybe [Text]
excludedMembers = Maybe [Text]
a} :: CreateDBClusterEndpointResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDBClusterEndpointResponse_httpStatus :: Lens.Lens' CreateDBClusterEndpointResponse Prelude.Int
createDBClusterEndpointResponse_httpStatus :: (Int -> f Int)
-> CreateDBClusterEndpointResponse
-> f CreateDBClusterEndpointResponse
createDBClusterEndpointResponse_httpStatus = (CreateDBClusterEndpointResponse -> Int)
-> (CreateDBClusterEndpointResponse
-> Int -> CreateDBClusterEndpointResponse)
-> Lens
CreateDBClusterEndpointResponse
CreateDBClusterEndpointResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBClusterEndpointResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDBClusterEndpointResponse' :: CreateDBClusterEndpointResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDBClusterEndpointResponse
s@CreateDBClusterEndpointResponse' {} Int
a -> CreateDBClusterEndpointResponse
s {$sel:httpStatus:CreateDBClusterEndpointResponse' :: Int
httpStatus = Int
a} :: CreateDBClusterEndpointResponse)
instance
Prelude.NFData
CreateDBClusterEndpointResponse