{-# 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.GetCommandInvocation
(
GetCommandInvocation (..),
newGetCommandInvocation,
getCommandInvocation_pluginName,
getCommandInvocation_commandId,
getCommandInvocation_instanceId,
GetCommandInvocationResponse (..),
newGetCommandInvocationResponse,
getCommandInvocationResponse_instanceId,
getCommandInvocationResponse_status,
getCommandInvocationResponse_standardErrorContent,
getCommandInvocationResponse_cloudWatchOutputConfig,
getCommandInvocationResponse_executionElapsedTime,
getCommandInvocationResponse_documentName,
getCommandInvocationResponse_standardErrorUrl,
getCommandInvocationResponse_executionStartDateTime,
getCommandInvocationResponse_responseCode,
getCommandInvocationResponse_statusDetails,
getCommandInvocationResponse_executionEndDateTime,
getCommandInvocationResponse_standardOutputUrl,
getCommandInvocationResponse_commandId,
getCommandInvocationResponse_documentVersion,
getCommandInvocationResponse_standardOutputContent,
getCommandInvocationResponse_comment,
getCommandInvocationResponse_pluginName,
getCommandInvocationResponse_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 GetCommandInvocation = GetCommandInvocation'
{
GetCommandInvocation -> Maybe Text
pluginName :: Prelude.Maybe Prelude.Text,
GetCommandInvocation -> Text
commandId :: Prelude.Text,
GetCommandInvocation -> Text
instanceId :: Prelude.Text
}
deriving (GetCommandInvocation -> GetCommandInvocation -> Bool
(GetCommandInvocation -> GetCommandInvocation -> Bool)
-> (GetCommandInvocation -> GetCommandInvocation -> Bool)
-> Eq GetCommandInvocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCommandInvocation -> GetCommandInvocation -> Bool
$c/= :: GetCommandInvocation -> GetCommandInvocation -> Bool
== :: GetCommandInvocation -> GetCommandInvocation -> Bool
$c== :: GetCommandInvocation -> GetCommandInvocation -> Bool
Prelude.Eq, ReadPrec [GetCommandInvocation]
ReadPrec GetCommandInvocation
Int -> ReadS GetCommandInvocation
ReadS [GetCommandInvocation]
(Int -> ReadS GetCommandInvocation)
-> ReadS [GetCommandInvocation]
-> ReadPrec GetCommandInvocation
-> ReadPrec [GetCommandInvocation]
-> Read GetCommandInvocation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCommandInvocation]
$creadListPrec :: ReadPrec [GetCommandInvocation]
readPrec :: ReadPrec GetCommandInvocation
$creadPrec :: ReadPrec GetCommandInvocation
readList :: ReadS [GetCommandInvocation]
$creadList :: ReadS [GetCommandInvocation]
readsPrec :: Int -> ReadS GetCommandInvocation
$creadsPrec :: Int -> ReadS GetCommandInvocation
Prelude.Read, Int -> GetCommandInvocation -> ShowS
[GetCommandInvocation] -> ShowS
GetCommandInvocation -> String
(Int -> GetCommandInvocation -> ShowS)
-> (GetCommandInvocation -> String)
-> ([GetCommandInvocation] -> ShowS)
-> Show GetCommandInvocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCommandInvocation] -> ShowS
$cshowList :: [GetCommandInvocation] -> ShowS
show :: GetCommandInvocation -> String
$cshow :: GetCommandInvocation -> String
showsPrec :: Int -> GetCommandInvocation -> ShowS
$cshowsPrec :: Int -> GetCommandInvocation -> ShowS
Prelude.Show, (forall x. GetCommandInvocation -> Rep GetCommandInvocation x)
-> (forall x. Rep GetCommandInvocation x -> GetCommandInvocation)
-> Generic GetCommandInvocation
forall x. Rep GetCommandInvocation x -> GetCommandInvocation
forall x. GetCommandInvocation -> Rep GetCommandInvocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCommandInvocation x -> GetCommandInvocation
$cfrom :: forall x. GetCommandInvocation -> Rep GetCommandInvocation x
Prelude.Generic)
newGetCommandInvocation ::
Prelude.Text ->
Prelude.Text ->
GetCommandInvocation
newGetCommandInvocation :: Text -> Text -> GetCommandInvocation
newGetCommandInvocation Text
pCommandId_ Text
pInstanceId_ =
GetCommandInvocation' :: Maybe Text -> Text -> Text -> GetCommandInvocation
GetCommandInvocation'
{ $sel:pluginName:GetCommandInvocation' :: Maybe Text
pluginName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:commandId:GetCommandInvocation' :: Text
commandId = Text
pCommandId_,
$sel:instanceId:GetCommandInvocation' :: Text
instanceId = Text
pInstanceId_
}
getCommandInvocation_pluginName :: Lens.Lens' GetCommandInvocation (Prelude.Maybe Prelude.Text)
getCommandInvocation_pluginName :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocation -> f GetCommandInvocation
getCommandInvocation_pluginName = (GetCommandInvocation -> Maybe Text)
-> (GetCommandInvocation -> Maybe Text -> GetCommandInvocation)
-> Lens
GetCommandInvocation GetCommandInvocation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocation' {Maybe Text
pluginName :: Maybe Text
$sel:pluginName:GetCommandInvocation' :: GetCommandInvocation -> Maybe Text
pluginName} -> Maybe Text
pluginName) (\s :: GetCommandInvocation
s@GetCommandInvocation' {} Maybe Text
a -> GetCommandInvocation
s {$sel:pluginName:GetCommandInvocation' :: Maybe Text
pluginName = Maybe Text
a} :: GetCommandInvocation)
getCommandInvocation_commandId :: Lens.Lens' GetCommandInvocation Prelude.Text
getCommandInvocation_commandId :: (Text -> f Text) -> GetCommandInvocation -> f GetCommandInvocation
getCommandInvocation_commandId = (GetCommandInvocation -> Text)
-> (GetCommandInvocation -> Text -> GetCommandInvocation)
-> Lens GetCommandInvocation GetCommandInvocation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocation' {Text
commandId :: Text
$sel:commandId:GetCommandInvocation' :: GetCommandInvocation -> Text
commandId} -> Text
commandId) (\s :: GetCommandInvocation
s@GetCommandInvocation' {} Text
a -> GetCommandInvocation
s {$sel:commandId:GetCommandInvocation' :: Text
commandId = Text
a} :: GetCommandInvocation)
getCommandInvocation_instanceId :: Lens.Lens' GetCommandInvocation Prelude.Text
getCommandInvocation_instanceId :: (Text -> f Text) -> GetCommandInvocation -> f GetCommandInvocation
getCommandInvocation_instanceId = (GetCommandInvocation -> Text)
-> (GetCommandInvocation -> Text -> GetCommandInvocation)
-> Lens GetCommandInvocation GetCommandInvocation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocation' {Text
instanceId :: Text
$sel:instanceId:GetCommandInvocation' :: GetCommandInvocation -> Text
instanceId} -> Text
instanceId) (\s :: GetCommandInvocation
s@GetCommandInvocation' {} Text
a -> GetCommandInvocation
s {$sel:instanceId:GetCommandInvocation' :: Text
instanceId = Text
a} :: GetCommandInvocation)
instance Core.AWSRequest GetCommandInvocation where
type
AWSResponse GetCommandInvocation =
GetCommandInvocationResponse
request :: GetCommandInvocation -> Request GetCommandInvocation
request = Service -> GetCommandInvocation -> Request GetCommandInvocation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetCommandInvocation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCommandInvocation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetCommandInvocation))
-> Logger
-> Service
-> Proxy GetCommandInvocation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetCommandInvocation)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe CommandInvocationStatus
-> Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse
GetCommandInvocationResponse'
(Maybe Text
-> Maybe CommandInvocationStatus
-> Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe CommandInvocationStatus
-> Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InstanceId")
Either
String
(Maybe CommandInvocationStatus
-> Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe CommandInvocationStatus)
-> Either
String
(Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CommandInvocationStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"StandardErrorContent")
Either
String
(Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe CloudWatchOutputConfig)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CloudWatchOutputConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CloudWatchOutputConfig")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"ExecutionElapsedTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"DocumentName")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"StandardErrorUrl")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"ExecutionStartDateTime")
Either
String
(Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ResponseCode")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"ExecutionEndDateTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"StandardOutputUrl")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
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
"CommandId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> GetCommandInvocationResponse)
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
"DocumentVersion")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> GetCommandInvocationResponse)
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
"StandardOutputContent")
Either
String
(Maybe Text -> Maybe Text -> Int -> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> GetCommandInvocationResponse)
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
"Comment")
Either String (Maybe Text -> Int -> GetCommandInvocationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetCommandInvocationResponse)
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
"PluginName")
Either String (Int -> GetCommandInvocationResponse)
-> Either String Int -> Either String GetCommandInvocationResponse
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 GetCommandInvocation
instance Prelude.NFData GetCommandInvocation
instance Core.ToHeaders GetCommandInvocation where
toHeaders :: GetCommandInvocation -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetCommandInvocation -> 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.GetCommandInvocation" ::
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 GetCommandInvocation where
toJSON :: GetCommandInvocation -> Value
toJSON GetCommandInvocation' {Maybe Text
Text
instanceId :: Text
commandId :: Text
pluginName :: Maybe Text
$sel:instanceId:GetCommandInvocation' :: GetCommandInvocation -> Text
$sel:commandId:GetCommandInvocation' :: GetCommandInvocation -> Text
$sel:pluginName:GetCommandInvocation' :: GetCommandInvocation -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"PluginName" 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
pluginName,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"CommandId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
commandId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InstanceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceId)
]
)
instance Core.ToPath GetCommandInvocation where
toPath :: GetCommandInvocation -> ByteString
toPath = ByteString -> GetCommandInvocation -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetCommandInvocation where
toQuery :: GetCommandInvocation -> QueryString
toQuery = QueryString -> GetCommandInvocation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetCommandInvocationResponse = GetCommandInvocationResponse'
{
GetCommandInvocationResponse -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe CommandInvocationStatus
status :: Prelude.Maybe CommandInvocationStatus,
GetCommandInvocationResponse -> Maybe Text
standardErrorContent :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig :: Prelude.Maybe CloudWatchOutputConfig,
GetCommandInvocationResponse -> Maybe Text
executionElapsedTime :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
documentName :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
standardErrorUrl :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
executionStartDateTime :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Int
responseCode :: Prelude.Maybe Prelude.Int,
GetCommandInvocationResponse -> Maybe Text
statusDetails :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
executionEndDateTime :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
standardOutputUrl :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
commandId :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
documentVersion :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
standardOutputContent :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
comment :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Maybe Text
pluginName :: Prelude.Maybe Prelude.Text,
GetCommandInvocationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool
(GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool)
-> (GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool)
-> Eq GetCommandInvocationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool
$c/= :: GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool
== :: GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool
$c== :: GetCommandInvocationResponse
-> GetCommandInvocationResponse -> Bool
Prelude.Eq, ReadPrec [GetCommandInvocationResponse]
ReadPrec GetCommandInvocationResponse
Int -> ReadS GetCommandInvocationResponse
ReadS [GetCommandInvocationResponse]
(Int -> ReadS GetCommandInvocationResponse)
-> ReadS [GetCommandInvocationResponse]
-> ReadPrec GetCommandInvocationResponse
-> ReadPrec [GetCommandInvocationResponse]
-> Read GetCommandInvocationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCommandInvocationResponse]
$creadListPrec :: ReadPrec [GetCommandInvocationResponse]
readPrec :: ReadPrec GetCommandInvocationResponse
$creadPrec :: ReadPrec GetCommandInvocationResponse
readList :: ReadS [GetCommandInvocationResponse]
$creadList :: ReadS [GetCommandInvocationResponse]
readsPrec :: Int -> ReadS GetCommandInvocationResponse
$creadsPrec :: Int -> ReadS GetCommandInvocationResponse
Prelude.Read, Int -> GetCommandInvocationResponse -> ShowS
[GetCommandInvocationResponse] -> ShowS
GetCommandInvocationResponse -> String
(Int -> GetCommandInvocationResponse -> ShowS)
-> (GetCommandInvocationResponse -> String)
-> ([GetCommandInvocationResponse] -> ShowS)
-> Show GetCommandInvocationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCommandInvocationResponse] -> ShowS
$cshowList :: [GetCommandInvocationResponse] -> ShowS
show :: GetCommandInvocationResponse -> String
$cshow :: GetCommandInvocationResponse -> String
showsPrec :: Int -> GetCommandInvocationResponse -> ShowS
$cshowsPrec :: Int -> GetCommandInvocationResponse -> ShowS
Prelude.Show, (forall x.
GetCommandInvocationResponse -> Rep GetCommandInvocationResponse x)
-> (forall x.
Rep GetCommandInvocationResponse x -> GetCommandInvocationResponse)
-> Generic GetCommandInvocationResponse
forall x.
Rep GetCommandInvocationResponse x -> GetCommandInvocationResponse
forall x.
GetCommandInvocationResponse -> Rep GetCommandInvocationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetCommandInvocationResponse x -> GetCommandInvocationResponse
$cfrom :: forall x.
GetCommandInvocationResponse -> Rep GetCommandInvocationResponse x
Prelude.Generic)
newGetCommandInvocationResponse ::
Prelude.Int ->
GetCommandInvocationResponse
newGetCommandInvocationResponse :: Int -> GetCommandInvocationResponse
newGetCommandInvocationResponse Int
pHttpStatus_ =
GetCommandInvocationResponse' :: Maybe Text
-> Maybe CommandInvocationStatus
-> Maybe Text
-> Maybe CloudWatchOutputConfig
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetCommandInvocationResponse
GetCommandInvocationResponse'
{ $sel:instanceId:GetCommandInvocationResponse' :: Maybe Text
instanceId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:GetCommandInvocationResponse' :: Maybe CommandInvocationStatus
status = Maybe CommandInvocationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:standardErrorContent:GetCommandInvocationResponse' :: Maybe Text
standardErrorContent = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchOutputConfig:GetCommandInvocationResponse' :: Maybe CloudWatchOutputConfig
cloudWatchOutputConfig = Maybe CloudWatchOutputConfig
forall a. Maybe a
Prelude.Nothing,
$sel:executionElapsedTime:GetCommandInvocationResponse' :: Maybe Text
executionElapsedTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentName:GetCommandInvocationResponse' :: Maybe Text
documentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:standardErrorUrl:GetCommandInvocationResponse' :: Maybe Text
standardErrorUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionStartDateTime:GetCommandInvocationResponse' :: Maybe Text
executionStartDateTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:responseCode:GetCommandInvocationResponse' :: Maybe Int
responseCode = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:statusDetails:GetCommandInvocationResponse' :: Maybe Text
statusDetails = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionEndDateTime:GetCommandInvocationResponse' :: Maybe Text
executionEndDateTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:standardOutputUrl:GetCommandInvocationResponse' :: Maybe Text
standardOutputUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:commandId:GetCommandInvocationResponse' :: Maybe Text
commandId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentVersion:GetCommandInvocationResponse' :: Maybe Text
documentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:standardOutputContent:GetCommandInvocationResponse' :: Maybe Text
standardOutputContent = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:comment:GetCommandInvocationResponse' :: Maybe Text
comment = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pluginName:GetCommandInvocationResponse' :: Maybe Text
pluginName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetCommandInvocationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getCommandInvocationResponse_instanceId :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_instanceId :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_instanceId = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:instanceId:GetCommandInvocationResponse' :: Maybe Text
instanceId = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_status :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe CommandInvocationStatus)
getCommandInvocationResponse_status :: (Maybe CommandInvocationStatus
-> f (Maybe CommandInvocationStatus))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_status = (GetCommandInvocationResponse -> Maybe CommandInvocationStatus)
-> (GetCommandInvocationResponse
-> Maybe CommandInvocationStatus -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe CommandInvocationStatus)
(Maybe CommandInvocationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe CommandInvocationStatus
status :: Maybe CommandInvocationStatus
$sel:status:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe CommandInvocationStatus
status} -> Maybe CommandInvocationStatus
status) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe CommandInvocationStatus
a -> GetCommandInvocationResponse
s {$sel:status:GetCommandInvocationResponse' :: Maybe CommandInvocationStatus
status = Maybe CommandInvocationStatus
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_standardErrorContent :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_standardErrorContent :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_standardErrorContent = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
standardErrorContent :: Maybe Text
$sel:standardErrorContent:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
standardErrorContent} -> Maybe Text
standardErrorContent) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:standardErrorContent:GetCommandInvocationResponse' :: Maybe Text
standardErrorContent = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_cloudWatchOutputConfig :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe CloudWatchOutputConfig)
getCommandInvocationResponse_cloudWatchOutputConfig :: (Maybe CloudWatchOutputConfig -> f (Maybe CloudWatchOutputConfig))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_cloudWatchOutputConfig = (GetCommandInvocationResponse -> Maybe CloudWatchOutputConfig)
-> (GetCommandInvocationResponse
-> Maybe CloudWatchOutputConfig -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe CloudWatchOutputConfig)
(Maybe CloudWatchOutputConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe CloudWatchOutputConfig
cloudWatchOutputConfig :: Maybe CloudWatchOutputConfig
$sel:cloudWatchOutputConfig:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig} -> Maybe CloudWatchOutputConfig
cloudWatchOutputConfig) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe CloudWatchOutputConfig
a -> GetCommandInvocationResponse
s {$sel:cloudWatchOutputConfig:GetCommandInvocationResponse' :: Maybe CloudWatchOutputConfig
cloudWatchOutputConfig = Maybe CloudWatchOutputConfig
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_executionElapsedTime :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_executionElapsedTime :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_executionElapsedTime = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
executionElapsedTime :: Maybe Text
$sel:executionElapsedTime:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
executionElapsedTime} -> Maybe Text
executionElapsedTime) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:executionElapsedTime:GetCommandInvocationResponse' :: Maybe Text
executionElapsedTime = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_documentName :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_documentName :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_documentName = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
documentName :: Maybe Text
$sel:documentName:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
documentName} -> Maybe Text
documentName) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:documentName:GetCommandInvocationResponse' :: Maybe Text
documentName = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_standardErrorUrl :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_standardErrorUrl :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_standardErrorUrl = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
standardErrorUrl :: Maybe Text
$sel:standardErrorUrl:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
standardErrorUrl} -> Maybe Text
standardErrorUrl) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:standardErrorUrl:GetCommandInvocationResponse' :: Maybe Text
standardErrorUrl = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_executionStartDateTime :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_executionStartDateTime :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_executionStartDateTime = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
executionStartDateTime :: Maybe Text
$sel:executionStartDateTime:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
executionStartDateTime} -> Maybe Text
executionStartDateTime) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:executionStartDateTime:GetCommandInvocationResponse' :: Maybe Text
executionStartDateTime = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_responseCode :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Int)
getCommandInvocationResponse_responseCode :: (Maybe Int -> f (Maybe Int))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_responseCode = (GetCommandInvocationResponse -> Maybe Int)
-> (GetCommandInvocationResponse
-> Maybe Int -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Int
responseCode :: Maybe Int
$sel:responseCode:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Int
responseCode} -> Maybe Int
responseCode) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Int
a -> GetCommandInvocationResponse
s {$sel:responseCode:GetCommandInvocationResponse' :: Maybe Int
responseCode = Maybe Int
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_statusDetails :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_statusDetails :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_statusDetails = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
statusDetails :: Maybe Text
$sel:statusDetails:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
statusDetails} -> Maybe Text
statusDetails) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:statusDetails:GetCommandInvocationResponse' :: Maybe Text
statusDetails = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_executionEndDateTime :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_executionEndDateTime :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_executionEndDateTime = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
executionEndDateTime :: Maybe Text
$sel:executionEndDateTime:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
executionEndDateTime} -> Maybe Text
executionEndDateTime) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:executionEndDateTime:GetCommandInvocationResponse' :: Maybe Text
executionEndDateTime = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_standardOutputUrl :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_standardOutputUrl :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_standardOutputUrl = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
standardOutputUrl :: Maybe Text
$sel:standardOutputUrl:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
standardOutputUrl} -> Maybe Text
standardOutputUrl) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:standardOutputUrl:GetCommandInvocationResponse' :: Maybe Text
standardOutputUrl = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_commandId :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_commandId :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_commandId = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
commandId :: Maybe Text
$sel:commandId:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
commandId} -> Maybe Text
commandId) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:commandId:GetCommandInvocationResponse' :: Maybe Text
commandId = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_documentVersion :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_documentVersion :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_documentVersion = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
documentVersion :: Maybe Text
$sel:documentVersion:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
documentVersion} -> Maybe Text
documentVersion) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:documentVersion:GetCommandInvocationResponse' :: Maybe Text
documentVersion = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_standardOutputContent :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_standardOutputContent :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_standardOutputContent = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
standardOutputContent :: Maybe Text
$sel:standardOutputContent:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
standardOutputContent} -> Maybe Text
standardOutputContent) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:standardOutputContent:GetCommandInvocationResponse' :: Maybe Text
standardOutputContent = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_comment :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_comment :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_comment = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
comment :: Maybe Text
$sel:comment:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
comment} -> Maybe Text
comment) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:comment:GetCommandInvocationResponse' :: Maybe Text
comment = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_pluginName :: Lens.Lens' GetCommandInvocationResponse (Prelude.Maybe Prelude.Text)
getCommandInvocationResponse_pluginName :: (Maybe Text -> f (Maybe Text))
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_pluginName = (GetCommandInvocationResponse -> Maybe Text)
-> (GetCommandInvocationResponse
-> Maybe Text -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse
GetCommandInvocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Maybe Text
pluginName :: Maybe Text
$sel:pluginName:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Maybe Text
pluginName} -> Maybe Text
pluginName) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Maybe Text
a -> GetCommandInvocationResponse
s {$sel:pluginName:GetCommandInvocationResponse' :: Maybe Text
pluginName = Maybe Text
a} :: GetCommandInvocationResponse)
getCommandInvocationResponse_httpStatus :: Lens.Lens' GetCommandInvocationResponse Prelude.Int
getCommandInvocationResponse_httpStatus :: (Int -> f Int)
-> GetCommandInvocationResponse -> f GetCommandInvocationResponse
getCommandInvocationResponse_httpStatus = (GetCommandInvocationResponse -> Int)
-> (GetCommandInvocationResponse
-> Int -> GetCommandInvocationResponse)
-> Lens
GetCommandInvocationResponse GetCommandInvocationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCommandInvocationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetCommandInvocationResponse' :: GetCommandInvocationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetCommandInvocationResponse
s@GetCommandInvocationResponse' {} Int
a -> GetCommandInvocationResponse
s {$sel:httpStatus:GetCommandInvocationResponse' :: Int
httpStatus = Int
a} :: GetCommandInvocationResponse)
instance Prelude.NFData GetCommandInvocationResponse