{-# 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.Redshift.BatchDeleteClusterSnapshots
(
BatchDeleteClusterSnapshots (..),
newBatchDeleteClusterSnapshots,
batchDeleteClusterSnapshots_identifiers,
BatchDeleteClusterSnapshotsResponse (..),
newBatchDeleteClusterSnapshotsResponse,
batchDeleteClusterSnapshotsResponse_resources,
batchDeleteClusterSnapshotsResponse_errors,
batchDeleteClusterSnapshotsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Redshift.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data BatchDeleteClusterSnapshots = BatchDeleteClusterSnapshots'
{
BatchDeleteClusterSnapshots -> [DeleteClusterSnapshotMessage]
identifiers :: [DeleteClusterSnapshotMessage]
}
deriving (BatchDeleteClusterSnapshots -> BatchDeleteClusterSnapshots -> Bool
(BatchDeleteClusterSnapshots
-> BatchDeleteClusterSnapshots -> Bool)
-> (BatchDeleteClusterSnapshots
-> BatchDeleteClusterSnapshots -> Bool)
-> Eq BatchDeleteClusterSnapshots
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteClusterSnapshots -> BatchDeleteClusterSnapshots -> Bool
$c/= :: BatchDeleteClusterSnapshots -> BatchDeleteClusterSnapshots -> Bool
== :: BatchDeleteClusterSnapshots -> BatchDeleteClusterSnapshots -> Bool
$c== :: BatchDeleteClusterSnapshots -> BatchDeleteClusterSnapshots -> Bool
Prelude.Eq, ReadPrec [BatchDeleteClusterSnapshots]
ReadPrec BatchDeleteClusterSnapshots
Int -> ReadS BatchDeleteClusterSnapshots
ReadS [BatchDeleteClusterSnapshots]
(Int -> ReadS BatchDeleteClusterSnapshots)
-> ReadS [BatchDeleteClusterSnapshots]
-> ReadPrec BatchDeleteClusterSnapshots
-> ReadPrec [BatchDeleteClusterSnapshots]
-> Read BatchDeleteClusterSnapshots
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteClusterSnapshots]
$creadListPrec :: ReadPrec [BatchDeleteClusterSnapshots]
readPrec :: ReadPrec BatchDeleteClusterSnapshots
$creadPrec :: ReadPrec BatchDeleteClusterSnapshots
readList :: ReadS [BatchDeleteClusterSnapshots]
$creadList :: ReadS [BatchDeleteClusterSnapshots]
readsPrec :: Int -> ReadS BatchDeleteClusterSnapshots
$creadsPrec :: Int -> ReadS BatchDeleteClusterSnapshots
Prelude.Read, Int -> BatchDeleteClusterSnapshots -> ShowS
[BatchDeleteClusterSnapshots] -> ShowS
BatchDeleteClusterSnapshots -> String
(Int -> BatchDeleteClusterSnapshots -> ShowS)
-> (BatchDeleteClusterSnapshots -> String)
-> ([BatchDeleteClusterSnapshots] -> ShowS)
-> Show BatchDeleteClusterSnapshots
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteClusterSnapshots] -> ShowS
$cshowList :: [BatchDeleteClusterSnapshots] -> ShowS
show :: BatchDeleteClusterSnapshots -> String
$cshow :: BatchDeleteClusterSnapshots -> String
showsPrec :: Int -> BatchDeleteClusterSnapshots -> ShowS
$cshowsPrec :: Int -> BatchDeleteClusterSnapshots -> ShowS
Prelude.Show, (forall x.
BatchDeleteClusterSnapshots -> Rep BatchDeleteClusterSnapshots x)
-> (forall x.
Rep BatchDeleteClusterSnapshots x -> BatchDeleteClusterSnapshots)
-> Generic BatchDeleteClusterSnapshots
forall x.
Rep BatchDeleteClusterSnapshots x -> BatchDeleteClusterSnapshots
forall x.
BatchDeleteClusterSnapshots -> Rep BatchDeleteClusterSnapshots x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteClusterSnapshots x -> BatchDeleteClusterSnapshots
$cfrom :: forall x.
BatchDeleteClusterSnapshots -> Rep BatchDeleteClusterSnapshots x
Prelude.Generic)
newBatchDeleteClusterSnapshots ::
BatchDeleteClusterSnapshots
newBatchDeleteClusterSnapshots :: BatchDeleteClusterSnapshots
newBatchDeleteClusterSnapshots =
BatchDeleteClusterSnapshots' :: [DeleteClusterSnapshotMessage] -> BatchDeleteClusterSnapshots
BatchDeleteClusterSnapshots'
{ $sel:identifiers:BatchDeleteClusterSnapshots' :: [DeleteClusterSnapshotMessage]
identifiers =
[DeleteClusterSnapshotMessage]
forall a. Monoid a => a
Prelude.mempty
}
batchDeleteClusterSnapshots_identifiers :: Lens.Lens' BatchDeleteClusterSnapshots [DeleteClusterSnapshotMessage]
batchDeleteClusterSnapshots_identifiers :: ([DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage])
-> BatchDeleteClusterSnapshots -> f BatchDeleteClusterSnapshots
batchDeleteClusterSnapshots_identifiers = (BatchDeleteClusterSnapshots -> [DeleteClusterSnapshotMessage])
-> (BatchDeleteClusterSnapshots
-> [DeleteClusterSnapshotMessage] -> BatchDeleteClusterSnapshots)
-> Lens
BatchDeleteClusterSnapshots
BatchDeleteClusterSnapshots
[DeleteClusterSnapshotMessage]
[DeleteClusterSnapshotMessage]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteClusterSnapshots' {[DeleteClusterSnapshotMessage]
identifiers :: [DeleteClusterSnapshotMessage]
$sel:identifiers:BatchDeleteClusterSnapshots' :: BatchDeleteClusterSnapshots -> [DeleteClusterSnapshotMessage]
identifiers} -> [DeleteClusterSnapshotMessage]
identifiers) (\s :: BatchDeleteClusterSnapshots
s@BatchDeleteClusterSnapshots' {} [DeleteClusterSnapshotMessage]
a -> BatchDeleteClusterSnapshots
s {$sel:identifiers:BatchDeleteClusterSnapshots' :: [DeleteClusterSnapshotMessage]
identifiers = [DeleteClusterSnapshotMessage]
a} :: BatchDeleteClusterSnapshots) (([DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage])
-> BatchDeleteClusterSnapshots -> f BatchDeleteClusterSnapshots)
-> (([DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage])
-> [DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage])
-> ([DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage])
-> BatchDeleteClusterSnapshots
-> f BatchDeleteClusterSnapshots
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage])
-> [DeleteClusterSnapshotMessage]
-> f [DeleteClusterSnapshotMessage]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest BatchDeleteClusterSnapshots where
type
AWSResponse BatchDeleteClusterSnapshots =
BatchDeleteClusterSnapshotsResponse
request :: BatchDeleteClusterSnapshots -> Request BatchDeleteClusterSnapshots
request = Service
-> BatchDeleteClusterSnapshots
-> Request BatchDeleteClusterSnapshots
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy BatchDeleteClusterSnapshots
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchDeleteClusterSnapshots)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse BatchDeleteClusterSnapshots))
-> Logger
-> Service
-> Proxy BatchDeleteClusterSnapshots
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse BatchDeleteClusterSnapshots)))
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
"BatchDeleteClusterSnapshotsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [Text]
-> Maybe [SnapshotErrorMessage]
-> Int
-> BatchDeleteClusterSnapshotsResponse
BatchDeleteClusterSnapshotsResponse'
(Maybe [Text]
-> Maybe [SnapshotErrorMessage]
-> Int
-> BatchDeleteClusterSnapshotsResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe [SnapshotErrorMessage]
-> Int -> BatchDeleteClusterSnapshotsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Resources" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Text]))
-> Either String (Maybe [Text])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Text])
-> [Node] -> Either String (Maybe [Text])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Text]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"String")
)
Either
String
(Maybe [SnapshotErrorMessage]
-> Int -> BatchDeleteClusterSnapshotsResponse)
-> Either String (Maybe [SnapshotErrorMessage])
-> Either String (Int -> BatchDeleteClusterSnapshotsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Errors" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [SnapshotErrorMessage]))
-> Either String (Maybe [SnapshotErrorMessage])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [SnapshotErrorMessage])
-> [Node] -> Either String (Maybe [SnapshotErrorMessage])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [SnapshotErrorMessage]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"SnapshotErrorMessage")
)
Either String (Int -> BatchDeleteClusterSnapshotsResponse)
-> Either String Int
-> Either String BatchDeleteClusterSnapshotsResponse
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 BatchDeleteClusterSnapshots
instance Prelude.NFData BatchDeleteClusterSnapshots
instance Core.ToHeaders BatchDeleteClusterSnapshots where
toHeaders :: BatchDeleteClusterSnapshots -> ResponseHeaders
toHeaders = ResponseHeaders -> BatchDeleteClusterSnapshots -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath BatchDeleteClusterSnapshots where
toPath :: BatchDeleteClusterSnapshots -> ByteString
toPath = ByteString -> BatchDeleteClusterSnapshots -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery BatchDeleteClusterSnapshots where
toQuery :: BatchDeleteClusterSnapshots -> QueryString
toQuery BatchDeleteClusterSnapshots' {[DeleteClusterSnapshotMessage]
identifiers :: [DeleteClusterSnapshotMessage]
$sel:identifiers:BatchDeleteClusterSnapshots' :: BatchDeleteClusterSnapshots -> [DeleteClusterSnapshotMessage]
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"BatchDeleteClusterSnapshots" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
ByteString
"Identifiers"
ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [DeleteClusterSnapshotMessage] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList
ByteString
"DeleteClusterSnapshotMessage"
[DeleteClusterSnapshotMessage]
identifiers
]
data BatchDeleteClusterSnapshotsResponse = BatchDeleteClusterSnapshotsResponse'
{
BatchDeleteClusterSnapshotsResponse -> Maybe [Text]
resources :: Prelude.Maybe [Prelude.Text],
BatchDeleteClusterSnapshotsResponse -> Maybe [SnapshotErrorMessage]
errors :: Prelude.Maybe [SnapshotErrorMessage],
BatchDeleteClusterSnapshotsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool
(BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool)
-> (BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool)
-> Eq BatchDeleteClusterSnapshotsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool
$c/= :: BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool
== :: BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool
$c== :: BatchDeleteClusterSnapshotsResponse
-> BatchDeleteClusterSnapshotsResponse -> Bool
Prelude.Eq, ReadPrec [BatchDeleteClusterSnapshotsResponse]
ReadPrec BatchDeleteClusterSnapshotsResponse
Int -> ReadS BatchDeleteClusterSnapshotsResponse
ReadS [BatchDeleteClusterSnapshotsResponse]
(Int -> ReadS BatchDeleteClusterSnapshotsResponse)
-> ReadS [BatchDeleteClusterSnapshotsResponse]
-> ReadPrec BatchDeleteClusterSnapshotsResponse
-> ReadPrec [BatchDeleteClusterSnapshotsResponse]
-> Read BatchDeleteClusterSnapshotsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BatchDeleteClusterSnapshotsResponse]
$creadListPrec :: ReadPrec [BatchDeleteClusterSnapshotsResponse]
readPrec :: ReadPrec BatchDeleteClusterSnapshotsResponse
$creadPrec :: ReadPrec BatchDeleteClusterSnapshotsResponse
readList :: ReadS [BatchDeleteClusterSnapshotsResponse]
$creadList :: ReadS [BatchDeleteClusterSnapshotsResponse]
readsPrec :: Int -> ReadS BatchDeleteClusterSnapshotsResponse
$creadsPrec :: Int -> ReadS BatchDeleteClusterSnapshotsResponse
Prelude.Read, Int -> BatchDeleteClusterSnapshotsResponse -> ShowS
[BatchDeleteClusterSnapshotsResponse] -> ShowS
BatchDeleteClusterSnapshotsResponse -> String
(Int -> BatchDeleteClusterSnapshotsResponse -> ShowS)
-> (BatchDeleteClusterSnapshotsResponse -> String)
-> ([BatchDeleteClusterSnapshotsResponse] -> ShowS)
-> Show BatchDeleteClusterSnapshotsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BatchDeleteClusterSnapshotsResponse] -> ShowS
$cshowList :: [BatchDeleteClusterSnapshotsResponse] -> ShowS
show :: BatchDeleteClusterSnapshotsResponse -> String
$cshow :: BatchDeleteClusterSnapshotsResponse -> String
showsPrec :: Int -> BatchDeleteClusterSnapshotsResponse -> ShowS
$cshowsPrec :: Int -> BatchDeleteClusterSnapshotsResponse -> ShowS
Prelude.Show, (forall x.
BatchDeleteClusterSnapshotsResponse
-> Rep BatchDeleteClusterSnapshotsResponse x)
-> (forall x.
Rep BatchDeleteClusterSnapshotsResponse x
-> BatchDeleteClusterSnapshotsResponse)
-> Generic BatchDeleteClusterSnapshotsResponse
forall x.
Rep BatchDeleteClusterSnapshotsResponse x
-> BatchDeleteClusterSnapshotsResponse
forall x.
BatchDeleteClusterSnapshotsResponse
-> Rep BatchDeleteClusterSnapshotsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep BatchDeleteClusterSnapshotsResponse x
-> BatchDeleteClusterSnapshotsResponse
$cfrom :: forall x.
BatchDeleteClusterSnapshotsResponse
-> Rep BatchDeleteClusterSnapshotsResponse x
Prelude.Generic)
newBatchDeleteClusterSnapshotsResponse ::
Prelude.Int ->
BatchDeleteClusterSnapshotsResponse
newBatchDeleteClusterSnapshotsResponse :: Int -> BatchDeleteClusterSnapshotsResponse
newBatchDeleteClusterSnapshotsResponse Int
pHttpStatus_ =
BatchDeleteClusterSnapshotsResponse' :: Maybe [Text]
-> Maybe [SnapshotErrorMessage]
-> Int
-> BatchDeleteClusterSnapshotsResponse
BatchDeleteClusterSnapshotsResponse'
{ $sel:resources:BatchDeleteClusterSnapshotsResponse' :: Maybe [Text]
resources =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:errors:BatchDeleteClusterSnapshotsResponse' :: Maybe [SnapshotErrorMessage]
errors = Maybe [SnapshotErrorMessage]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:BatchDeleteClusterSnapshotsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
batchDeleteClusterSnapshotsResponse_resources :: Lens.Lens' BatchDeleteClusterSnapshotsResponse (Prelude.Maybe [Prelude.Text])
batchDeleteClusterSnapshotsResponse_resources :: (Maybe [Text] -> f (Maybe [Text]))
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse
batchDeleteClusterSnapshotsResponse_resources = (BatchDeleteClusterSnapshotsResponse -> Maybe [Text])
-> (BatchDeleteClusterSnapshotsResponse
-> Maybe [Text] -> BatchDeleteClusterSnapshotsResponse)
-> Lens
BatchDeleteClusterSnapshotsResponse
BatchDeleteClusterSnapshotsResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteClusterSnapshotsResponse' {Maybe [Text]
resources :: Maybe [Text]
$sel:resources:BatchDeleteClusterSnapshotsResponse' :: BatchDeleteClusterSnapshotsResponse -> Maybe [Text]
resources} -> Maybe [Text]
resources) (\s :: BatchDeleteClusterSnapshotsResponse
s@BatchDeleteClusterSnapshotsResponse' {} Maybe [Text]
a -> BatchDeleteClusterSnapshotsResponse
s {$sel:resources:BatchDeleteClusterSnapshotsResponse' :: Maybe [Text]
resources = Maybe [Text]
a} :: BatchDeleteClusterSnapshotsResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse
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
batchDeleteClusterSnapshotsResponse_errors :: Lens.Lens' BatchDeleteClusterSnapshotsResponse (Prelude.Maybe [SnapshotErrorMessage])
batchDeleteClusterSnapshotsResponse_errors :: (Maybe [SnapshotErrorMessage] -> f (Maybe [SnapshotErrorMessage]))
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse
batchDeleteClusterSnapshotsResponse_errors = (BatchDeleteClusterSnapshotsResponse
-> Maybe [SnapshotErrorMessage])
-> (BatchDeleteClusterSnapshotsResponse
-> Maybe [SnapshotErrorMessage]
-> BatchDeleteClusterSnapshotsResponse)
-> Lens
BatchDeleteClusterSnapshotsResponse
BatchDeleteClusterSnapshotsResponse
(Maybe [SnapshotErrorMessage])
(Maybe [SnapshotErrorMessage])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteClusterSnapshotsResponse' {Maybe [SnapshotErrorMessage]
errors :: Maybe [SnapshotErrorMessage]
$sel:errors:BatchDeleteClusterSnapshotsResponse' :: BatchDeleteClusterSnapshotsResponse -> Maybe [SnapshotErrorMessage]
errors} -> Maybe [SnapshotErrorMessage]
errors) (\s :: BatchDeleteClusterSnapshotsResponse
s@BatchDeleteClusterSnapshotsResponse' {} Maybe [SnapshotErrorMessage]
a -> BatchDeleteClusterSnapshotsResponse
s {$sel:errors:BatchDeleteClusterSnapshotsResponse' :: Maybe [SnapshotErrorMessage]
errors = Maybe [SnapshotErrorMessage]
a} :: BatchDeleteClusterSnapshotsResponse) ((Maybe [SnapshotErrorMessage] -> f (Maybe [SnapshotErrorMessage]))
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse)
-> ((Maybe [SnapshotErrorMessage]
-> f (Maybe [SnapshotErrorMessage]))
-> Maybe [SnapshotErrorMessage]
-> f (Maybe [SnapshotErrorMessage]))
-> (Maybe [SnapshotErrorMessage]
-> f (Maybe [SnapshotErrorMessage]))
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SnapshotErrorMessage]
[SnapshotErrorMessage]
[SnapshotErrorMessage]
[SnapshotErrorMessage]
-> Iso
(Maybe [SnapshotErrorMessage])
(Maybe [SnapshotErrorMessage])
(Maybe [SnapshotErrorMessage])
(Maybe [SnapshotErrorMessage])
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
[SnapshotErrorMessage]
[SnapshotErrorMessage]
[SnapshotErrorMessage]
[SnapshotErrorMessage]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
batchDeleteClusterSnapshotsResponse_httpStatus :: Lens.Lens' BatchDeleteClusterSnapshotsResponse Prelude.Int
batchDeleteClusterSnapshotsResponse_httpStatus :: (Int -> f Int)
-> BatchDeleteClusterSnapshotsResponse
-> f BatchDeleteClusterSnapshotsResponse
batchDeleteClusterSnapshotsResponse_httpStatus = (BatchDeleteClusterSnapshotsResponse -> Int)
-> (BatchDeleteClusterSnapshotsResponse
-> Int -> BatchDeleteClusterSnapshotsResponse)
-> Lens
BatchDeleteClusterSnapshotsResponse
BatchDeleteClusterSnapshotsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\BatchDeleteClusterSnapshotsResponse' {Int
httpStatus :: Int
$sel:httpStatus:BatchDeleteClusterSnapshotsResponse' :: BatchDeleteClusterSnapshotsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: BatchDeleteClusterSnapshotsResponse
s@BatchDeleteClusterSnapshotsResponse' {} Int
a -> BatchDeleteClusterSnapshotsResponse
s {$sel:httpStatus:BatchDeleteClusterSnapshotsResponse' :: Int
httpStatus = Int
a} :: BatchDeleteClusterSnapshotsResponse)
instance
Prelude.NFData
BatchDeleteClusterSnapshotsResponse