{-# 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.Kafka.BatchAssociateScramSecret
(
BatchAssociateScramSecret (..),
newBatchAssociateScramSecret,
batchAssociateScramSecret_clusterArn,
batchAssociateScramSecret_secretArnList,
BatchAssociateScramSecretResponse (..),
newBatchAssociateScramSecretResponse,
batchAssociateScramSecretResponse_clusterArn,
batchAssociateScramSecretResponse_unprocessedScramSecrets,
batchAssociateScramSecretResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Kafka.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
data BatchAssociateScramSecret = BatchAssociateScramSecret'
{
BatchAssociateScramSecret -> Text
clusterArn :: Prelude.Text,
BatchAssociateScramSecret -> [Text]
secretArnList :: [Prelude.Text]
}
deriving (BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool
(BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool)
-> (BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool)
-> Eq BatchAssociateScramSecret
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool
$c/= :: BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool
== :: BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool
$c== :: BatchAssociateScramSecret -> BatchAssociateScramSecret -> Bool
Prelude.Eq, ReadPrec [BatchAssociateScramSecret]
ReadPrec BatchAssociateScramSecret
Int -> ReadS BatchAssociateScramSecret
ReadS [BatchAssociateScramSecret]
(Int -> ReadS BatchAssociateScramSecret)
-> ReadS [BatchAssociateScramSecret]
-> ReadPrec BatchAssociateScramSecret
-> ReadPrec [BatchAssociateScramSecret]
-> Read BatchAssociateScramSecret
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateScramSecret]
$creadListPrec :: ReadPrec [BatchAssociateScramSecret]
readPrec :: ReadPrec BatchAssociateScramSecret
$creadPrec :: ReadPrec BatchAssociateScramSecret
readList :: ReadS [BatchAssociateScramSecret]
$creadList :: ReadS [BatchAssociateScramSecret]
readsPrec :: Int -> ReadS BatchAssociateScramSecret
$creadsPrec :: Int -> ReadS BatchAssociateScramSecret
Prelude.Read, Int -> BatchAssociateScramSecret -> ShowS
[BatchAssociateScramSecret] -> ShowS
BatchAssociateScramSecret -> String
(Int -> BatchAssociateScramSecret -> ShowS)
-> (BatchAssociateScramSecret -> String)
-> ([BatchAssociateScramSecret] -> ShowS)
-> Show BatchAssociateScramSecret
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateScramSecret] -> ShowS
$cshowList :: [BatchAssociateScramSecret] -> ShowS
show :: BatchAssociateScramSecret -> String
$cshow :: BatchAssociateScramSecret -> String
showsPrec :: Int -> BatchAssociateScramSecret -> ShowS
$cshowsPrec :: Int -> BatchAssociateScramSecret -> ShowS
Prelude.Show, (forall x.
BatchAssociateScramSecret -> Rep BatchAssociateScramSecret x)
-> (forall x.
Rep BatchAssociateScramSecret x -> BatchAssociateScramSecret)
-> Generic BatchAssociateScramSecret
forall x.
Rep BatchAssociateScramSecret x -> BatchAssociateScramSecret
forall x.
BatchAssociateScramSecret -> Rep BatchAssociateScramSecret x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateScramSecret x -> BatchAssociateScramSecret
$cfrom :: forall x.
BatchAssociateScramSecret -> Rep BatchAssociateScramSecret x
Prelude.Generic)
newBatchAssociateScramSecret ::
Prelude.Text ->
BatchAssociateScramSecret
newBatchAssociateScramSecret :: Text -> BatchAssociateScramSecret
newBatchAssociateScramSecret Text
pClusterArn_ =
BatchAssociateScramSecret' :: Text -> [Text] -> BatchAssociateScramSecret
BatchAssociateScramSecret'
{ $sel:clusterArn:BatchAssociateScramSecret' :: Text
clusterArn =
Text
pClusterArn_,
$sel:secretArnList:BatchAssociateScramSecret' :: [Text]
secretArnList = [Text]
forall a. Monoid a => a
Prelude.mempty
}
batchAssociateScramSecret_clusterArn :: Lens.Lens' BatchAssociateScramSecret Prelude.Text
batchAssociateScramSecret_clusterArn :: (Text -> f Text)
-> BatchAssociateScramSecret -> f BatchAssociateScramSecret
batchAssociateScramSecret_clusterArn = (BatchAssociateScramSecret -> Text)
-> (BatchAssociateScramSecret -> Text -> BatchAssociateScramSecret)
-> Lens
BatchAssociateScramSecret BatchAssociateScramSecret Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateScramSecret' {Text
clusterArn :: Text
$sel:clusterArn:BatchAssociateScramSecret' :: BatchAssociateScramSecret -> Text
clusterArn} -> Text
clusterArn) (\s :: BatchAssociateScramSecret
s@BatchAssociateScramSecret' {} Text
a -> BatchAssociateScramSecret
s {$sel:clusterArn:BatchAssociateScramSecret' :: Text
clusterArn = Text
a} :: BatchAssociateScramSecret)
batchAssociateScramSecret_secretArnList :: Lens.Lens' BatchAssociateScramSecret [Prelude.Text]
batchAssociateScramSecret_secretArnList :: ([Text] -> f [Text])
-> BatchAssociateScramSecret -> f BatchAssociateScramSecret
batchAssociateScramSecret_secretArnList = (BatchAssociateScramSecret -> [Text])
-> (BatchAssociateScramSecret
-> [Text] -> BatchAssociateScramSecret)
-> Lens
BatchAssociateScramSecret BatchAssociateScramSecret [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateScramSecret' {[Text]
secretArnList :: [Text]
$sel:secretArnList:BatchAssociateScramSecret' :: BatchAssociateScramSecret -> [Text]
secretArnList} -> [Text]
secretArnList) (\s :: BatchAssociateScramSecret
s@BatchAssociateScramSecret' {} [Text]
a -> BatchAssociateScramSecret
s {$sel:secretArnList:BatchAssociateScramSecret' :: [Text]
secretArnList = [Text]
a} :: BatchAssociateScramSecret) (([Text] -> f [Text])
-> BatchAssociateScramSecret -> f BatchAssociateScramSecret)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> BatchAssociateScramSecret
-> f BatchAssociateScramSecret
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 BatchAssociateScramSecret where
type
AWSResponse BatchAssociateScramSecret =
BatchAssociateScramSecretResponse
request :: BatchAssociateScramSecret -> Request BatchAssociateScramSecret
request = Service
-> BatchAssociateScramSecret -> Request BatchAssociateScramSecret
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy BatchAssociateScramSecret
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchAssociateScramSecret)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse BatchAssociateScramSecret))
-> Logger
-> Service
-> Proxy BatchAssociateScramSecret
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchAssociateScramSecret)))
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 Text
-> Maybe [UnprocessedScramSecret]
-> Int
-> BatchAssociateScramSecretResponse
BatchAssociateScramSecretResponse'
(Maybe Text
-> Maybe [UnprocessedScramSecret]
-> Int
-> BatchAssociateScramSecretResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [UnprocessedScramSecret]
-> Int -> BatchAssociateScramSecretResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"clusterArn")
Either
String
(Maybe [UnprocessedScramSecret]
-> Int -> BatchAssociateScramSecretResponse)
-> Either String (Maybe [UnprocessedScramSecret])
-> Either String (Int -> BatchAssociateScramSecretResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [UnprocessedScramSecret]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"unprocessedScramSecrets"
Either String (Maybe (Maybe [UnprocessedScramSecret]))
-> Maybe [UnprocessedScramSecret]
-> Either String (Maybe [UnprocessedScramSecret])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [UnprocessedScramSecret]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> BatchAssociateScramSecretResponse)
-> Either String Int
-> Either String BatchAssociateScramSecretResponse
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 BatchAssociateScramSecret
instance Prelude.NFData BatchAssociateScramSecret
instance Core.ToHeaders BatchAssociateScramSecret where
toHeaders :: BatchAssociateScramSecret -> ResponseHeaders
toHeaders =
ResponseHeaders -> BatchAssociateScramSecret -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 BatchAssociateScramSecret where
toJSON :: BatchAssociateScramSecret -> Value
toJSON BatchAssociateScramSecret' {[Text]
Text
secretArnList :: [Text]
clusterArn :: Text
$sel:secretArnList:BatchAssociateScramSecret' :: BatchAssociateScramSecret -> [Text]
$sel:clusterArn:BatchAssociateScramSecret' :: BatchAssociateScramSecret -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"secretArnList" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
secretArnList)
]
)
instance Core.ToPath BatchAssociateScramSecret where
toPath :: BatchAssociateScramSecret -> ByteString
toPath BatchAssociateScramSecret' {[Text]
Text
secretArnList :: [Text]
clusterArn :: Text
$sel:secretArnList:BatchAssociateScramSecret' :: BatchAssociateScramSecret -> [Text]
$sel:clusterArn:BatchAssociateScramSecret' :: BatchAssociateScramSecret -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/v1/clusters/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
clusterArn,
ByteString
"/scram-secrets"
]
instance Core.ToQuery BatchAssociateScramSecret where
toQuery :: BatchAssociateScramSecret -> QueryString
toQuery = QueryString -> BatchAssociateScramSecret -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data BatchAssociateScramSecretResponse = BatchAssociateScramSecretResponse'
{
BatchAssociateScramSecretResponse -> Maybe Text
clusterArn :: Prelude.Maybe Prelude.Text,
BatchAssociateScramSecretResponse -> Maybe [UnprocessedScramSecret]
unprocessedScramSecrets :: Prelude.Maybe [UnprocessedScramSecret],
BatchAssociateScramSecretResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool
(BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool)
-> (BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool)
-> Eq BatchAssociateScramSecretResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool
$c/= :: BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool
== :: BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool
$c== :: BatchAssociateScramSecretResponse
-> BatchAssociateScramSecretResponse -> Bool
Prelude.Eq, ReadPrec [BatchAssociateScramSecretResponse]
ReadPrec BatchAssociateScramSecretResponse
Int -> ReadS BatchAssociateScramSecretResponse
ReadS [BatchAssociateScramSecretResponse]
(Int -> ReadS BatchAssociateScramSecretResponse)
-> ReadS [BatchAssociateScramSecretResponse]
-> ReadPrec BatchAssociateScramSecretResponse
-> ReadPrec [BatchAssociateScramSecretResponse]
-> Read BatchAssociateScramSecretResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchAssociateScramSecretResponse]
$creadListPrec :: ReadPrec [BatchAssociateScramSecretResponse]
readPrec :: ReadPrec BatchAssociateScramSecretResponse
$creadPrec :: ReadPrec BatchAssociateScramSecretResponse
readList :: ReadS [BatchAssociateScramSecretResponse]
$creadList :: ReadS [BatchAssociateScramSecretResponse]
readsPrec :: Int -> ReadS BatchAssociateScramSecretResponse
$creadsPrec :: Int -> ReadS BatchAssociateScramSecretResponse
Prelude.Read, Int -> BatchAssociateScramSecretResponse -> ShowS
[BatchAssociateScramSecretResponse] -> ShowS
BatchAssociateScramSecretResponse -> String
(Int -> BatchAssociateScramSecretResponse -> ShowS)
-> (BatchAssociateScramSecretResponse -> String)
-> ([BatchAssociateScramSecretResponse] -> ShowS)
-> Show BatchAssociateScramSecretResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchAssociateScramSecretResponse] -> ShowS
$cshowList :: [BatchAssociateScramSecretResponse] -> ShowS
show :: BatchAssociateScramSecretResponse -> String
$cshow :: BatchAssociateScramSecretResponse -> String
showsPrec :: Int -> BatchAssociateScramSecretResponse -> ShowS
$cshowsPrec :: Int -> BatchAssociateScramSecretResponse -> ShowS
Prelude.Show, (forall x.
BatchAssociateScramSecretResponse
-> Rep BatchAssociateScramSecretResponse x)
-> (forall x.
Rep BatchAssociateScramSecretResponse x
-> BatchAssociateScramSecretResponse)
-> Generic BatchAssociateScramSecretResponse
forall x.
Rep BatchAssociateScramSecretResponse x
-> BatchAssociateScramSecretResponse
forall x.
BatchAssociateScramSecretResponse
-> Rep BatchAssociateScramSecretResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchAssociateScramSecretResponse x
-> BatchAssociateScramSecretResponse
$cfrom :: forall x.
BatchAssociateScramSecretResponse
-> Rep BatchAssociateScramSecretResponse x
Prelude.Generic)
newBatchAssociateScramSecretResponse ::
Prelude.Int ->
BatchAssociateScramSecretResponse
newBatchAssociateScramSecretResponse :: Int -> BatchAssociateScramSecretResponse
newBatchAssociateScramSecretResponse Int
pHttpStatus_ =
BatchAssociateScramSecretResponse' :: Maybe Text
-> Maybe [UnprocessedScramSecret]
-> Int
-> BatchAssociateScramSecretResponse
BatchAssociateScramSecretResponse'
{ $sel:clusterArn:BatchAssociateScramSecretResponse' :: Maybe Text
clusterArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:unprocessedScramSecrets:BatchAssociateScramSecretResponse' :: Maybe [UnprocessedScramSecret]
unprocessedScramSecrets =
Maybe [UnprocessedScramSecret]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchAssociateScramSecretResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchAssociateScramSecretResponse_clusterArn :: Lens.Lens' BatchAssociateScramSecretResponse (Prelude.Maybe Prelude.Text)
batchAssociateScramSecretResponse_clusterArn :: (Maybe Text -> f (Maybe Text))
-> BatchAssociateScramSecretResponse
-> f BatchAssociateScramSecretResponse
batchAssociateScramSecretResponse_clusterArn = (BatchAssociateScramSecretResponse -> Maybe Text)
-> (BatchAssociateScramSecretResponse
-> Maybe Text -> BatchAssociateScramSecretResponse)
-> Lens
BatchAssociateScramSecretResponse
BatchAssociateScramSecretResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateScramSecretResponse' {Maybe Text
clusterArn :: Maybe Text
$sel:clusterArn:BatchAssociateScramSecretResponse' :: BatchAssociateScramSecretResponse -> Maybe Text
clusterArn} -> Maybe Text
clusterArn) (\s :: BatchAssociateScramSecretResponse
s@BatchAssociateScramSecretResponse' {} Maybe Text
a -> BatchAssociateScramSecretResponse
s {$sel:clusterArn:BatchAssociateScramSecretResponse' :: Maybe Text
clusterArn = Maybe Text
a} :: BatchAssociateScramSecretResponse)
batchAssociateScramSecretResponse_unprocessedScramSecrets :: Lens.Lens' BatchAssociateScramSecretResponse (Prelude.Maybe [UnprocessedScramSecret])
batchAssociateScramSecretResponse_unprocessedScramSecrets :: (Maybe [UnprocessedScramSecret]
-> f (Maybe [UnprocessedScramSecret]))
-> BatchAssociateScramSecretResponse
-> f BatchAssociateScramSecretResponse
batchAssociateScramSecretResponse_unprocessedScramSecrets = (BatchAssociateScramSecretResponse
-> Maybe [UnprocessedScramSecret])
-> (BatchAssociateScramSecretResponse
-> Maybe [UnprocessedScramSecret]
-> BatchAssociateScramSecretResponse)
-> Lens
BatchAssociateScramSecretResponse
BatchAssociateScramSecretResponse
(Maybe [UnprocessedScramSecret])
(Maybe [UnprocessedScramSecret])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateScramSecretResponse' {Maybe [UnprocessedScramSecret]
unprocessedScramSecrets :: Maybe [UnprocessedScramSecret]
$sel:unprocessedScramSecrets:BatchAssociateScramSecretResponse' :: BatchAssociateScramSecretResponse -> Maybe [UnprocessedScramSecret]
unprocessedScramSecrets} -> Maybe [UnprocessedScramSecret]
unprocessedScramSecrets) (\s :: BatchAssociateScramSecretResponse
s@BatchAssociateScramSecretResponse' {} Maybe [UnprocessedScramSecret]
a -> BatchAssociateScramSecretResponse
s {$sel:unprocessedScramSecrets:BatchAssociateScramSecretResponse' :: Maybe [UnprocessedScramSecret]
unprocessedScramSecrets = Maybe [UnprocessedScramSecret]
a} :: BatchAssociateScramSecretResponse) ((Maybe [UnprocessedScramSecret]
-> f (Maybe [UnprocessedScramSecret]))
-> BatchAssociateScramSecretResponse
-> f BatchAssociateScramSecretResponse)
-> ((Maybe [UnprocessedScramSecret]
-> f (Maybe [UnprocessedScramSecret]))
-> Maybe [UnprocessedScramSecret]
-> f (Maybe [UnprocessedScramSecret]))
-> (Maybe [UnprocessedScramSecret]
-> f (Maybe [UnprocessedScramSecret]))
-> BatchAssociateScramSecretResponse
-> f BatchAssociateScramSecretResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[UnprocessedScramSecret]
[UnprocessedScramSecret]
[UnprocessedScramSecret]
[UnprocessedScramSecret]
-> Iso
(Maybe [UnprocessedScramSecret])
(Maybe [UnprocessedScramSecret])
(Maybe [UnprocessedScramSecret])
(Maybe [UnprocessedScramSecret])
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
[UnprocessedScramSecret]
[UnprocessedScramSecret]
[UnprocessedScramSecret]
[UnprocessedScramSecret]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchAssociateScramSecretResponse_httpStatus :: Lens.Lens' BatchAssociateScramSecretResponse Prelude.Int
batchAssociateScramSecretResponse_httpStatus :: (Int -> f Int)
-> BatchAssociateScramSecretResponse
-> f BatchAssociateScramSecretResponse
batchAssociateScramSecretResponse_httpStatus = (BatchAssociateScramSecretResponse -> Int)
-> (BatchAssociateScramSecretResponse
-> Int -> BatchAssociateScramSecretResponse)
-> Lens
BatchAssociateScramSecretResponse
BatchAssociateScramSecretResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchAssociateScramSecretResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchAssociateScramSecretResponse' :: BatchAssociateScramSecretResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchAssociateScramSecretResponse
s@BatchAssociateScramSecretResponse' {} Int
a -> BatchAssociateScramSecretResponse
s {$sel:httpStatus:BatchAssociateScramSecretResponse' :: Int
httpStatus = Int
a} :: BatchAssociateScramSecretResponse)
instance
Prelude.NFData
BatchAssociateScramSecretResponse