{-# 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.ServiceCatalogAppRegistry.GetApplication
(
GetApplication (..),
newGetApplication,
getApplication_application,
GetApplicationResponse (..),
newGetApplicationResponse,
getApplicationResponse_creationTime,
getApplicationResponse_arn,
getApplicationResponse_integrations,
getApplicationResponse_associatedResourceCount,
getApplicationResponse_name,
getApplicationResponse_id,
getApplicationResponse_lastUpdateTime,
getApplicationResponse_description,
getApplicationResponse_tags,
getApplicationResponse_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.ServiceCatalogAppRegistry.Types
data GetApplication = GetApplication'
{
GetApplication -> Text
application :: Prelude.Text
}
deriving (GetApplication -> GetApplication -> Bool
(GetApplication -> GetApplication -> Bool)
-> (GetApplication -> GetApplication -> Bool) -> Eq GetApplication
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetApplication -> GetApplication -> Bool
$c/= :: GetApplication -> GetApplication -> Bool
== :: GetApplication -> GetApplication -> Bool
$c== :: GetApplication -> GetApplication -> Bool
Prelude.Eq, ReadPrec [GetApplication]
ReadPrec GetApplication
Int -> ReadS GetApplication
ReadS [GetApplication]
(Int -> ReadS GetApplication)
-> ReadS [GetApplication]
-> ReadPrec GetApplication
-> ReadPrec [GetApplication]
-> Read GetApplication
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetApplication]
$creadListPrec :: ReadPrec [GetApplication]
readPrec :: ReadPrec GetApplication
$creadPrec :: ReadPrec GetApplication
readList :: ReadS [GetApplication]
$creadList :: ReadS [GetApplication]
readsPrec :: Int -> ReadS GetApplication
$creadsPrec :: Int -> ReadS GetApplication
Prelude.Read, Int -> GetApplication -> ShowS
[GetApplication] -> ShowS
GetApplication -> String
(Int -> GetApplication -> ShowS)
-> (GetApplication -> String)
-> ([GetApplication] -> ShowS)
-> Show GetApplication
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetApplication] -> ShowS
$cshowList :: [GetApplication] -> ShowS
show :: GetApplication -> String
$cshow :: GetApplication -> String
showsPrec :: Int -> GetApplication -> ShowS
$cshowsPrec :: Int -> GetApplication -> ShowS
Prelude.Show, (forall x. GetApplication -> Rep GetApplication x)
-> (forall x. Rep GetApplication x -> GetApplication)
-> Generic GetApplication
forall x. Rep GetApplication x -> GetApplication
forall x. GetApplication -> Rep GetApplication x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetApplication x -> GetApplication
$cfrom :: forall x. GetApplication -> Rep GetApplication x
Prelude.Generic)
newGetApplication ::
Prelude.Text ->
GetApplication
newGetApplication :: Text -> GetApplication
newGetApplication Text
pApplication_ =
GetApplication' :: Text -> GetApplication
GetApplication' {$sel:application:GetApplication' :: Text
application = Text
pApplication_}
getApplication_application :: Lens.Lens' GetApplication Prelude.Text
getApplication_application :: (Text -> f Text) -> GetApplication -> f GetApplication
getApplication_application = (GetApplication -> Text)
-> (GetApplication -> Text -> GetApplication)
-> Lens GetApplication GetApplication Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplication' {Text
application :: Text
$sel:application:GetApplication' :: GetApplication -> Text
application} -> Text
application) (\s :: GetApplication
s@GetApplication' {} Text
a -> GetApplication
s {$sel:application:GetApplication' :: Text
application = Text
a} :: GetApplication)
instance Core.AWSRequest GetApplication where
type
AWSResponse GetApplication =
GetApplicationResponse
request :: GetApplication -> Request GetApplication
request = Service -> GetApplication -> Request GetApplication
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetApplication
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetApplication)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetApplication))
-> Logger
-> Service
-> Proxy GetApplication
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetApplication)))
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 Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse
GetApplicationResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
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
"creationTime")
Either
String
(Maybe Text
-> Maybe Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
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 Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Integrations)
-> Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integrations)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"integrations")
Either
String
(Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"associatedResourceCount")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
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 POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
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
"id")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetApplicationResponse)
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
"lastUpdateTime")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text) -> Int -> GetApplicationResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe (HashMap Text Text) -> Int -> GetApplicationResponse)
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
"description")
Either
String (Maybe (HashMap Text Text) -> Int -> GetApplicationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetApplicationResponse)
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 -> GetApplicationResponse)
-> Either String Int -> Either String GetApplicationResponse
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 GetApplication
instance Prelude.NFData GetApplication
instance Core.ToHeaders GetApplication where
toHeaders :: GetApplication -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetApplication -> 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.ToPath GetApplication where
toPath :: GetApplication -> ByteString
toPath GetApplication' {Text
application :: Text
$sel:application:GetApplication' :: GetApplication -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/applications/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
application]
instance Core.ToQuery GetApplication where
toQuery :: GetApplication -> QueryString
toQuery = QueryString -> GetApplication -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetApplicationResponse = GetApplicationResponse'
{
GetApplicationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
GetApplicationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Integrations
integrations :: Prelude.Maybe Integrations,
GetApplicationResponse -> Maybe Natural
associatedResourceCount :: Prelude.Maybe Prelude.Natural,
GetApplicationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
GetApplicationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetApplicationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
GetApplicationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetApplicationResponse -> GetApplicationResponse -> Bool
(GetApplicationResponse -> GetApplicationResponse -> Bool)
-> (GetApplicationResponse -> GetApplicationResponse -> Bool)
-> Eq GetApplicationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetApplicationResponse -> GetApplicationResponse -> Bool
$c/= :: GetApplicationResponse -> GetApplicationResponse -> Bool
== :: GetApplicationResponse -> GetApplicationResponse -> Bool
$c== :: GetApplicationResponse -> GetApplicationResponse -> Bool
Prelude.Eq, ReadPrec [GetApplicationResponse]
ReadPrec GetApplicationResponse
Int -> ReadS GetApplicationResponse
ReadS [GetApplicationResponse]
(Int -> ReadS GetApplicationResponse)
-> ReadS [GetApplicationResponse]
-> ReadPrec GetApplicationResponse
-> ReadPrec [GetApplicationResponse]
-> Read GetApplicationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetApplicationResponse]
$creadListPrec :: ReadPrec [GetApplicationResponse]
readPrec :: ReadPrec GetApplicationResponse
$creadPrec :: ReadPrec GetApplicationResponse
readList :: ReadS [GetApplicationResponse]
$creadList :: ReadS [GetApplicationResponse]
readsPrec :: Int -> ReadS GetApplicationResponse
$creadsPrec :: Int -> ReadS GetApplicationResponse
Prelude.Read, Int -> GetApplicationResponse -> ShowS
[GetApplicationResponse] -> ShowS
GetApplicationResponse -> String
(Int -> GetApplicationResponse -> ShowS)
-> (GetApplicationResponse -> String)
-> ([GetApplicationResponse] -> ShowS)
-> Show GetApplicationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetApplicationResponse] -> ShowS
$cshowList :: [GetApplicationResponse] -> ShowS
show :: GetApplicationResponse -> String
$cshow :: GetApplicationResponse -> String
showsPrec :: Int -> GetApplicationResponse -> ShowS
$cshowsPrec :: Int -> GetApplicationResponse -> ShowS
Prelude.Show, (forall x. GetApplicationResponse -> Rep GetApplicationResponse x)
-> (forall x.
Rep GetApplicationResponse x -> GetApplicationResponse)
-> Generic GetApplicationResponse
forall x. Rep GetApplicationResponse x -> GetApplicationResponse
forall x. GetApplicationResponse -> Rep GetApplicationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetApplicationResponse x -> GetApplicationResponse
$cfrom :: forall x. GetApplicationResponse -> Rep GetApplicationResponse x
Prelude.Generic)
newGetApplicationResponse ::
Prelude.Int ->
GetApplicationResponse
newGetApplicationResponse :: Int -> GetApplicationResponse
newGetApplicationResponse Int
pHttpStatus_ =
GetApplicationResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Integrations
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetApplicationResponse
GetApplicationResponse'
{ $sel:creationTime:GetApplicationResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetApplicationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:integrations:GetApplicationResponse' :: Maybe Integrations
integrations = Maybe Integrations
forall a. Maybe a
Prelude.Nothing,
$sel:associatedResourceCount:GetApplicationResponse' :: Maybe Natural
associatedResourceCount = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetApplicationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:GetApplicationResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:GetApplicationResponse' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:description:GetApplicationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:GetApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetApplicationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getApplicationResponse_creationTime :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.UTCTime)
getApplicationResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_creationTime = (GetApplicationResponse -> Maybe POSIX)
-> (GetApplicationResponse
-> Maybe POSIX -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:GetApplicationResponse' :: GetApplicationResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe POSIX
a -> GetApplicationResponse
s {$sel:creationTime:GetApplicationResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: GetApplicationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetApplicationResponse -> f GetApplicationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetApplicationResponse
-> f GetApplicationResponse
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
getApplicationResponse_arn :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_arn = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:arn:GetApplicationResponse' :: Maybe Text
arn = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_integrations :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Integrations)
getApplicationResponse_integrations :: (Maybe Integrations -> f (Maybe Integrations))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_integrations = (GetApplicationResponse -> Maybe Integrations)
-> (GetApplicationResponse
-> Maybe Integrations -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Integrations)
(Maybe Integrations)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Integrations
integrations :: Maybe Integrations
$sel:integrations:GetApplicationResponse' :: GetApplicationResponse -> Maybe Integrations
integrations} -> Maybe Integrations
integrations) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Integrations
a -> GetApplicationResponse
s {$sel:integrations:GetApplicationResponse' :: Maybe Integrations
integrations = Maybe Integrations
a} :: GetApplicationResponse)
getApplicationResponse_associatedResourceCount :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Natural)
getApplicationResponse_associatedResourceCount :: (Maybe Natural -> f (Maybe Natural))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_associatedResourceCount = (GetApplicationResponse -> Maybe Natural)
-> (GetApplicationResponse
-> Maybe Natural -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Natural
associatedResourceCount :: Maybe Natural
$sel:associatedResourceCount:GetApplicationResponse' :: GetApplicationResponse -> Maybe Natural
associatedResourceCount} -> Maybe Natural
associatedResourceCount) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Natural
a -> GetApplicationResponse
s {$sel:associatedResourceCount:GetApplicationResponse' :: Maybe Natural
associatedResourceCount = Maybe Natural
a} :: GetApplicationResponse)
getApplicationResponse_name :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_name = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:name:GetApplicationResponse' :: Maybe Text
name = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_id :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_id = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:id:GetApplicationResponse' :: Maybe Text
id = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_lastUpdateTime :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.UTCTime)
getApplicationResponse_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_lastUpdateTime = (GetApplicationResponse -> Maybe POSIX)
-> (GetApplicationResponse
-> Maybe POSIX -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:GetApplicationResponse' :: GetApplicationResponse -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe POSIX
a -> GetApplicationResponse
s {$sel:lastUpdateTime:GetApplicationResponse' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: GetApplicationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetApplicationResponse -> f GetApplicationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetApplicationResponse
-> f GetApplicationResponse
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
getApplicationResponse_description :: Lens.Lens' GetApplicationResponse (Prelude.Maybe Prelude.Text)
getApplicationResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_description = (GetApplicationResponse -> Maybe Text)
-> (GetApplicationResponse -> Maybe Text -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetApplicationResponse' :: GetApplicationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe Text
a -> GetApplicationResponse
s {$sel:description:GetApplicationResponse' :: Maybe Text
description = Maybe Text
a} :: GetApplicationResponse)
getApplicationResponse_tags :: Lens.Lens' GetApplicationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getApplicationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_tags = (GetApplicationResponse -> Maybe (HashMap Text Text))
-> (GetApplicationResponse
-> Maybe (HashMap Text Text) -> GetApplicationResponse)
-> Lens
GetApplicationResponse
GetApplicationResponse
(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 (\GetApplicationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetApplicationResponse' :: GetApplicationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Maybe (HashMap Text Text)
a -> GetApplicationResponse
s {$sel:tags:GetApplicationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetApplicationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetApplicationResponse -> f GetApplicationResponse)
-> ((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)))
-> GetApplicationResponse
-> f GetApplicationResponse
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
getApplicationResponse_httpStatus :: Lens.Lens' GetApplicationResponse Prelude.Int
getApplicationResponse_httpStatus :: (Int -> f Int)
-> GetApplicationResponse -> f GetApplicationResponse
getApplicationResponse_httpStatus = (GetApplicationResponse -> Int)
-> (GetApplicationResponse -> Int -> GetApplicationResponse)
-> Lens GetApplicationResponse GetApplicationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetApplicationResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetApplicationResponse' :: GetApplicationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetApplicationResponse
s@GetApplicationResponse' {} Int
a -> GetApplicationResponse
s {$sel:httpStatus:GetApplicationResponse' :: Int
httpStatus = Int
a} :: GetApplicationResponse)
instance Prelude.NFData GetApplicationResponse