{-# 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.DMS.DescribePendingMaintenanceActions
(
DescribePendingMaintenanceActions (..),
newDescribePendingMaintenanceActions,
describePendingMaintenanceActions_filters,
describePendingMaintenanceActions_marker,
describePendingMaintenanceActions_maxRecords,
describePendingMaintenanceActions_replicationInstanceArn,
DescribePendingMaintenanceActionsResponse (..),
newDescribePendingMaintenanceActionsResponse,
describePendingMaintenanceActionsResponse_pendingMaintenanceActions,
describePendingMaintenanceActionsResponse_marker,
describePendingMaintenanceActionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DMS.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 DescribePendingMaintenanceActions = DescribePendingMaintenanceActions'
{ DescribePendingMaintenanceActions -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
DescribePendingMaintenanceActions -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribePendingMaintenanceActions -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
DescribePendingMaintenanceActions -> Maybe Text
replicationInstanceArn :: Prelude.Maybe Prelude.Text
}
deriving (DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool
(DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool)
-> (DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool)
-> Eq DescribePendingMaintenanceActions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool
$c/= :: DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool
== :: DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool
$c== :: DescribePendingMaintenanceActions
-> DescribePendingMaintenanceActions -> Bool
Prelude.Eq, ReadPrec [DescribePendingMaintenanceActions]
ReadPrec DescribePendingMaintenanceActions
Int -> ReadS DescribePendingMaintenanceActions
ReadS [DescribePendingMaintenanceActions]
(Int -> ReadS DescribePendingMaintenanceActions)
-> ReadS [DescribePendingMaintenanceActions]
-> ReadPrec DescribePendingMaintenanceActions
-> ReadPrec [DescribePendingMaintenanceActions]
-> Read DescribePendingMaintenanceActions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePendingMaintenanceActions]
$creadListPrec :: ReadPrec [DescribePendingMaintenanceActions]
readPrec :: ReadPrec DescribePendingMaintenanceActions
$creadPrec :: ReadPrec DescribePendingMaintenanceActions
readList :: ReadS [DescribePendingMaintenanceActions]
$creadList :: ReadS [DescribePendingMaintenanceActions]
readsPrec :: Int -> ReadS DescribePendingMaintenanceActions
$creadsPrec :: Int -> ReadS DescribePendingMaintenanceActions
Prelude.Read, Int -> DescribePendingMaintenanceActions -> ShowS
[DescribePendingMaintenanceActions] -> ShowS
DescribePendingMaintenanceActions -> String
(Int -> DescribePendingMaintenanceActions -> ShowS)
-> (DescribePendingMaintenanceActions -> String)
-> ([DescribePendingMaintenanceActions] -> ShowS)
-> Show DescribePendingMaintenanceActions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePendingMaintenanceActions] -> ShowS
$cshowList :: [DescribePendingMaintenanceActions] -> ShowS
show :: DescribePendingMaintenanceActions -> String
$cshow :: DescribePendingMaintenanceActions -> String
showsPrec :: Int -> DescribePendingMaintenanceActions -> ShowS
$cshowsPrec :: Int -> DescribePendingMaintenanceActions -> ShowS
Prelude.Show, (forall x.
DescribePendingMaintenanceActions
-> Rep DescribePendingMaintenanceActions x)
-> (forall x.
Rep DescribePendingMaintenanceActions x
-> DescribePendingMaintenanceActions)
-> Generic DescribePendingMaintenanceActions
forall x.
Rep DescribePendingMaintenanceActions x
-> DescribePendingMaintenanceActions
forall x.
DescribePendingMaintenanceActions
-> Rep DescribePendingMaintenanceActions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePendingMaintenanceActions x
-> DescribePendingMaintenanceActions
$cfrom :: forall x.
DescribePendingMaintenanceActions
-> Rep DescribePendingMaintenanceActions x
Prelude.Generic)
newDescribePendingMaintenanceActions ::
DescribePendingMaintenanceActions
newDescribePendingMaintenanceActions :: DescribePendingMaintenanceActions
newDescribePendingMaintenanceActions =
DescribePendingMaintenanceActions' :: Maybe [Filter]
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> DescribePendingMaintenanceActions
DescribePendingMaintenanceActions'
{ $sel:filters:DescribePendingMaintenanceActions' :: Maybe [Filter]
filters =
Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribePendingMaintenanceActions' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxRecords:DescribePendingMaintenanceActions' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:replicationInstanceArn:DescribePendingMaintenanceActions' :: Maybe Text
replicationInstanceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
describePendingMaintenanceActions_filters :: Lens.Lens' DescribePendingMaintenanceActions (Prelude.Maybe [Filter])
describePendingMaintenanceActions_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribePendingMaintenanceActions
-> f DescribePendingMaintenanceActions
describePendingMaintenanceActions_filters = (DescribePendingMaintenanceActions -> Maybe [Filter])
-> (DescribePendingMaintenanceActions
-> Maybe [Filter] -> DescribePendingMaintenanceActions)
-> Lens
DescribePendingMaintenanceActions
DescribePendingMaintenanceActions
(Maybe [Filter])
(Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActions' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: DescribePendingMaintenanceActions
s@DescribePendingMaintenanceActions' {} Maybe [Filter]
a -> DescribePendingMaintenanceActions
s {$sel:filters:DescribePendingMaintenanceActions' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: DescribePendingMaintenanceActions) ((Maybe [Filter] -> f (Maybe [Filter]))
-> DescribePendingMaintenanceActions
-> f DescribePendingMaintenanceActions)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
-> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> DescribePendingMaintenanceActions
-> f DescribePendingMaintenanceActions
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
(Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describePendingMaintenanceActions_marker :: Lens.Lens' DescribePendingMaintenanceActions (Prelude.Maybe Prelude.Text)
describePendingMaintenanceActions_marker :: (Maybe Text -> f (Maybe Text))
-> DescribePendingMaintenanceActions
-> f DescribePendingMaintenanceActions
describePendingMaintenanceActions_marker = (DescribePendingMaintenanceActions -> Maybe Text)
-> (DescribePendingMaintenanceActions
-> Maybe Text -> DescribePendingMaintenanceActions)
-> Lens
DescribePendingMaintenanceActions
DescribePendingMaintenanceActions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActions' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribePendingMaintenanceActions
s@DescribePendingMaintenanceActions' {} Maybe Text
a -> DescribePendingMaintenanceActions
s {$sel:marker:DescribePendingMaintenanceActions' :: Maybe Text
marker = Maybe Text
a} :: DescribePendingMaintenanceActions)
describePendingMaintenanceActions_maxRecords :: Lens.Lens' DescribePendingMaintenanceActions (Prelude.Maybe Prelude.Int)
describePendingMaintenanceActions_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribePendingMaintenanceActions
-> f DescribePendingMaintenanceActions
describePendingMaintenanceActions_maxRecords = (DescribePendingMaintenanceActions -> Maybe Int)
-> (DescribePendingMaintenanceActions
-> Maybe Int -> DescribePendingMaintenanceActions)
-> Lens
DescribePendingMaintenanceActions
DescribePendingMaintenanceActions
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActions' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribePendingMaintenanceActions
s@DescribePendingMaintenanceActions' {} Maybe Int
a -> DescribePendingMaintenanceActions
s {$sel:maxRecords:DescribePendingMaintenanceActions' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribePendingMaintenanceActions)
describePendingMaintenanceActions_replicationInstanceArn :: Lens.Lens' DescribePendingMaintenanceActions (Prelude.Maybe Prelude.Text)
describePendingMaintenanceActions_replicationInstanceArn :: (Maybe Text -> f (Maybe Text))
-> DescribePendingMaintenanceActions
-> f DescribePendingMaintenanceActions
describePendingMaintenanceActions_replicationInstanceArn = (DescribePendingMaintenanceActions -> Maybe Text)
-> (DescribePendingMaintenanceActions
-> Maybe Text -> DescribePendingMaintenanceActions)
-> Lens
DescribePendingMaintenanceActions
DescribePendingMaintenanceActions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActions' {Maybe Text
replicationInstanceArn :: Maybe Text
$sel:replicationInstanceArn:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe Text
replicationInstanceArn} -> Maybe Text
replicationInstanceArn) (\s :: DescribePendingMaintenanceActions
s@DescribePendingMaintenanceActions' {} Maybe Text
a -> DescribePendingMaintenanceActions
s {$sel:replicationInstanceArn:DescribePendingMaintenanceActions' :: Maybe Text
replicationInstanceArn = Maybe Text
a} :: DescribePendingMaintenanceActions)
instance
Core.AWSRequest
DescribePendingMaintenanceActions
where
type
AWSResponse DescribePendingMaintenanceActions =
DescribePendingMaintenanceActionsResponse
request :: DescribePendingMaintenanceActions
-> Request DescribePendingMaintenanceActions
request = Service
-> DescribePendingMaintenanceActions
-> Request DescribePendingMaintenanceActions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribePendingMaintenanceActions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribePendingMaintenanceActions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribePendingMaintenanceActions))
-> Logger
-> Service
-> Proxy DescribePendingMaintenanceActions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribePendingMaintenanceActions)))
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 [ResourcePendingMaintenanceActions]
-> Maybe Text -> Int -> DescribePendingMaintenanceActionsResponse
DescribePendingMaintenanceActionsResponse'
(Maybe [ResourcePendingMaintenanceActions]
-> Maybe Text -> Int -> DescribePendingMaintenanceActionsResponse)
-> Either String (Maybe [ResourcePendingMaintenanceActions])
-> Either
String
(Maybe Text -> Int -> DescribePendingMaintenanceActionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either
String (Maybe (Maybe [ResourcePendingMaintenanceActions]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PendingMaintenanceActions"
Either String (Maybe (Maybe [ResourcePendingMaintenanceActions]))
-> Maybe [ResourcePendingMaintenanceActions]
-> Either String (Maybe [ResourcePendingMaintenanceActions])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ResourcePendingMaintenanceActions]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe Text -> Int -> DescribePendingMaintenanceActionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribePendingMaintenanceActionsResponse)
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
"Marker")
Either String (Int -> DescribePendingMaintenanceActionsResponse)
-> Either String Int
-> Either String DescribePendingMaintenanceActionsResponse
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
DescribePendingMaintenanceActions
instance
Prelude.NFData
DescribePendingMaintenanceActions
instance
Core.ToHeaders
DescribePendingMaintenanceActions
where
toHeaders :: DescribePendingMaintenanceActions -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribePendingMaintenanceActions -> 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
"AmazonDMSv20160101.DescribePendingMaintenanceActions" ::
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
DescribePendingMaintenanceActions
where
toJSON :: DescribePendingMaintenanceActions -> Value
toJSON DescribePendingMaintenanceActions' {Maybe Int
Maybe [Filter]
Maybe Text
replicationInstanceArn :: Maybe Text
maxRecords :: Maybe Int
marker :: Maybe Text
filters :: Maybe [Filter]
$sel:replicationInstanceArn:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe Text
$sel:maxRecords:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe Int
$sel:marker:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe Text
$sel:filters:DescribePendingMaintenanceActions' :: DescribePendingMaintenanceActions -> Maybe [Filter]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
(Text
"Marker" 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
marker,
(Text
"MaxRecords" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxRecords,
(Text
"ReplicationInstanceArn" 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
replicationInstanceArn
]
)
instance
Core.ToPath
DescribePendingMaintenanceActions
where
toPath :: DescribePendingMaintenanceActions -> ByteString
toPath = ByteString -> DescribePendingMaintenanceActions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
DescribePendingMaintenanceActions
where
toQuery :: DescribePendingMaintenanceActions -> QueryString
toQuery = QueryString -> DescribePendingMaintenanceActions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribePendingMaintenanceActionsResponse = DescribePendingMaintenanceActionsResponse'
{
DescribePendingMaintenanceActionsResponse
-> Maybe [ResourcePendingMaintenanceActions]
pendingMaintenanceActions :: Prelude.Maybe [ResourcePendingMaintenanceActions],
DescribePendingMaintenanceActionsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribePendingMaintenanceActionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool
(DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool)
-> (DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool)
-> Eq DescribePendingMaintenanceActionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool
$c/= :: DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool
== :: DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool
$c== :: DescribePendingMaintenanceActionsResponse
-> DescribePendingMaintenanceActionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribePendingMaintenanceActionsResponse]
ReadPrec DescribePendingMaintenanceActionsResponse
Int -> ReadS DescribePendingMaintenanceActionsResponse
ReadS [DescribePendingMaintenanceActionsResponse]
(Int -> ReadS DescribePendingMaintenanceActionsResponse)
-> ReadS [DescribePendingMaintenanceActionsResponse]
-> ReadPrec DescribePendingMaintenanceActionsResponse
-> ReadPrec [DescribePendingMaintenanceActionsResponse]
-> Read DescribePendingMaintenanceActionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePendingMaintenanceActionsResponse]
$creadListPrec :: ReadPrec [DescribePendingMaintenanceActionsResponse]
readPrec :: ReadPrec DescribePendingMaintenanceActionsResponse
$creadPrec :: ReadPrec DescribePendingMaintenanceActionsResponse
readList :: ReadS [DescribePendingMaintenanceActionsResponse]
$creadList :: ReadS [DescribePendingMaintenanceActionsResponse]
readsPrec :: Int -> ReadS DescribePendingMaintenanceActionsResponse
$creadsPrec :: Int -> ReadS DescribePendingMaintenanceActionsResponse
Prelude.Read, Int -> DescribePendingMaintenanceActionsResponse -> ShowS
[DescribePendingMaintenanceActionsResponse] -> ShowS
DescribePendingMaintenanceActionsResponse -> String
(Int -> DescribePendingMaintenanceActionsResponse -> ShowS)
-> (DescribePendingMaintenanceActionsResponse -> String)
-> ([DescribePendingMaintenanceActionsResponse] -> ShowS)
-> Show DescribePendingMaintenanceActionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePendingMaintenanceActionsResponse] -> ShowS
$cshowList :: [DescribePendingMaintenanceActionsResponse] -> ShowS
show :: DescribePendingMaintenanceActionsResponse -> String
$cshow :: DescribePendingMaintenanceActionsResponse -> String
showsPrec :: Int -> DescribePendingMaintenanceActionsResponse -> ShowS
$cshowsPrec :: Int -> DescribePendingMaintenanceActionsResponse -> ShowS
Prelude.Show, (forall x.
DescribePendingMaintenanceActionsResponse
-> Rep DescribePendingMaintenanceActionsResponse x)
-> (forall x.
Rep DescribePendingMaintenanceActionsResponse x
-> DescribePendingMaintenanceActionsResponse)
-> Generic DescribePendingMaintenanceActionsResponse
forall x.
Rep DescribePendingMaintenanceActionsResponse x
-> DescribePendingMaintenanceActionsResponse
forall x.
DescribePendingMaintenanceActionsResponse
-> Rep DescribePendingMaintenanceActionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePendingMaintenanceActionsResponse x
-> DescribePendingMaintenanceActionsResponse
$cfrom :: forall x.
DescribePendingMaintenanceActionsResponse
-> Rep DescribePendingMaintenanceActionsResponse x
Prelude.Generic)
newDescribePendingMaintenanceActionsResponse ::
Prelude.Int ->
DescribePendingMaintenanceActionsResponse
newDescribePendingMaintenanceActionsResponse :: Int -> DescribePendingMaintenanceActionsResponse
newDescribePendingMaintenanceActionsResponse
Int
pHttpStatus_ =
DescribePendingMaintenanceActionsResponse' :: Maybe [ResourcePendingMaintenanceActions]
-> Maybe Text -> Int -> DescribePendingMaintenanceActionsResponse
DescribePendingMaintenanceActionsResponse'
{ $sel:pendingMaintenanceActions:DescribePendingMaintenanceActionsResponse' :: Maybe [ResourcePendingMaintenanceActions]
pendingMaintenanceActions =
Maybe [ResourcePendingMaintenanceActions]
forall a. Maybe a
Prelude.Nothing,
$sel:marker:DescribePendingMaintenanceActionsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribePendingMaintenanceActionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describePendingMaintenanceActionsResponse_pendingMaintenanceActions :: Lens.Lens' DescribePendingMaintenanceActionsResponse (Prelude.Maybe [ResourcePendingMaintenanceActions])
describePendingMaintenanceActionsResponse_pendingMaintenanceActions :: (Maybe [ResourcePendingMaintenanceActions]
-> f (Maybe [ResourcePendingMaintenanceActions]))
-> DescribePendingMaintenanceActionsResponse
-> f DescribePendingMaintenanceActionsResponse
describePendingMaintenanceActionsResponse_pendingMaintenanceActions = (DescribePendingMaintenanceActionsResponse
-> Maybe [ResourcePendingMaintenanceActions])
-> (DescribePendingMaintenanceActionsResponse
-> Maybe [ResourcePendingMaintenanceActions]
-> DescribePendingMaintenanceActionsResponse)
-> Lens
DescribePendingMaintenanceActionsResponse
DescribePendingMaintenanceActionsResponse
(Maybe [ResourcePendingMaintenanceActions])
(Maybe [ResourcePendingMaintenanceActions])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActionsResponse' {Maybe [ResourcePendingMaintenanceActions]
pendingMaintenanceActions :: Maybe [ResourcePendingMaintenanceActions]
$sel:pendingMaintenanceActions:DescribePendingMaintenanceActionsResponse' :: DescribePendingMaintenanceActionsResponse
-> Maybe [ResourcePendingMaintenanceActions]
pendingMaintenanceActions} -> Maybe [ResourcePendingMaintenanceActions]
pendingMaintenanceActions) (\s :: DescribePendingMaintenanceActionsResponse
s@DescribePendingMaintenanceActionsResponse' {} Maybe [ResourcePendingMaintenanceActions]
a -> DescribePendingMaintenanceActionsResponse
s {$sel:pendingMaintenanceActions:DescribePendingMaintenanceActionsResponse' :: Maybe [ResourcePendingMaintenanceActions]
pendingMaintenanceActions = Maybe [ResourcePendingMaintenanceActions]
a} :: DescribePendingMaintenanceActionsResponse) ((Maybe [ResourcePendingMaintenanceActions]
-> f (Maybe [ResourcePendingMaintenanceActions]))
-> DescribePendingMaintenanceActionsResponse
-> f DescribePendingMaintenanceActionsResponse)
-> ((Maybe [ResourcePendingMaintenanceActions]
-> f (Maybe [ResourcePendingMaintenanceActions]))
-> Maybe [ResourcePendingMaintenanceActions]
-> f (Maybe [ResourcePendingMaintenanceActions]))
-> (Maybe [ResourcePendingMaintenanceActions]
-> f (Maybe [ResourcePendingMaintenanceActions]))
-> DescribePendingMaintenanceActionsResponse
-> f DescribePendingMaintenanceActionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ResourcePendingMaintenanceActions]
[ResourcePendingMaintenanceActions]
[ResourcePendingMaintenanceActions]
[ResourcePendingMaintenanceActions]
-> Iso
(Maybe [ResourcePendingMaintenanceActions])
(Maybe [ResourcePendingMaintenanceActions])
(Maybe [ResourcePendingMaintenanceActions])
(Maybe [ResourcePendingMaintenanceActions])
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
[ResourcePendingMaintenanceActions]
[ResourcePendingMaintenanceActions]
[ResourcePendingMaintenanceActions]
[ResourcePendingMaintenanceActions]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describePendingMaintenanceActionsResponse_marker :: Lens.Lens' DescribePendingMaintenanceActionsResponse (Prelude.Maybe Prelude.Text)
describePendingMaintenanceActionsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribePendingMaintenanceActionsResponse
-> f DescribePendingMaintenanceActionsResponse
describePendingMaintenanceActionsResponse_marker = (DescribePendingMaintenanceActionsResponse -> Maybe Text)
-> (DescribePendingMaintenanceActionsResponse
-> Maybe Text -> DescribePendingMaintenanceActionsResponse)
-> Lens
DescribePendingMaintenanceActionsResponse
DescribePendingMaintenanceActionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActionsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribePendingMaintenanceActionsResponse' :: DescribePendingMaintenanceActionsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribePendingMaintenanceActionsResponse
s@DescribePendingMaintenanceActionsResponse' {} Maybe Text
a -> DescribePendingMaintenanceActionsResponse
s {$sel:marker:DescribePendingMaintenanceActionsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribePendingMaintenanceActionsResponse)
describePendingMaintenanceActionsResponse_httpStatus :: Lens.Lens' DescribePendingMaintenanceActionsResponse Prelude.Int
describePendingMaintenanceActionsResponse_httpStatus :: (Int -> f Int)
-> DescribePendingMaintenanceActionsResponse
-> f DescribePendingMaintenanceActionsResponse
describePendingMaintenanceActionsResponse_httpStatus = (DescribePendingMaintenanceActionsResponse -> Int)
-> (DescribePendingMaintenanceActionsResponse
-> Int -> DescribePendingMaintenanceActionsResponse)
-> Lens
DescribePendingMaintenanceActionsResponse
DescribePendingMaintenanceActionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePendingMaintenanceActionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribePendingMaintenanceActionsResponse' :: DescribePendingMaintenanceActionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribePendingMaintenanceActionsResponse
s@DescribePendingMaintenanceActionsResponse' {} Int
a -> DescribePendingMaintenanceActionsResponse
s {$sel:httpStatus:DescribePendingMaintenanceActionsResponse' :: Int
httpStatus = Int
a} :: DescribePendingMaintenanceActionsResponse)
instance
Prelude.NFData
DescribePendingMaintenanceActionsResponse