{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Panorama.DescribeApplicationInstanceDetails
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns information about an application instance\'s configuration
-- manifest.
module Amazonka.Panorama.DescribeApplicationInstanceDetails
  ( -- * Creating a Request
    DescribeApplicationInstanceDetails (..),
    newDescribeApplicationInstanceDetails,

    -- * Request Lenses
    describeApplicationInstanceDetails_applicationInstanceId,

    -- * Destructuring the Response
    DescribeApplicationInstanceDetailsResponse (..),
    newDescribeApplicationInstanceDetailsResponse,

    -- * Response Lenses
    describeApplicationInstanceDetailsResponse_createdTime,
    describeApplicationInstanceDetailsResponse_defaultRuntimeContextDevice,
    describeApplicationInstanceDetailsResponse_manifestOverridesPayload,
    describeApplicationInstanceDetailsResponse_name,
    describeApplicationInstanceDetailsResponse_applicationInstanceId,
    describeApplicationInstanceDetailsResponse_description,
    describeApplicationInstanceDetailsResponse_manifestPayload,
    describeApplicationInstanceDetailsResponse_applicationInstanceIdToReplace,
    describeApplicationInstanceDetailsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Panorama.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeApplicationInstanceDetails' smart constructor.
data DescribeApplicationInstanceDetails = DescribeApplicationInstanceDetails'
  { -- | The application instance\'s ID.
    DescribeApplicationInstanceDetails -> Text
applicationInstanceId :: Prelude.Text
  }
  deriving (DescribeApplicationInstanceDetails
-> DescribeApplicationInstanceDetails -> Bool
(DescribeApplicationInstanceDetails
 -> DescribeApplicationInstanceDetails -> Bool)
-> (DescribeApplicationInstanceDetails
    -> DescribeApplicationInstanceDetails -> Bool)
-> Eq DescribeApplicationInstanceDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeApplicationInstanceDetails
-> DescribeApplicationInstanceDetails -> Bool
$c/= :: DescribeApplicationInstanceDetails
-> DescribeApplicationInstanceDetails -> Bool
== :: DescribeApplicationInstanceDetails
-> DescribeApplicationInstanceDetails -> Bool
$c== :: DescribeApplicationInstanceDetails
-> DescribeApplicationInstanceDetails -> Bool
Prelude.Eq, ReadPrec [DescribeApplicationInstanceDetails]
ReadPrec DescribeApplicationInstanceDetails
Int -> ReadS DescribeApplicationInstanceDetails
ReadS [DescribeApplicationInstanceDetails]
(Int -> ReadS DescribeApplicationInstanceDetails)
-> ReadS [DescribeApplicationInstanceDetails]
-> ReadPrec DescribeApplicationInstanceDetails
-> ReadPrec [DescribeApplicationInstanceDetails]
-> Read DescribeApplicationInstanceDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeApplicationInstanceDetails]
$creadListPrec :: ReadPrec [DescribeApplicationInstanceDetails]
readPrec :: ReadPrec DescribeApplicationInstanceDetails
$creadPrec :: ReadPrec DescribeApplicationInstanceDetails
readList :: ReadS [DescribeApplicationInstanceDetails]
$creadList :: ReadS [DescribeApplicationInstanceDetails]
readsPrec :: Int -> ReadS DescribeApplicationInstanceDetails
$creadsPrec :: Int -> ReadS DescribeApplicationInstanceDetails
Prelude.Read, Int -> DescribeApplicationInstanceDetails -> ShowS
[DescribeApplicationInstanceDetails] -> ShowS
DescribeApplicationInstanceDetails -> String
(Int -> DescribeApplicationInstanceDetails -> ShowS)
-> (DescribeApplicationInstanceDetails -> String)
-> ([DescribeApplicationInstanceDetails] -> ShowS)
-> Show DescribeApplicationInstanceDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeApplicationInstanceDetails] -> ShowS
$cshowList :: [DescribeApplicationInstanceDetails] -> ShowS
show :: DescribeApplicationInstanceDetails -> String
$cshow :: DescribeApplicationInstanceDetails -> String
showsPrec :: Int -> DescribeApplicationInstanceDetails -> ShowS
$cshowsPrec :: Int -> DescribeApplicationInstanceDetails -> ShowS
Prelude.Show, (forall x.
 DescribeApplicationInstanceDetails
 -> Rep DescribeApplicationInstanceDetails x)
-> (forall x.
    Rep DescribeApplicationInstanceDetails x
    -> DescribeApplicationInstanceDetails)
-> Generic DescribeApplicationInstanceDetails
forall x.
Rep DescribeApplicationInstanceDetails x
-> DescribeApplicationInstanceDetails
forall x.
DescribeApplicationInstanceDetails
-> Rep DescribeApplicationInstanceDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeApplicationInstanceDetails x
-> DescribeApplicationInstanceDetails
$cfrom :: forall x.
DescribeApplicationInstanceDetails
-> Rep DescribeApplicationInstanceDetails x
Prelude.Generic)

