{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MemoryDb.ResetParameterGroup
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Modifies the parameters of a parameter group to the engine or system
-- default value. You can reset specific parameters by submitting a list of
-- parameter names. To reset the entire parameter group, specify the
-- AllParameters and ParameterGroupName parameters.
module Amazonka.MemoryDb.ResetParameterGroup
  ( -- * Creating a Request
    ResetParameterGroup (..),
    newResetParameterGroup,

    -- * Request Lenses
    resetParameterGroup_parameterNames,
    resetParameterGroup_allParameters,
    resetParameterGroup_parameterGroupName,

    -- * Destructuring the Response
    ResetParameterGroupResponse (..),
    newResetParameterGroupResponse,

    -- * Response Lenses
    resetParameterGroupResponse_parameterGroup,
    resetParameterGroupResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MemoryDb.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newResetParameterGroup' smart constructor.
data ResetParameterGroup = ResetParameterGroup'
  { -- | An array of parameter names to reset to their default values. If
    -- AllParameters is true, do not use ParameterNames. If AllParameters is
    -- false, you must specify the name of at least one parameter to reset.
    ResetParameterGroup -> Maybe [Text]
parameterNames :: Prelude.Maybe [Prelude.Text],
    -- | If true, all parameters in the parameter group are reset to their
    -- default values. If false, only the parameters listed by ParameterNames
    -- are reset to their default values.
    ResetParameterGroup -> Maybe Bool
allParameters :: Prelude.Maybe Prelude.Bool,
    -- | The name of the parameter group to reset.
    ResetParameterGroup -> Text
parameterGroupName :: Prelude.Text
  }
  deriving (ResetParameterGroup -> ResetParameterGroup -> Bool
(ResetParameterGroup -> ResetParameterGroup -> Bool)
-> (ResetParameterGroup -> ResetParameterGroup -> Bool)
-> Eq ResetParameterGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResetParameterGroup -> ResetParameterGroup -> Bool
$c/= :: ResetParameterGroup -> ResetParameterGroup -> Bool
== :: ResetParameterGroup -> ResetParameterGroup -> Bool
$c== :: ResetParameterGroup -> ResetParameterGroup -> Bool
Prelude.Eq, ReadPrec [ResetParameterGroup]
ReadPrec ResetParameterGroup
Int -> ReadS ResetParameterGroup
ReadS [ResetParameterGroup]
(Int -> ReadS ResetParameterGroup)
-> ReadS [ResetParameterGroup]
-> ReadPrec ResetParameterGroup
-> ReadPrec [ResetParameterGroup]
-> Read ResetParameterGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResetParameterGroup]
$creadListPrec :: ReadPrec [ResetParameterGroup]
readPrec :: ReadPrec ResetParameterGroup
$creadPrec :: ReadPrec ResetParameterGroup
readList :: ReadS [ResetParameterGroup]
$creadList :: ReadS [ResetParameterGroup]
readsPrec :: Int -> ReadS ResetParameterGroup
$creadsPrec :: Int -> ReadS ResetParameterGroup
Prelude.Read, Int -> ResetParameterGroup -> ShowS
[ResetParameterGroup] -> ShowS
ResetParameterGroup -> String
(Int -> ResetParameterGroup -> ShowS)
-> (ResetParameterGroup -> String)
-> ([ResetParameterGroup] -> ShowS)
-> Show ResetParameterGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResetParameterGroup] -> ShowS
$cshowList :: [ResetParameterGroup] -> ShowS
show :: ResetParameterGroup -> String
$cshow :: ResetParameterGroup -> String
showsPrec :: Int -> ResetParameterGroup -> ShowS
$cshowsPrec :: Int -> ResetParameterGroup -> ShowS
Prelude.Show, (forall x. ResetParameterGroup -> Rep ResetParameterGroup x)
-> (forall x. Rep ResetParameterGroup x -> ResetParameterGroup)
-> Generic ResetParameterGroup
forall x. Rep ResetParameterGroup x -> ResetParameterGroup
forall x. ResetParameterGroup -> Rep ResetParameterGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ResetParameterGroup x -> ResetParameterGroup
$cfrom :: forall x. ResetParameterGroup -> Rep ResetParameterGroup x
Prelude.Generic)

