{-# 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.CopyDBParameterGroup
(
CopyDBParameterGroup (..),
newCopyDBParameterGroup,
copyDBParameterGroup_tags,
copyDBParameterGroup_sourceDBParameterGroupIdentifier,
copyDBParameterGroup_targetDBParameterGroupIdentifier,
copyDBParameterGroup_targetDBParameterGroupDescription,
CopyDBParameterGroupResponse (..),
newCopyDBParameterGroupResponse,
copyDBParameterGroupResponse_dbParameterGroup,
copyDBParameterGroupResponse_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 CopyDBParameterGroup = CopyDBParameterGroup'
{ CopyDBParameterGroup -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CopyDBParameterGroup -> Text
sourceDBParameterGroupIdentifier :: Prelude.Text,
CopyDBParameterGroup -> Text
targetDBParameterGroupIdentifier :: Prelude.Text,
CopyDBParameterGroup -> Text
targetDBParameterGroupDescription :: Prelude.Text
}
deriving (CopyDBParameterGroup -> CopyDBParameterGroup -> Bool
(CopyDBParameterGroup -> CopyDBParameterGroup -> Bool)
-> (CopyDBParameterGroup -> CopyDBParameterGroup -> Bool)
-> Eq CopyDBParameterGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyDBParameterGroup -> CopyDBParameterGroup -> Bool
$c/= :: CopyDBParameterGroup -> CopyDBParameterGroup -> Bool
== :: CopyDBParameterGroup -> CopyDBParameterGroup -> Bool
$c== :: CopyDBParameterGroup -> CopyDBParameterGroup -> Bool
Prelude.Eq, ReadPrec [CopyDBParameterGroup]
ReadPrec CopyDBParameterGroup
Int -> ReadS CopyDBParameterGroup
ReadS [CopyDBParameterGroup]
(Int -> ReadS CopyDBParameterGroup)
-> ReadS [CopyDBParameterGroup]
-> ReadPrec CopyDBParameterGroup
-> ReadPrec [CopyDBParameterGroup]
-> Read CopyDBParameterGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CopyDBParameterGroup]
$creadListPrec :: ReadPrec [CopyDBParameterGroup]
readPrec :: ReadPrec CopyDBParameterGroup
$creadPrec :: ReadPrec CopyDBParameterGroup
readList :: ReadS [CopyDBParameterGroup]
$creadList :: ReadS [CopyDBParameterGroup]
readsPrec :: Int -> ReadS CopyDBParameterGroup
$creadsPrec :: Int -> ReadS CopyDBParameterGroup
Prelude.Read, Int -> CopyDBParameterGroup -> ShowS
[CopyDBParameterGroup] -> ShowS
CopyDBParameterGroup -> String
(Int -> CopyDBParameterGroup -> ShowS)
-> (CopyDBParameterGroup -> String)
-> ([CopyDBParameterGroup] -> ShowS)
-> Show CopyDBParameterGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyDBParameterGroup] -> ShowS
$cshowList :: [CopyDBParameterGroup] -> ShowS
show :: CopyDBParameterGroup -> String
$cshow :: CopyDBParameterGroup -> String
showsPrec :: Int -> CopyDBParameterGroup -> ShowS
$cshowsPrec :: Int -> CopyDBParameterGroup -> ShowS
Prelude.Show, (forall x. CopyDBParameterGroup -> Rep CopyDBParameterGroup x)
-> (forall x. Rep CopyDBParameterGroup x -> CopyDBParameterGroup)
-> Generic CopyDBParameterGroup
forall x. Rep CopyDBParameterGroup x -> CopyDBParameterGroup
forall x. CopyDBParameterGroup -> Rep CopyDBParameterGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CopyDBParameterGroup x -> CopyDBParameterGroup
$cfrom :: forall x. CopyDBParameterGroup -> Rep CopyDBParameterGroup x
Prelude.Generic)
newCopyDBParameterGroup ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CopyDBParameterGroup
newCopyDBParameterGroup :: Text -> Text -> Text -> CopyDBParameterGroup
newCopyDBParameterGroup
Text
pSourceDBParameterGroupIdentifier_
Text
pTargetDBParameterGroupIdentifier_
Text
pTargetDBParameterGroupDescription_ =
CopyDBParameterGroup' :: Maybe [Tag] -> Text -> Text -> Text -> CopyDBParameterGroup
CopyDBParameterGroup'
{ $sel:tags:CopyDBParameterGroup' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:sourceDBParameterGroupIdentifier:CopyDBParameterGroup' :: Text
sourceDBParameterGroupIdentifier =
Text
pSourceDBParameterGroupIdentifier_,
$sel:targetDBParameterGroupIdentifier:CopyDBParameterGroup' :: Text
targetDBParameterGroupIdentifier =
Text
pTargetDBParameterGroupIdentifier_,
$sel:targetDBParameterGroupDescription:CopyDBParameterGroup' :: Text
targetDBParameterGroupDescription =
Text
pTargetDBParameterGroupDescription_
}
copyDBParameterGroup_tags :: Lens.Lens' CopyDBParameterGroup (Prelude.Maybe [Tag])
copyDBParameterGroup_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CopyDBParameterGroup -> f CopyDBParameterGroup
copyDBParameterGroup_tags = (CopyDBParameterGroup -> Maybe [Tag])
-> (CopyDBParameterGroup -> Maybe [Tag] -> CopyDBParameterGroup)
-> Lens
CopyDBParameterGroup
CopyDBParameterGroup
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyDBParameterGroup' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CopyDBParameterGroup' :: CopyDBParameterGroup -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CopyDBParameterGroup
s@CopyDBParameterGroup' {} Maybe [Tag]
a -> CopyDBParameterGroup
s {$sel:tags:CopyDBParameterGroup' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CopyDBParameterGroup) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CopyDBParameterGroup -> f CopyDBParameterGroup)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CopyDBParameterGroup
-> f CopyDBParameterGroup
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
copyDBParameterGroup_sourceDBParameterGroupIdentifier :: Lens.Lens' CopyDBParameterGroup Prelude.Text
copyDBParameterGroup_sourceDBParameterGroupIdentifier :: (Text -> f Text) -> CopyDBParameterGroup -> f CopyDBParameterGroup
copyDBParameterGroup_sourceDBParameterGroupIdentifier = (CopyDBParameterGroup -> Text)
-> (CopyDBParameterGroup -> Text -> CopyDBParameterGroup)
-> Lens CopyDBParameterGroup CopyDBParameterGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyDBParameterGroup' {Text
sourceDBParameterGroupIdentifier :: Text
$sel:sourceDBParameterGroupIdentifier:CopyDBParameterGroup' :: CopyDBParameterGroup -> Text
sourceDBParameterGroupIdentifier} -> Text
sourceDBParameterGroupIdentifier) (\s :: CopyDBParameterGroup
s@CopyDBParameterGroup' {} Text
a -> CopyDBParameterGroup
s {$sel:sourceDBParameterGroupIdentifier:CopyDBParameterGroup' :: Text
sourceDBParameterGroupIdentifier = Text
a} :: CopyDBParameterGroup)
copyDBParameterGroup_targetDBParameterGroupIdentifier :: Lens.Lens' CopyDBParameterGroup Prelude.Text
copyDBParameterGroup_targetDBParameterGroupIdentifier :: (Text -> f Text) -> CopyDBParameterGroup -> f CopyDBParameterGroup
copyDBParameterGroup_targetDBParameterGroupIdentifier = (CopyDBParameterGroup -> Text)
-> (CopyDBParameterGroup -> Text -> CopyDBParameterGroup)
-> Lens CopyDBParameterGroup CopyDBParameterGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyDBParameterGroup' {Text
targetDBParameterGroupIdentifier :: Text
$sel:targetDBParameterGroupIdentifier:CopyDBParameterGroup' :: CopyDBParameterGroup -> Text
targetDBParameterGroupIdentifier} -> Text
targetDBParameterGroupIdentifier) (\s :: CopyDBParameterGroup
s@CopyDBParameterGroup' {} Text
a -> CopyDBParameterGroup
s {$sel:targetDBParameterGroupIdentifier:CopyDBParameterGroup' :: Text
targetDBParameterGroupIdentifier = Text
a} :: CopyDBParameterGroup)
copyDBParameterGroup_targetDBParameterGroupDescription :: Lens.Lens' CopyDBParameterGroup Prelude.Text
copyDBParameterGroup_targetDBParameterGroupDescription :: (Text -> f Text) -> CopyDBParameterGroup -> f CopyDBParameterGroup
copyDBParameterGroup_targetDBParameterGroupDescription = (CopyDBParameterGroup -> Text)
-> (CopyDBParameterGroup -> Text -> CopyDBParameterGroup)
-> Lens CopyDBParameterGroup CopyDBParameterGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyDBParameterGroup' {Text
targetDBParameterGroupDescription :: Text
$sel:targetDBParameterGroupDescription:CopyDBParameterGroup' :: CopyDBParameterGroup -> Text
targetDBParameterGroupDescription} -> Text
targetDBParameterGroupDescription) (\s :: CopyDBParameterGroup
s@CopyDBParameterGroup' {} Text
a -> CopyDBParameterGroup
s {$sel:targetDBParameterGroupDescription:CopyDBParameterGroup' :: Text
targetDBParameterGroupDescription = Text
a} :: CopyDBParameterGroup)
instance Core.AWSRequest CopyDBParameterGroup where
type
AWSResponse CopyDBParameterGroup =
CopyDBParameterGroupResponse
request :: CopyDBParameterGroup -> Request CopyDBParameterGroup
request = Service -> CopyDBParameterGroup -> Request CopyDBParameterGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy CopyDBParameterGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CopyDBParameterGroup)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CopyDBParameterGroup))
-> Logger
-> Service
-> Proxy CopyDBParameterGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CopyDBParameterGroup)))
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
"CopyDBParameterGroupResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe DBParameterGroup -> Int -> CopyDBParameterGroupResponse
CopyDBParameterGroupResponse'
(Maybe DBParameterGroup -> Int -> CopyDBParameterGroupResponse)
-> Either String (Maybe DBParameterGroup)
-> Either String (Int -> CopyDBParameterGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBParameterGroup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBParameterGroup")
Either String (Int -> CopyDBParameterGroupResponse)
-> Either String Int -> Either String CopyDBParameterGroupResponse
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 CopyDBParameterGroup
instance Prelude.NFData CopyDBParameterGroup
instance Core.ToHeaders CopyDBParameterGroup where
toHeaders :: CopyDBParameterGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> CopyDBParameterGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath CopyDBParameterGroup where
toPath :: CopyDBParameterGroup -> ByteString
toPath = ByteString -> CopyDBParameterGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CopyDBParameterGroup where
toQuery :: CopyDBParameterGroup -> QueryString
toQuery CopyDBParameterGroup' {Maybe [Tag]
Text
targetDBParameterGroupDescription :: Text
targetDBParameterGroupIdentifier :: Text
sourceDBParameterGroupIdentifier :: Text
tags :: Maybe [Tag]
$sel:targetDBParameterGroupDescription:CopyDBParameterGroup' :: CopyDBParameterGroup -> Text
$sel:targetDBParameterGroupIdentifier:CopyDBParameterGroup' :: CopyDBParameterGroup -> Text
$sel:sourceDBParameterGroupIdentifier:CopyDBParameterGroup' :: CopyDBParameterGroup -> Text
$sel:tags:CopyDBParameterGroup' :: CopyDBParameterGroup -> Maybe [Tag]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"CopyDBParameterGroup" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
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
"SourceDBParameterGroupIdentifier"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
sourceDBParameterGroupIdentifier,
ByteString
"TargetDBParameterGroupIdentifier"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
targetDBParameterGroupIdentifier,
ByteString
"TargetDBParameterGroupDescription"
ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
targetDBParameterGroupDescription
]
data CopyDBParameterGroupResponse = CopyDBParameterGroupResponse'
{ CopyDBParameterGroupResponse -> Maybe DBParameterGroup
dbParameterGroup :: Prelude.Maybe DBParameterGroup,
CopyDBParameterGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool
(CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool)
-> (CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool)
-> Eq CopyDBParameterGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool
$c/= :: CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool
== :: CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool
$c== :: CopyDBParameterGroupResponse
-> CopyDBParameterGroupResponse -> Bool
Prelude.Eq, ReadPrec [CopyDBParameterGroupResponse]
ReadPrec CopyDBParameterGroupResponse
Int -> ReadS CopyDBParameterGroupResponse
ReadS [CopyDBParameterGroupResponse]
(Int -> ReadS CopyDBParameterGroupResponse)
-> ReadS [CopyDBParameterGroupResponse]
-> ReadPrec CopyDBParameterGroupResponse
-> ReadPrec [CopyDBParameterGroupResponse]
-> Read CopyDBParameterGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CopyDBParameterGroupResponse]
$creadListPrec :: ReadPrec [CopyDBParameterGroupResponse]
readPrec :: ReadPrec CopyDBParameterGroupResponse
$creadPrec :: ReadPrec CopyDBParameterGroupResponse
readList :: ReadS [CopyDBParameterGroupResponse]
$creadList :: ReadS [CopyDBParameterGroupResponse]
readsPrec :: Int -> ReadS CopyDBParameterGroupResponse
$creadsPrec :: Int -> ReadS CopyDBParameterGroupResponse
Prelude.Read, Int -> CopyDBParameterGroupResponse -> ShowS
[CopyDBParameterGroupResponse] -> ShowS
CopyDBParameterGroupResponse -> String
(Int -> CopyDBParameterGroupResponse -> ShowS)
-> (CopyDBParameterGroupResponse -> String)
-> ([CopyDBParameterGroupResponse] -> ShowS)
-> Show CopyDBParameterGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyDBParameterGroupResponse] -> ShowS
$cshowList :: [CopyDBParameterGroupResponse] -> ShowS
show :: CopyDBParameterGroupResponse -> String
$cshow :: CopyDBParameterGroupResponse -> String
showsPrec :: Int -> CopyDBParameterGroupResponse -> ShowS
$cshowsPrec :: Int -> CopyDBParameterGroupResponse -> ShowS
Prelude.Show, (forall x.
CopyDBParameterGroupResponse -> Rep CopyDBParameterGroupResponse x)
-> (forall x.
Rep CopyDBParameterGroupResponse x -> CopyDBParameterGroupResponse)
-> Generic CopyDBParameterGroupResponse
forall x.
Rep CopyDBParameterGroupResponse x -> CopyDBParameterGroupResponse
forall x.
CopyDBParameterGroupResponse -> Rep CopyDBParameterGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CopyDBParameterGroupResponse x -> CopyDBParameterGroupResponse
$cfrom :: forall x.
CopyDBParameterGroupResponse -> Rep CopyDBParameterGroupResponse x
Prelude.Generic)
newCopyDBParameterGroupResponse ::
Prelude.Int ->
CopyDBParameterGroupResponse
newCopyDBParameterGroupResponse :: Int -> CopyDBParameterGroupResponse
newCopyDBParameterGroupResponse Int
pHttpStatus_ =
CopyDBParameterGroupResponse' :: Maybe DBParameterGroup -> Int -> CopyDBParameterGroupResponse
CopyDBParameterGroupResponse'
{ $sel:dbParameterGroup:CopyDBParameterGroupResponse' :: Maybe DBParameterGroup
dbParameterGroup =
Maybe DBParameterGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CopyDBParameterGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
copyDBParameterGroupResponse_dbParameterGroup :: Lens.Lens' CopyDBParameterGroupResponse (Prelude.Maybe DBParameterGroup)
copyDBParameterGroupResponse_dbParameterGroup :: (Maybe DBParameterGroup -> f (Maybe DBParameterGroup))
-> CopyDBParameterGroupResponse -> f CopyDBParameterGroupResponse
copyDBParameterGroupResponse_dbParameterGroup = (CopyDBParameterGroupResponse -> Maybe DBParameterGroup)
-> (CopyDBParameterGroupResponse
-> Maybe DBParameterGroup -> CopyDBParameterGroupResponse)
-> Lens
CopyDBParameterGroupResponse
CopyDBParameterGroupResponse
(Maybe DBParameterGroup)
(Maybe DBParameterGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyDBParameterGroupResponse' {Maybe DBParameterGroup
dbParameterGroup :: Maybe DBParameterGroup
$sel:dbParameterGroup:CopyDBParameterGroupResponse' :: CopyDBParameterGroupResponse -> Maybe DBParameterGroup
dbParameterGroup} -> Maybe DBParameterGroup
dbParameterGroup) (\s :: CopyDBParameterGroupResponse
s@CopyDBParameterGroupResponse' {} Maybe DBParameterGroup
a -> CopyDBParameterGroupResponse
s {$sel:dbParameterGroup:CopyDBParameterGroupResponse' :: Maybe DBParameterGroup
dbParameterGroup = Maybe DBParameterGroup
a} :: CopyDBParameterGroupResponse)
copyDBParameterGroupResponse_httpStatus :: Lens.Lens' CopyDBParameterGroupResponse Prelude.Int
copyDBParameterGroupResponse_httpStatus :: (Int -> f Int)
-> CopyDBParameterGroupResponse -> f CopyDBParameterGroupResponse
copyDBParameterGroupResponse_httpStatus = (CopyDBParameterGroupResponse -> Int)
-> (CopyDBParameterGroupResponse
-> Int -> CopyDBParameterGroupResponse)
-> Lens
CopyDBParameterGroupResponse CopyDBParameterGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyDBParameterGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CopyDBParameterGroupResponse' :: CopyDBParameterGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CopyDBParameterGroupResponse
s@CopyDBParameterGroupResponse' {} Int
a -> CopyDBParameterGroupResponse
s {$sel:httpStatus:CopyDBParameterGroupResponse' :: Int
httpStatus = Int
a} :: CopyDBParameterGroupResponse)
instance Prelude.NFData CopyDBParameterGroupResponse