-- |
-- Create a value of 'DescribeApplicationInstanceDetails' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'applicationInstanceId', 'describeApplicationInstanceDetails_applicationInstanceId' - The application instance\'s ID.
newDescribeApplicationInstanceDetails ::
  -- | 'applicationInstanceId'
  Prelude.Text ->
  DescribeApplicationInstanceDetails
newDescribeApplicationInstanceDetails :: Text -> DescribeApplicationInstanceDetails
newDescribeApplicationInstanceDetails
  Text
pApplicationInstanceId_ =
    DescribeApplicationInstanceDetails' :: Text -> DescribeApplicationInstanceDetails
DescribeApplicationInstanceDetails'
      { $sel:applicationInstanceId:DescribeApplicationInstanceDetails' :: Text
applicationInstanceId =
          Text
pApplicationInstanceId_
      }

-- | The application instance\'s ID.
describeApplicationInstanceDetails_applicationInstanceId :: Lens.Lens' DescribeApplicationInstanceDetails Prelude.Text
describeApplicationInstanceDetails_applicationInstanceId :: (Text -> f Text)
-> DescribeApplicationInstanceDetails
-> f DescribeApplicationInstanceDetails
describeApplicationInstanceDetails_applicationInstanceId = (DescribeApplicationInstanceDetails -> Text)
-> (DescribeApplicationInstanceDetails
    -> Text -> DescribeApplicationInstanceDetails)
-> Lens
     DescribeApplicationInstanceDetails
     DescribeApplicationInstanceDetails
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetails' {Text
applicationInstanceId :: Text
$sel:applicationInstanceId:DescribeApplicationInstanceDetails' :: DescribeApplicationInstanceDetails -> Text
applicationInstanceId} -> Text
applicationInstanceId) (\s :: DescribeApplicationInstanceDetails
s@DescribeApplicationInstanceDetails' {} Text
a -> DescribeApplicationInstanceDetails
s {$sel:applicationInstanceId:DescribeApplicationInstanceDetails' :: Text
applicationInstanceId = Text
a} :: DescribeApplicationInstanceDetails)

instance
  Core.AWSRequest
    DescribeApplicationInstanceDetails
  where
  type
    AWSResponse DescribeApplicationInstanceDetails =
      DescribeApplicationInstanceDetailsResponse
  request :: DescribeApplicationInstanceDetails
-> Request DescribeApplicationInstanceDetails
request = Service
-> DescribeApplicationInstanceDetails
-> Request DescribeApplicationInstanceDetails
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeApplicationInstanceDetails
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeApplicationInstanceDetails)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeApplicationInstanceDetails))
-> Logger
-> Service
-> Proxy DescribeApplicationInstanceDetails
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeApplicationInstanceDetails)))
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 ManifestOverridesPayload
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ManifestPayload
-> Maybe Text
-> Int
-> DescribeApplicationInstanceDetailsResponse
DescribeApplicationInstanceDetailsResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe ManifestOverridesPayload
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe ManifestPayload
 -> Maybe Text
 -> Int
 -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe ManifestOverridesPayload
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ManifestPayload
      -> Maybe Text
      -> Int
      -> DescribeApplicationInstanceDetailsResponse)
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
"CreatedTime")
              Either
  String
  (Maybe Text
   -> Maybe ManifestOverridesPayload
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ManifestPayload
   -> Maybe Text
   -> Int
   -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ManifestOverridesPayload
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ManifestPayload
      -> Maybe Text
      -> Int
      -> DescribeApplicationInstanceDetailsResponse)
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
"DefaultRuntimeContextDevice")
              Either
  String
  (Maybe ManifestOverridesPayload
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ManifestPayload
   -> Maybe Text
   -> Int
   -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe ManifestOverridesPayload)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe ManifestPayload
      -> Maybe Text
      -> Int
      -> DescribeApplicationInstanceDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ManifestOverridesPayload)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ManifestOverridesPayload")
              Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe ManifestPayload
   -> Maybe Text
   -> Int
   -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe ManifestPayload
      -> Maybe Text
      -> Int
      -> DescribeApplicationInstanceDetailsResponse)
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 ManifestPayload
   -> Maybe Text
   -> Int
   -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe ManifestPayload
      -> Maybe Text
      -> Int
      -> DescribeApplicationInstanceDetailsResponse)
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
"ApplicationInstanceId")
              Either
  String
  (Maybe Text
   -> Maybe ManifestPayload
   -> Maybe Text
   -> Int
   -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ManifestPayload
      -> Maybe Text -> Int -> DescribeApplicationInstanceDetailsResponse)
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 ManifestPayload
   -> Maybe Text -> Int -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe ManifestPayload)
