{-# 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.CreateParameterGroup
-- 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)
--
-- Creates a new MemoryDB parameter group. A parameter group is a
-- collection of parameters and their values that are applied to all of the
-- nodes in any cluster. For more information, see
-- <https://docs.aws.amazon.com/MemoryDB/latest/devguide/parametergroups.html Configuring engine parameters using parameter groups>.
module Amazonka.MemoryDb.CreateParameterGroup
  ( -- * Creating a Request
    CreateParameterGroup (..),
    newCreateParameterGroup,

    -- * Request Lenses
    createParameterGroup_description,
    createParameterGroup_tags,
    createParameterGroup_parameterGroupName,
    createParameterGroup_family,

    -- * Destructuring the Response
    CreateParameterGroupResponse (..),
    newCreateParameterGroupResponse,

    -- * Response Lenses
    createParameterGroupResponse_parameterGroup,
    createParameterGroupResponse_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:/ 'newCreateParameterGroup' smart constructor.
data CreateParameterGroup = CreateParameterGroup'
  { -- | An optional description of the parameter group.
    CreateParameterGroup -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | A list of tags to be added to this resource. A tag is a key-value pair.
    -- A tag key must be accompanied by a tag value, although null is accepted.
    CreateParameterGroup -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
    -- | The name of the parameter group.
    CreateParameterGroup -> Text
parameterGroupName :: Prelude.Text,
    -- | The name of the parameter group family that the parameter group can be
    -- used with.
    CreateParameterGroup -> Text
family :: Prelude.Text
  }
  deriving (CreateParameterGroup -> CreateParameterGroup -> Bool
(CreateParameterGroup -> CreateParameterGroup -> Bool)
-> (CreateParameterGroup -> CreateParameterGroup -> Bool)
-> Eq CreateParameterGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateParameterGroup -> CreateParameterGroup -> Bool
$c/= :: CreateParameterGroup -> CreateParameterGroup -> Bool
== :: CreateParameterGroup -> CreateParameterGroup -> Bool
$c== :: CreateParameterGroup -> CreateParameterGroup -> Bool
Prelude.Eq, ReadPrec [CreateParameterGroup]
ReadPrec CreateParameterGroup
Int -> ReadS CreateParameterGroup
ReadS [CreateParameterGroup]
(Int -> ReadS CreateParameterGroup)
-> ReadS [CreateParameterGroup]
-> ReadPrec CreateParameterGroup
-> ReadPrec [CreateParameterGroup]
-> Read CreateParameterGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateParameterGroup]
$creadListPrec :: ReadPrec [CreateParameterGroup]
readPrec :: ReadPrec CreateParameterGroup
$creadPrec :: ReadPrec CreateParameterGroup
readList :: ReadS [CreateParameterGroup]
$creadList :: ReadS [CreateParameterGroup]
readsPrec :: Int -> ReadS CreateParameterGroup
$creadsPrec :: Int -> ReadS CreateParameterGroup
Prelude.Read, Int -> CreateParameterGroup -> ShowS
[CreateParameterGroup] -> ShowS
CreateParameterGroup -> String
(Int -> CreateParameterGroup -> ShowS)
-> (CreateParameterGroup -> String)
-> ([CreateParameterGroup] -> ShowS)
-> Show CreateParameterGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateParameterGroup] -> ShowS
$cshowList :: [CreateParameterGroup] -> ShowS
show :: CreateParameterGroup -> String
$cshow :: CreateParameterGroup -> String
showsPrec :: Int -> CreateParameterGroup -> ShowS
$cshowsPrec :: Int -> CreateParameterGroup -> ShowS
Prelude.Show, (forall x. CreateParameterGroup -> Rep CreateParameterGroup x)
-> (forall x. Rep CreateParameterGroup x -> CreateParameterGroup)
-> Generic CreateParameterGroup
forall x. Rep CreateParameterGroup x -> CreateParameterGroup
forall x. CreateParameterGroup -> Rep CreateParameterGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateParameterGroup x -> CreateParameterGroup
$cfrom :: forall x. CreateParameterGroup -> Rep CreateParameterGroup x
Prelude.Generic)

