{-# 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.DocumentDB.ModifyDBSubnetGroup
-- 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 an existing subnet group. subnet groups must contain at least
-- one subnet in at least two Availability Zones in the Region.
module Amazonka.DocumentDB.ModifyDBSubnetGroup
  ( -- * Creating a Request
    ModifyDBSubnetGroup (..),
    newModifyDBSubnetGroup,

    -- * Request Lenses
    modifyDBSubnetGroup_dbSubnetGroupDescription,
    modifyDBSubnetGroup_dbSubnetGroupName,
    modifyDBSubnetGroup_subnetIds,

    -- * Destructuring the Response
    ModifyDBSubnetGroupResponse (..),
    newModifyDBSubnetGroupResponse,

    -- * Response Lenses
    modifyDBSubnetGroupResponse_dbSubnetGroup,
    modifyDBSubnetGroupResponse_httpStatus,
  )
where

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

-- | Represents the input to ModifyDBSubnetGroup.
--
-- /See:/ 'newModifyDBSubnetGroup' smart constructor.
data ModifyDBSubnetGroup = ModifyDBSubnetGroup'
  { -- | The description for the subnet group.
    ModifyDBSubnetGroup -> Maybe Text
dbSubnetGroupDescription :: Prelude.Maybe Prelude.Text,
    -- | The name for the subnet group. This value is stored as a lowercase
    -- string. You can\'t modify the default subnet group.
    --
    -- Constraints: Must match the name of an existing @DBSubnetGroup@. Must
    -- not be default.
    --
    -- Example: @mySubnetgroup@
    ModifyDBSubnetGroup -> Text
dbSubnetGroupName :: Prelude.Text,
    -- | The Amazon EC2 subnet IDs for the subnet group.
    ModifyDBSubnetGroup -> [Text]
subnetIds :: [Prelude.Text]
  }
  deriving (ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool
(ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool)
-> (ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool)
-> Eq ModifyDBSubnetGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool
$c/= :: ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool
== :: ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool
$c== :: ModifyDBSubnetGroup -> ModifyDBSubnetGroup -> Bool
Prelude.Eq, ReadPrec [ModifyDBSubnetGroup]
ReadPrec ModifyDBSubnetGroup
Int -> ReadS ModifyDBSubnetGroup
ReadS [ModifyDBSubnetGroup]
(Int -> ReadS ModifyDBSubnetGroup)
-> ReadS [ModifyDBSubnetGroup]
-> ReadPrec ModifyDBSubnetGroup
-> ReadPrec [ModifyDBSubnetGroup]
-> Read ModifyDBSubnetGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyDBSubnetGroup]
$creadListPrec :: ReadPrec [ModifyDBSubnetGroup]
readPrec :: ReadPrec ModifyDBSubnetGroup
$creadPrec :: ReadPrec ModifyDBSubnetGroup
readList :: ReadS [ModifyDBSubnetGroup]
$creadList :: ReadS [ModifyDBSubnetGroup]
readsPrec :: Int -> ReadS ModifyDBSubnetGroup
$creadsPrec :: Int -> ReadS ModifyDBSubnetGroup
Prelude.Read, Int -> ModifyDBSubnetGroup -> ShowS
[ModifyDBSubnetGroup] -> ShowS
ModifyDBSubnetGroup -> String
(Int -> ModifyDBSubnetGroup -> ShowS)
-> (ModifyDBSubnetGroup -> String)
-> ([ModifyDBSubnetGroup] -> ShowS)
-> Show ModifyDBSubnetGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyDBSubnetGroup] -> ShowS
$cshowList :: [ModifyDBSubnetGroup] -> ShowS
show :: ModifyDBSubnetGroup -> String
$cshow :: ModifyDBSubnetGroup -> String
showsPrec :: Int -> ModifyDBSubnetGroup -> ShowS
$cshowsPrec :: Int -> ModifyDBSubnetGroup -> ShowS
Prelude.Show, (forall x. ModifyDBSubnetGroup -> Rep ModifyDBSubnetGroup x)
-> (forall x. Rep ModifyDBSubnetGroup x -> ModifyDBSubnetGroup)
-> Generic ModifyDBSubnetGroup
forall x. Rep ModifyDBSubnetGroup x -> ModifyDBSubnetGroup
forall x. ModifyDBSubnetGroup -> Rep ModifyDBSubnetGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ModifyDBSubnetGroup x -> ModifyDBSubnetGroup
$cfrom :: forall x. ModifyDBSubnetGroup -> Rep ModifyDBSubnetGroup x
Prelude.Generic)

-- |
-- Create a value of 'ModifyDBSubnetGroup' 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:
--
-- 'dbSubnetGroupDescription', 'modifyDBSubnetGroup_dbSubnetGroupDescription' - The description for the subnet group.
--
-- 'dbSubnetGroupName', 'modifyDBSubnetGroup_dbSubnetGroupName' - The name for the subnet group. This value is stored as a lowercase
-- string. You can\'t modify the default subnet group.
--
-- Constraints: Must match the name of an existing @DBSubnetGroup@. Must
-- not be default.
--
-- Example: @mySubnetgroup@
--
-- 'subnetIds', 'modifyDBSubnetGroup_subnetIds' - The Amazon EC2 subnet IDs for the subnet group.
newModifyDBSubnetGroup ::
  -- | 'dbSubnetGroupName'
  Prelude.Text ->
  ModifyDBSubnetGroup