-- |
-- Create a value of 'ResetParameterGroup' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'parameterNames', 'resetParameterGroup_parameterNames' - An array of parameter names to reset to their default values. If
-- AllParameters is true, do not use ParameterNames. If AllParameters is
-- false, you must specify the name of at least one parameter to reset.
--
-- 'allParameters', 'resetParameterGroup_allParameters' - If true, all parameters in the parameter group are reset to their
-- default values. If false, only the parameters listed by ParameterNames
-- are reset to their default values.
--
-- 'parameterGroupName', 'resetParameterGroup_parameterGroupName' - The name of the parameter group to reset.
newResetParameterGroup ::
  -- | 'parameterGroupName'
  Prelude.Text ->
  ResetParameterGroup
newResetParameterGroup :: Text -> ResetParameterGroup
newResetParameterGroup Text
pParameterGroupName_ =
  ResetParameterGroup' :: Maybe [Text] -> Maybe Bool -> Text -> ResetParameterGroup
ResetParameterGroup'
    { $sel:parameterNames:ResetParameterGroup' :: Maybe [Text]
parameterNames =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:allParameters:ResetParameterGroup' :: Maybe Bool
allParameters = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:parameterGroupName:ResetParameterGroup' :: Text
parameterGroupName = Text
pParameterGroupName_
    }

-- | An array of parameter names to reset to their default values. If
-- AllParameters is true, do not use ParameterNames. If AllParameters is
-- false, you must specify the name of at least one parameter to reset.
resetParameterGroup_parameterNames :: Lens.Lens' ResetParameterGroup (Prelude.Maybe [Prelude.Text])
resetParameterGroup_parameterNames :: (Maybe [Text] -> f (Maybe [Text]))
-> ResetParameterGroup -> f ResetParameterGroup
resetParameterGroup_parameterNames = (ResetParameterGroup -> Maybe [Text])
-> (ResetParameterGroup -> Maybe [Text] -> ResetParameterGroup)
-> Lens
     ResetParameterGroup
     ResetParameterGroup
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetParameterGroup' {Maybe [Text]
parameterNames :: Maybe [Text]
$sel:parameterNames:ResetParameterGroup' :: ResetParameterGroup -> Maybe [Text]
parameterNames} -> Maybe [Text]
parameterNames) (\s :: ResetParameterGroup
s@ResetParameterGroup' {} Maybe [Text]
a -> ResetParameterGroup
s {$sel:parameterNames:ResetParameterGroup' :: Maybe [Text]
parameterNames = Maybe [Text]
a} :: ResetParameterGroup) ((Maybe [Text] -> f (Maybe [Text]))
 -> ResetParameterGroup -> f ResetParameterGroup)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ResetParameterGroup
-> f ResetParameterGroup
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

-- | If true, all parameters in the parameter group are reset to their
-- default values. If false, only the parameters listed by ParameterNames
-- are reset to their default values.
resetParameterGroup_allParameters :: Lens.Lens' ResetParameterGroup (Prelude.Maybe Prelude.Bool)
resetParameterGroup_allParameters :: (Maybe Bool -> f (Maybe Bool))
-> ResetParameterGroup -> f ResetParameterGroup
resetParameterGroup_allParameters = (ResetParameterGroup -> Maybe Bool)
-> (ResetParameterGroup -> Maybe Bool -> ResetParameterGroup)
-> Lens
     ResetParameterGroup ResetParameterGroup (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetParameterGroup' {Maybe Bool
allParameters :: Maybe Bool
$sel:allParameters:ResetParameterGroup' :: ResetParameterGroup -> Maybe Bool
allParameters} -> Maybe Bool
allParameters) (\s :: ResetParameterGroup
s@ResetParameterGroup' {} Maybe Bool
a -> ResetParameterGroup
s {$sel:allParameters:ResetParameterGroup' :: Maybe Bool
allParameters = Maybe Bool
a} :: ResetParameterGroup)

-- | The name of the parameter group to reset.
resetParameterGroup_parameterGroupName :: Lens.Lens' ResetParameterGroup Prelude.Text
resetParameterGroup_parameterGroupName :: (Text -> f Text) -> ResetParameterGroup -> f ResetParameterGroup
resetParameterGroup_parameterGroupName = (ResetParameterGroup -> Text)
-> (ResetParameterGroup -> Text -> ResetParameterGroup)
-> Lens ResetParameterGroup ResetParameterGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetParameterGroup' {Text
parameterGroupName :: Text
$sel:parameterGroupName:ResetParameterGroup' :: ResetParameterGroup -> Text
parameterGroupName} -> Text
parameterGroupName) (\s :: ResetParameterGroup
s@ResetParameterGroup' {} Text
a -> ResetParameterGroup
s {$sel:parameterGroupName:ResetParameterGroup' :: Text
parameterGroupName = Text
a} :: ResetParameterGroup)