-> Either
     String
     (Maybe Text -> Int -> DescribeApplicationInstanceDetailsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ManifestPayload)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ManifestPayload")
              Either
  String
  (Maybe Text -> Int -> DescribeApplicationInstanceDetailsResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> DescribeApplicationInstanceDetailsResponse)
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
"ApplicationInstanceIdToReplace")
              Either String (Int -> DescribeApplicationInstanceDetailsResponse)
-> Either String Int
-> Either String DescribeApplicationInstanceDetailsResponse
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
    DescribeApplicationInstanceDetails

instance
  Prelude.NFData
    DescribeApplicationInstanceDetails

instance
  Core.ToHeaders
    DescribeApplicationInstanceDetails
  where
  toHeaders :: DescribeApplicationInstanceDetails -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeApplicationInstanceDetails -> 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
    DescribeApplicationInstanceDetails
  where
  toPath :: DescribeApplicationInstanceDetails -> ByteString
toPath DescribeApplicationInstanceDetails' {Text
applicationInstanceId :: Text
$sel:applicationInstanceId:DescribeApplicationInstanceDetails' :: DescribeApplicationInstanceDetails -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/application-instances/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
applicationInstanceId,
        ByteString
"/details"
      ]

instance
  Core.ToQuery
    DescribeApplicationInstanceDetails
  where
  toQuery :: DescribeApplicationInstanceDetails -> QueryString
