{-# 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.SSM.GetMaintenanceWindowExecution
(
GetMaintenanceWindowExecution (..),
newGetMaintenanceWindowExecution,
getMaintenanceWindowExecution_windowExecutionId,
GetMaintenanceWindowExecutionResponse (..),
newGetMaintenanceWindowExecutionResponse,
getMaintenanceWindowExecutionResponse_status,
getMaintenanceWindowExecutionResponse_startTime,
getMaintenanceWindowExecutionResponse_windowExecutionId,
getMaintenanceWindowExecutionResponse_statusDetails,
getMaintenanceWindowExecutionResponse_endTime,
getMaintenanceWindowExecutionResponse_taskIds,
getMaintenanceWindowExecutionResponse_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.SSM.Types
data GetMaintenanceWindowExecution = GetMaintenanceWindowExecution'
{
GetMaintenanceWindowExecution -> Text
windowExecutionId :: Prelude.Text
}
deriving (GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool
(GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool)
-> (GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool)
-> Eq GetMaintenanceWindowExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool
$c/= :: GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool
== :: GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool
$c== :: GetMaintenanceWindowExecution
-> GetMaintenanceWindowExecution -> Bool
Prelude.Eq, ReadPrec [GetMaintenanceWindowExecution]
ReadPrec GetMaintenanceWindowExecution
Int -> ReadS GetMaintenanceWindowExecution
ReadS [GetMaintenanceWindowExecution]
(Int -> ReadS GetMaintenanceWindowExecution)
-> ReadS [GetMaintenanceWindowExecution]
-> ReadPrec GetMaintenanceWindowExecution
-> ReadPrec [GetMaintenanceWindowExecution]
-> Read GetMaintenanceWindowExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMaintenanceWindowExecution]
$creadListPrec :: ReadPrec [GetMaintenanceWindowExecution]
readPrec :: ReadPrec GetMaintenanceWindowExecution
$creadPrec :: ReadPrec GetMaintenanceWindowExecution
readList :: ReadS [GetMaintenanceWindowExecution]
$creadList :: ReadS [GetMaintenanceWindowExecution]
readsPrec :: Int -> ReadS GetMaintenanceWindowExecution
$creadsPrec :: Int -> ReadS GetMaintenanceWindowExecution
Prelude.Read, Int -> GetMaintenanceWindowExecution -> ShowS
[GetMaintenanceWindowExecution] -> ShowS
GetMaintenanceWindowExecution -> String
(Int -> GetMaintenanceWindowExecution -> ShowS)
-> (GetMaintenanceWindowExecution -> String)
-> ([GetMaintenanceWindowExecution] -> ShowS)
-> Show GetMaintenanceWindowExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMaintenanceWindowExecution] -> ShowS
$cshowList :: [GetMaintenanceWindowExecution] -> ShowS
show :: GetMaintenanceWindowExecution -> String
$cshow :: GetMaintenanceWindowExecution -> String
showsPrec :: Int -> GetMaintenanceWindowExecution -> ShowS
$cshowsPrec :: Int -> GetMaintenanceWindowExecution -> ShowS
Prelude.Show, (forall x.
GetMaintenanceWindowExecution
-> Rep GetMaintenanceWindowExecution x)
-> (forall x.
Rep GetMaintenanceWindowExecution x
-> GetMaintenanceWindowExecution)
-> Generic GetMaintenanceWindowExecution
forall x.
Rep GetMaintenanceWindowExecution x
-> GetMaintenanceWindowExecution
forall x.
GetMaintenanceWindowExecution
-> Rep GetMaintenanceWindowExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMaintenanceWindowExecution x
-> GetMaintenanceWindowExecution
$cfrom :: forall x.
GetMaintenanceWindowExecution
-> Rep GetMaintenanceWindowExecution x
Prelude.Generic)
newGetMaintenanceWindowExecution ::
Prelude.Text ->
GetMaintenanceWindowExecution
newGetMaintenanceWindowExecution :: Text -> GetMaintenanceWindowExecution
newGetMaintenanceWindowExecution Text
pWindowExecutionId_ =
GetMaintenanceWindowExecution' :: Text -> GetMaintenanceWindowExecution
GetMaintenanceWindowExecution'
{ $sel:windowExecutionId:GetMaintenanceWindowExecution' :: Text
windowExecutionId =
Text
pWindowExecutionId_
}
getMaintenanceWindowExecution_windowExecutionId :: Lens.Lens' GetMaintenanceWindowExecution Prelude.Text
getMaintenanceWindowExecution_windowExecutionId :: (Text -> f Text)
-> GetMaintenanceWindowExecution -> f GetMaintenanceWindowExecution
getMaintenanceWindowExecution_windowExecutionId = (GetMaintenanceWindowExecution -> Text)
-> (GetMaintenanceWindowExecution
-> Text -> GetMaintenanceWindowExecution)
-> Lens
GetMaintenanceWindowExecution
GetMaintenanceWindowExecution
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecution' {Text
windowExecutionId :: Text
$sel:windowExecutionId:GetMaintenanceWindowExecution' :: GetMaintenanceWindowExecution -> Text
windowExecutionId} -> Text
windowExecutionId) (\s :: GetMaintenanceWindowExecution
s@GetMaintenanceWindowExecution' {} Text
a -> GetMaintenanceWindowExecution
s {$sel:windowExecutionId:GetMaintenanceWindowExecution' :: Text
windowExecutionId = Text
a} :: GetMaintenanceWindowExecution)
instance
Core.AWSRequest
GetMaintenanceWindowExecution
where
type
AWSResponse GetMaintenanceWindowExecution =
GetMaintenanceWindowExecutionResponse
request :: GetMaintenanceWindowExecution
-> Request GetMaintenanceWindowExecution
request = Service
-> GetMaintenanceWindowExecution
-> Request GetMaintenanceWindowExecution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetMaintenanceWindowExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMaintenanceWindowExecution)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetMaintenanceWindowExecution))
-> Logger
-> Service
-> Proxy GetMaintenanceWindowExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetMaintenanceWindowExecution)))
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 MaintenanceWindowExecutionStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse'
(Maybe MaintenanceWindowExecutionStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
-> Either String (Maybe MaintenanceWindowExecutionStatus)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe MaintenanceWindowExecutionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StartTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
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
"WindowExecutionId")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe [Text] -> Int -> GetMaintenanceWindowExecutionResponse)
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
"StatusDetails")
Either
String
(Maybe POSIX
-> Maybe [Text] -> Int -> GetMaintenanceWindowExecutionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe [Text] -> Int -> GetMaintenanceWindowExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EndTime")
Either
String
(Maybe [Text] -> Int -> GetMaintenanceWindowExecutionResponse)
-> Either String (Maybe [Text])
-> Either String (Int -> GetMaintenanceWindowExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"TaskIds" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetMaintenanceWindowExecutionResponse)
-> Either String Int
-> Either String GetMaintenanceWindowExecutionResponse
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
GetMaintenanceWindowExecution
instance Prelude.NFData GetMaintenanceWindowExecution
instance Core.ToHeaders GetMaintenanceWindowExecution where
toHeaders :: GetMaintenanceWindowExecution -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetMaintenanceWindowExecution -> 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
"AmazonSSM.GetMaintenanceWindowExecution" ::
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 GetMaintenanceWindowExecution where
toJSON :: GetMaintenanceWindowExecution -> Value
toJSON GetMaintenanceWindowExecution' {Text
windowExecutionId :: Text
$sel:windowExecutionId:GetMaintenanceWindowExecution' :: GetMaintenanceWindowExecution -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"WindowExecutionId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
windowExecutionId)
]
)
instance Core.ToPath GetMaintenanceWindowExecution where
toPath :: GetMaintenanceWindowExecution -> ByteString
toPath = ByteString -> GetMaintenanceWindowExecution -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetMaintenanceWindowExecution where
toQuery :: GetMaintenanceWindowExecution -> QueryString
toQuery = QueryString -> GetMaintenanceWindowExecution -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetMaintenanceWindowExecutionResponse = GetMaintenanceWindowExecutionResponse'
{
GetMaintenanceWindowExecutionResponse
-> Maybe MaintenanceWindowExecutionStatus
status :: Prelude.Maybe MaintenanceWindowExecutionStatus,
GetMaintenanceWindowExecutionResponse -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
GetMaintenanceWindowExecutionResponse -> Maybe Text
windowExecutionId :: Prelude.Maybe Prelude.Text,
GetMaintenanceWindowExecutionResponse -> Maybe Text
statusDetails :: Prelude.Maybe Prelude.Text,
GetMaintenanceWindowExecutionResponse -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
GetMaintenanceWindowExecutionResponse -> Maybe [Text]
taskIds :: Prelude.Maybe [Prelude.Text],
GetMaintenanceWindowExecutionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool
(GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool)
-> (GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool)
-> Eq GetMaintenanceWindowExecutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool
$c/= :: GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool
== :: GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool
$c== :: GetMaintenanceWindowExecutionResponse
-> GetMaintenanceWindowExecutionResponse -> Bool
Prelude.Eq, ReadPrec [GetMaintenanceWindowExecutionResponse]
ReadPrec GetMaintenanceWindowExecutionResponse
Int -> ReadS GetMaintenanceWindowExecutionResponse
ReadS [GetMaintenanceWindowExecutionResponse]
(Int -> ReadS GetMaintenanceWindowExecutionResponse)
-> ReadS [GetMaintenanceWindowExecutionResponse]
-> ReadPrec GetMaintenanceWindowExecutionResponse
-> ReadPrec [GetMaintenanceWindowExecutionResponse]
-> Read GetMaintenanceWindowExecutionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMaintenanceWindowExecutionResponse]
$creadListPrec :: ReadPrec [GetMaintenanceWindowExecutionResponse]
readPrec :: ReadPrec GetMaintenanceWindowExecutionResponse
$creadPrec :: ReadPrec GetMaintenanceWindowExecutionResponse
readList :: ReadS [GetMaintenanceWindowExecutionResponse]
$creadList :: ReadS [GetMaintenanceWindowExecutionResponse]
readsPrec :: Int -> ReadS GetMaintenanceWindowExecutionResponse
$creadsPrec :: Int -> ReadS GetMaintenanceWindowExecutionResponse
Prelude.Read, Int -> GetMaintenanceWindowExecutionResponse -> ShowS
[GetMaintenanceWindowExecutionResponse] -> ShowS
GetMaintenanceWindowExecutionResponse -> String
(Int -> GetMaintenanceWindowExecutionResponse -> ShowS)
-> (GetMaintenanceWindowExecutionResponse -> String)
-> ([GetMaintenanceWindowExecutionResponse] -> ShowS)
-> Show GetMaintenanceWindowExecutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMaintenanceWindowExecutionResponse] -> ShowS
$cshowList :: [GetMaintenanceWindowExecutionResponse] -> ShowS
show :: GetMaintenanceWindowExecutionResponse -> String
$cshow :: GetMaintenanceWindowExecutionResponse -> String
showsPrec :: Int -> GetMaintenanceWindowExecutionResponse -> ShowS
$cshowsPrec :: Int -> GetMaintenanceWindowExecutionResponse -> ShowS
Prelude.Show, (forall x.
GetMaintenanceWindowExecutionResponse
-> Rep GetMaintenanceWindowExecutionResponse x)
-> (forall x.
Rep GetMaintenanceWindowExecutionResponse x
-> GetMaintenanceWindowExecutionResponse)
-> Generic GetMaintenanceWindowExecutionResponse
forall x.
Rep GetMaintenanceWindowExecutionResponse x
-> GetMaintenanceWindowExecutionResponse
forall x.
GetMaintenanceWindowExecutionResponse
-> Rep GetMaintenanceWindowExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetMaintenanceWindowExecutionResponse x
-> GetMaintenanceWindowExecutionResponse
$cfrom :: forall x.
GetMaintenanceWindowExecutionResponse
-> Rep GetMaintenanceWindowExecutionResponse x
Prelude.Generic)
newGetMaintenanceWindowExecutionResponse ::
Prelude.Int ->
GetMaintenanceWindowExecutionResponse
newGetMaintenanceWindowExecutionResponse :: Int -> GetMaintenanceWindowExecutionResponse
newGetMaintenanceWindowExecutionResponse Int
pHttpStatus_ =
GetMaintenanceWindowExecutionResponse' :: Maybe MaintenanceWindowExecutionStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe [Text]
-> Int
-> GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse'
{ $sel:status:GetMaintenanceWindowExecutionResponse' :: Maybe MaintenanceWindowExecutionStatus
status =
Maybe MaintenanceWindowExecutionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:GetMaintenanceWindowExecutionResponse' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:windowExecutionId:GetMaintenanceWindowExecutionResponse' :: Maybe Text
windowExecutionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:statusDetails:GetMaintenanceWindowExecutionResponse' :: Maybe Text
statusDetails = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:GetMaintenanceWindowExecutionResponse' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:taskIds:GetMaintenanceWindowExecutionResponse' :: Maybe [Text]
taskIds = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetMaintenanceWindowExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getMaintenanceWindowExecutionResponse_status :: Lens.Lens' GetMaintenanceWindowExecutionResponse (Prelude.Maybe MaintenanceWindowExecutionStatus)
getMaintenanceWindowExecutionResponse_status :: (Maybe MaintenanceWindowExecutionStatus
-> f (Maybe MaintenanceWindowExecutionStatus))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_status = (GetMaintenanceWindowExecutionResponse
-> Maybe MaintenanceWindowExecutionStatus)
-> (GetMaintenanceWindowExecutionResponse
-> Maybe MaintenanceWindowExecutionStatus
-> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
(Maybe MaintenanceWindowExecutionStatus)
(Maybe MaintenanceWindowExecutionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Maybe MaintenanceWindowExecutionStatus
status :: Maybe MaintenanceWindowExecutionStatus
$sel:status:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse
-> Maybe MaintenanceWindowExecutionStatus
status} -> Maybe MaintenanceWindowExecutionStatus
status) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Maybe MaintenanceWindowExecutionStatus
a -> GetMaintenanceWindowExecutionResponse
s {$sel:status:GetMaintenanceWindowExecutionResponse' :: Maybe MaintenanceWindowExecutionStatus
status = Maybe MaintenanceWindowExecutionStatus
a} :: GetMaintenanceWindowExecutionResponse)
getMaintenanceWindowExecutionResponse_startTime :: Lens.Lens' GetMaintenanceWindowExecutionResponse (Prelude.Maybe Prelude.UTCTime)
getMaintenanceWindowExecutionResponse_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_startTime = (GetMaintenanceWindowExecutionResponse -> Maybe POSIX)
-> (GetMaintenanceWindowExecutionResponse
-> Maybe POSIX -> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Maybe POSIX
a -> GetMaintenanceWindowExecutionResponse
s {$sel:startTime:GetMaintenanceWindowExecutionResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: GetMaintenanceWindowExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getMaintenanceWindowExecutionResponse_windowExecutionId :: Lens.Lens' GetMaintenanceWindowExecutionResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionResponse_windowExecutionId :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_windowExecutionId = (GetMaintenanceWindowExecutionResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionResponse
-> Maybe Text -> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Maybe Text
windowExecutionId :: Maybe Text
$sel:windowExecutionId:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse -> Maybe Text
windowExecutionId} -> Maybe Text
windowExecutionId) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionResponse
s {$sel:windowExecutionId:GetMaintenanceWindowExecutionResponse' :: Maybe Text
windowExecutionId = Maybe Text
a} :: GetMaintenanceWindowExecutionResponse)
getMaintenanceWindowExecutionResponse_statusDetails :: Lens.Lens' GetMaintenanceWindowExecutionResponse (Prelude.Maybe Prelude.Text)
getMaintenanceWindowExecutionResponse_statusDetails :: (Maybe Text -> f (Maybe Text))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_statusDetails = (GetMaintenanceWindowExecutionResponse -> Maybe Text)
-> (GetMaintenanceWindowExecutionResponse
-> Maybe Text -> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Maybe Text
statusDetails :: Maybe Text
$sel:statusDetails:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse -> Maybe Text
statusDetails} -> Maybe Text
statusDetails) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Maybe Text
a -> GetMaintenanceWindowExecutionResponse
s {$sel:statusDetails:GetMaintenanceWindowExecutionResponse' :: Maybe Text
statusDetails = Maybe Text
a} :: GetMaintenanceWindowExecutionResponse)
getMaintenanceWindowExecutionResponse_endTime :: Lens.Lens' GetMaintenanceWindowExecutionResponse (Prelude.Maybe Prelude.UTCTime)
getMaintenanceWindowExecutionResponse_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_endTime = (GetMaintenanceWindowExecutionResponse -> Maybe POSIX)
-> (GetMaintenanceWindowExecutionResponse
-> Maybe POSIX -> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Maybe POSIX
a -> GetMaintenanceWindowExecutionResponse
s {$sel:endTime:GetMaintenanceWindowExecutionResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: GetMaintenanceWindowExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
getMaintenanceWindowExecutionResponse_taskIds :: Lens.Lens' GetMaintenanceWindowExecutionResponse (Prelude.Maybe [Prelude.Text])
getMaintenanceWindowExecutionResponse_taskIds :: (Maybe [Text] -> f (Maybe [Text]))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_taskIds = (GetMaintenanceWindowExecutionResponse -> Maybe [Text])
-> (GetMaintenanceWindowExecutionResponse
-> Maybe [Text] -> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Maybe [Text]
taskIds :: Maybe [Text]
$sel:taskIds:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse -> Maybe [Text]
taskIds} -> Maybe [Text]
taskIds) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Maybe [Text]
a -> GetMaintenanceWindowExecutionResponse
s {$sel:taskIds:GetMaintenanceWindowExecutionResponse' :: Maybe [Text]
taskIds = Maybe [Text]
a} :: GetMaintenanceWindowExecutionResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
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
getMaintenanceWindowExecutionResponse_httpStatus :: Lens.Lens' GetMaintenanceWindowExecutionResponse Prelude.Int
getMaintenanceWindowExecutionResponse_httpStatus :: (Int -> f Int)
-> GetMaintenanceWindowExecutionResponse
-> f GetMaintenanceWindowExecutionResponse
getMaintenanceWindowExecutionResponse_httpStatus = (GetMaintenanceWindowExecutionResponse -> Int)
-> (GetMaintenanceWindowExecutionResponse
-> Int -> GetMaintenanceWindowExecutionResponse)
-> Lens
GetMaintenanceWindowExecutionResponse
GetMaintenanceWindowExecutionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMaintenanceWindowExecutionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMaintenanceWindowExecutionResponse' :: GetMaintenanceWindowExecutionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMaintenanceWindowExecutionResponse
s@GetMaintenanceWindowExecutionResponse' {} Int
a -> GetMaintenanceWindowExecutionResponse
s {$sel:httpStatus:GetMaintenanceWindowExecutionResponse' :: Int
httpStatus = Int
a} :: GetMaintenanceWindowExecutionResponse)
instance
Prelude.NFData
GetMaintenanceWindowExecutionResponse