{-# 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.RDS.CreateDBProxyEndpoint
(
CreateDBProxyEndpoint (..),
newCreateDBProxyEndpoint,
createDBProxyEndpoint_targetRole,
createDBProxyEndpoint_vpcSecurityGroupIds,
createDBProxyEndpoint_tags,
createDBProxyEndpoint_dbProxyName,
createDBProxyEndpoint_dbProxyEndpointName,
createDBProxyEndpoint_vpcSubnetIds,
CreateDBProxyEndpointResponse (..),
newCreateDBProxyEndpointResponse,
createDBProxyEndpointResponse_dbProxyEndpoint,
createDBProxyEndpointResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreateDBProxyEndpoint = CreateDBProxyEndpoint'
{
CreateDBProxyEndpoint -> Maybe DBProxyEndpointTargetRole
targetRole :: Prelude.Maybe DBProxyEndpointTargetRole,
CreateDBProxyEndpoint -> Maybe [Text]
vpcSecurityGroupIds :: Prelude.Maybe [Prelude.Text],
CreateDBProxyEndpoint -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateDBProxyEndpoint -> Text
dbProxyName :: Prelude.Text,
CreateDBProxyEndpoint -> Text
dbProxyEndpointName :: Prelude.Text,
CreateDBProxyEndpoint -> [Text]
vpcSubnetIds :: [Prelude.Text]
}
deriving (CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool
(CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool)
-> (CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool)
-> Eq CreateDBProxyEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool
$c/= :: CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool
== :: CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool
$c== :: CreateDBProxyEndpoint -> CreateDBProxyEndpoint -> Bool
Prelude.Eq, ReadPrec [CreateDBProxyEndpoint]
ReadPrec CreateDBProxyEndpoint
Int -> ReadS CreateDBProxyEndpoint
ReadS [CreateDBProxyEndpoint]
(Int -> ReadS CreateDBProxyEndpoint)
-> ReadS [CreateDBProxyEndpoint]
-> ReadPrec CreateDBProxyEndpoint
-> ReadPrec [CreateDBProxyEndpoint]
-> Read CreateDBProxyEndpoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDBProxyEndpoint]
$creadListPrec :: ReadPrec [CreateDBProxyEndpoint]
readPrec :: ReadPrec CreateDBProxyEndpoint
$creadPrec :: ReadPrec CreateDBProxyEndpoint
readList :: ReadS [CreateDBProxyEndpoint]
$creadList :: ReadS [CreateDBProxyEndpoint]
readsPrec :: Int -> ReadS CreateDBProxyEndpoint
$creadsPrec :: Int -> ReadS CreateDBProxyEndpoint
Prelude.Read, Int -> CreateDBProxyEndpoint -> ShowS
[CreateDBProxyEndpoint] -> ShowS
CreateDBProxyEndpoint -> String
(Int -> CreateDBProxyEndpoint -> ShowS)
-> (CreateDBProxyEndpoint -> String)
-> ([CreateDBProxyEndpoint] -> ShowS)
-> Show CreateDBProxyEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDBProxyEndpoint] -> ShowS
$cshowList :: [CreateDBProxyEndpoint] -> ShowS
show :: CreateDBProxyEndpoint -> String
$cshow :: CreateDBProxyEndpoint -> String
showsPrec :: Int -> CreateDBProxyEndpoint -> ShowS
$cshowsPrec :: Int -> CreateDBProxyEndpoint -> ShowS
Prelude.Show, (forall x. CreateDBProxyEndpoint -> Rep CreateDBProxyEndpoint x)
-> (forall x. Rep CreateDBProxyEndpoint x -> CreateDBProxyEndpoint)
-> Generic CreateDBProxyEndpoint
forall x. Rep CreateDBProxyEndpoint x -> CreateDBProxyEndpoint
forall x. CreateDBProxyEndpoint -> Rep CreateDBProxyEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDBProxyEndpoint x -> CreateDBProxyEndpoint
$cfrom :: forall x. CreateDBProxyEndpoint -> Rep CreateDBProxyEndpoint x
Prelude.Generic)
newCreateDBProxyEndpoint ::
Prelude.Text ->
Prelude.Text ->
CreateDBProxyEndpoint
newCreateDBProxyEndpoint :: Text -> Text -> CreateDBProxyEndpoint
newCreateDBProxyEndpoint
Text
pDBProxyName_
Text
pDBProxyEndpointName_ =
CreateDBProxyEndpoint' :: Maybe DBProxyEndpointTargetRole
-> Maybe [Text]
-> Maybe [Tag]
-> Text
-> Text
-> [Text]
-> CreateDBProxyEndpoint
CreateDBProxyEndpoint'
{ $sel:targetRole:CreateDBProxyEndpoint' :: Maybe DBProxyEndpointTargetRole
targetRole =
Maybe DBProxyEndpointTargetRole
forall a. Maybe a
Prelude.Nothing,
$sel:vpcSecurityGroupIds:CreateDBProxyEndpoint' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDBProxyEndpoint' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:dbProxyName:CreateDBProxyEndpoint' :: Text
dbProxyName = Text
pDBProxyName_,
$sel:dbProxyEndpointName:CreateDBProxyEndpoint' :: Text
dbProxyEndpointName = Text
pDBProxyEndpointName_,
$sel:vpcSubnetIds:CreateDBProxyEndpoint' :: [Text]
vpcSubnetIds = [Text]
forall a. Monoid a => a
Prelude.mempty
}
createDBProxyEndpoint_targetRole :: Lens.Lens' CreateDBProxyEndpoint (Prelude.Maybe DBProxyEndpointTargetRole)
createDBProxyEndpoint_targetRole :: (Maybe DBProxyEndpointTargetRole
-> f (Maybe DBProxyEndpointTargetRole))
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint
createDBProxyEndpoint_targetRole = (CreateDBProxyEndpoint -> Maybe DBProxyEndpointTargetRole)
-> (CreateDBProxyEndpoint
-> Maybe DBProxyEndpointTargetRole -> CreateDBProxyEndpoint)
-> Lens
CreateDBProxyEndpoint
CreateDBProxyEndpoint
(Maybe DBProxyEndpointTargetRole)
(Maybe DBProxyEndpointTargetRole)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpoint' {Maybe DBProxyEndpointTargetRole
targetRole :: Maybe DBProxyEndpointTargetRole
$sel:targetRole:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Maybe DBProxyEndpointTargetRole
targetRole} -> Maybe DBProxyEndpointTargetRole
targetRole) (\s :: CreateDBProxyEndpoint
s@CreateDBProxyEndpoint' {} Maybe DBProxyEndpointTargetRole
a -> CreateDBProxyEndpoint
s {$sel:targetRole:CreateDBProxyEndpoint' :: Maybe DBProxyEndpointTargetRole
targetRole = Maybe DBProxyEndpointTargetRole
a} :: CreateDBProxyEndpoint)
createDBProxyEndpoint_vpcSecurityGroupIds :: Lens.Lens' CreateDBProxyEndpoint (Prelude.Maybe [Prelude.Text])
createDBProxyEndpoint_vpcSecurityGroupIds :: (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint
createDBProxyEndpoint_vpcSecurityGroupIds = (CreateDBProxyEndpoint -> Maybe [Text])
-> (CreateDBProxyEndpoint -> Maybe [Text] -> CreateDBProxyEndpoint)
-> Lens
CreateDBProxyEndpoint
CreateDBProxyEndpoint
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpoint' {Maybe [Text]
vpcSecurityGroupIds :: Maybe [Text]
$sel:vpcSecurityGroupIds:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Maybe [Text]
vpcSecurityGroupIds} -> Maybe [Text]
vpcSecurityGroupIds) (\s :: CreateDBProxyEndpoint
s@CreateDBProxyEndpoint' {} Maybe [Text]
a -> CreateDBProxyEndpoint
s {$sel:vpcSecurityGroupIds:CreateDBProxyEndpoint' :: Maybe [Text]
vpcSecurityGroupIds = Maybe [Text]
a} :: CreateDBProxyEndpoint) ((Maybe [Text] -> f (Maybe [Text]))
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CreateDBProxyEndpoint
-> f CreateDBProxyEndpoint
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
createDBProxyEndpoint_tags :: Lens.Lens' CreateDBProxyEndpoint (Prelude.Maybe [Tag])
createDBProxyEndpoint_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint
createDBProxyEndpoint_tags = (CreateDBProxyEndpoint -> Maybe [Tag])
-> (CreateDBProxyEndpoint -> Maybe [Tag] -> CreateDBProxyEndpoint)
-> Lens
CreateDBProxyEndpoint
CreateDBProxyEndpoint
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpoint' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateDBProxyEndpoint
s@CreateDBProxyEndpoint' {} Maybe [Tag]
a -> CreateDBProxyEndpoint
s {$sel:tags:CreateDBProxyEndpoint' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateDBProxyEndpoint) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateDBProxyEndpoint
-> f CreateDBProxyEndpoint
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
createDBProxyEndpoint_dbProxyName :: Lens.Lens' CreateDBProxyEndpoint Prelude.Text
createDBProxyEndpoint_dbProxyName :: (Text -> f Text)
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint
createDBProxyEndpoint_dbProxyName = (CreateDBProxyEndpoint -> Text)
-> (CreateDBProxyEndpoint -> Text -> CreateDBProxyEndpoint)
-> Lens CreateDBProxyEndpoint CreateDBProxyEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpoint' {Text
dbProxyName :: Text
$sel:dbProxyName:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Text
dbProxyName} -> Text
dbProxyName) (\s :: CreateDBProxyEndpoint
s@CreateDBProxyEndpoint' {} Text
a -> CreateDBProxyEndpoint
s {$sel:dbProxyName:CreateDBProxyEndpoint' :: Text
dbProxyName = Text
a} :: CreateDBProxyEndpoint)
createDBProxyEndpoint_dbProxyEndpointName :: Lens.Lens' CreateDBProxyEndpoint Prelude.Text
createDBProxyEndpoint_dbProxyEndpointName :: (Text -> f Text)
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint
createDBProxyEndpoint_dbProxyEndpointName = (CreateDBProxyEndpoint -> Text)
-> (CreateDBProxyEndpoint -> Text -> CreateDBProxyEndpoint)
-> Lens CreateDBProxyEndpoint CreateDBProxyEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpoint' {Text
dbProxyEndpointName :: Text
$sel:dbProxyEndpointName:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Text
dbProxyEndpointName} -> Text
dbProxyEndpointName) (\s :: CreateDBProxyEndpoint
s@CreateDBProxyEndpoint' {} Text
a -> CreateDBProxyEndpoint
s {$sel:dbProxyEndpointName:CreateDBProxyEndpoint' :: Text
dbProxyEndpointName = Text
a} :: CreateDBProxyEndpoint)
createDBProxyEndpoint_vpcSubnetIds :: Lens.Lens' CreateDBProxyEndpoint [Prelude.Text]
createDBProxyEndpoint_vpcSubnetIds :: ([Text] -> f [Text])
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint
createDBProxyEndpoint_vpcSubnetIds = (CreateDBProxyEndpoint -> [Text])
-> (CreateDBProxyEndpoint -> [Text] -> CreateDBProxyEndpoint)
-> Lens CreateDBProxyEndpoint CreateDBProxyEndpoint [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpoint' {[Text]
vpcSubnetIds :: [Text]
$sel:vpcSubnetIds:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> [Text]
vpcSubnetIds} -> [Text]
vpcSubnetIds) (\s :: CreateDBProxyEndpoint
s@CreateDBProxyEndpoint' {} [Text]
a -> CreateDBProxyEndpoint
s {$sel:vpcSubnetIds:CreateDBProxyEndpoint' :: [Text]
vpcSubnetIds = [Text]
a} :: CreateDBProxyEndpoint) (([Text] -> f [Text])
-> CreateDBProxyEndpoint -> f CreateDBProxyEndpoint)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> CreateDBProxyEndpoint
-> f CreateDBProxyEndpoint
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest CreateDBProxyEndpoint where
type
AWSResponse CreateDBProxyEndpoint =
CreateDBProxyEndpointResponse
request :: CreateDBProxyEndpoint -> Request CreateDBProxyEndpoint
request = Service -> CreateDBProxyEndpoint -> Request CreateDBProxyEndpoint
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDBProxyEndpoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDBProxyEndpoint)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateDBProxyEndpoint))
-> Logger
-> Service
-> Proxy CreateDBProxyEndpoint
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDBProxyEndpoint)))
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
"CreateDBProxyEndpointResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe DBProxyEndpoint -> Int -> CreateDBProxyEndpointResponse
CreateDBProxyEndpointResponse'
(Maybe DBProxyEndpoint -> Int -> CreateDBProxyEndpointResponse)
-> Either String (Maybe DBProxyEndpoint)
-> Either String (Int -> CreateDBProxyEndpointResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBProxyEndpoint)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBProxyEndpoint")
Either String (Int -> CreateDBProxyEndpointResponse)
-> Either String Int -> Either String CreateDBProxyEndpointResponse
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 CreateDBProxyEndpoint
instance Prelude.NFData CreateDBProxyEndpoint
instance Core.ToHeaders CreateDBProxyEndpoint where
toHeaders :: CreateDBProxyEndpoint -> ResponseHeaders
toHeaders = ResponseHeaders -> CreateDBProxyEndpoint -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CreateDBProxyEndpoint where
toPath :: CreateDBProxyEndpoint -> ByteString
toPath = ByteString -> CreateDBProxyEndpoint -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateDBProxyEndpoint where
toQuery :: CreateDBProxyEndpoint -> QueryString
toQuery CreateDBProxyEndpoint' {[Text]
Maybe [Text]
Maybe [Tag]
Maybe DBProxyEndpointTargetRole
Text
vpcSubnetIds :: [Text]
dbProxyEndpointName :: Text
dbProxyName :: Text
tags :: Maybe [Tag]
vpcSecurityGroupIds :: Maybe [Text]
targetRole :: Maybe DBProxyEndpointTargetRole
$sel:vpcSubnetIds:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> [Text]
$sel:dbProxyEndpointName:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Text
$sel:dbProxyName:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Text
$sel:tags:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Maybe [Tag]
$sel:vpcSecurityGroupIds:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Maybe [Text]
$sel:targetRole:CreateDBProxyEndpoint' :: CreateDBProxyEndpoint -> Maybe DBProxyEndpointTargetRole
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CreateDBProxyEndpoint" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"TargetRole" ByteString -> Maybe DBProxyEndpointTargetRole -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe DBProxyEndpointTargetRole
targetRole,
ByteString
"VpcSecurityGroupIds"
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]
vpcSecurityGroupIds
),
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
"DBProxyName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbProxyName,
ByteString
"DBProxyEndpointName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbProxyEndpointName,
ByteString
"VpcSubnetIds"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" [Text]
vpcSubnetIds
]
data CreateDBProxyEndpointResponse = CreateDBProxyEndpointResponse'
{
CreateDBProxyEndpointResponse -> Maybe DBProxyEndpoint
dbProxyEndpoint :: Prelude.Maybe DBProxyEndpoint,
CreateDBProxyEndpointResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool
(CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool)
-> (CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool)
-> Eq CreateDBProxyEndpointResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool
$c/= :: CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool
== :: CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool
$c== :: CreateDBProxyEndpointResponse
-> CreateDBProxyEndpointResponse -> Bool
Prelude.Eq, ReadPrec [CreateDBProxyEndpointResponse]
ReadPrec CreateDBProxyEndpointResponse
Int -> ReadS CreateDBProxyEndpointResponse
ReadS [CreateDBProxyEndpointResponse]
(Int -> ReadS CreateDBProxyEndpointResponse)
-> ReadS [CreateDBProxyEndpointResponse]
-> ReadPrec CreateDBProxyEndpointResponse
-> ReadPrec [CreateDBProxyEndpointResponse]
-> Read CreateDBProxyEndpointResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDBProxyEndpointResponse]
$creadListPrec :: ReadPrec [CreateDBProxyEndpointResponse]
readPrec :: ReadPrec CreateDBProxyEndpointResponse
$creadPrec :: ReadPrec CreateDBProxyEndpointResponse
readList :: ReadS [CreateDBProxyEndpointResponse]
$creadList :: ReadS [CreateDBProxyEndpointResponse]
readsPrec :: Int -> ReadS CreateDBProxyEndpointResponse
$creadsPrec :: Int -> ReadS CreateDBProxyEndpointResponse
Prelude.Read, Int -> CreateDBProxyEndpointResponse -> ShowS
[CreateDBProxyEndpointResponse] -> ShowS
CreateDBProxyEndpointResponse -> String
(Int -> CreateDBProxyEndpointResponse -> ShowS)
-> (CreateDBProxyEndpointResponse -> String)
-> ([CreateDBProxyEndpointResponse] -> ShowS)
-> Show CreateDBProxyEndpointResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDBProxyEndpointResponse] -> ShowS
$cshowList :: [CreateDBProxyEndpointResponse] -> ShowS
show :: CreateDBProxyEndpointResponse -> String
$cshow :: CreateDBProxyEndpointResponse -> String
showsPrec :: Int -> CreateDBProxyEndpointResponse -> ShowS
$cshowsPrec :: Int -> CreateDBProxyEndpointResponse -> ShowS
Prelude.Show, (forall x.
CreateDBProxyEndpointResponse
-> Rep CreateDBProxyEndpointResponse x)
-> (forall x.
Rep CreateDBProxyEndpointResponse x
-> CreateDBProxyEndpointResponse)
-> Generic CreateDBProxyEndpointResponse
forall x.
Rep CreateDBProxyEndpointResponse x
-> CreateDBProxyEndpointResponse
forall x.
CreateDBProxyEndpointResponse
-> Rep CreateDBProxyEndpointResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDBProxyEndpointResponse x
-> CreateDBProxyEndpointResponse
$cfrom :: forall x.
CreateDBProxyEndpointResponse
-> Rep CreateDBProxyEndpointResponse x
Prelude.Generic)
newCreateDBProxyEndpointResponse ::
Prelude.Int ->
CreateDBProxyEndpointResponse
newCreateDBProxyEndpointResponse :: Int -> CreateDBProxyEndpointResponse
newCreateDBProxyEndpointResponse Int
pHttpStatus_ =
CreateDBProxyEndpointResponse' :: Maybe DBProxyEndpoint -> Int -> CreateDBProxyEndpointResponse
CreateDBProxyEndpointResponse'
{ $sel:dbProxyEndpoint:CreateDBProxyEndpointResponse' :: Maybe DBProxyEndpoint
dbProxyEndpoint =
Maybe DBProxyEndpoint
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDBProxyEndpointResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDBProxyEndpointResponse_dbProxyEndpoint :: Lens.Lens' CreateDBProxyEndpointResponse (Prelude.Maybe DBProxyEndpoint)
createDBProxyEndpointResponse_dbProxyEndpoint :: (Maybe DBProxyEndpoint -> f (Maybe DBProxyEndpoint))
-> CreateDBProxyEndpointResponse -> f CreateDBProxyEndpointResponse
createDBProxyEndpointResponse_dbProxyEndpoint = (CreateDBProxyEndpointResponse -> Maybe DBProxyEndpoint)
-> (CreateDBProxyEndpointResponse
-> Maybe DBProxyEndpoint -> CreateDBProxyEndpointResponse)
-> Lens
CreateDBProxyEndpointResponse
CreateDBProxyEndpointResponse
(Maybe DBProxyEndpoint)
(Maybe DBProxyEndpoint)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpointResponse' {Maybe DBProxyEndpoint
dbProxyEndpoint :: Maybe DBProxyEndpoint
$sel:dbProxyEndpoint:CreateDBProxyEndpointResponse' :: CreateDBProxyEndpointResponse -> Maybe DBProxyEndpoint
dbProxyEndpoint} -> Maybe DBProxyEndpoint
dbProxyEndpoint) (\s :: CreateDBProxyEndpointResponse
s@CreateDBProxyEndpointResponse' {} Maybe DBProxyEndpoint
a -> CreateDBProxyEndpointResponse
s {$sel:dbProxyEndpoint:CreateDBProxyEndpointResponse' :: Maybe DBProxyEndpoint
dbProxyEndpoint = Maybe DBProxyEndpoint
a} :: CreateDBProxyEndpointResponse)
createDBProxyEndpointResponse_httpStatus :: Lens.Lens' CreateDBProxyEndpointResponse Prelude.Int
createDBProxyEndpointResponse_httpStatus :: (Int -> f Int)
-> CreateDBProxyEndpointResponse -> f CreateDBProxyEndpointResponse
createDBProxyEndpointResponse_httpStatus = (CreateDBProxyEndpointResponse -> Int)
-> (CreateDBProxyEndpointResponse
-> Int -> CreateDBProxyEndpointResponse)
-> Lens
CreateDBProxyEndpointResponse CreateDBProxyEndpointResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDBProxyEndpointResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDBProxyEndpointResponse' :: CreateDBProxyEndpointResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDBProxyEndpointResponse
s@CreateDBProxyEndpointResponse' {} Int
a -> CreateDBProxyEndpointResponse
s {$sel:httpStatus:CreateDBProxyEndpointResponse' :: Int
httpStatus = Int
a} :: CreateDBProxyEndpointResponse)
instance Prelude.NFData CreateDBProxyEndpointResponse