{-# 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.SecretsManager.PutSecretValue
(
PutSecretValue (..),
newPutSecretValue,
putSecretValue_versionStages,
putSecretValue_secretBinary,
putSecretValue_secretString,
putSecretValue_clientRequestToken,
putSecretValue_secretId,
PutSecretValueResponse (..),
newPutSecretValueResponse,
putSecretValueResponse_versionId,
putSecretValueResponse_arn,
putSecretValueResponse_versionStages,
putSecretValueResponse_name,
putSecretValueResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SecretsManager.Types
data PutSecretValue = PutSecretValue'
{
PutSecretValue -> Maybe (NonEmpty Text)
versionStages :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
PutSecretValue -> Maybe (Sensitive Base64)
secretBinary :: Prelude.Maybe (Core.Sensitive Core.Base64),
PutSecretValue -> Maybe (Sensitive Text)
secretString :: Prelude.Maybe (Core.Sensitive Prelude.Text),
PutSecretValue -> Maybe Text
clientRequestToken :: Prelude.Maybe Prelude.Text,
PutSecretValue -> Text
secretId :: Prelude.Text
}
deriving (PutSecretValue -> PutSecretValue -> Bool
(PutSecretValue -> PutSecretValue -> Bool)
-> (PutSecretValue -> PutSecretValue -> Bool) -> Eq PutSecretValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutSecretValue -> PutSecretValue -> Bool
$c/= :: PutSecretValue -> PutSecretValue -> Bool
== :: PutSecretValue -> PutSecretValue -> Bool
$c== :: PutSecretValue -> PutSecretValue -> Bool
Prelude.Eq, Int -> PutSecretValue -> ShowS
[PutSecretValue] -> ShowS
PutSecretValue -> String
(Int -> PutSecretValue -> ShowS)
-> (PutSecretValue -> String)
-> ([PutSecretValue] -> ShowS)
-> Show PutSecretValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutSecretValue] -> ShowS
$cshowList :: [PutSecretValue] -> ShowS
show :: PutSecretValue -> String
$cshow :: PutSecretValue -> String
showsPrec :: Int -> PutSecretValue -> ShowS
$cshowsPrec :: Int -> PutSecretValue -> ShowS
Prelude.Show, (forall x. PutSecretValue -> Rep PutSecretValue x)
-> (forall x. Rep PutSecretValue x -> PutSecretValue)
-> Generic PutSecretValue
forall x. Rep PutSecretValue x -> PutSecretValue
forall x. PutSecretValue -> Rep PutSecretValue x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutSecretValue x -> PutSecretValue
$cfrom :: forall x. PutSecretValue -> Rep PutSecretValue x
Prelude.Generic)
newPutSecretValue ::
Prelude.Text ->
PutSecretValue
newPutSecretValue :: Text -> PutSecretValue
newPutSecretValue Text
pSecretId_ =
PutSecretValue' :: Maybe (NonEmpty Text)
-> Maybe (Sensitive Base64)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Text
-> PutSecretValue
PutSecretValue'
{ $sel:versionStages:PutSecretValue' :: Maybe (NonEmpty Text)
versionStages = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:secretBinary:PutSecretValue' :: Maybe (Sensitive Base64)
secretBinary = Maybe (Sensitive Base64)
forall a. Maybe a
Prelude.Nothing,
$sel:secretString:PutSecretValue' :: Maybe (Sensitive Text)
secretString = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:clientRequestToken:PutSecretValue' :: Maybe Text
clientRequestToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:secretId:PutSecretValue' :: Text
secretId = Text
pSecretId_
}
putSecretValue_versionStages :: Lens.Lens' PutSecretValue (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
putSecretValue_versionStages :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> PutSecretValue -> f PutSecretValue
putSecretValue_versionStages = (PutSecretValue -> Maybe (NonEmpty Text))
-> (PutSecretValue -> Maybe (NonEmpty Text) -> PutSecretValue)
-> Lens
PutSecretValue
PutSecretValue
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValue' {Maybe (NonEmpty Text)
versionStages :: Maybe (NonEmpty Text)
$sel:versionStages:PutSecretValue' :: PutSecretValue -> Maybe (NonEmpty Text)
versionStages} -> Maybe (NonEmpty Text)
versionStages) (\s :: PutSecretValue
s@PutSecretValue' {} Maybe (NonEmpty Text)
a -> PutSecretValue
s {$sel:versionStages:PutSecretValue' :: Maybe (NonEmpty Text)
versionStages = Maybe (NonEmpty Text)
a} :: PutSecretValue) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> PutSecretValue -> f PutSecretValue)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> PutSecretValue
-> f PutSecretValue
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putSecretValue_secretBinary :: Lens.Lens' PutSecretValue (Prelude.Maybe Prelude.ByteString)
putSecretValue_secretBinary :: (Maybe ByteString -> f (Maybe ByteString))
-> PutSecretValue -> f PutSecretValue
putSecretValue_secretBinary = (PutSecretValue -> Maybe (Sensitive Base64))
-> (PutSecretValue -> Maybe (Sensitive Base64) -> PutSecretValue)
-> Lens
PutSecretValue
PutSecretValue
(Maybe (Sensitive Base64))
(Maybe (Sensitive Base64))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValue' {Maybe (Sensitive Base64)
secretBinary :: Maybe (Sensitive Base64)
$sel:secretBinary:PutSecretValue' :: PutSecretValue -> Maybe (Sensitive Base64)
secretBinary} -> Maybe (Sensitive Base64)
secretBinary) (\s :: PutSecretValue
s@PutSecretValue' {} Maybe (Sensitive Base64)
a -> PutSecretValue
s {$sel:secretBinary:PutSecretValue' :: Maybe (Sensitive Base64)
secretBinary = Maybe (Sensitive Base64)
a} :: PutSecretValue) ((Maybe (Sensitive Base64) -> f (Maybe (Sensitive Base64)))
-> PutSecretValue -> f PutSecretValue)
-> ((Maybe ByteString -> f (Maybe ByteString))
-> Maybe (Sensitive Base64) -> f (Maybe (Sensitive Base64)))
-> (Maybe ByteString -> f (Maybe ByteString))
-> PutSecretValue
-> f PutSecretValue
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Base64) (Sensitive Base64) ByteString ByteString
-> Iso
(Maybe (Sensitive Base64))
(Maybe (Sensitive Base64))
(Maybe ByteString)
(Maybe ByteString)
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 (Exchange ByteString ByteString Base64 (Identity Base64)
-> Exchange
ByteString
ByteString
(Sensitive Base64)
(Identity (Sensitive Base64))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Exchange ByteString ByteString Base64 (Identity Base64)
-> Exchange
ByteString
ByteString
(Sensitive Base64)
(Identity (Sensitive Base64)))
-> (Exchange ByteString ByteString ByteString (Identity ByteString)
-> Exchange ByteString ByteString Base64 (Identity Base64))
-> AnIso
(Sensitive Base64) (Sensitive Base64) ByteString ByteString
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Exchange ByteString ByteString ByteString (Identity ByteString)
-> Exchange ByteString ByteString Base64 (Identity Base64)
Iso' Base64 ByteString
Core._Base64)
putSecretValue_secretString :: Lens.Lens' PutSecretValue (Prelude.Maybe Prelude.Text)
putSecretValue_secretString :: (Maybe Text -> f (Maybe Text))
-> PutSecretValue -> f PutSecretValue
putSecretValue_secretString = (PutSecretValue -> Maybe (Sensitive Text))
-> (PutSecretValue -> Maybe (Sensitive Text) -> PutSecretValue)
-> Lens
PutSecretValue
PutSecretValue
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValue' {Maybe (Sensitive Text)
secretString :: Maybe (Sensitive Text)
$sel:secretString:PutSecretValue' :: PutSecretValue -> Maybe (Sensitive Text)
secretString} -> Maybe (Sensitive Text)
secretString) (\s :: PutSecretValue
s@PutSecretValue' {} Maybe (Sensitive Text)
a -> PutSecretValue
s {$sel:secretString:PutSecretValue' :: Maybe (Sensitive Text)
secretString = Maybe (Sensitive Text)
a} :: PutSecretValue) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> PutSecretValue -> f PutSecretValue)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> PutSecretValue
-> f PutSecretValue
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
putSecretValue_clientRequestToken :: Lens.Lens' PutSecretValue (Prelude.Maybe Prelude.Text)
putSecretValue_clientRequestToken :: (Maybe Text -> f (Maybe Text))
-> PutSecretValue -> f PutSecretValue
putSecretValue_clientRequestToken = (PutSecretValue -> Maybe Text)
-> (PutSecretValue -> Maybe Text -> PutSecretValue)
-> Lens PutSecretValue PutSecretValue (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValue' {Maybe Text
clientRequestToken :: Maybe Text
$sel:clientRequestToken:PutSecretValue' :: PutSecretValue -> Maybe Text
clientRequestToken} -> Maybe Text
clientRequestToken) (\s :: PutSecretValue
s@PutSecretValue' {} Maybe Text
a -> PutSecretValue
s {$sel:clientRequestToken:PutSecretValue' :: Maybe Text
clientRequestToken = Maybe Text
a} :: PutSecretValue)
putSecretValue_secretId :: Lens.Lens' PutSecretValue Prelude.Text
putSecretValue_secretId :: (Text -> f Text) -> PutSecretValue -> f PutSecretValue
putSecretValue_secretId = (PutSecretValue -> Text)
-> (PutSecretValue -> Text -> PutSecretValue)
-> Lens PutSecretValue PutSecretValue Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValue' {Text
secretId :: Text
$sel:secretId:PutSecretValue' :: PutSecretValue -> Text
secretId} -> Text
secretId) (\s :: PutSecretValue
s@PutSecretValue' {} Text
a -> PutSecretValue
s {$sel:secretId:PutSecretValue' :: Text
secretId = Text
a} :: PutSecretValue)
instance Core.AWSRequest PutSecretValue where
type
AWSResponse PutSecretValue =
PutSecretValueResponse
request :: PutSecretValue -> Request PutSecretValue
request = Service -> PutSecretValue -> Request PutSecretValue
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutSecretValue
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutSecretValue)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PutSecretValue))
-> Logger
-> Service
-> Proxy PutSecretValue
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse PutSecretValue)))
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 Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Int
-> PutSecretValueResponse
PutSecretValueResponse'
(Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Int
-> PutSecretValueResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Int
-> PutSecretValueResponse)
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
"VersionId")
Either
String
(Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Int
-> PutSecretValueResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty Text)
-> Maybe Text -> Int -> PutSecretValueResponse)
forall (f :: * -> *) a b. Applicative f => 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
"ARN")
Either
String
(Maybe (NonEmpty Text)
-> Maybe Text -> Int -> PutSecretValueResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either String (Maybe Text -> Int -> PutSecretValueResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VersionStages")
Either String (Maybe Text -> Int -> PutSecretValueResponse)
-> Either String (Maybe Text)
-> Either String (Int -> PutSecretValueResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Name")
Either String (Int -> PutSecretValueResponse)
-> Either String Int -> Either String PutSecretValueResponse
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 PutSecretValue
instance Prelude.NFData PutSecretValue
instance Core.ToHeaders PutSecretValue where
toHeaders :: PutSecretValue -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutSecretValue -> 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
"secretsmanager.PutSecretValue" ::
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 PutSecretValue where
toJSON :: PutSecretValue -> Value
toJSON PutSecretValue' {Maybe (NonEmpty Text)
Maybe Text
Maybe (Sensitive Text)
Maybe (Sensitive Base64)
Text
secretId :: Text
clientRequestToken :: Maybe Text
secretString :: Maybe (Sensitive Text)
secretBinary :: Maybe (Sensitive Base64)
versionStages :: Maybe (NonEmpty Text)
$sel:secretId:PutSecretValue' :: PutSecretValue -> Text
$sel:clientRequestToken:PutSecretValue' :: PutSecretValue -> Maybe Text
$sel:secretString:PutSecretValue' :: PutSecretValue -> Maybe (Sensitive Text)
$sel:secretBinary:PutSecretValue' :: PutSecretValue -> Maybe (Sensitive Base64)
$sel:versionStages:PutSecretValue' :: PutSecretValue -> Maybe (NonEmpty Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"VersionStages" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
versionStages,
(Text
"SecretBinary" Text -> Sensitive Base64 -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Base64 -> Pair)
-> Maybe (Sensitive Base64) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Base64)
secretBinary,
(Text
"SecretString" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
secretString,
(Text
"ClientRequestToken" 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
clientRequestToken,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"SecretId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
secretId)
]
)
instance Core.ToPath PutSecretValue where
toPath :: PutSecretValue -> ByteString
toPath = ByteString -> PutSecretValue -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutSecretValue where
toQuery :: PutSecretValue -> QueryString
toQuery = QueryString -> PutSecretValue -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutSecretValueResponse = PutSecretValueResponse'
{
PutSecretValueResponse -> Maybe Text
versionId :: Prelude.Maybe Prelude.Text,
PutSecretValueResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
PutSecretValueResponse -> Maybe (NonEmpty Text)
versionStages :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
PutSecretValueResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
PutSecretValueResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutSecretValueResponse -> PutSecretValueResponse -> Bool
(PutSecretValueResponse -> PutSecretValueResponse -> Bool)
-> (PutSecretValueResponse -> PutSecretValueResponse -> Bool)
-> Eq PutSecretValueResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutSecretValueResponse -> PutSecretValueResponse -> Bool
$c/= :: PutSecretValueResponse -> PutSecretValueResponse -> Bool
== :: PutSecretValueResponse -> PutSecretValueResponse -> Bool
$c== :: PutSecretValueResponse -> PutSecretValueResponse -> Bool
Prelude.Eq, ReadPrec [PutSecretValueResponse]
ReadPrec PutSecretValueResponse
Int -> ReadS PutSecretValueResponse
ReadS [PutSecretValueResponse]
(Int -> ReadS PutSecretValueResponse)
-> ReadS [PutSecretValueResponse]
-> ReadPrec PutSecretValueResponse
-> ReadPrec [PutSecretValueResponse]
-> Read PutSecretValueResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutSecretValueResponse]
$creadListPrec :: ReadPrec [PutSecretValueResponse]
readPrec :: ReadPrec PutSecretValueResponse
$creadPrec :: ReadPrec PutSecretValueResponse
readList :: ReadS [PutSecretValueResponse]
$creadList :: ReadS [PutSecretValueResponse]
readsPrec :: Int -> ReadS PutSecretValueResponse
$creadsPrec :: Int -> ReadS PutSecretValueResponse
Prelude.Read, Int -> PutSecretValueResponse -> ShowS
[PutSecretValueResponse] -> ShowS
PutSecretValueResponse -> String
(Int -> PutSecretValueResponse -> ShowS)
-> (PutSecretValueResponse -> String)
-> ([PutSecretValueResponse] -> ShowS)
-> Show PutSecretValueResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutSecretValueResponse] -> ShowS
$cshowList :: [PutSecretValueResponse] -> ShowS
show :: PutSecretValueResponse -> String
$cshow :: PutSecretValueResponse -> String
showsPrec :: Int -> PutSecretValueResponse -> ShowS
$cshowsPrec :: Int -> PutSecretValueResponse -> ShowS
Prelude.Show, (forall x. PutSecretValueResponse -> Rep PutSecretValueResponse x)
-> (forall x.
Rep PutSecretValueResponse x -> PutSecretValueResponse)
-> Generic PutSecretValueResponse
forall x. Rep PutSecretValueResponse x -> PutSecretValueResponse
forall x. PutSecretValueResponse -> Rep PutSecretValueResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutSecretValueResponse x -> PutSecretValueResponse
$cfrom :: forall x. PutSecretValueResponse -> Rep PutSecretValueResponse x
Prelude.Generic)
newPutSecretValueResponse ::
Prelude.Int ->
PutSecretValueResponse
newPutSecretValueResponse :: Int -> PutSecretValueResponse
newPutSecretValueResponse Int
pHttpStatus_ =
PutSecretValueResponse' :: Maybe Text
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Int
-> PutSecretValueResponse
PutSecretValueResponse'
{ $sel:versionId:PutSecretValueResponse' :: Maybe Text
versionId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:PutSecretValueResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:versionStages:PutSecretValueResponse' :: Maybe (NonEmpty Text)
versionStages = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:PutSecretValueResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutSecretValueResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putSecretValueResponse_versionId :: Lens.Lens' PutSecretValueResponse (Prelude.Maybe Prelude.Text)
putSecretValueResponse_versionId :: (Maybe Text -> f (Maybe Text))
-> PutSecretValueResponse -> f PutSecretValueResponse
putSecretValueResponse_versionId = (PutSecretValueResponse -> Maybe Text)
-> (PutSecretValueResponse -> Maybe Text -> PutSecretValueResponse)
-> Lens
PutSecretValueResponse
PutSecretValueResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValueResponse' {Maybe Text
versionId :: Maybe Text
$sel:versionId:PutSecretValueResponse' :: PutSecretValueResponse -> Maybe Text
versionId} -> Maybe Text
versionId) (\s :: PutSecretValueResponse
s@PutSecretValueResponse' {} Maybe Text
a -> PutSecretValueResponse
s {$sel:versionId:PutSecretValueResponse' :: Maybe Text
versionId = Maybe Text
a} :: PutSecretValueResponse)
putSecretValueResponse_arn :: Lens.Lens' PutSecretValueResponse (Prelude.Maybe Prelude.Text)
putSecretValueResponse_arn :: (Maybe Text -> f (Maybe Text))
-> PutSecretValueResponse -> f PutSecretValueResponse
putSecretValueResponse_arn = (PutSecretValueResponse -> Maybe Text)
-> (PutSecretValueResponse -> Maybe Text -> PutSecretValueResponse)
-> Lens
PutSecretValueResponse
PutSecretValueResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValueResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:PutSecretValueResponse' :: PutSecretValueResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: PutSecretValueResponse
s@PutSecretValueResponse' {} Maybe Text
a -> PutSecretValueResponse
s {$sel:arn:PutSecretValueResponse' :: Maybe Text
arn = Maybe Text
a} :: PutSecretValueResponse)
putSecretValueResponse_versionStages :: Lens.Lens' PutSecretValueResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
putSecretValueResponse_versionStages :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> PutSecretValueResponse -> f PutSecretValueResponse
putSecretValueResponse_versionStages = (PutSecretValueResponse -> Maybe (NonEmpty Text))
-> (PutSecretValueResponse
-> Maybe (NonEmpty Text) -> PutSecretValueResponse)
-> Lens
PutSecretValueResponse
PutSecretValueResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValueResponse' {Maybe (NonEmpty Text)
versionStages :: Maybe (NonEmpty Text)
$sel:versionStages:PutSecretValueResponse' :: PutSecretValueResponse -> Maybe (NonEmpty Text)
versionStages} -> Maybe (NonEmpty Text)
versionStages) (\s :: PutSecretValueResponse
s@PutSecretValueResponse' {} Maybe (NonEmpty Text)
a -> PutSecretValueResponse
s {$sel:versionStages:PutSecretValueResponse' :: Maybe (NonEmpty Text)
versionStages = Maybe (NonEmpty Text)
a} :: PutSecretValueResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> PutSecretValueResponse -> f PutSecretValueResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> PutSecretValueResponse
-> f PutSecretValueResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
putSecretValueResponse_name :: Lens.Lens' PutSecretValueResponse (Prelude.Maybe Prelude.Text)
putSecretValueResponse_name :: (Maybe Text -> f (Maybe Text))
-> PutSecretValueResponse -> f PutSecretValueResponse
putSecretValueResponse_name = (PutSecretValueResponse -> Maybe Text)
-> (PutSecretValueResponse -> Maybe Text -> PutSecretValueResponse)
-> Lens
PutSecretValueResponse
PutSecretValueResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValueResponse' {Maybe Text
name :: Maybe Text
$sel:name:PutSecretValueResponse' :: PutSecretValueResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: PutSecretValueResponse
s@PutSecretValueResponse' {} Maybe Text
a -> PutSecretValueResponse
s {$sel:name:PutSecretValueResponse' :: Maybe Text
name = Maybe Text
a} :: PutSecretValueResponse)
putSecretValueResponse_httpStatus :: Lens.Lens' PutSecretValueResponse Prelude.Int
putSecretValueResponse_httpStatus :: (Int -> f Int)
-> PutSecretValueResponse -> f PutSecretValueResponse
putSecretValueResponse_httpStatus = (PutSecretValueResponse -> Int)
-> (PutSecretValueResponse -> Int -> PutSecretValueResponse)
-> Lens PutSecretValueResponse PutSecretValueResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutSecretValueResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutSecretValueResponse' :: PutSecretValueResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutSecretValueResponse
s@PutSecretValueResponse' {} Int
a -> PutSecretValueResponse
s {$sel:httpStatus:PutSecretValueResponse' :: Int
httpStatus = Int
a} :: PutSecretValueResponse)
instance Prelude.NFData PutSecretValueResponse