toQuery = QueryString -> DescribeApplicationInstanceDetails -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeApplicationInstanceDetailsResponse' smart constructor.
data DescribeApplicationInstanceDetailsResponse = DescribeApplicationInstanceDetailsResponse'
  { -- | When the application instance was created.
    DescribeApplicationInstanceDetailsResponse -> Maybe POSIX
createdTime :: Prelude.Maybe Core.POSIX,
    -- | The application instance\'s default runtime context device.
    DescribeApplicationInstanceDetailsResponse -> Maybe Text
defaultRuntimeContextDevice :: Prelude.Maybe Prelude.Text,
    -- | Parameter overrides for the configuration manifest.
    DescribeApplicationInstanceDetailsResponse
-> Maybe ManifestOverridesPayload
manifestOverridesPayload :: Prelude.Maybe ManifestOverridesPayload,
    -- | The application instance\'s name.
    DescribeApplicationInstanceDetailsResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The application instance\'s ID.
    DescribeApplicationInstanceDetailsResponse -> Maybe Text
applicationInstanceId :: Prelude.Maybe Prelude.Text,
    -- | The application instance\'s description.
    DescribeApplicationInstanceDetailsResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The application instance\'s configuration manifest.
    DescribeApplicationInstanceDetailsResponse -> Maybe ManifestPayload
manifestPayload :: Prelude.Maybe ManifestPayload,
    -- | The ID of the application instance that this instance replaced.
    DescribeApplicationInstanceDetailsResponse -> Maybe Text
applicationInstanceIdToReplace :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeApplicationInstanceDetailsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeApplicationInstanceDetailsResponse
-> DescribeApplicationInstanceDetailsResponse -> Bool
(DescribeApplicationInstanceDetailsResponse
 -> DescribeApplicationInstanceDetailsResponse -> Bool)
-> (DescribeApplicationInstanceDetailsResponse
    -> DescribeApplicationInstanceDetailsResponse -> Bool)
-> Eq DescribeApplicationInstanceDetailsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeApplicationInstanceDetailsResponse
-> DescribeApplicationInstanceDetailsResponse -> Bool
$c/= :: DescribeApplicationInstanceDetailsResponse
-> DescribeApplicationInstanceDetailsResponse -> Bool
== :: DescribeApplicationInstanceDetailsResponse
-> DescribeApplicationInstanceDetailsResponse -> Bool
$c== :: DescribeApplicationInstanceDetailsResponse
-> DescribeApplicationInstanceDetailsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeApplicationInstanceDetailsResponse]
ReadPrec DescribeApplicationInstanceDetailsResponse
Int -> ReadS DescribeApplicationInstanceDetailsResponse
ReadS [DescribeApplicationInstanceDetailsResponse]
(Int -> ReadS DescribeApplicationInstanceDetailsResponse)
-> ReadS [DescribeApplicationInstanceDetailsResponse]
-> ReadPrec DescribeApplicationInstanceDetailsResponse
-> ReadPrec [DescribeApplicationInstanceDetailsResponse]
-> Read DescribeApplicationInstanceDetailsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeApplicationInstanceDetailsResponse]
$creadListPrec :: ReadPrec [DescribeApplicationInstanceDetailsResponse]
readPrec :: ReadPrec DescribeApplicationInstanceDetailsResponse
$creadPrec :: ReadPrec DescribeApplicationInstanceDetailsResponse
readList :: ReadS [DescribeApplicationInstanceDetailsResponse]
$creadList :: ReadS [DescribeApplicationInstanceDetailsResponse]
readsPrec :: Int -> ReadS DescribeApplicationInstanceDetailsResponse
$creadsPrec :: Int -> ReadS DescribeApplicationInstanceDetailsResponse
Prelude.Read, Int -> DescribeApplicationInstanceDetailsResponse -> ShowS
[DescribeApplicationInstanceDetailsResponse] -> ShowS
DescribeApplicationInstanceDetailsResponse -> String
(Int -> DescribeApplicationInstanceDetailsResponse -> ShowS)
-> (DescribeApplicationInstanceDetailsResponse -> String)
-> ([DescribeApplicationInstanceDetailsResponse] -> ShowS)
-> Show DescribeApplicationInstanceDetailsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeApplicationInstanceDetailsResponse] -> ShowS
$cshowList :: [DescribeApplicationInstanceDetailsResponse] -> ShowS
show :: DescribeApplicationInstanceDetailsResponse -> String
$cshow :: DescribeApplicationInstanceDetailsResponse -> String
showsPrec :: Int -> DescribeApplicationInstanceDetailsResponse -> ShowS
$cshowsPrec :: Int -> DescribeApplicationInstanceDetailsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeApplicationInstanceDetailsResponse
 -> Rep DescribeApplicationInstanceDetailsResponse x)
-> (forall x.
    Rep DescribeApplicationInstanceDetailsResponse x
    -> DescribeApplicationInstanceDetailsResponse)
-> Generic DescribeApplicationInstanceDetailsResponse
forall x.
Rep DescribeApplicationInstanceDetailsResponse x
-> DescribeApplicationInstanceDetailsResponse
forall x.
DescribeApplicationInstanceDetailsResponse
-> Rep DescribeApplicationInstanceDetailsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeApplicationInstanceDetailsResponse x
-> DescribeApplicationInstanceDetailsResponse
$cfrom :: forall x.
DescribeApplicationInstanceDetailsResponse
-> Rep DescribeApplicationInstanceDetailsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeApplicationInstanceDetailsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'createdTime', 'describeApplicationInstanceDetailsResponse_createdTime' - When the application instance was created.
--
-- 'defaultRuntimeContextDevice', 'describeApplicationInstanceDetailsResponse_defaultRuntimeContextDevice' - The application instance\'s default runtime context device.
--
-- 'manifestOverridesPayload', 'describeApplicationInstanceDetailsResponse_manifestOverridesPayload' - Parameter overrides for the configuration manifest.
--
-- 'name', 'describeApplicationInstanceDetailsResponse_name' - The application instance\'s name.
--
-- 'applicationInstanceId', 'describeApplicationInstanceDetailsResponse_applicationInstanceId' - The application instance\'s ID.
--
-- 'description', 'describeApplicationInstanceDetailsResponse_description' - The application instance\'s description.
--
-- 'manifestPayload', 'describeApplicationInstanceDetailsResponse_manifestPayload' - The application instance\'s configuration manifest.
--
-- 'applicationInstanceIdToReplace', 'describeApplicationInstanceDetailsResponse_applicationInstanceIdToReplace' - The ID of the application instance that this instance replaced.
--
-- 'httpStatus', 'describeApplicationInstanceDetailsResponse_httpStatus' - The response's http status code.
newDescribeApplicationInstanceDetailsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeApplicationInstanceDetailsResponse
newDescribeApplicationInstanceDetailsResponse :: Int -> DescribeApplicationInstanceDetailsResponse
newDescribeApplicationInstanceDetailsResponse
  Int
