{-# 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.RDS.ModifyDBSnapshotAttribute
(
ModifyDBSnapshotAttribute (..),
newModifyDBSnapshotAttribute,
modifyDBSnapshotAttribute_valuesToAdd,
modifyDBSnapshotAttribute_valuesToRemove,
modifyDBSnapshotAttribute_dbSnapshotIdentifier,
modifyDBSnapshotAttribute_attributeName,
ModifyDBSnapshotAttributeResponse (..),
newModifyDBSnapshotAttributeResponse,
modifyDBSnapshotAttributeResponse_dbSnapshotAttributesResult,
modifyDBSnapshotAttributeResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ModifyDBSnapshotAttribute = ModifyDBSnapshotAttribute'
{
ModifyDBSnapshotAttribute -> Maybe [Text]
valuesToAdd :: Prelude.Maybe [Prelude.Text],
ModifyDBSnapshotAttribute -> Maybe [Text]
valuesToRemove :: Prelude.Maybe [Prelude.Text],
ModifyDBSnapshotAttribute -> Text
dbSnapshotIdentifier :: Prelude.Text,
ModifyDBSnapshotAttribute -> Text
attributeName :: Prelude.Text
}
deriving (ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool
(ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool)
-> (ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool)
-> Eq ModifyDBSnapshotAttribute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool
$c/= :: ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool
== :: ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool
$c== :: ModifyDBSnapshotAttribute -> ModifyDBSnapshotAttribute -> Bool
Prelude.Eq, ReadPrec [ModifyDBSnapshotAttribute]
ReadPrec ModifyDBSnapshotAttribute
Int -> ReadS ModifyDBSnapshotAttribute
ReadS [ModifyDBSnapshotAttribute]
(Int -> ReadS ModifyDBSnapshotAttribute)
-> ReadS [ModifyDBSnapshotAttribute]
-> ReadPrec ModifyDBSnapshotAttribute
-> ReadPrec [ModifyDBSnapshotAttribute]
-> Read ModifyDBSnapshotAttribute
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyDBSnapshotAttribute]
$creadListPrec :: ReadPrec [ModifyDBSnapshotAttribute]
readPrec :: ReadPrec ModifyDBSnapshotAttribute
$creadPrec :: ReadPrec ModifyDBSnapshotAttribute
readList :: ReadS [ModifyDBSnapshotAttribute]
$creadList :: ReadS [ModifyDBSnapshotAttribute]
readsPrec :: Int -> ReadS ModifyDBSnapshotAttribute
$creadsPrec :: Int -> ReadS ModifyDBSnapshotAttribute
Prelude.Read, Int -> ModifyDBSnapshotAttribute -> ShowS
[ModifyDBSnapshotAttribute] -> ShowS
ModifyDBSnapshotAttribute -> String
(Int -> ModifyDBSnapshotAttribute -> ShowS)
-> (ModifyDBSnapshotAttribute -> String)
-> ([ModifyDBSnapshotAttribute] -> ShowS)
-> Show ModifyDBSnapshotAttribute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyDBSnapshotAttribute] -> ShowS
$cshowList :: [ModifyDBSnapshotAttribute] -> ShowS
show :: ModifyDBSnapshotAttribute -> String
$cshow :: ModifyDBSnapshotAttribute -> String
showsPrec :: Int -> ModifyDBSnapshotAttribute -> ShowS
$cshowsPrec :: Int -> ModifyDBSnapshotAttribute -> ShowS
Prelude.Show, (forall x.
ModifyDBSnapshotAttribute -> Rep ModifyDBSnapshotAttribute x)
-> (forall x.
Rep ModifyDBSnapshotAttribute x -> ModifyDBSnapshotAttribute)
-> Generic ModifyDBSnapshotAttribute
forall x.
Rep ModifyDBSnapshotAttribute x -> ModifyDBSnapshotAttribute
forall x.
ModifyDBSnapshotAttribute -> Rep ModifyDBSnapshotAttribute x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyDBSnapshotAttribute x -> ModifyDBSnapshotAttribute
$cfrom :: forall x.
ModifyDBSnapshotAttribute -> Rep ModifyDBSnapshotAttribute x
Prelude.Generic)
newModifyDBSnapshotAttribute ::
Prelude.Text ->
Prelude.Text ->
ModifyDBSnapshotAttribute
newModifyDBSnapshotAttribute :: Text -> Text -> ModifyDBSnapshotAttribute
newModifyDBSnapshotAttribute
Text
pDBSnapshotIdentifier_
Text
pAttributeName_ =
ModifyDBSnapshotAttribute' :: Maybe [Text]
-> Maybe [Text] -> Text -> Text -> ModifyDBSnapshotAttribute
ModifyDBSnapshotAttribute'
{ $sel:valuesToAdd:ModifyDBSnapshotAttribute' :: Maybe [Text]
valuesToAdd =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:valuesToRemove:ModifyDBSnapshotAttribute' :: Maybe [Text]
valuesToRemove = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:dbSnapshotIdentifier:ModifyDBSnapshotAttribute' :: Text
dbSnapshotIdentifier = Text
pDBSnapshotIdentifier_,
$sel:attributeName:ModifyDBSnapshotAttribute' :: Text
attributeName = Text
pAttributeName_
}
modifyDBSnapshotAttribute_valuesToAdd :: Lens.Lens' ModifyDBSnapshotAttribute (Prelude.Maybe [Prelude.Text])
modifyDBSnapshotAttribute_valuesToAdd :: (Maybe [Text] -> f (Maybe [Text]))
-> ModifyDBSnapshotAttribute -> f ModifyDBSnapshotAttribute
modifyDBSnapshotAttribute_valuesToAdd = (ModifyDBSnapshotAttribute -> Maybe [Text])
-> (ModifyDBSnapshotAttribute
-> Maybe [Text] -> ModifyDBSnapshotAttribute)
-> Lens
ModifyDBSnapshotAttribute
ModifyDBSnapshotAttribute
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSnapshotAttribute' {Maybe [Text]
valuesToAdd :: Maybe [Text]
$sel:valuesToAdd:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Maybe [Text]
valuesToAdd} -> Maybe [Text]
valuesToAdd) (\s :: ModifyDBSnapshotAttribute
s@ModifyDBSnapshotAttribute' {} Maybe [Text]
a -> ModifyDBSnapshotAttribute
s {$sel:valuesToAdd:ModifyDBSnapshotAttribute' :: Maybe [Text]
valuesToAdd = Maybe [Text]
a} :: ModifyDBSnapshotAttribute) ((Maybe [Text] -> f (Maybe [Text]))
-> ModifyDBSnapshotAttribute -> f ModifyDBSnapshotAttribute)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ModifyDBSnapshotAttribute
-> f ModifyDBSnapshotAttribute
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
modifyDBSnapshotAttribute_valuesToRemove :: Lens.Lens' ModifyDBSnapshotAttribute (Prelude.Maybe [Prelude.Text])
modifyDBSnapshotAttribute_valuesToRemove :: (Maybe [Text] -> f (Maybe [Text]))
-> ModifyDBSnapshotAttribute -> f ModifyDBSnapshotAttribute
modifyDBSnapshotAttribute_valuesToRemove = (ModifyDBSnapshotAttribute -> Maybe [Text])
-> (ModifyDBSnapshotAttribute
-> Maybe [Text] -> ModifyDBSnapshotAttribute)
-> Lens
ModifyDBSnapshotAttribute
ModifyDBSnapshotAttribute
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSnapshotAttribute' {Maybe [Text]
valuesToRemove :: Maybe [Text]
$sel:valuesToRemove:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Maybe [Text]
valuesToRemove} -> Maybe [Text]
valuesToRemove) (\s :: ModifyDBSnapshotAttribute
s@ModifyDBSnapshotAttribute' {} Maybe [Text]
a -> ModifyDBSnapshotAttribute
s {$sel:valuesToRemove:ModifyDBSnapshotAttribute' :: Maybe [Text]
valuesToRemove = Maybe [Text]
a} :: ModifyDBSnapshotAttribute) ((Maybe [Text] -> f (Maybe [Text]))
-> ModifyDBSnapshotAttribute -> f ModifyDBSnapshotAttribute)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> ModifyDBSnapshotAttribute
-> f ModifyDBSnapshotAttribute
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
modifyDBSnapshotAttribute_dbSnapshotIdentifier :: Lens.Lens' ModifyDBSnapshotAttribute Prelude.Text
modifyDBSnapshotAttribute_dbSnapshotIdentifier :: (Text -> f Text)
-> ModifyDBSnapshotAttribute -> f ModifyDBSnapshotAttribute
modifyDBSnapshotAttribute_dbSnapshotIdentifier = (ModifyDBSnapshotAttribute -> Text)
-> (ModifyDBSnapshotAttribute -> Text -> ModifyDBSnapshotAttribute)
-> Lens
ModifyDBSnapshotAttribute ModifyDBSnapshotAttribute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSnapshotAttribute' {Text
dbSnapshotIdentifier :: Text
$sel:dbSnapshotIdentifier:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Text
dbSnapshotIdentifier} -> Text
dbSnapshotIdentifier) (\s :: ModifyDBSnapshotAttribute
s@ModifyDBSnapshotAttribute' {} Text
a -> ModifyDBSnapshotAttribute
s {$sel:dbSnapshotIdentifier:ModifyDBSnapshotAttribute' :: Text
dbSnapshotIdentifier = Text
a} :: ModifyDBSnapshotAttribute)
modifyDBSnapshotAttribute_attributeName :: Lens.Lens' ModifyDBSnapshotAttribute Prelude.Text
modifyDBSnapshotAttribute_attributeName :: (Text -> f Text)
-> ModifyDBSnapshotAttribute -> f ModifyDBSnapshotAttribute
modifyDBSnapshotAttribute_attributeName = (ModifyDBSnapshotAttribute -> Text)
-> (ModifyDBSnapshotAttribute -> Text -> ModifyDBSnapshotAttribute)
-> Lens
ModifyDBSnapshotAttribute ModifyDBSnapshotAttribute Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSnapshotAttribute' {Text
attributeName :: Text
$sel:attributeName:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Text
attributeName} -> Text
attributeName) (\s :: ModifyDBSnapshotAttribute
s@ModifyDBSnapshotAttribute' {} Text
a -> ModifyDBSnapshotAttribute
s {$sel:attributeName:ModifyDBSnapshotAttribute' :: Text
attributeName = Text
a} :: ModifyDBSnapshotAttribute)
instance Core.AWSRequest ModifyDBSnapshotAttribute where
type
AWSResponse ModifyDBSnapshotAttribute =
ModifyDBSnapshotAttributeResponse
request :: ModifyDBSnapshotAttribute -> Request ModifyDBSnapshotAttribute
request = Service
-> ModifyDBSnapshotAttribute -> Request ModifyDBSnapshotAttribute
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ModifyDBSnapshotAttribute
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ModifyDBSnapshotAttribute)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ModifyDBSnapshotAttribute))
-> Logger
-> Service
-> Proxy ModifyDBSnapshotAttribute
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ModifyDBSnapshotAttribute)))
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
"ModifyDBSnapshotAttributeResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe DBSnapshotAttributesResult
-> Int -> ModifyDBSnapshotAttributeResponse
ModifyDBSnapshotAttributeResponse'
(Maybe DBSnapshotAttributesResult
-> Int -> ModifyDBSnapshotAttributeResponse)
-> Either String (Maybe DBSnapshotAttributesResult)
-> Either String (Int -> ModifyDBSnapshotAttributeResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe DBSnapshotAttributesResult)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DBSnapshotAttributesResult")
Either String (Int -> ModifyDBSnapshotAttributeResponse)
-> Either String Int
-> Either String ModifyDBSnapshotAttributeResponse
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 ModifyDBSnapshotAttribute
instance Prelude.NFData ModifyDBSnapshotAttribute
instance Core.ToHeaders ModifyDBSnapshotAttribute where
toHeaders :: ModifyDBSnapshotAttribute -> ResponseHeaders
toHeaders = ResponseHeaders -> ModifyDBSnapshotAttribute -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ModifyDBSnapshotAttribute where
toPath :: ModifyDBSnapshotAttribute -> ByteString
toPath = ByteString -> ModifyDBSnapshotAttribute -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ModifyDBSnapshotAttribute where
toQuery :: ModifyDBSnapshotAttribute -> QueryString
toQuery ModifyDBSnapshotAttribute' {Maybe [Text]
Text
attributeName :: Text
dbSnapshotIdentifier :: Text
valuesToRemove :: Maybe [Text]
valuesToAdd :: Maybe [Text]
$sel:attributeName:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Text
$sel:dbSnapshotIdentifier:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Text
$sel:valuesToRemove:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> Maybe [Text]
$sel:valuesToAdd:ModifyDBSnapshotAttribute' :: ModifyDBSnapshotAttribute -> 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
"ModifyDBSnapshotAttribute" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
ByteString
"ValuesToAdd"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"AttributeValue"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
valuesToAdd
),
ByteString
"ValuesToRemove"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"AttributeValue"
([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
valuesToRemove
),
ByteString
"DBSnapshotIdentifier" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbSnapshotIdentifier,
ByteString
"AttributeName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
attributeName
]
data ModifyDBSnapshotAttributeResponse = ModifyDBSnapshotAttributeResponse'
{ ModifyDBSnapshotAttributeResponse
-> Maybe DBSnapshotAttributesResult
dbSnapshotAttributesResult :: Prelude.Maybe DBSnapshotAttributesResult,
ModifyDBSnapshotAttributeResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool
(ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool)
-> (ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool)
-> Eq ModifyDBSnapshotAttributeResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool
$c/= :: ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool
== :: ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool
$c== :: ModifyDBSnapshotAttributeResponse
-> ModifyDBSnapshotAttributeResponse -> Bool
Prelude.Eq, ReadPrec [ModifyDBSnapshotAttributeResponse]
ReadPrec ModifyDBSnapshotAttributeResponse
Int -> ReadS ModifyDBSnapshotAttributeResponse
ReadS [ModifyDBSnapshotAttributeResponse]
(Int -> ReadS ModifyDBSnapshotAttributeResponse)
-> ReadS [ModifyDBSnapshotAttributeResponse]
-> ReadPrec ModifyDBSnapshotAttributeResponse
-> ReadPrec [ModifyDBSnapshotAttributeResponse]
-> Read ModifyDBSnapshotAttributeResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyDBSnapshotAttributeResponse]
$creadListPrec :: ReadPrec [ModifyDBSnapshotAttributeResponse]
readPrec :: ReadPrec ModifyDBSnapshotAttributeResponse
$creadPrec :: ReadPrec ModifyDBSnapshotAttributeResponse
readList :: ReadS [ModifyDBSnapshotAttributeResponse]
$creadList :: ReadS [ModifyDBSnapshotAttributeResponse]
readsPrec :: Int -> ReadS ModifyDBSnapshotAttributeResponse
$creadsPrec :: Int -> ReadS ModifyDBSnapshotAttributeResponse
Prelude.Read, Int -> ModifyDBSnapshotAttributeResponse -> ShowS
[ModifyDBSnapshotAttributeResponse] -> ShowS
ModifyDBSnapshotAttributeResponse -> String
(Int -> ModifyDBSnapshotAttributeResponse -> ShowS)
-> (ModifyDBSnapshotAttributeResponse -> String)
-> ([ModifyDBSnapshotAttributeResponse] -> ShowS)
-> Show ModifyDBSnapshotAttributeResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyDBSnapshotAttributeResponse] -> ShowS
$cshowList :: [ModifyDBSnapshotAttributeResponse] -> ShowS
show :: ModifyDBSnapshotAttributeResponse -> String
$cshow :: ModifyDBSnapshotAttributeResponse -> String
showsPrec :: Int -> ModifyDBSnapshotAttributeResponse -> ShowS
$cshowsPrec :: Int -> ModifyDBSnapshotAttributeResponse -> ShowS
Prelude.Show, (forall x.
ModifyDBSnapshotAttributeResponse
-> Rep ModifyDBSnapshotAttributeResponse x)
-> (forall x.
Rep ModifyDBSnapshotAttributeResponse x
-> ModifyDBSnapshotAttributeResponse)
-> Generic ModifyDBSnapshotAttributeResponse
forall x.
Rep ModifyDBSnapshotAttributeResponse x
-> ModifyDBSnapshotAttributeResponse
forall x.
ModifyDBSnapshotAttributeResponse
-> Rep ModifyDBSnapshotAttributeResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyDBSnapshotAttributeResponse x
-> ModifyDBSnapshotAttributeResponse
$cfrom :: forall x.
ModifyDBSnapshotAttributeResponse
-> Rep ModifyDBSnapshotAttributeResponse x
Prelude.Generic)
newModifyDBSnapshotAttributeResponse ::
Prelude.Int ->
ModifyDBSnapshotAttributeResponse
newModifyDBSnapshotAttributeResponse :: Int -> ModifyDBSnapshotAttributeResponse
newModifyDBSnapshotAttributeResponse Int
pHttpStatus_ =
ModifyDBSnapshotAttributeResponse' :: Maybe DBSnapshotAttributesResult
-> Int -> ModifyDBSnapshotAttributeResponse
ModifyDBSnapshotAttributeResponse'
{ $sel:dbSnapshotAttributesResult:ModifyDBSnapshotAttributeResponse' :: Maybe DBSnapshotAttributesResult
dbSnapshotAttributesResult =
Maybe DBSnapshotAttributesResult
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ModifyDBSnapshotAttributeResponse' :: Int
httpStatus = Int
pHttpStatus_
}
modifyDBSnapshotAttributeResponse_dbSnapshotAttributesResult :: Lens.Lens' ModifyDBSnapshotAttributeResponse (Prelude.Maybe DBSnapshotAttributesResult)
modifyDBSnapshotAttributeResponse_dbSnapshotAttributesResult :: (Maybe DBSnapshotAttributesResult
-> f (Maybe DBSnapshotAttributesResult))
-> ModifyDBSnapshotAttributeResponse
-> f ModifyDBSnapshotAttributeResponse
modifyDBSnapshotAttributeResponse_dbSnapshotAttributesResult = (ModifyDBSnapshotAttributeResponse
-> Maybe DBSnapshotAttributesResult)
-> (ModifyDBSnapshotAttributeResponse
-> Maybe DBSnapshotAttributesResult
-> ModifyDBSnapshotAttributeResponse)
-> Lens
ModifyDBSnapshotAttributeResponse
ModifyDBSnapshotAttributeResponse
(Maybe DBSnapshotAttributesResult)
(Maybe DBSnapshotAttributesResult)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSnapshotAttributeResponse' {Maybe DBSnapshotAttributesResult
dbSnapshotAttributesResult :: Maybe DBSnapshotAttributesResult
$sel:dbSnapshotAttributesResult:ModifyDBSnapshotAttributeResponse' :: ModifyDBSnapshotAttributeResponse
-> Maybe DBSnapshotAttributesResult
dbSnapshotAttributesResult} -> Maybe DBSnapshotAttributesResult
dbSnapshotAttributesResult) (\s :: ModifyDBSnapshotAttributeResponse
s@ModifyDBSnapshotAttributeResponse' {} Maybe DBSnapshotAttributesResult
a -> ModifyDBSnapshotAttributeResponse
s {$sel:dbSnapshotAttributesResult:ModifyDBSnapshotAttributeResponse' :: Maybe DBSnapshotAttributesResult
dbSnapshotAttributesResult = Maybe DBSnapshotAttributesResult
a} :: ModifyDBSnapshotAttributeResponse)
modifyDBSnapshotAttributeResponse_httpStatus :: Lens.Lens' ModifyDBSnapshotAttributeResponse Prelude.Int
modifyDBSnapshotAttributeResponse_httpStatus :: (Int -> f Int)
-> ModifyDBSnapshotAttributeResponse
-> f ModifyDBSnapshotAttributeResponse
modifyDBSnapshotAttributeResponse_httpStatus = (ModifyDBSnapshotAttributeResponse -> Int)
-> (ModifyDBSnapshotAttributeResponse
-> Int -> ModifyDBSnapshotAttributeResponse)
-> Lens
ModifyDBSnapshotAttributeResponse
ModifyDBSnapshotAttributeResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyDBSnapshotAttributeResponse' {Int
httpStatus :: Int
$sel:httpStatus:ModifyDBSnapshotAttributeResponse' :: ModifyDBSnapshotAttributeResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ModifyDBSnapshotAttributeResponse
s@ModifyDBSnapshotAttributeResponse' {} Int
a -> ModifyDBSnapshotAttributeResponse
s {$sel:httpStatus:ModifyDBSnapshotAttributeResponse' :: Int
httpStatus = Int
a} :: ModifyDBSnapshotAttributeResponse)
instance
Prelude.NFData
ModifyDBSnapshotAttributeResponse