instance Core.AWSRequest ResetParameterGroup where
  type
    AWSResponse ResetParameterGroup =
      ResetParameterGroupResponse
  request :: ResetParameterGroup -> Request ResetParameterGroup
request = Service -> ResetParameterGroup -> Request ResetParameterGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ResetParameterGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ResetParameterGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ResetParameterGroup))
-> Logger
-> Service
-> Proxy ResetParameterGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ResetParameterGroup)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe ParameterGroup -> Int -> ResetParameterGroupResponse
ResetParameterGroupResponse'
            (Maybe ParameterGroup -> Int -> ResetParameterGroupResponse)
-> Either String (Maybe ParameterGroup)
-> Either String (Int -> ResetParameterGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ParameterGroup)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ParameterGroup")
            Either String (Int -> ResetParameterGroupResponse)
-> Either String Int -> Either String ResetParameterGroupResponse
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 ResetParameterGroup

instance Prelude.NFData ResetParameterGroup

instance Core.ToHeaders ResetParameterGroup where
  toHeaders :: ResetParameterGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ResetParameterGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonMemoryDB.ResetParameterGroup" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON ResetParameterGroup where
  toJSON :: ResetParameterGroup -> Value
toJSON ResetParameterGroup' {Maybe Bool
Maybe [Text]
Text
parameterGroupName :: Text
allParameters :: Maybe Bool
parameterNames :: Maybe [Text]
$sel:parameterGroupName:ResetParameterGroup' :: ResetParameterGroup -> Text
$sel:allParameters:ResetParameterGroup' :: ResetParameterGroup -> Maybe Bool
$sel:parameterNames:ResetParameterGroup' :: ResetParameterGroup -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"ParameterNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
parameterNames,
            (Text
"AllParameters" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
allParameters,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ParameterGroupName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
parameterGroupName)
          ]
      )

instance Core.ToPath ResetParameterGroup where
  toPath :: ResetParameterGroup -> ByteString
toPath = ByteString -> ResetParameterGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ResetParameterGroup where
  toQuery :: ResetParameterGroup -> QueryString
toQuery = QueryString -> ResetParameterGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newResetParameterGroupResponse' smart constructor.
data ResetParameterGroupResponse = ResetParameterGroupResponse'
  { -- | The parameter group being reset.
    ResetParameterGroupResponse -> Maybe ParameterGroup
parameterGroup :: Prelude.Maybe ParameterGroup,
    -- | The response's http status code.
    ResetParameterGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ResetParameterGroupResponse -> ResetParameterGroupResponse -> Bool
(ResetParameterGroupResponse
 -> ResetParameterGroupResponse -> Bool)
-> (ResetParameterGroupResponse
    -> ResetParameterGroupResponse -> Bool)
-> Eq ResetParameterGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResetParameterGroupResponse -> ResetParameterGroupResponse -> Bool
$c/= :: ResetParameterGroupResponse -> ResetParameterGroupResponse -> Bool
== :: ResetParameterGroupResponse -> ResetParameterGroupResponse -> Bool
$c== :: ResetParameterGroupResponse -> ResetParameterGroupResponse -> Bool
Prelude.Eq, ReadPrec [ResetParameterGroupResponse]
ReadPrec ResetParameterGroupResponse
Int -> ReadS ResetParameterGroupResponse
ReadS [ResetParameterGroupResponse]
(Int -> ReadS ResetParameterGroupResponse)
-> ReadS [ResetParameterGroupResponse]
-> ReadPrec ResetParameterGroupResponse
-> ReadPrec [ResetParameterGroupResponse]
-> Read ResetParameterGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResetParameterGroupResponse]
$creadListPrec :: ReadPrec [ResetParameterGroupResponse]
readPrec :: ReadPrec ResetParameterGroupResponse
$creadPrec :: ReadPrec ResetParameterGroupResponse
readList :: ReadS [ResetParameterGroupResponse]
$creadList :: ReadS [ResetParameterGroupResponse]
readsPrec :: Int -> ReadS ResetParameterGroupResponse
$creadsPrec :: Int -> ReadS ResetParameterGroupResponse
Prelude.Read, Int -> ResetParameterGroupResponse -> ShowS
[ResetParameterGroupResponse] -> ShowS
ResetParameterGroupResponse -> String
(Int -> ResetParameterGroupResponse -> ShowS)
-> (ResetParameterGroupResponse -> String)
-> ([ResetParameterGroupResponse] -> ShowS)
-> Show ResetParameterGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResetParameterGroupResponse] -> ShowS
$cshowList :: [ResetParameterGroupResponse] -> ShowS
show :: ResetParameterGroupResponse -> String
$cshow :: ResetParameterGroupResponse -> String
showsPrec :: Int -> ResetParameterGroupResponse -> ShowS
$cshowsPrec :: Int -> ResetParameterGroupResponse -> ShowS
Prelude.Show, (forall x.
 ResetParameterGroupResponse -> Rep ResetParameterGroupResponse x)