-- |
-- Create a value of 'CreateParameterGroup' 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:
--
-- 'description', 'createParameterGroup_description' - An optional description of the parameter group.
--
-- 'tags', 'createParameterGroup_tags' - A list of tags to be added to this resource. A tag is a key-value pair.
-- A tag key must be accompanied by a tag value, although null is accepted.
--
-- 'parameterGroupName', 'createParameterGroup_parameterGroupName' - The name of the parameter group.
--
-- 'family', 'createParameterGroup_family' - The name of the parameter group family that the parameter group can be
-- used with.
newCreateParameterGroup ::
  -- | 'parameterGroupName'
  Prelude.Text ->
  -- | 'family'
  Prelude.Text ->
  CreateParameterGroup
newCreateParameterGroup :: Text -> Text -> CreateParameterGroup
newCreateParameterGroup Text
pParameterGroupName_ Text
pFamily_ =
  CreateParameterGroup' :: Maybe Text -> Maybe [Tag] -> Text -> Text -> CreateParameterGroup
CreateParameterGroup'
    { $sel:description:CreateParameterGroup' :: Maybe Text
description =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreateParameterGroup' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
      $sel:parameterGroupName:CreateParameterGroup' :: Text
parameterGroupName = Text
pParameterGroupName_,
      $sel:family:CreateParameterGroup' :: Text
family = Text
pFamily_
    }

-- | An optional description of the parameter group.
createParameterGroup_description :: Lens.Lens' CreateParameterGroup (Prelude.Maybe Prelude.Text)
createParameterGroup_description :: (Maybe Text -> f (Maybe Text))
-> CreateParameterGroup -> f CreateParameterGroup
createParameterGroup_description = (CreateParameterGroup -> Maybe Text)
-> (CreateParameterGroup -> Maybe Text -> CreateParameterGroup)
-> Lens
     CreateParameterGroup CreateParameterGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateParameterGroup' {Maybe Text
description :: Maybe Text
$sel:description:CreateParameterGroup' :: CreateParameterGroup -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateParameterGroup
s@CreateParameterGroup' {} Maybe Text
a -> CreateParameterGroup
s {$sel:description:CreateParameterGroup' :: Maybe Text
description = Maybe Text
a} :: CreateParameterGroup)

-- | A list of tags to be added to this resource. A tag is a key-value pair.
-- A tag key must be accompanied by a tag value, although null is accepted.
createParameterGroup_tags :: Lens.Lens' CreateParameterGroup (Prelude.Maybe [Tag])
createParameterGroup_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateParameterGroup -> f CreateParameterGroup
createParameterGroup_tags = (CreateParameterGroup -> Maybe [Tag])
-> (CreateParameterGroup -> Maybe [Tag] -> CreateParameterGroup)
-> Lens
     CreateParameterGroup
     CreateParameterGroup
     (Maybe [Tag])
     (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateParameterGroup' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateParameterGroup' :: CreateParameterGroup -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateParameterGroup
s@CreateParameterGroup' {} Maybe [Tag]
a -> CreateParameterGroup
s {$sel:tags:CreateParameterGroup' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateParameterGroup) ((Maybe [Tag] -> f (Maybe [Tag]))
 -> CreateParameterGroup -> f CreateParameterGroup)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
    -> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateParameterGroup
-> f CreateParameterGroup
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

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

-- | The name of the parameter group family that the parameter group can be
-- used with.
createParameterGroup_family :: Lens.Lens' CreateParameterGroup Prelude.Text
createParameterGroup_family :: (Text -> f Text) -> CreateParameterGroup -> f CreateParameterGroup
createParameterGroup_family = (CreateParameterGroup -> Text)
-> (CreateParameterGroup -> Text -> CreateParameterGroup)
-> Lens CreateParameterGroup CreateParameterGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateParameterGroup' {Text
family :: Text
$sel:family:CreateParameterGroup' :: CreateParameterGroup -> Text
family} -> Text
family) (\s :: CreateParameterGroup
s@CreateParameterGroup' {} Text
a -> CreateParameterGroup
s {$sel:family:CreateParameterGroup' :: Text
family = Text
a} :: CreateParameterGroup)