newModifyDBSubnetGroup :: Text -> ModifyDBSubnetGroup
newModifyDBSubnetGroup Text
pDBSubnetGroupName_ =
  ModifyDBSubnetGroup' :: Maybe Text -> Text -> [Text] -> ModifyDBSubnetGroup
ModifyDBSubnetGroup'
    { $sel:dbSubnetGroupDescription:ModifyDBSubnetGroup' :: Maybe Text
dbSubnetGroupDescription =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbSubnetGroupName:ModifyDBSubnetGroup' :: Text
dbSubnetGroupName = Text
pDBSubnetGroupName_,
      $sel:subnetIds:ModifyDBSubnetGroup' :: [Text]
subnetIds = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The description for the subnet group.
modifyDBSubnetGroup_dbSubnetGroupDescription :: Lens.Lens' ModifyDBSubnetGroup (Prelude.Maybe Prelude.Text)
modifyDBSubnetGroup_dbSubnetGroupDescription :: (Maybe Text -> f (Maybe Text))
-> ModifyDBSubnetGroup -> f ModifyDBSubnetGroup
modifyDBSubnetGroup_dbSubnetGroupDescription = (ModifyDBSubnetGroup -> Maybe Text)
-> (ModifyDBSubnetGroup -> Maybe Text -> ModifyDBSubnetGroup)
-> Lens
     ModifyDBSubnetGroup ModifyDBSubnetGroup (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSubnetGroup' {Maybe Text
dbSubnetGroupDescription :: Maybe Text
$sel:dbSubnetGroupDescription:ModifyDBSubnetGroup' :: ModifyDBSubnetGroup -> Maybe Text
dbSubnetGroupDescription} -> Maybe Text
dbSubnetGroupDescription) (\s :: ModifyDBSubnetGroup
s@ModifyDBSubnetGroup' {} Maybe Text
a -> ModifyDBSubnetGroup
s {$sel:dbSubnetGroupDescription:ModifyDBSubnetGroup' :: Maybe Text
dbSubnetGroupDescription = Maybe Text
a} :: ModifyDBSubnetGroup)

-- | The name for the subnet group. This value is stored as a lowercase
-- string. You can\'t modify the default subnet group.
--
-- Constraints: Must match the name of an existing @DBSubnetGroup@. Must
-- not be default.
--
-- Example: @mySubnetgroup@
modifyDBSubnetGroup_dbSubnetGroupName :: Lens.Lens' ModifyDBSubnetGroup Prelude.Text
modifyDBSubnetGroup_dbSubnetGroupName :: (Text -> f Text) -> ModifyDBSubnetGroup -> f ModifyDBSubnetGroup
modifyDBSubnetGroup_dbSubnetGroupName = (ModifyDBSubnetGroup -> Text)
-> (ModifyDBSubnetGroup -> Text -> ModifyDBSubnetGroup)
-> Lens ModifyDBSubnetGroup ModifyDBSubnetGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSubnetGroup' {Text
dbSubnetGroupName :: Text
$sel:dbSubnetGroupName:ModifyDBSubnetGroup' :: ModifyDBSubnetGroup -> Text
dbSubnetGroupName} -> Text
dbSubnetGroupName) (\s :: ModifyDBSubnetGroup
s@ModifyDBSubnetGroup' {} Text
a -> ModifyDBSubnetGroup
s {$sel:dbSubnetGroupName:ModifyDBSubnetGroup' :: Text
dbSubnetGroupName = Text
a} :: ModifyDBSubnetGroup)

-- | The Amazon EC2 subnet IDs for the subnet group.
modifyDBSubnetGroup_subnetIds :: Lens.Lens' ModifyDBSubnetGroup [Prelude.Text]
modifyDBSubnetGroup_subnetIds :: ([Text] -> f [Text])
-> ModifyDBSubnetGroup -> f ModifyDBSubnetGroup
modifyDBSubnetGroup_subnetIds = (ModifyDBSubnetGroup -> [Text])
-> (ModifyDBSubnetGroup -> [Text] -> ModifyDBSubnetGroup)
-> Lens ModifyDBSubnetGroup ModifyDBSubnetGroup [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSubnetGroup' {[Text]
subnetIds :: [Text]
$sel:subnetIds:ModifyDBSubnetGroup' :: ModifyDBSubnetGroup -> [Text]
subnetIds} -> [Text]
subnetIds) (\s :: ModifyDBSubnetGroup
s@ModifyDBSubnetGroup' {} [Text]
a -> ModifyDBSubnetGroup
s {$sel:subnetIds:ModifyDBSubnetGroup' :: [Text]
subnetIds = [Text]
a} :: ModifyDBSubnetGroup) (([Text] -> f [Text])
 -> ModifyDBSubnetGroup -> f ModifyDBSubnetGroup)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> ModifyDBSubnetGroup