pHttpStatus_ =
    DescribeApplicationInstanceDetailsResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe ManifestOverridesPayload
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ManifestPayload
-> Maybe Text
-> Int
-> DescribeApplicationInstanceDetailsResponse
DescribeApplicationInstanceDetailsResponse'
      { $sel:createdTime:DescribeApplicationInstanceDetailsResponse' :: Maybe POSIX
createdTime =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:defaultRuntimeContextDevice:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
defaultRuntimeContextDevice =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:manifestOverridesPayload:DescribeApplicationInstanceDetailsResponse' :: Maybe ManifestOverridesPayload
manifestOverridesPayload =
          Maybe ManifestOverridesPayload
forall a. Maybe a
Prelude.Nothing,
        $sel:name:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationInstanceId:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
applicationInstanceId =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:description:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:manifestPayload:DescribeApplicationInstanceDetailsResponse' :: Maybe ManifestPayload
manifestPayload =
          Maybe ManifestPayload
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationInstanceIdToReplace:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
applicationInstanceIdToReplace =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeApplicationInstanceDetailsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | When the application instance was created.
describeApplicationInstanceDetailsResponse_createdTime :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe Prelude.UTCTime)
describeApplicationInstanceDetailsResponse_createdTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_createdTime = (DescribeApplicationInstanceDetailsResponse -> Maybe POSIX)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe POSIX -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe POSIX
createdTime :: Maybe POSIX
$sel:createdTime:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe POSIX
createdTime} -> Maybe POSIX
createdTime) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe POSIX
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:createdTime:DescribeApplicationInstanceDetailsResponse' :: Maybe POSIX
createdTime = Maybe POSIX
a} :: DescribeApplicationInstanceDetailsResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeApplicationInstanceDetailsResponse
 -> f DescribeApplicationInstanceDetailsResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
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

-- | The application instance\'s default runtime context device.
describeApplicationInstanceDetailsResponse_defaultRuntimeContextDevice :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe Prelude.Text)
describeApplicationInstanceDetailsResponse_defaultRuntimeContextDevice :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_defaultRuntimeContextDevice = (DescribeApplicationInstanceDetailsResponse -> Maybe Text)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe Text -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe Text
defaultRuntimeContextDevice :: Maybe Text
$sel:defaultRuntimeContextDevice:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe Text
defaultRuntimeContextDevice} -> Maybe Text
defaultRuntimeContextDevice) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe Text
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:defaultRuntimeContextDevice:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
defaultRuntimeContextDevice = Maybe Text
a} :: DescribeApplicationInstanceDetailsResponse)

-- | Parameter overrides for the configuration manifest.
describeApplicationInstanceDetailsResponse_manifestOverridesPayload :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe ManifestOverridesPayload)
describeApplicationInstanceDetailsResponse_manifestOverridesPayload :: (Maybe ManifestOverridesPayload
 -> f (Maybe ManifestOverridesPayload))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_manifestOverridesPayload = (DescribeApplicationInstanceDetailsResponse
 -> Maybe ManifestOverridesPayload)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe ManifestOverridesPayload
    -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe ManifestOverridesPayload)
     (Maybe ManifestOverridesPayload)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe ManifestOverridesPayload
manifestOverridesPayload :: Maybe ManifestOverridesPayload
$sel:manifestOverridesPayload:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse
-> Maybe ManifestOverridesPayload
manifestOverridesPayload} -> Maybe ManifestOverridesPayload
manifestOverridesPayload) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe ManifestOverridesPayload
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:manifestOverridesPayload:DescribeApplicationInstanceDetailsResponse' :: Maybe ManifestOverridesPayload
manifestOverridesPayload = Maybe ManifestOverridesPayload
a} :: DescribeApplicationInstanceDetailsResponse)