-> (forall x.
    Rep ResetParameterGroupResponse x -> ResetParameterGroupResponse)
-> Generic ResetParameterGroupResponse
forall x.
Rep ResetParameterGroupResponse x -> ResetParameterGroupResponse
forall x.
ResetParameterGroupResponse -> Rep ResetParameterGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResetParameterGroupResponse x -> ResetParameterGroupResponse
$cfrom :: forall x.
ResetParameterGroupResponse -> Rep ResetParameterGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'ResetParameterGroupResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'parameterGroup', 'resetParameterGroupResponse_parameterGroup' - The parameter group being reset.
--
-- 'httpStatus', 'resetParameterGroupResponse_httpStatus' - The response's http status code.
newResetParameterGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ResetParameterGroupResponse
newResetParameterGroupResponse :: Int -> ResetParameterGroupResponse
newResetParameterGroupResponse Int
pHttpStatus_ =
  ResetParameterGroupResponse' :: Maybe ParameterGroup -> Int -> ResetParameterGroupResponse
ResetParameterGroupResponse'
    { $sel:parameterGroup:ResetParameterGroupResponse' :: Maybe ParameterGroup
parameterGroup =
        Maybe ParameterGroup
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ResetParameterGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The parameter group being reset.
resetParameterGroupResponse_parameterGroup :: Lens.Lens' ResetParameterGroupResponse (Prelude.Maybe ParameterGroup)
resetParameterGroupResponse_parameterGroup :: (Maybe ParameterGroup -> f (Maybe ParameterGroup))
-> ResetParameterGroupResponse -> f ResetParameterGroupResponse
resetParameterGroupResponse_parameterGroup = (ResetParameterGroupResponse -> Maybe ParameterGroup)
-> (ResetParameterGroupResponse
    -> Maybe ParameterGroup -> ResetParameterGroupResponse)
-> Lens
     ResetParameterGroupResponse
     ResetParameterGroupResponse
     (Maybe ParameterGroup)
     (Maybe ParameterGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetParameterGroupResponse' {Maybe ParameterGroup
parameterGroup :: Maybe ParameterGroup
$sel:parameterGroup:ResetParameterGroupResponse' :: ResetParameterGroupResponse -> Maybe ParameterGroup
parameterGroup} -> Maybe ParameterGroup
parameterGroup) (\s :: ResetParameterGroupResponse
s@ResetParameterGroupResponse' {} Maybe ParameterGroup
a -> ResetParameterGroupResponse
s {$sel:parameterGroup:ResetParameterGroupResponse' :: Maybe ParameterGroup
parameterGroup = Maybe ParameterGroup
a} :: ResetParameterGroupResponse)

-- | The response's http status code.
resetParameterGroupResponse_httpStatus :: Lens.Lens' ResetParameterGroupResponse Prelude.Int
resetParameterGroupResponse_httpStatus :: (Int -> f Int)
-> ResetParameterGroupResponse -> f ResetParameterGroupResponse
resetParameterGroupResponse_httpStatus = (ResetParameterGroupResponse -> Int)
-> (ResetParameterGroupResponse
    -> Int -> ResetParameterGroupResponse)
-> Lens
     ResetParameterGroupResponse ResetParameterGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResetParameterGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:ResetParameterGroupResponse' :: ResetParameterGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ResetParameterGroupResponse
s@ResetParameterGroupResponse' {} Int
a -> ResetParameterGroupResponse
s {$sel:httpStatus:ResetParameterGroupResponse' :: Int
httpStatus = Int
a} :: ResetParameterGroupResponse)

instance Prelude.NFData ResetParameterGroupResponse