{-# 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.ModifyOptionGroup
(
ModifyOptionGroup (..),
newModifyOptionGroup,
modifyOptionGroup_optionsToInclude,
modifyOptionGroup_optionsToRemove,
modifyOptionGroup_applyImmediately,
modifyOptionGroup_optionGroupName,
ModifyOptionGroupResponse (..),
newModifyOptionGroupResponse,
modifyOptionGroupResponse_optionGroup,
modifyOptionGroupResponse_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 ModifyOptionGroup = ModifyOptionGroup'
{
ModifyOptionGroup -> Maybe [OptionConfiguration]
optionsToInclude :: Prelude.Maybe [OptionConfiguration],
ModifyOptionGroup -> Maybe [Text]
optionsToRemove :: Prelude.Maybe [Prelude.Text],
ModifyOptionGroup -> Maybe Bool
applyImmediately :: Prelude.Maybe Prelude.Bool,
ModifyOptionGroup -> Text
optionGroupName :: Prelude.Text
}
deriving (ModifyOptionGroup -> ModifyOptionGroup -> Bool
(ModifyOptionGroup -> ModifyOptionGroup -> Bool)
-> (ModifyOptionGroup -> ModifyOptionGroup -> Bool)
-> Eq ModifyOptionGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyOptionGroup -> ModifyOptionGroup -> Bool
$c/= :: ModifyOptionGroup -> ModifyOptionGroup -> Bool
== :: ModifyOptionGroup -> ModifyOptionGroup -> Bool
$c== :: ModifyOptionGroup -> ModifyOptionGroup -> Bool
Prelude.Eq, ReadPrec [ModifyOptionGroup]
ReadPrec ModifyOptionGroup
Int -> ReadS ModifyOptionGroup
ReadS [ModifyOptionGroup]
(Int -> ReadS ModifyOptionGroup)
-> ReadS [ModifyOptionGroup]
-> ReadPrec ModifyOptionGroup
-> ReadPrec [ModifyOptionGroup]
-> Read ModifyOptionGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyOptionGroup]
$creadListPrec :: ReadPrec [ModifyOptionGroup]
readPrec :: ReadPrec ModifyOptionGroup
$creadPrec :: ReadPrec ModifyOptionGroup
readList :: ReadS [ModifyOptionGroup]
$creadList :: ReadS [ModifyOptionGroup]
readsPrec :: Int -> ReadS ModifyOptionGroup
$creadsPrec :: Int -> ReadS ModifyOptionGroup
Prelude.Read, Int -> ModifyOptionGroup -> ShowS
[ModifyOptionGroup] -> ShowS
ModifyOptionGroup -> String
(Int -> ModifyOptionGroup -> ShowS)
-> (ModifyOptionGroup -> String)
-> ([ModifyOptionGroup] -> ShowS)
-> Show ModifyOptionGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyOptionGroup] -> ShowS
$cshowList :: [ModifyOptionGroup] -> ShowS
show :: ModifyOptionGroup -> String
$cshow :: ModifyOptionGroup -> String
showsPrec :: Int -> ModifyOptionGroup -> ShowS
$cshowsPrec :: Int -> ModifyOptionGroup -> ShowS
Prelude.Show, (forall x. ModifyOptionGroup -> Rep ModifyOptionGroup x)
-> (forall x. Rep ModifyOptionGroup x -> ModifyOptionGroup)
-> Generic ModifyOptionGroup
forall x. Rep ModifyOptionGroup x -> ModifyOptionGroup
forall x. ModifyOptionGroup -> Rep ModifyOptionGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModifyOptionGroup x -> ModifyOptionGroup
$cfrom :: forall x. ModifyOptionGroup -> Rep ModifyOptionGroup x
Prelude.Generic)
newModifyOptionGroup ::
Prelude.Text ->
ModifyOptionGroup
newModifyOptionGroup :: Text -> ModifyOptionGroup
newModifyOptionGroup Text
pOptionGroupName_ =
ModifyOptionGroup' :: Maybe [OptionConfiguration]
-> Maybe [Text] -> Maybe Bool -> Text -> ModifyOptionGroup
ModifyOptionGroup'
{ $sel:optionsToInclude:ModifyOptionGroup' :: Maybe [OptionConfiguration]
optionsToInclude =
Maybe [OptionConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:optionsToRemove:ModifyOptionGroup' :: Maybe [Text]
optionsToRemove = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:applyImmediately:ModifyOptionGroup' :: Maybe Bool
applyImmediately = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:optionGroupName:ModifyOptionGroup' :: Text
optionGroupName = Text
pOptionGroupName_
}
modifyOptionGroup_optionsToInclude :: Lens.Lens' ModifyOptionGroup (Prelude.Maybe [OptionConfiguration])
modifyOptionGroup_optionsToInclude :: (Maybe [OptionConfiguration] -> f (Maybe [OptionConfiguration]))
-> ModifyOptionGroup -> f ModifyOptionGroup
modifyOptionGroup_optionsToInclude = (ModifyOptionGroup -> Maybe [OptionConfiguration])
-> (ModifyOptionGroup
-> Maybe [OptionConfiguration] -> ModifyOptionGroup)
-> Lens
ModifyOptionGroup
ModifyOptionGroup
(Maybe [OptionConfiguration])
(Maybe [OptionConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyOptionGroup' {Maybe [OptionConfiguration]
optionsToInclude :: Maybe [OptionConfiguration]
$sel:optionsToInclude:ModifyOptionGroup' :: ModifyOptionGroup -> Maybe [OptionConfiguration]
optionsToInclude} -> Maybe [OptionConfiguration]
optionsToInclude) (\s :: ModifyOptionGroup
s@ModifyOptionGroup' {} Maybe [OptionConfiguration]
a -> ModifyOptionGroup
s {$sel:optionsToInclude:ModifyOptionGroup' :: Maybe [OptionConfiguration]
optionsToInclude = Maybe [OptionConfiguration]
a} :: ModifyOptionGroup) ((Maybe [OptionConfiguration] -> f (Maybe [OptionConfiguration]))
-> ModifyOptionGroup -> f ModifyOptionGroup)
-> ((Maybe [OptionConfiguration]
-> f (Maybe [OptionConfiguration]))
-> Maybe [OptionConfiguration] -> f (Maybe [OptionConfiguration]))
-> (Maybe [OptionConfiguration] -> f (Maybe [OptionConfiguration]))
-> ModifyOptionGroup
-> f ModifyOptionGroup
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[OptionConfiguration]
[OptionConfiguration]
[OptionConfiguration]
[OptionConfiguration]
-> Iso
(Maybe [OptionConfiguration])
(Maybe [OptionConfiguration])
(Maybe [OptionConfiguration])
(Maybe [OptionConfiguration])
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
[OptionConfiguration]
[OptionConfiguration]
[OptionConfiguration]
[OptionConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
modifyOptionGroup_optionsToRemove :: Lens.Lens' ModifyOptionGroup (Prelude.Maybe [Prelude.Text])
modifyOptionGroup_optionsToRemove :: (Maybe [Text] -> f (Maybe [Text]))
-> ModifyOptionGroup -> f ModifyOptionGroup
modifyOptionGroup_optionsToRemove = (ModifyOptionGroup -> Maybe [Text])
-> (ModifyOptionGroup -> Maybe [Text] -> ModifyOptionGroup)
-> Lens
ModifyOptionGroup ModifyOptionGroup (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyOptionGroup' {Maybe [Text]
optionsToRemove :: Maybe [Text]
$sel:optionsToRemove:ModifyOptionGroup' :: ModifyOptionGroup -> Maybe [Text]
optionsToRemove} -> Maybe [Text]
optionsToRemove) (\s :: ModifyOptionGroup
s@ModifyOptionGroup' {} Maybe [Text]
a -> ModifyOptionGroup
s {$sel:optionsToRemove:ModifyOptionGroup' :: Maybe [Text]
optionsToRemove = Maybe [Text]
a} :: ModifyOptionGroup) ((Maybe [Text] -> f (Maybe [Text]))
-> ModifyOptionGroup -> f ModifyOptionGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ModifyOptionGroup
-> f ModifyOptionGroup
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
modifyOptionGroup_applyImmediately :: Lens.Lens' ModifyOptionGroup (Prelude.Maybe Prelude.Bool)
modifyOptionGroup_applyImmediately :: (Maybe Bool -> f (Maybe Bool))
-> ModifyOptionGroup -> f ModifyOptionGroup
modifyOptionGroup_applyImmediately = (ModifyOptionGroup -> Maybe Bool)
-> (ModifyOptionGroup -> Maybe Bool -> ModifyOptionGroup)
-> Lens
ModifyOptionGroup ModifyOptionGroup (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyOptionGroup' {Maybe Bool
applyImmediately :: Maybe Bool
$sel:applyImmediately:ModifyOptionGroup' :: ModifyOptionGroup -> Maybe Bool
applyImmediately} -> Maybe Bool
applyImmediately) (\s :: ModifyOptionGroup
s@ModifyOptionGroup' {} Maybe Bool
a -> ModifyOptionGroup
s {$sel:applyImmediately:ModifyOptionGroup' :: Maybe Bool
applyImmediately = Maybe Bool
a} :: ModifyOptionGroup)
modifyOptionGroup_optionGroupName :: Lens.Lens' ModifyOptionGroup Prelude.Text
modifyOptionGroup_optionGroupName :: (Text -> f Text) -> ModifyOptionGroup -> f ModifyOptionGroup
modifyOptionGroup_optionGroupName = (ModifyOptionGroup -> Text)
-> (ModifyOptionGroup -> Text -> ModifyOptionGroup)
-> Lens ModifyOptionGroup ModifyOptionGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyOptionGroup' {Text
optionGroupName :: Text
$sel:optionGroupName:ModifyOptionGroup' :: ModifyOptionGroup -> Text
optionGroupName} -> Text
optionGroupName) (\s :: ModifyOptionGroup
s@ModifyOptionGroup' {} Text
a -> ModifyOptionGroup
s {$sel:optionGroupName:ModifyOptionGroup' :: Text
optionGroupName = Text
a} :: ModifyOptionGroup)
instance Core.AWSRequest ModifyOptionGroup where
type
AWSResponse ModifyOptionGroup =
ModifyOptionGroupResponse
request :: ModifyOptionGroup -> Request ModifyOptionGroup
request = Service -> ModifyOptionGroup -> Request ModifyOptionGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ModifyOptionGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ModifyOptionGroup)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ModifyOptionGroup))
-> Logger
-> Service
-> Proxy ModifyOptionGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ModifyOptionGroup)))
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
"ModifyOptionGroupResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe OptionGroup -> Int -> ModifyOptionGroupResponse
ModifyOptionGroupResponse'
(Maybe OptionGroup -> Int -> ModifyOptionGroupResponse)
-> Either String (Maybe OptionGroup)
-> Either String (Int -> ModifyOptionGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe OptionGroup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"OptionGroup")
Either String (Int -> ModifyOptionGroupResponse)
-> Either String Int -> Either String ModifyOptionGroupResponse
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 ModifyOptionGroup
instance Prelude.NFData ModifyOptionGroup
instance Core.ToHeaders ModifyOptionGroup where
toHeaders :: ModifyOptionGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> ModifyOptionGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ModifyOptionGroup where
toPath :: ModifyOptionGroup -> ByteString
toPath = ByteString -> ModifyOptionGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ModifyOptionGroup where
toQuery :: ModifyOptionGroup -> QueryString
toQuery ModifyOptionGroup' {Maybe Bool
Maybe [Text]
Maybe [OptionConfiguration]
Text
optionGroupName :: Text
applyImmediately :: Maybe Bool
optionsToRemove :: Maybe [Text]
optionsToInclude :: Maybe [OptionConfiguration]
$sel:optionGroupName:ModifyOptionGroup' :: ModifyOptionGroup -> Text
$sel:applyImmediately:ModifyOptionGroup' :: ModifyOptionGroup -> Maybe Bool
$sel:optionsToRemove:ModifyOptionGroup' :: ModifyOptionGroup -> Maybe [Text]
$sel:optionsToInclude:ModifyOptionGroup' :: ModifyOptionGroup -> Maybe [OptionConfiguration]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ModifyOptionGroup" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"OptionsToInclude"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [OptionConfiguration] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"OptionConfiguration"
([OptionConfiguration] -> QueryString)
-> Maybe [OptionConfiguration] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [OptionConfiguration]
optionsToInclude
),
ByteString
"OptionsToRemove"
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]
optionsToRemove
),
ByteString
"ApplyImmediately" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
applyImmediately,
ByteString
"OptionGroupName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
optionGroupName
]
data ModifyOptionGroupResponse = ModifyOptionGroupResponse'
{ ModifyOptionGroupResponse -> Maybe OptionGroup
optionGroup :: Prelude.Maybe OptionGroup,
ModifyOptionGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool
(ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool)
-> (ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool)
-> Eq ModifyOptionGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool
$c/= :: ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool
== :: ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool
$c== :: ModifyOptionGroupResponse -> ModifyOptionGroupResponse -> Bool
Prelude.Eq, ReadPrec [ModifyOptionGroupResponse]
ReadPrec ModifyOptionGroupResponse
Int -> ReadS ModifyOptionGroupResponse
ReadS [ModifyOptionGroupResponse]
(Int -> ReadS ModifyOptionGroupResponse)
-> ReadS [ModifyOptionGroupResponse]
-> ReadPrec ModifyOptionGroupResponse
-> ReadPrec [ModifyOptionGroupResponse]
-> Read ModifyOptionGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyOptionGroupResponse]
$creadListPrec :: ReadPrec [ModifyOptionGroupResponse]
readPrec :: ReadPrec ModifyOptionGroupResponse
$creadPrec :: ReadPrec ModifyOptionGroupResponse
readList :: ReadS [ModifyOptionGroupResponse]
$creadList :: ReadS [ModifyOptionGroupResponse]
readsPrec :: Int -> ReadS ModifyOptionGroupResponse
$creadsPrec :: Int -> ReadS ModifyOptionGroupResponse
Prelude.Read, Int -> ModifyOptionGroupResponse -> ShowS
[ModifyOptionGroupResponse] -> ShowS
ModifyOptionGroupResponse -> String
(Int -> ModifyOptionGroupResponse -> ShowS)
-> (ModifyOptionGroupResponse -> String)
-> ([ModifyOptionGroupResponse] -> ShowS)
-> Show ModifyOptionGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyOptionGroupResponse] -> ShowS
$cshowList :: [ModifyOptionGroupResponse] -> ShowS
show :: ModifyOptionGroupResponse -> String
$cshow :: ModifyOptionGroupResponse -> String
showsPrec :: Int -> ModifyOptionGroupResponse -> ShowS
$cshowsPrec :: Int -> ModifyOptionGroupResponse -> ShowS
Prelude.Show, (forall x.
ModifyOptionGroupResponse -> Rep ModifyOptionGroupResponse x)
-> (forall x.
Rep ModifyOptionGroupResponse x -> ModifyOptionGroupResponse)
-> Generic ModifyOptionGroupResponse
forall x.
Rep ModifyOptionGroupResponse x -> ModifyOptionGroupResponse
forall x.
ModifyOptionGroupResponse -> Rep ModifyOptionGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyOptionGroupResponse x -> ModifyOptionGroupResponse
$cfrom :: forall x.
ModifyOptionGroupResponse -> Rep ModifyOptionGroupResponse x
Prelude.Generic)
newModifyOptionGroupResponse ::
Prelude.Int ->
ModifyOptionGroupResponse
newModifyOptionGroupResponse :: Int -> ModifyOptionGroupResponse
newModifyOptionGroupResponse Int
pHttpStatus_ =
ModifyOptionGroupResponse' :: Maybe OptionGroup -> Int -> ModifyOptionGroupResponse
ModifyOptionGroupResponse'
{ $sel:optionGroup:ModifyOptionGroupResponse' :: Maybe OptionGroup
optionGroup =
Maybe OptionGroup
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ModifyOptionGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
modifyOptionGroupResponse_optionGroup :: Lens.Lens' ModifyOptionGroupResponse (Prelude.Maybe OptionGroup)
modifyOptionGroupResponse_optionGroup :: (Maybe OptionGroup -> f (Maybe OptionGroup))
-> ModifyOptionGroupResponse -> f ModifyOptionGroupResponse
modifyOptionGroupResponse_optionGroup = (ModifyOptionGroupResponse -> Maybe OptionGroup)
-> (ModifyOptionGroupResponse
-> Maybe OptionGroup -> ModifyOptionGroupResponse)
-> Lens
ModifyOptionGroupResponse
ModifyOptionGroupResponse
(Maybe OptionGroup)
(Maybe OptionGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyOptionGroupResponse' {Maybe OptionGroup
optionGroup :: Maybe OptionGroup
$sel:optionGroup:ModifyOptionGroupResponse' :: ModifyOptionGroupResponse -> Maybe OptionGroup
optionGroup} -> Maybe OptionGroup
optionGroup) (\s :: ModifyOptionGroupResponse
s@ModifyOptionGroupResponse' {} Maybe OptionGroup
a -> ModifyOptionGroupResponse
s {$sel:optionGroup:ModifyOptionGroupResponse' :: Maybe OptionGroup
optionGroup = Maybe OptionGroup
a} :: ModifyOptionGroupResponse)
modifyOptionGroupResponse_httpStatus :: Lens.Lens' ModifyOptionGroupResponse Prelude.Int
modifyOptionGroupResponse_httpStatus :: (Int -> f Int)
-> ModifyOptionGroupResponse -> f ModifyOptionGroupResponse
modifyOptionGroupResponse_httpStatus = (ModifyOptionGroupResponse -> Int)
-> (ModifyOptionGroupResponse -> Int -> ModifyOptionGroupResponse)
-> Lens ModifyOptionGroupResponse ModifyOptionGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyOptionGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:ModifyOptionGroupResponse' :: ModifyOptionGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ModifyOptionGroupResponse
s@ModifyOptionGroupResponse' {} Int
a -> ModifyOptionGroupResponse
s {$sel:httpStatus:ModifyOptionGroupResponse' :: Int
httpStatus = Int
a} :: ModifyOptionGroupResponse)
instance Prelude.NFData ModifyOptionGroupResponse