-- | The application instance\'s name.
describeApplicationInstanceDetailsResponse_name :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe Prelude.Text)
describeApplicationInstanceDetailsResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_name = (DescribeApplicationInstanceDetailsResponse -> Maybe Text)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe Text -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe Text
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:name:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeApplicationInstanceDetailsResponse)

-- | The application instance\'s ID.
describeApplicationInstanceDetailsResponse_applicationInstanceId :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe Prelude.Text)
describeApplicationInstanceDetailsResponse_applicationInstanceId :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_applicationInstanceId = (DescribeApplicationInstanceDetailsResponse -> Maybe Text)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe Text -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe Text
applicationInstanceId :: Maybe Text
$sel:applicationInstanceId:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe Text
applicationInstanceId} -> Maybe Text
applicationInstanceId) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe Text
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:applicationInstanceId:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
applicationInstanceId = Maybe Text
a} :: DescribeApplicationInstanceDetailsResponse)

-- | The application instance\'s description.
describeApplicationInstanceDetailsResponse_description :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe Prelude.Text)
describeApplicationInstanceDetailsResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_description = (DescribeApplicationInstanceDetailsResponse -> Maybe Text)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe Text -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe Text
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:description:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeApplicationInstanceDetailsResponse)

-- | The application instance\'s configuration manifest.
describeApplicationInstanceDetailsResponse_manifestPayload :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe ManifestPayload)
describeApplicationInstanceDetailsResponse_manifestPayload :: (Maybe ManifestPayload -> f (Maybe ManifestPayload))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_manifestPayload = (DescribeApplicationInstanceDetailsResponse
 -> Maybe ManifestPayload)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe ManifestPayload
    -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe ManifestPayload)
     (Maybe ManifestPayload)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe ManifestPayload
manifestPayload :: Maybe ManifestPayload
$sel:manifestPayload:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe ManifestPayload
manifestPayload} -> Maybe ManifestPayload
manifestPayload) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe ManifestPayload
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:manifestPayload:DescribeApplicationInstanceDetailsResponse' :: Maybe ManifestPayload
manifestPayload = Maybe ManifestPayload
a} :: DescribeApplicationInstanceDetailsResponse)

-- | The ID of the application instance that this instance replaced.
describeApplicationInstanceDetailsResponse_applicationInstanceIdToReplace :: Lens.Lens' DescribeApplicationInstanceDetailsResponse (Prelude.Maybe Prelude.Text)
describeApplicationInstanceDetailsResponse_applicationInstanceIdToReplace :: (Maybe Text -> f (Maybe Text))
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_applicationInstanceIdToReplace = (DescribeApplicationInstanceDetailsResponse -> Maybe Text)
-> (DescribeApplicationInstanceDetailsResponse
    -> Maybe Text -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Maybe Text
applicationInstanceIdToReplace :: Maybe Text
$sel:applicationInstanceIdToReplace:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Maybe Text
applicationInstanceIdToReplace} -> Maybe Text
applicationInstanceIdToReplace) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Maybe Text
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:applicationInstanceIdToReplace:DescribeApplicationInstanceDetailsResponse' :: Maybe Text
applicationInstanceIdToReplace = Maybe Text
a} :: DescribeApplicationInstanceDetailsResponse)

-- | The response's http status code.
describeApplicationInstanceDetailsResponse_httpStatus :: Lens.Lens' DescribeApplicationInstanceDetailsResponse Prelude.Int
describeApplicationInstanceDetailsResponse_httpStatus :: (Int -> f Int)
-> DescribeApplicationInstanceDetailsResponse
-> f DescribeApplicationInstanceDetailsResponse
describeApplicationInstanceDetailsResponse_httpStatus = (DescribeApplicationInstanceDetailsResponse -> Int)
-> (DescribeApplicationInstanceDetailsResponse
    -> Int -> DescribeApplicationInstanceDetailsResponse)
-> Lens
     DescribeApplicationInstanceDetailsResponse
     DescribeApplicationInstanceDetailsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeApplicationInstanceDetailsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeApplicationInstanceDetailsResponse' :: DescribeApplicationInstanceDetailsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeApplicationInstanceDetailsResponse
s@DescribeApplicationInstanceDetailsResponse' {} Int
a -> DescribeApplicationInstanceDetailsResponse
s {$sel:httpStatus:DescribeApplicationInstanceDetailsResponse' :: Int
httpStatus = Int
a} :: DescribeApplicationInstanceDetailsResponse)

instance
  Prelude.NFData
    DescribeApplicationInstanceDetailsResponse