instance Core.AWSRequest CreateParameterGroup where
  type
    AWSResponse CreateParameterGroup =
      CreateParameterGroupResponse
  request :: CreateParameterGroup -> Request CreateParameterGroup
request = Service -> CreateParameterGroup -> Request CreateParameterGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateParameterGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateParameterGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreateParameterGroup))
-> Logger
-> Service
-> Proxy CreateParameterGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateParameterGroup)))
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 -> CreateParameterGroupResponse
CreateParameterGroupResponse'
            (Maybe ParameterGroup -> Int -> CreateParameterGroupResponse)
-> Either String (Maybe ParameterGroup)
-> Either String (Int -> CreateParameterGroupResponse)
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 -> CreateParameterGroupResponse)
-> Either String Int -> Either String CreateParameterGroupResponse
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 CreateParameterGroup

instance Prelude.NFData CreateParameterGroup

instance Core.ToHeaders CreateParameterGroup where
  toHeaders :: CreateParameterGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateParameterGroup -> 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.CreateParameterGroup" ::
                          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 CreateParameterGroup where
  toJSON :: CreateParameterGroup -> Value
toJSON CreateParameterGroup' {Maybe [Tag]
Maybe Text
Text
family :: Text
parameterGroupName :: Text
tags :: Maybe [Tag]
description :: Maybe Text
$sel:family:CreateParameterGroup' :: CreateParameterGroup -> Text
$sel:parameterGroupName:CreateParameterGroup' :: CreateParameterGroup -> Text
$sel:tags:CreateParameterGroup' :: CreateParameterGroup -> Maybe [Tag]
$sel:description:CreateParameterGroup' :: CreateParameterGroup -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Description" 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
description,
            (Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
            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),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Family" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
family)
          ]
      )

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

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

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

-- |
-- Create a value of 'CreateParameterGroupResponse' 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', 'createParameterGroupResponse_parameterGroup' - The newly-created parameter group.
--
-- 'httpStatus', 'createParameterGroupResponse_httpStatus' - The response's http status code.
newCreateParameterGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateParameterGroupResponse
newCreateParameterGroupResponse :: Int -> CreateParameterGroupResponse
newCreateParameterGroupResponse Int
pHttpStatus_ =
  CreateParameterGroupResponse' :: Maybe ParameterGroup -> Int -> CreateParameterGroupResponse
CreateParameterGroupResponse'
    { $sel:parameterGroup:CreateParameterGroupResponse' :: Maybe ParameterGroup
parameterGroup =
        Maybe ParameterGroup
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreateParameterGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The newly-created parameter group.
createParameterGroupResponse_parameterGroup :: Lens.Lens' CreateParameterGroupResponse (Prelude.Maybe ParameterGroup)
createParameterGroupResponse_parameterGroup :: (Maybe ParameterGroup -> f (Maybe ParameterGroup))
-> CreateParameterGroupResponse -> f CreateParameterGroupResponse
createParameterGroupResponse_parameterGroup = (CreateParameterGroupResponse -> Maybe ParameterGroup)
-> (CreateParameterGroupResponse
    -> Maybe ParameterGroup -> CreateParameterGroupResponse)
-> Lens
     CreateParameterGroupResponse
     CreateParameterGroupResponse
     (Maybe ParameterGroup)
     (Maybe ParameterGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateParameterGroupResponse' {Maybe ParameterGroup
parameterGroup :: Maybe ParameterGroup
$sel:parameterGroup:CreateParameterGroupResponse' :: CreateParameterGroupResponse -> Maybe ParameterGroup
parameterGroup} -> Maybe ParameterGroup
parameterGroup) (\s :: CreateParameterGroupResponse
s@CreateParameterGroupResponse' {} Maybe ParameterGroup
a -> CreateParameterGroupResponse
s {$sel:parameterGroup:CreateParameterGroupResponse' :: Maybe ParameterGroup
parameterGroup = Maybe ParameterGroup
a} :: CreateParameterGroupResponse)

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

instance Prelude.NFData CreateParameterGroupResponse