-> f ModifyDBSubnetGroup
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 ModifyDBSubnetGroup where
  type
    AWSResponse ModifyDBSubnetGroup =
      ModifyDBSubnetGroupResponse
  request :: ModifyDBSubnetGroup -> Request ModifyDBSubnetGroup
request = Service -> ModifyDBSubnetGroup -> Request ModifyDBSubnetGroup
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy ModifyDBSubnetGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ModifyDBSubnetGroup)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse ModifyDBSubnetGroup))
-> Logger
-> Service
-> Proxy ModifyDBSubnetGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ModifyDBSubnetGroup)))
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
"ModifyDBSubnetGroupResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe DBSubnetGroup -> Int -> ModifyDBSubnetGroupResponse
ModifyDBSubnetGroupResponse'
            (Maybe DBSubnetGroup -> Int -> ModifyDBSubnetGroupResponse)
-> Either String (Maybe DBSubnetGroup)
-> Either String (Int -> ModifyDBSubnetGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBSubnetGroup)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBSubnetGroup")
            Either String (Int -> ModifyDBSubnetGroupResponse)
-> Either String Int -> Either String ModifyDBSubnetGroupResponse
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 ModifyDBSubnetGroup

instance Prelude.NFData ModifyDBSubnetGroup

instance Core.ToHeaders ModifyDBSubnetGroup where
  toHeaders :: ModifyDBSubnetGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> ModifyDBSubnetGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery ModifyDBSubnetGroup where
  toQuery :: ModifyDBSubnetGroup -> QueryString
toQuery ModifyDBSubnetGroup' {[Text]
Maybe Text
Text
subnetIds :: [Text]
dbSubnetGroupName :: Text
dbSubnetGroupDescription :: Maybe Text
$sel:subnetIds:ModifyDBSubnetGroup' :: ModifyDBSubnetGroup -> [Text]
$sel:dbSubnetGroupName:ModifyDBSubnetGroup' :: ModifyDBSubnetGroup -> Text
$sel:dbSubnetGroupDescription:ModifyDBSubnetGroup' :: ModifyDBSubnetGroup -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ModifyDBSubnetGroup" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"DBSubnetGroupDescription"
          ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
dbSubnetGroupDescription,
        ByteString
"DBSubnetGroupName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbSubnetGroupName,
        ByteString
"SubnetIds"
          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
"SubnetIdentifier" [Text]
subnetIds
      ]

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

-- |
-- Create a value of 'ModifyDBSubnetGroupResponse' 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:
--
-- 'dbSubnetGroup', 'modifyDBSubnetGroupResponse_dbSubnetGroup' - Undocumented member.
--
-- 'httpStatus', 'modifyDBSubnetGroupResponse_httpStatus' - The response's http status code.
newModifyDBSubnetGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ModifyDBSubnetGroupResponse
newModifyDBSubnetGroupResponse :: Int -> ModifyDBSubnetGroupResponse
newModifyDBSubnetGroupResponse Int
pHttpStatus_ =
  ModifyDBSubnetGroupResponse' :: Maybe DBSubnetGroup -> Int -> ModifyDBSubnetGroupResponse
ModifyDBSubnetGroupResponse'
    { $sel:dbSubnetGroup:ModifyDBSubnetGroupResponse' :: Maybe DBSubnetGroup
dbSubnetGroup =
        Maybe DBSubnetGroup
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ModifyDBSubnetGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
modifyDBSubnetGroupResponse_dbSubnetGroup :: Lens.Lens' ModifyDBSubnetGroupResponse (Prelude.Maybe DBSubnetGroup)
modifyDBSubnetGroupResponse_dbSubnetGroup :: (Maybe DBSubnetGroup -> f (Maybe DBSubnetGroup))
-> ModifyDBSubnetGroupResponse -> f ModifyDBSubnetGroupResponse
modifyDBSubnetGroupResponse_dbSubnetGroup = (ModifyDBSubnetGroupResponse -> Maybe DBSubnetGroup)
-> (ModifyDBSubnetGroupResponse
    -> Maybe DBSubnetGroup -> ModifyDBSubnetGroupResponse)
-> Lens
     ModifyDBSubnetGroupResponse
     ModifyDBSubnetGroupResponse
     (Maybe DBSubnetGroup)
     (Maybe DBSubnetGroup)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSubnetGroupResponse' {Maybe DBSubnetGroup
dbSubnetGroup :: Maybe DBSubnetGroup
$sel:dbSubnetGroup:ModifyDBSubnetGroupResponse' :: ModifyDBSubnetGroupResponse -> Maybe DBSubnetGroup
dbSubnetGroup} -> Maybe DBSubnetGroup
dbSubnetGroup) (\s :: ModifyDBSubnetGroupResponse
s@ModifyDBSubnetGroupResponse' {} Maybe DBSubnetGroup
a -> ModifyDBSubnetGroupResponse
s {$sel:dbSubnetGroup:ModifyDBSubnetGroupResponse' :: Maybe DBSubnetGroup
dbSubnetGroup = Maybe DBSubnetGroup
a} :: ModifyDBSubnetGroupResponse)

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

instance Prelude.NFData ModifyDBSubnetGroupResponse