{-# 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.RobOMaker.DescribeRobotApplication
(
DescribeRobotApplication (..),
newDescribeRobotApplication,
describeRobotApplication_applicationVersion,
describeRobotApplication_application,
DescribeRobotApplicationResponse (..),
newDescribeRobotApplicationResponse,
describeRobotApplicationResponse_lastUpdatedAt,
describeRobotApplicationResponse_arn,
describeRobotApplicationResponse_environment,
describeRobotApplicationResponse_sources,
describeRobotApplicationResponse_name,
describeRobotApplicationResponse_imageDigest,
describeRobotApplicationResponse_version,
describeRobotApplicationResponse_robotSoftwareSuite,
describeRobotApplicationResponse_revisionId,
describeRobotApplicationResponse_tags,
describeRobotApplicationResponse_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.RobOMaker.Types
data DescribeRobotApplication = DescribeRobotApplication'
{
DescribeRobotApplication -> Maybe Text
applicationVersion :: Prelude.Maybe Prelude.Text,
DescribeRobotApplication -> Text
application :: Prelude.Text
}
deriving (DescribeRobotApplication -> DescribeRobotApplication -> Bool
(DescribeRobotApplication -> DescribeRobotApplication -> Bool)
-> (DescribeRobotApplication -> DescribeRobotApplication -> Bool)
-> Eq DescribeRobotApplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRobotApplication -> DescribeRobotApplication -> Bool
$c/= :: DescribeRobotApplication -> DescribeRobotApplication -> Bool
== :: DescribeRobotApplication -> DescribeRobotApplication -> Bool
$c== :: DescribeRobotApplication -> DescribeRobotApplication -> Bool
Prelude.Eq, ReadPrec [DescribeRobotApplication]
ReadPrec DescribeRobotApplication
Int -> ReadS DescribeRobotApplication
ReadS [DescribeRobotApplication]
(Int -> ReadS DescribeRobotApplication)
-> ReadS [DescribeRobotApplication]
-> ReadPrec DescribeRobotApplication
-> ReadPrec [DescribeRobotApplication]
-> Read DescribeRobotApplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRobotApplication]
$creadListPrec :: ReadPrec [DescribeRobotApplication]
readPrec :: ReadPrec DescribeRobotApplication
$creadPrec :: ReadPrec DescribeRobotApplication
readList :: ReadS [DescribeRobotApplication]
$creadList :: ReadS [DescribeRobotApplication]
readsPrec :: Int -> ReadS DescribeRobotApplication
$creadsPrec :: Int -> ReadS DescribeRobotApplication
Prelude.Read, Int -> DescribeRobotApplication -> ShowS
[DescribeRobotApplication] -> ShowS
DescribeRobotApplication -> String
(Int -> DescribeRobotApplication -> ShowS)
-> (DescribeRobotApplication -> String)
-> ([DescribeRobotApplication] -> ShowS)
-> Show DescribeRobotApplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRobotApplication] -> ShowS
$cshowList :: [DescribeRobotApplication] -> ShowS
show :: DescribeRobotApplication -> String
$cshow :: DescribeRobotApplication -> String
showsPrec :: Int -> DescribeRobotApplication -> ShowS
$cshowsPrec :: Int -> DescribeRobotApplication -> ShowS
Prelude.Show, (forall x.
DescribeRobotApplication -> Rep DescribeRobotApplication x)
-> (forall x.
Rep DescribeRobotApplication x -> DescribeRobotApplication)
-> Generic DescribeRobotApplication
forall x.
Rep DescribeRobotApplication x -> DescribeRobotApplication
forall x.
DescribeRobotApplication -> Rep DescribeRobotApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRobotApplication x -> DescribeRobotApplication
$cfrom :: forall x.
DescribeRobotApplication -> Rep DescribeRobotApplication x
Prelude.Generic)
newDescribeRobotApplication ::
Prelude.Text ->
DescribeRobotApplication
newDescribeRobotApplication :: Text -> DescribeRobotApplication
newDescribeRobotApplication Text
pApplication_ =
DescribeRobotApplication' :: Maybe Text -> Text -> DescribeRobotApplication
DescribeRobotApplication'
{ $sel:applicationVersion:DescribeRobotApplication' :: Maybe Text
applicationVersion =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:application:DescribeRobotApplication' :: Text
application = Text
pApplication_
}
describeRobotApplication_applicationVersion :: Lens.Lens' DescribeRobotApplication (Prelude.Maybe Prelude.Text)
describeRobotApplication_applicationVersion :: (Maybe Text -> f (Maybe Text))
-> DescribeRobotApplication -> f DescribeRobotApplication
describeRobotApplication_applicationVersion = (DescribeRobotApplication -> Maybe Text)
-> (DescribeRobotApplication
-> Maybe Text -> DescribeRobotApplication)
-> Lens
DescribeRobotApplication
DescribeRobotApplication
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplication' {Maybe Text
applicationVersion :: Maybe Text
$sel:applicationVersion:DescribeRobotApplication' :: DescribeRobotApplication -> Maybe Text
applicationVersion} -> Maybe Text
applicationVersion) (\s :: DescribeRobotApplication
s@DescribeRobotApplication' {} Maybe Text
a -> DescribeRobotApplication
s {$sel:applicationVersion:DescribeRobotApplication' :: Maybe Text
applicationVersion = Maybe Text
a} :: DescribeRobotApplication)
describeRobotApplication_application :: Lens.Lens' DescribeRobotApplication Prelude.Text
describeRobotApplication_application :: (Text -> f Text)
-> DescribeRobotApplication -> f DescribeRobotApplication
describeRobotApplication_application = (DescribeRobotApplication -> Text)
-> (DescribeRobotApplication -> Text -> DescribeRobotApplication)
-> Lens DescribeRobotApplication DescribeRobotApplication Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplication' {Text
application :: Text
$sel:application:DescribeRobotApplication' :: DescribeRobotApplication -> Text
application} -> Text
application) (\s :: DescribeRobotApplication
s@DescribeRobotApplication' {} Text
a -> DescribeRobotApplication
s {$sel:application:DescribeRobotApplication' :: Text
application = Text
a} :: DescribeRobotApplication)
instance Core.AWSRequest DescribeRobotApplication where
type
AWSResponse DescribeRobotApplication =
DescribeRobotApplicationResponse
request :: DescribeRobotApplication -> Request DescribeRobotApplication
request = Service
-> DescribeRobotApplication -> Request DescribeRobotApplication
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeRobotApplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeRobotApplication)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeRobotApplication))
-> Logger
-> Service
-> Proxy DescribeRobotApplication
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeRobotApplication)))
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 POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse
DescribeRobotApplicationResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
forall (f :: * -> *) a b. Functor 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
"lastUpdatedAt")
Either
String
(Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
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
"arn")
Either
String
(Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe Environment)
-> Either
String
(Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Environment)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"environment")
Either
String
(Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe [Source])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Source]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"sources" Either String (Maybe (Maybe [Source]))
-> Maybe [Source] -> Either String (Maybe [Source])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Source]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
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
"name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
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
"imageDigest")
Either
String
(Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
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
"version")
Either
String
(Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe RobotSoftwareSuite)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe RobotSoftwareSuite)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"robotSoftwareSuite")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeRobotApplicationResponse)
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
"revisionId")
Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeRobotApplicationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeRobotApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeRobotApplicationResponse)
-> Either String Int
-> Either String DescribeRobotApplicationResponse
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 DescribeRobotApplication
instance Prelude.NFData DescribeRobotApplication
instance Core.ToHeaders DescribeRobotApplication where
toHeaders :: DescribeRobotApplication -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeRobotApplication -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 DescribeRobotApplication where
toJSON :: DescribeRobotApplication -> Value
toJSON DescribeRobotApplication' {Maybe Text
Text
application :: Text
applicationVersion :: Maybe Text
$sel:application:DescribeRobotApplication' :: DescribeRobotApplication -> Text
$sel:applicationVersion:DescribeRobotApplication' :: DescribeRobotApplication -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"applicationVersion" 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
applicationVersion,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"application" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
application)
]
)
instance Core.ToPath DescribeRobotApplication where
toPath :: DescribeRobotApplication -> ByteString
toPath = ByteString -> DescribeRobotApplication -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describeRobotApplication"
instance Core.ToQuery DescribeRobotApplication where
toQuery :: DescribeRobotApplication -> QueryString
toQuery = QueryString -> DescribeRobotApplication -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeRobotApplicationResponse = DescribeRobotApplicationResponse'
{
DescribeRobotApplicationResponse -> Maybe POSIX
lastUpdatedAt :: Prelude.Maybe Core.POSIX,
DescribeRobotApplicationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeRobotApplicationResponse -> Maybe Environment
environment :: Prelude.Maybe Environment,
DescribeRobotApplicationResponse -> Maybe [Source]
sources :: Prelude.Maybe [Source],
DescribeRobotApplicationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeRobotApplicationResponse -> Maybe Text
imageDigest :: Prelude.Maybe Prelude.Text,
DescribeRobotApplicationResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
DescribeRobotApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite :: Prelude.Maybe RobotSoftwareSuite,
DescribeRobotApplicationResponse -> Maybe Text
revisionId :: Prelude.Maybe Prelude.Text,
DescribeRobotApplicationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeRobotApplicationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool
(DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool)
-> (DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool)
-> Eq DescribeRobotApplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool
$c/= :: DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool
== :: DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool
$c== :: DescribeRobotApplicationResponse
-> DescribeRobotApplicationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeRobotApplicationResponse]
ReadPrec DescribeRobotApplicationResponse
Int -> ReadS DescribeRobotApplicationResponse
ReadS [DescribeRobotApplicationResponse]
(Int -> ReadS DescribeRobotApplicationResponse)
-> ReadS [DescribeRobotApplicationResponse]
-> ReadPrec DescribeRobotApplicationResponse
-> ReadPrec [DescribeRobotApplicationResponse]
-> Read DescribeRobotApplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeRobotApplicationResponse]
$creadListPrec :: ReadPrec [DescribeRobotApplicationResponse]
readPrec :: ReadPrec DescribeRobotApplicationResponse
$creadPrec :: ReadPrec DescribeRobotApplicationResponse
readList :: ReadS [DescribeRobotApplicationResponse]
$creadList :: ReadS [DescribeRobotApplicationResponse]
readsPrec :: Int -> ReadS DescribeRobotApplicationResponse
$creadsPrec :: Int -> ReadS DescribeRobotApplicationResponse
Prelude.Read, Int -> DescribeRobotApplicationResponse -> ShowS
[DescribeRobotApplicationResponse] -> ShowS
DescribeRobotApplicationResponse -> String
(Int -> DescribeRobotApplicationResponse -> ShowS)
-> (DescribeRobotApplicationResponse -> String)
-> ([DescribeRobotApplicationResponse] -> ShowS)
-> Show DescribeRobotApplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeRobotApplicationResponse] -> ShowS
$cshowList :: [DescribeRobotApplicationResponse] -> ShowS
show :: DescribeRobotApplicationResponse -> String
$cshow :: DescribeRobotApplicationResponse -> String
showsPrec :: Int -> DescribeRobotApplicationResponse -> ShowS
$cshowsPrec :: Int -> DescribeRobotApplicationResponse -> ShowS
Prelude.Show, (forall x.
DescribeRobotApplicationResponse
-> Rep DescribeRobotApplicationResponse x)
-> (forall x.
Rep DescribeRobotApplicationResponse x
-> DescribeRobotApplicationResponse)
-> Generic DescribeRobotApplicationResponse
forall x.
Rep DescribeRobotApplicationResponse x
-> DescribeRobotApplicationResponse
forall x.
DescribeRobotApplicationResponse
-> Rep DescribeRobotApplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeRobotApplicationResponse x
-> DescribeRobotApplicationResponse
$cfrom :: forall x.
DescribeRobotApplicationResponse
-> Rep DescribeRobotApplicationResponse x
Prelude.Generic)
newDescribeRobotApplicationResponse ::
Prelude.Int ->
DescribeRobotApplicationResponse
newDescribeRobotApplicationResponse :: Int -> DescribeRobotApplicationResponse
newDescribeRobotApplicationResponse Int
pHttpStatus_ =
DescribeRobotApplicationResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Environment
-> Maybe [Source]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe RobotSoftwareSuite
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeRobotApplicationResponse
DescribeRobotApplicationResponse'
{ $sel:lastUpdatedAt:DescribeRobotApplicationResponse' :: Maybe POSIX
lastUpdatedAt =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeRobotApplicationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:environment:DescribeRobotApplicationResponse' :: Maybe Environment
environment = Maybe Environment
forall a. Maybe a
Prelude.Nothing,
$sel:sources:DescribeRobotApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeRobotApplicationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageDigest:DescribeRobotApplicationResponse' :: Maybe Text
imageDigest = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:DescribeRobotApplicationResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:robotSoftwareSuite:DescribeRobotApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
forall a. Maybe a
Prelude.Nothing,
$sel:revisionId:DescribeRobotApplicationResponse' :: Maybe Text
revisionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeRobotApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeRobotApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeRobotApplicationResponse_lastUpdatedAt :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Prelude.UTCTime)
describeRobotApplicationResponse_lastUpdatedAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_lastUpdatedAt = (DescribeRobotApplicationResponse -> Maybe POSIX)
-> (DescribeRobotApplicationResponse
-> Maybe POSIX -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe POSIX
lastUpdatedAt :: Maybe POSIX
$sel:lastUpdatedAt:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe POSIX
lastUpdatedAt} -> Maybe POSIX
lastUpdatedAt) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe POSIX
a -> DescribeRobotApplicationResponse
s {$sel:lastUpdatedAt:DescribeRobotApplicationResponse' :: Maybe POSIX
lastUpdatedAt = Maybe POSIX
a} :: DescribeRobotApplicationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
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
describeRobotApplicationResponse_arn :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Prelude.Text)
describeRobotApplicationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_arn = (DescribeRobotApplicationResponse -> Maybe Text)
-> (DescribeRobotApplicationResponse
-> Maybe Text -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe Text
a -> DescribeRobotApplicationResponse
s {$sel:arn:DescribeRobotApplicationResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_environment :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Environment)
describeRobotApplicationResponse_environment :: (Maybe Environment -> f (Maybe Environment))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_environment = (DescribeRobotApplicationResponse -> Maybe Environment)
-> (DescribeRobotApplicationResponse
-> Maybe Environment -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe Environment)
(Maybe Environment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe Environment
environment :: Maybe Environment
$sel:environment:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe Environment
environment} -> Maybe Environment
environment) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe Environment
a -> DescribeRobotApplicationResponse
s {$sel:environment:DescribeRobotApplicationResponse' :: Maybe Environment
environment = Maybe Environment
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_sources :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe [Source])
describeRobotApplicationResponse_sources :: (Maybe [Source] -> f (Maybe [Source]))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_sources = (DescribeRobotApplicationResponse -> Maybe [Source])
-> (DescribeRobotApplicationResponse
-> Maybe [Source] -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe [Source])
(Maybe [Source])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe [Source]
sources :: Maybe [Source]
$sel:sources:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe [Source]
sources} -> Maybe [Source]
sources) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe [Source]
a -> DescribeRobotApplicationResponse
s {$sel:sources:DescribeRobotApplicationResponse' :: Maybe [Source]
sources = Maybe [Source]
a} :: DescribeRobotApplicationResponse) ((Maybe [Source] -> f (Maybe [Source]))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse)
-> ((Maybe [Source] -> f (Maybe [Source]))
-> Maybe [Source] -> f (Maybe [Source]))
-> (Maybe [Source] -> f (Maybe [Source]))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Source] [Source] [Source] [Source]
-> Iso
(Maybe [Source]) (Maybe [Source]) (Maybe [Source]) (Maybe [Source])
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 [Source] [Source] [Source] [Source]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRobotApplicationResponse_name :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Prelude.Text)
describeRobotApplicationResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_name = (DescribeRobotApplicationResponse -> Maybe Text)
-> (DescribeRobotApplicationResponse
-> Maybe Text -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe Text
a -> DescribeRobotApplicationResponse
s {$sel:name:DescribeRobotApplicationResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_imageDigest :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Prelude.Text)
describeRobotApplicationResponse_imageDigest :: (Maybe Text -> f (Maybe Text))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_imageDigest = (DescribeRobotApplicationResponse -> Maybe Text)
-> (DescribeRobotApplicationResponse
-> Maybe Text -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe Text
imageDigest :: Maybe Text
$sel:imageDigest:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe Text
imageDigest} -> Maybe Text
imageDigest) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe Text
a -> DescribeRobotApplicationResponse
s {$sel:imageDigest:DescribeRobotApplicationResponse' :: Maybe Text
imageDigest = Maybe Text
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_version :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Prelude.Text)
describeRobotApplicationResponse_version :: (Maybe Text -> f (Maybe Text))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_version = (DescribeRobotApplicationResponse -> Maybe Text)
-> (DescribeRobotApplicationResponse
-> Maybe Text -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe Text
version :: Maybe Text
$sel:version:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe Text
a -> DescribeRobotApplicationResponse
s {$sel:version:DescribeRobotApplicationResponse' :: Maybe Text
version = Maybe Text
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_robotSoftwareSuite :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe RobotSoftwareSuite)
describeRobotApplicationResponse_robotSoftwareSuite :: (Maybe RobotSoftwareSuite -> f (Maybe RobotSoftwareSuite))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_robotSoftwareSuite = (DescribeRobotApplicationResponse -> Maybe RobotSoftwareSuite)
-> (DescribeRobotApplicationResponse
-> Maybe RobotSoftwareSuite -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe RobotSoftwareSuite)
(Maybe RobotSoftwareSuite)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe RobotSoftwareSuite
robotSoftwareSuite :: Maybe RobotSoftwareSuite
$sel:robotSoftwareSuite:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe RobotSoftwareSuite
robotSoftwareSuite} -> Maybe RobotSoftwareSuite
robotSoftwareSuite) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe RobotSoftwareSuite
a -> DescribeRobotApplicationResponse
s {$sel:robotSoftwareSuite:DescribeRobotApplicationResponse' :: Maybe RobotSoftwareSuite
robotSoftwareSuite = Maybe RobotSoftwareSuite
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_revisionId :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe Prelude.Text)
describeRobotApplicationResponse_revisionId :: (Maybe Text -> f (Maybe Text))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_revisionId = (DescribeRobotApplicationResponse -> Maybe Text)
-> (DescribeRobotApplicationResponse
-> Maybe Text -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe Text
revisionId :: Maybe Text
$sel:revisionId:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe Text
revisionId} -> Maybe Text
revisionId) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe Text
a -> DescribeRobotApplicationResponse
s {$sel:revisionId:DescribeRobotApplicationResponse' :: Maybe Text
revisionId = Maybe Text
a} :: DescribeRobotApplicationResponse)
describeRobotApplicationResponse_tags :: Lens.Lens' DescribeRobotApplicationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeRobotApplicationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_tags = (DescribeRobotApplicationResponse -> Maybe (HashMap Text Text))
-> (DescribeRobotApplicationResponse
-> Maybe (HashMap Text Text) -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Maybe (HashMap Text Text)
a -> DescribeRobotApplicationResponse
s {$sel:tags:DescribeRobotApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeRobotApplicationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text 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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeRobotApplicationResponse_httpStatus :: Lens.Lens' DescribeRobotApplicationResponse Prelude.Int
describeRobotApplicationResponse_httpStatus :: (Int -> f Int)
-> DescribeRobotApplicationResponse
-> f DescribeRobotApplicationResponse
describeRobotApplicationResponse_httpStatus = (DescribeRobotApplicationResponse -> Int)
-> (DescribeRobotApplicationResponse
-> Int -> DescribeRobotApplicationResponse)
-> Lens
DescribeRobotApplicationResponse
DescribeRobotApplicationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeRobotApplicationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeRobotApplicationResponse' :: DescribeRobotApplicationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeRobotApplicationResponse
s@DescribeRobotApplicationResponse' {} Int
a -> DescribeRobotApplicationResponse
s {$sel:httpStatus:DescribeRobotApplicationResponse' :: Int
httpStatus = Int
a} :: DescribeRobotApplicationResponse)
instance
Prelude.NFData
DescribeRobotApplicationResponse