{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.KinesisAnalyticsV2.Types.ApplicationDetail
-- 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)
module Amazonka.KinesisAnalyticsV2.Types.ApplicationDetail where

import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.ApplicationConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.ApplicationMaintenanceConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.ApplicationMode
import Amazonka.KinesisAnalyticsV2.Types.ApplicationStatus
import Amazonka.KinesisAnalyticsV2.Types.CloudWatchLoggingOptionDescription
import Amazonka.KinesisAnalyticsV2.Types.RuntimeEnvironment
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Describes the application, including the application Amazon Resource
-- Name (ARN), status, latest version, and input and output configurations.
--
-- /See:/ 'newApplicationDetail' smart constructor.
data ApplicationDetail = ApplicationDetail'
  { -- | The description of the application.
    ApplicationDetail -> Maybe Text
applicationDescription :: Prelude.Maybe Prelude.Text,
    -- | A value you use to implement strong concurrency for application updates.
    ApplicationDetail -> Maybe Text
conditionalToken :: Prelude.Maybe Prelude.Text,
    -- | Describes the application Amazon CloudWatch logging options.
    ApplicationDetail -> Maybe [CloudWatchLoggingOptionDescription]
cloudWatchLoggingOptionDescriptions :: Prelude.Maybe [CloudWatchLoggingOptionDescription],
    -- | If you reverted the application using RollbackApplication, the
    -- application version when @RollbackApplication@ was called.
    ApplicationDetail -> Maybe Natural
applicationVersionRolledBackFrom :: Prelude.Maybe Prelude.Natural,
    -- | To create a Kinesis Data Analytics Studio notebook, you must set the
    -- mode to @INTERACTIVE@. However, for a Kinesis Data Analytics for Apache
    -- Flink application, the mode is optional.
    ApplicationDetail -> Maybe ApplicationMode
applicationMode :: Prelude.Maybe ApplicationMode,
    -- | Describes details about the application code and starting parameters for
    -- a Kinesis Data Analytics application.
    ApplicationDetail -> Maybe ApplicationConfigurationDescription
applicationConfigurationDescription :: Prelude.Maybe ApplicationConfigurationDescription,
    -- | The version to which you want to roll back the application.
    ApplicationDetail -> Maybe Natural
applicationVersionRolledBackTo :: Prelude.Maybe Prelude.Natural,
    -- | The current timestamp when the application was created.
    ApplicationDetail -> Maybe POSIX
createTimestamp :: Prelude.Maybe Core.POSIX,
    -- | The current timestamp when the application was last updated.
    ApplicationDetail -> Maybe POSIX
lastUpdateTimestamp :: Prelude.Maybe Core.POSIX,
    -- | Specifies the IAM role that the application uses to access external
    -- resources.
    ApplicationDetail -> Maybe Text
serviceExecutionRole :: Prelude.Maybe Prelude.Text,
    -- | The previous application version before the latest application update.
    -- RollbackApplication reverts the application to this version.
    ApplicationDetail -> Maybe Natural
applicationVersionUpdatedFrom :: Prelude.Maybe Prelude.Natural,
    -- | The details of the maintenance configuration for the application.
    ApplicationDetail
-> Maybe ApplicationMaintenanceConfigurationDescription
applicationMaintenanceConfigurationDescription :: Prelude.Maybe ApplicationMaintenanceConfigurationDescription,
    -- | The ARN of the application.
    ApplicationDetail -> Text
applicationARN :: Prelude.Text,
    -- | The name of the application.
    ApplicationDetail -> Text
applicationName :: Prelude.Text,
    -- | The runtime environment for the application (@SQL-1_0@, @FLINK-1_6@,
    -- @FLINK-1_8@, or @FLINK-1_11@).
    ApplicationDetail -> RuntimeEnvironment
runtimeEnvironment :: RuntimeEnvironment,
    -- | The status of the application.
    ApplicationDetail -> ApplicationStatus
applicationStatus :: ApplicationStatus,
    -- | Provides the current application version. Kinesis Data Analytics updates
    -- the @ApplicationVersionId@ each time you update the application.
    ApplicationDetail -> Natural
applicationVersionId :: Prelude.Natural
  }
  deriving (ApplicationDetail -> ApplicationDetail -> Bool
(ApplicationDetail -> ApplicationDetail -> Bool)
-> (ApplicationDetail -> ApplicationDetail -> Bool)
-> Eq ApplicationDetail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationDetail -> ApplicationDetail -> Bool
$c/= :: ApplicationDetail -> ApplicationDetail -> Bool
== :: ApplicationDetail -> ApplicationDetail -> Bool
$c== :: ApplicationDetail -> ApplicationDetail -> Bool
Prelude.Eq, ReadPrec [ApplicationDetail]
ReadPrec ApplicationDetail
Int -> ReadS ApplicationDetail
ReadS [ApplicationDetail]
(Int -> ReadS ApplicationDetail)
-> ReadS [ApplicationDetail]
-> ReadPrec ApplicationDetail
-> ReadPrec [ApplicationDetail]
-> Read ApplicationDetail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationDetail]
$creadListPrec :: ReadPrec [ApplicationDetail]
readPrec :: ReadPrec ApplicationDetail
$creadPrec :: ReadPrec ApplicationDetail
readList :: ReadS [ApplicationDetail]
$creadList :: ReadS [ApplicationDetail]
readsPrec :: Int -> ReadS ApplicationDetail
$creadsPrec :: Int -> ReadS ApplicationDetail
Prelude.Read, Int -> ApplicationDetail -> ShowS
[ApplicationDetail] -> ShowS
ApplicationDetail -> String
(Int -> ApplicationDetail -> ShowS)
-> (ApplicationDetail -> String)
-> ([ApplicationDetail] -> ShowS)
-> Show ApplicationDetail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationDetail] -> ShowS
$cshowList :: [ApplicationDetail] -> ShowS
show :: ApplicationDetail -> String
$cshow :: ApplicationDetail -> String
showsPrec :: Int -> ApplicationDetail -> ShowS
$cshowsPrec :: Int -> ApplicationDetail -> ShowS
Prelude.Show, (forall x. ApplicationDetail -> Rep ApplicationDetail x)
-> (forall x. Rep ApplicationDetail x -> ApplicationDetail)
-> Generic ApplicationDetail
forall x. Rep ApplicationDetail x -> ApplicationDetail
forall x. ApplicationDetail -> Rep ApplicationDetail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ApplicationDetail x -> ApplicationDetail
$cfrom :: forall x. ApplicationDetail -> Rep ApplicationDetail x
Prelude.Generic)

-- |
-- Create a value of 'ApplicationDetail' 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:
--
-- 'applicationDescription', 'applicationDetail_applicationDescription' - The description of the application.
--
-- 'conditionalToken', 'applicationDetail_conditionalToken' - A value you use to implement strong concurrency for application updates.
--
-- 'cloudWatchLoggingOptionDescriptions', 'applicationDetail_cloudWatchLoggingOptionDescriptions' - Describes the application Amazon CloudWatch logging options.
--
-- 'applicationVersionRolledBackFrom', 'applicationDetail_applicationVersionRolledBackFrom' - If you reverted the application using RollbackApplication, the
-- application version when @RollbackApplication@ was called.
--
-- 'applicationMode', 'applicationDetail_applicationMode' - To create a Kinesis Data Analytics Studio notebook, you must set the
-- mode to @INTERACTIVE@. However, for a Kinesis Data Analytics for Apache
-- Flink application, the mode is optional.
--
-- 'applicationConfigurationDescription', 'applicationDetail_applicationConfigurationDescription' - Describes details about the application code and starting parameters for
-- a Kinesis Data Analytics application.
--
-- 'applicationVersionRolledBackTo', 'applicationDetail_applicationVersionRolledBackTo' - The version to which you want to roll back the application.
--
-- 'createTimestamp', 'applicationDetail_createTimestamp' - The current timestamp when the application was created.
--
-- 'lastUpdateTimestamp', 'applicationDetail_lastUpdateTimestamp' - The current timestamp when the application was last updated.
--
-- 'serviceExecutionRole', 'applicationDetail_serviceExecutionRole' - Specifies the IAM role that the application uses to access external
-- resources.
--
-- 'applicationVersionUpdatedFrom', 'applicationDetail_applicationVersionUpdatedFrom' - The previous application version before the latest application update.
-- RollbackApplication reverts the application to this version.
--
-- 'applicationMaintenanceConfigurationDescription', 'applicationDetail_applicationMaintenanceConfigurationDescription' - The details of the maintenance configuration for the application.
--
-- 'applicationARN', 'applicationDetail_applicationARN' - The ARN of the application.
--
-- 'applicationName', 'applicationDetail_applicationName' - The name of the application.
--
-- 'runtimeEnvironment', 'applicationDetail_runtimeEnvironment' - The runtime environment for the application (@SQL-1_0@, @FLINK-1_6@,
-- @FLINK-1_8@, or @FLINK-1_11@).
--
-- 'applicationStatus', 'applicationDetail_applicationStatus' - The status of the application.
--
-- 'applicationVersionId', 'applicationDetail_applicationVersionId' - Provides the current application version. Kinesis Data Analytics updates
-- the @ApplicationVersionId@ each time you update the application.
newApplicationDetail ::
  -- | 'applicationARN'
  Prelude.Text ->
  -- | 'applicationName'
  Prelude.Text ->
  -- | 'runtimeEnvironment'
  RuntimeEnvironment ->
  -- | 'applicationStatus'
  ApplicationStatus ->
  -- | 'applicationVersionId'
  Prelude.Natural ->
  ApplicationDetail
newApplicationDetail :: Text
-> Text
-> RuntimeEnvironment
-> ApplicationStatus
-> Natural
-> ApplicationDetail
newApplicationDetail
  Text
pApplicationARN_
  Text
pApplicationName_
  RuntimeEnvironment
pRuntimeEnvironment_
  ApplicationStatus
pApplicationStatus_
  Natural
pApplicationVersionId_ =
    ApplicationDetail' :: Maybe Text
-> Maybe Text
-> Maybe [CloudWatchLoggingOptionDescription]
-> Maybe Natural
-> Maybe ApplicationMode
-> Maybe ApplicationConfigurationDescription
-> Maybe Natural
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApplicationMaintenanceConfigurationDescription
-> Text
-> Text
-> RuntimeEnvironment
-> ApplicationStatus
-> Natural
-> ApplicationDetail
ApplicationDetail'
      { $sel:applicationDescription:ApplicationDetail' :: Maybe Text
applicationDescription =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:conditionalToken:ApplicationDetail' :: Maybe Text
conditionalToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:cloudWatchLoggingOptionDescriptions:ApplicationDetail' :: Maybe [CloudWatchLoggingOptionDescription]
cloudWatchLoggingOptionDescriptions =
          Maybe [CloudWatchLoggingOptionDescription]
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationVersionRolledBackFrom:ApplicationDetail' :: Maybe Natural
applicationVersionRolledBackFrom = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationMode:ApplicationDetail' :: Maybe ApplicationMode
applicationMode = Maybe ApplicationMode
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationConfigurationDescription:ApplicationDetail' :: Maybe ApplicationConfigurationDescription
applicationConfigurationDescription =
          Maybe ApplicationConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationVersionRolledBackTo:ApplicationDetail' :: Maybe Natural
applicationVersionRolledBackTo = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:createTimestamp:ApplicationDetail' :: Maybe POSIX
createTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:lastUpdateTimestamp:ApplicationDetail' :: Maybe POSIX
lastUpdateTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:serviceExecutionRole:ApplicationDetail' :: Maybe Text
serviceExecutionRole = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationVersionUpdatedFrom:ApplicationDetail' :: Maybe Natural
applicationVersionUpdatedFrom = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationMaintenanceConfigurationDescription:ApplicationDetail' :: Maybe ApplicationMaintenanceConfigurationDescription
applicationMaintenanceConfigurationDescription =
          Maybe ApplicationMaintenanceConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationARN:ApplicationDetail' :: Text
applicationARN = Text
pApplicationARN_,
        $sel:applicationName:ApplicationDetail' :: Text
applicationName = Text
pApplicationName_,
        $sel:runtimeEnvironment:ApplicationDetail' :: RuntimeEnvironment
runtimeEnvironment = RuntimeEnvironment
pRuntimeEnvironment_,
        $sel:applicationStatus:ApplicationDetail' :: ApplicationStatus
applicationStatus = ApplicationStatus
pApplicationStatus_,
        $sel:applicationVersionId:ApplicationDetail' :: Natural
applicationVersionId = Natural
pApplicationVersionId_
      }

-- | The description of the application.
applicationDetail_applicationDescription :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.Text)
applicationDetail_applicationDescription :: (Maybe Text -> f (Maybe Text))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationDescription = (ApplicationDetail -> Maybe Text)
-> (ApplicationDetail -> Maybe Text -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe Text
applicationDescription :: Maybe Text
$sel:applicationDescription:ApplicationDetail' :: ApplicationDetail -> Maybe Text
applicationDescription} -> Maybe Text
applicationDescription) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe Text
a -> ApplicationDetail
s {$sel:applicationDescription:ApplicationDetail' :: Maybe Text
applicationDescription = Maybe Text
a} :: ApplicationDetail)

-- | A value you use to implement strong concurrency for application updates.
applicationDetail_conditionalToken :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.Text)
applicationDetail_conditionalToken :: (Maybe Text -> f (Maybe Text))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_conditionalToken = (ApplicationDetail -> Maybe Text)
-> (ApplicationDetail -> Maybe Text -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe Text
conditionalToken :: Maybe Text
$sel:conditionalToken:ApplicationDetail' :: ApplicationDetail -> Maybe Text
conditionalToken} -> Maybe Text
conditionalToken) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe Text
a -> ApplicationDetail
s {$sel:conditionalToken:ApplicationDetail' :: Maybe Text
conditionalToken = Maybe Text
a} :: ApplicationDetail)

-- | Describes the application Amazon CloudWatch logging options.
applicationDetail_cloudWatchLoggingOptionDescriptions :: Lens.Lens' ApplicationDetail (Prelude.Maybe [CloudWatchLoggingOptionDescription])
applicationDetail_cloudWatchLoggingOptionDescriptions :: (Maybe [CloudWatchLoggingOptionDescription]
 -> f (Maybe [CloudWatchLoggingOptionDescription]))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_cloudWatchLoggingOptionDescriptions = (ApplicationDetail -> Maybe [CloudWatchLoggingOptionDescription])
-> (ApplicationDetail
    -> Maybe [CloudWatchLoggingOptionDescription] -> ApplicationDetail)
-> Lens
     ApplicationDetail
     ApplicationDetail
     (Maybe [CloudWatchLoggingOptionDescription])
     (Maybe [CloudWatchLoggingOptionDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe [CloudWatchLoggingOptionDescription]
cloudWatchLoggingOptionDescriptions :: Maybe [CloudWatchLoggingOptionDescription]
$sel:cloudWatchLoggingOptionDescriptions:ApplicationDetail' :: ApplicationDetail -> Maybe [CloudWatchLoggingOptionDescription]
cloudWatchLoggingOptionDescriptions} -> Maybe [CloudWatchLoggingOptionDescription]
cloudWatchLoggingOptionDescriptions) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe [CloudWatchLoggingOptionDescription]
a -> ApplicationDetail
s {$sel:cloudWatchLoggingOptionDescriptions:ApplicationDetail' :: Maybe [CloudWatchLoggingOptionDescription]
cloudWatchLoggingOptionDescriptions = Maybe [CloudWatchLoggingOptionDescription]
a} :: ApplicationDetail) ((Maybe [CloudWatchLoggingOptionDescription]
  -> f (Maybe [CloudWatchLoggingOptionDescription]))
 -> ApplicationDetail -> f ApplicationDetail)
-> ((Maybe [CloudWatchLoggingOptionDescription]
     -> f (Maybe [CloudWatchLoggingOptionDescription]))
    -> Maybe [CloudWatchLoggingOptionDescription]
    -> f (Maybe [CloudWatchLoggingOptionDescription]))
-> (Maybe [CloudWatchLoggingOptionDescription]
    -> f (Maybe [CloudWatchLoggingOptionDescription]))
-> ApplicationDetail
-> f ApplicationDetail
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [CloudWatchLoggingOptionDescription]
  [CloudWatchLoggingOptionDescription]
  [CloudWatchLoggingOptionDescription]
  [CloudWatchLoggingOptionDescription]
-> Iso
     (Maybe [CloudWatchLoggingOptionDescription])
     (Maybe [CloudWatchLoggingOptionDescription])
     (Maybe [CloudWatchLoggingOptionDescription])
     (Maybe [CloudWatchLoggingOptionDescription])
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
  [CloudWatchLoggingOptionDescription]
  [CloudWatchLoggingOptionDescription]
  [CloudWatchLoggingOptionDescription]
  [CloudWatchLoggingOptionDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | If you reverted the application using RollbackApplication, the
-- application version when @RollbackApplication@ was called.
applicationDetail_applicationVersionRolledBackFrom :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.Natural)
applicationDetail_applicationVersionRolledBackFrom :: (Maybe Natural -> f (Maybe Natural))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationVersionRolledBackFrom = (ApplicationDetail -> Maybe Natural)
-> (ApplicationDetail -> Maybe Natural -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe Natural
applicationVersionRolledBackFrom :: Maybe Natural
$sel:applicationVersionRolledBackFrom:ApplicationDetail' :: ApplicationDetail -> Maybe Natural
applicationVersionRolledBackFrom} -> Maybe Natural
applicationVersionRolledBackFrom) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe Natural
a -> ApplicationDetail
s {$sel:applicationVersionRolledBackFrom:ApplicationDetail' :: Maybe Natural
applicationVersionRolledBackFrom = Maybe Natural
a} :: ApplicationDetail)

-- | To create a Kinesis Data Analytics Studio notebook, you must set the
-- mode to @INTERACTIVE@. However, for a Kinesis Data Analytics for Apache
-- Flink application, the mode is optional.
applicationDetail_applicationMode :: Lens.Lens' ApplicationDetail (Prelude.Maybe ApplicationMode)
applicationDetail_applicationMode :: (Maybe ApplicationMode -> f (Maybe ApplicationMode))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationMode = (ApplicationDetail -> Maybe ApplicationMode)
-> (ApplicationDetail
    -> Maybe ApplicationMode -> ApplicationDetail)
-> Lens
     ApplicationDetail
     ApplicationDetail
     (Maybe ApplicationMode)
     (Maybe ApplicationMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe ApplicationMode
applicationMode :: Maybe ApplicationMode
$sel:applicationMode:ApplicationDetail' :: ApplicationDetail -> Maybe ApplicationMode
applicationMode} -> Maybe ApplicationMode
applicationMode) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe ApplicationMode
a -> ApplicationDetail
s {$sel:applicationMode:ApplicationDetail' :: Maybe ApplicationMode
applicationMode = Maybe ApplicationMode
a} :: ApplicationDetail)

-- | Describes details about the application code and starting parameters for
-- a Kinesis Data Analytics application.
applicationDetail_applicationConfigurationDescription :: Lens.Lens' ApplicationDetail (Prelude.Maybe ApplicationConfigurationDescription)
applicationDetail_applicationConfigurationDescription :: (Maybe ApplicationConfigurationDescription
 -> f (Maybe ApplicationConfigurationDescription))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationConfigurationDescription = (ApplicationDetail -> Maybe ApplicationConfigurationDescription)
-> (ApplicationDetail
    -> Maybe ApplicationConfigurationDescription -> ApplicationDetail)
-> Lens
     ApplicationDetail
     ApplicationDetail
     (Maybe ApplicationConfigurationDescription)
     (Maybe ApplicationConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe ApplicationConfigurationDescription
applicationConfigurationDescription :: Maybe ApplicationConfigurationDescription
$sel:applicationConfigurationDescription:ApplicationDetail' :: ApplicationDetail -> Maybe ApplicationConfigurationDescription
applicationConfigurationDescription} -> Maybe ApplicationConfigurationDescription
applicationConfigurationDescription) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe ApplicationConfigurationDescription
a -> ApplicationDetail
s {$sel:applicationConfigurationDescription:ApplicationDetail' :: Maybe ApplicationConfigurationDescription
applicationConfigurationDescription = Maybe ApplicationConfigurationDescription
a} :: ApplicationDetail)

-- | The version to which you want to roll back the application.
applicationDetail_applicationVersionRolledBackTo :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.Natural)
applicationDetail_applicationVersionRolledBackTo :: (Maybe Natural -> f (Maybe Natural))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationVersionRolledBackTo = (ApplicationDetail -> Maybe Natural)
-> (ApplicationDetail -> Maybe Natural -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe Natural
applicationVersionRolledBackTo :: Maybe Natural
$sel:applicationVersionRolledBackTo:ApplicationDetail' :: ApplicationDetail -> Maybe Natural
applicationVersionRolledBackTo} -> Maybe Natural
applicationVersionRolledBackTo) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe Natural
a -> ApplicationDetail
s {$sel:applicationVersionRolledBackTo:ApplicationDetail' :: Maybe Natural
applicationVersionRolledBackTo = Maybe Natural
a} :: ApplicationDetail)

-- | The current timestamp when the application was created.
applicationDetail_createTimestamp :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.UTCTime)
applicationDetail_createTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_createTimestamp = (ApplicationDetail -> Maybe POSIX)
-> (ApplicationDetail -> Maybe POSIX -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe POSIX
createTimestamp :: Maybe POSIX
$sel:createTimestamp:ApplicationDetail' :: ApplicationDetail -> Maybe POSIX
createTimestamp} -> Maybe POSIX
createTimestamp) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe POSIX
a -> ApplicationDetail
s {$sel:createTimestamp:ApplicationDetail' :: Maybe POSIX
createTimestamp = Maybe POSIX
a} :: ApplicationDetail) ((Maybe POSIX -> f (Maybe POSIX))
 -> ApplicationDetail -> f ApplicationDetail)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDetail
-> f ApplicationDetail
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 current timestamp when the application was last updated.
applicationDetail_lastUpdateTimestamp :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.UTCTime)
applicationDetail_lastUpdateTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_lastUpdateTimestamp = (ApplicationDetail -> Maybe POSIX)
-> (ApplicationDetail -> Maybe POSIX -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe POSIX
lastUpdateTimestamp :: Maybe POSIX
$sel:lastUpdateTimestamp:ApplicationDetail' :: ApplicationDetail -> Maybe POSIX
lastUpdateTimestamp} -> Maybe POSIX
lastUpdateTimestamp) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe POSIX
a -> ApplicationDetail
s {$sel:lastUpdateTimestamp:ApplicationDetail' :: Maybe POSIX
lastUpdateTimestamp = Maybe POSIX
a} :: ApplicationDetail) ((Maybe POSIX -> f (Maybe POSIX))
 -> ApplicationDetail -> f ApplicationDetail)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ApplicationDetail
-> f ApplicationDetail
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

-- | Specifies the IAM role that the application uses to access external
-- resources.
applicationDetail_serviceExecutionRole :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.Text)
applicationDetail_serviceExecutionRole :: (Maybe Text -> f (Maybe Text))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_serviceExecutionRole = (ApplicationDetail -> Maybe Text)
-> (ApplicationDetail -> Maybe Text -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe Text
serviceExecutionRole :: Maybe Text
$sel:serviceExecutionRole:ApplicationDetail' :: ApplicationDetail -> Maybe Text
serviceExecutionRole} -> Maybe Text
serviceExecutionRole) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe Text
a -> ApplicationDetail
s {$sel:serviceExecutionRole:ApplicationDetail' :: Maybe Text
serviceExecutionRole = Maybe Text
a} :: ApplicationDetail)

-- | The previous application version before the latest application update.
-- RollbackApplication reverts the application to this version.
applicationDetail_applicationVersionUpdatedFrom :: Lens.Lens' ApplicationDetail (Prelude.Maybe Prelude.Natural)
applicationDetail_applicationVersionUpdatedFrom :: (Maybe Natural -> f (Maybe Natural))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationVersionUpdatedFrom = (ApplicationDetail -> Maybe Natural)
-> (ApplicationDetail -> Maybe Natural -> ApplicationDetail)
-> Lens
     ApplicationDetail ApplicationDetail (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe Natural
applicationVersionUpdatedFrom :: Maybe Natural
$sel:applicationVersionUpdatedFrom:ApplicationDetail' :: ApplicationDetail -> Maybe Natural
applicationVersionUpdatedFrom} -> Maybe Natural
applicationVersionUpdatedFrom) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe Natural
a -> ApplicationDetail
s {$sel:applicationVersionUpdatedFrom:ApplicationDetail' :: Maybe Natural
applicationVersionUpdatedFrom = Maybe Natural
a} :: ApplicationDetail)

-- | The details of the maintenance configuration for the application.
applicationDetail_applicationMaintenanceConfigurationDescription :: Lens.Lens' ApplicationDetail (Prelude.Maybe ApplicationMaintenanceConfigurationDescription)
applicationDetail_applicationMaintenanceConfigurationDescription :: (Maybe ApplicationMaintenanceConfigurationDescription
 -> f (Maybe ApplicationMaintenanceConfigurationDescription))
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationMaintenanceConfigurationDescription = (ApplicationDetail
 -> Maybe ApplicationMaintenanceConfigurationDescription)
-> (ApplicationDetail
    -> Maybe ApplicationMaintenanceConfigurationDescription
    -> ApplicationDetail)
-> Lens
     ApplicationDetail
     ApplicationDetail
     (Maybe ApplicationMaintenanceConfigurationDescription)
     (Maybe ApplicationMaintenanceConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Maybe ApplicationMaintenanceConfigurationDescription
applicationMaintenanceConfigurationDescription :: Maybe ApplicationMaintenanceConfigurationDescription
$sel:applicationMaintenanceConfigurationDescription:ApplicationDetail' :: ApplicationDetail
-> Maybe ApplicationMaintenanceConfigurationDescription
applicationMaintenanceConfigurationDescription} -> Maybe ApplicationMaintenanceConfigurationDescription
applicationMaintenanceConfigurationDescription) (\s :: ApplicationDetail
s@ApplicationDetail' {} Maybe ApplicationMaintenanceConfigurationDescription
a -> ApplicationDetail
s {$sel:applicationMaintenanceConfigurationDescription:ApplicationDetail' :: Maybe ApplicationMaintenanceConfigurationDescription
applicationMaintenanceConfigurationDescription = Maybe ApplicationMaintenanceConfigurationDescription
a} :: ApplicationDetail)

-- | The ARN of the application.
applicationDetail_applicationARN :: Lens.Lens' ApplicationDetail Prelude.Text
applicationDetail_applicationARN :: (Text -> f Text) -> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationARN = (ApplicationDetail -> Text)
-> (ApplicationDetail -> Text -> ApplicationDetail)
-> Lens ApplicationDetail ApplicationDetail Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Text
applicationARN :: Text
$sel:applicationARN:ApplicationDetail' :: ApplicationDetail -> Text
applicationARN} -> Text
applicationARN) (\s :: ApplicationDetail
s@ApplicationDetail' {} Text
a -> ApplicationDetail
s {$sel:applicationARN:ApplicationDetail' :: Text
applicationARN = Text
a} :: ApplicationDetail)

-- | The name of the application.
applicationDetail_applicationName :: Lens.Lens' ApplicationDetail Prelude.Text
applicationDetail_applicationName :: (Text -> f Text) -> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationName = (ApplicationDetail -> Text)
-> (ApplicationDetail -> Text -> ApplicationDetail)
-> Lens ApplicationDetail ApplicationDetail Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Text
applicationName :: Text
$sel:applicationName:ApplicationDetail' :: ApplicationDetail -> Text
applicationName} -> Text
applicationName) (\s :: ApplicationDetail
s@ApplicationDetail' {} Text
a -> ApplicationDetail
s {$sel:applicationName:ApplicationDetail' :: Text
applicationName = Text
a} :: ApplicationDetail)

-- | The runtime environment for the application (@SQL-1_0@, @FLINK-1_6@,
-- @FLINK-1_8@, or @FLINK-1_11@).
applicationDetail_runtimeEnvironment :: Lens.Lens' ApplicationDetail RuntimeEnvironment
applicationDetail_runtimeEnvironment :: (RuntimeEnvironment -> f RuntimeEnvironment)
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_runtimeEnvironment = (ApplicationDetail -> RuntimeEnvironment)
-> (ApplicationDetail -> RuntimeEnvironment -> ApplicationDetail)
-> Lens
     ApplicationDetail
     ApplicationDetail
     RuntimeEnvironment
     RuntimeEnvironment
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {RuntimeEnvironment
runtimeEnvironment :: RuntimeEnvironment
$sel:runtimeEnvironment:ApplicationDetail' :: ApplicationDetail -> RuntimeEnvironment
runtimeEnvironment} -> RuntimeEnvironment
runtimeEnvironment) (\s :: ApplicationDetail
s@ApplicationDetail' {} RuntimeEnvironment
a -> ApplicationDetail
s {$sel:runtimeEnvironment:ApplicationDetail' :: RuntimeEnvironment
runtimeEnvironment = RuntimeEnvironment
a} :: ApplicationDetail)

-- | The status of the application.
applicationDetail_applicationStatus :: Lens.Lens' ApplicationDetail ApplicationStatus
applicationDetail_applicationStatus :: (ApplicationStatus -> f ApplicationStatus)
-> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationStatus = (ApplicationDetail -> ApplicationStatus)
-> (ApplicationDetail -> ApplicationStatus -> ApplicationDetail)
-> Lens
     ApplicationDetail
     ApplicationDetail
     ApplicationStatus
     ApplicationStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {ApplicationStatus
applicationStatus :: ApplicationStatus
$sel:applicationStatus:ApplicationDetail' :: ApplicationDetail -> ApplicationStatus
applicationStatus} -> ApplicationStatus
applicationStatus) (\s :: ApplicationDetail
s@ApplicationDetail' {} ApplicationStatus
a -> ApplicationDetail
s {$sel:applicationStatus:ApplicationDetail' :: ApplicationStatus
applicationStatus = ApplicationStatus
a} :: ApplicationDetail)

-- | Provides the current application version. Kinesis Data Analytics updates
-- the @ApplicationVersionId@ each time you update the application.
applicationDetail_applicationVersionId :: Lens.Lens' ApplicationDetail Prelude.Natural
applicationDetail_applicationVersionId :: (Natural -> f Natural) -> ApplicationDetail -> f ApplicationDetail
applicationDetail_applicationVersionId = (ApplicationDetail -> Natural)
-> (ApplicationDetail -> Natural -> ApplicationDetail)
-> Lens ApplicationDetail ApplicationDetail Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationDetail' {Natural
applicationVersionId :: Natural
$sel:applicationVersionId:ApplicationDetail' :: ApplicationDetail -> Natural
applicationVersionId} -> Natural
applicationVersionId) (\s :: ApplicationDetail
s@ApplicationDetail' {} Natural
a -> ApplicationDetail
s {$sel:applicationVersionId:ApplicationDetail' :: Natural
applicationVersionId = Natural
a} :: ApplicationDetail)

instance Core.FromJSON ApplicationDetail where
  parseJSON :: Value -> Parser ApplicationDetail
parseJSON =
    String
-> (Object -> Parser ApplicationDetail)
-> Value
-> Parser ApplicationDetail
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ApplicationDetail"
      ( \Object
x ->
          Maybe Text
-> Maybe Text
-> Maybe [CloudWatchLoggingOptionDescription]
-> Maybe Natural
-> Maybe ApplicationMode
-> Maybe ApplicationConfigurationDescription
-> Maybe Natural
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Natural
-> Maybe ApplicationMaintenanceConfigurationDescription
-> Text
-> Text
-> RuntimeEnvironment
-> ApplicationStatus
-> Natural
-> ApplicationDetail
ApplicationDetail'
            (Maybe Text
 -> Maybe Text
 -> Maybe [CloudWatchLoggingOptionDescription]
 -> Maybe Natural
 -> Maybe ApplicationMode
 -> Maybe ApplicationConfigurationDescription
 -> Maybe Natural
 -> Maybe POSIX
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Natural
 -> Maybe ApplicationMaintenanceConfigurationDescription
 -> Text
 -> Text
 -> RuntimeEnvironment
 -> ApplicationStatus
 -> Natural
 -> ApplicationDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe [CloudWatchLoggingOptionDescription]
      -> Maybe Natural
      -> Maybe ApplicationMode
      -> Maybe ApplicationConfigurationDescription
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationDescription")
            Parser
  (Maybe Text
   -> Maybe [CloudWatchLoggingOptionDescription]
   -> Maybe Natural
   -> Maybe ApplicationMode
   -> Maybe ApplicationConfigurationDescription
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe [CloudWatchLoggingOptionDescription]
      -> Maybe Natural
      -> Maybe ApplicationMode
      -> Maybe ApplicationConfigurationDescription
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ConditionalToken")
            Parser
  (Maybe [CloudWatchLoggingOptionDescription]
   -> Maybe Natural
   -> Maybe ApplicationMode
   -> Maybe ApplicationConfigurationDescription
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe [CloudWatchLoggingOptionDescription])
-> Parser
     (Maybe Natural
      -> Maybe ApplicationMode
      -> Maybe ApplicationConfigurationDescription
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Parser (Maybe (Maybe [CloudWatchLoggingOptionDescription]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CloudWatchLoggingOptionDescriptions"
                            Parser (Maybe (Maybe [CloudWatchLoggingOptionDescription]))
-> Maybe [CloudWatchLoggingOptionDescription]
-> Parser (Maybe [CloudWatchLoggingOptionDescription])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [CloudWatchLoggingOptionDescription]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Natural
   -> Maybe ApplicationMode
   -> Maybe ApplicationConfigurationDescription
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ApplicationMode
      -> Maybe ApplicationConfigurationDescription
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationVersionRolledBackFrom")
            Parser
  (Maybe ApplicationMode
   -> Maybe ApplicationConfigurationDescription
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe ApplicationMode)
-> Parser
     (Maybe ApplicationConfigurationDescription
      -> Maybe Natural
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ApplicationMode)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationMode")
            Parser
  (Maybe ApplicationConfigurationDescription
   -> Maybe Natural
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe ApplicationConfigurationDescription)
-> Parser
     (Maybe Natural
      -> Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe ApplicationConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationConfigurationDescription")
            Parser
  (Maybe Natural
   -> Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe Natural)
-> Parser
     (Maybe POSIX
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationVersionRolledBackTo")
            Parser
  (Maybe POSIX
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreateTimestamp")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdateTimestamp")
            Parser
  (Maybe Text
   -> Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe Text)
-> Parser
     (Maybe Natural
      -> Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServiceExecutionRole")
            Parser
  (Maybe Natural
   -> Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe Natural)
-> Parser
     (Maybe ApplicationMaintenanceConfigurationDescription
      -> Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationVersionUpdatedFrom")
            Parser
  (Maybe ApplicationMaintenanceConfigurationDescription
   -> Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser (Maybe ApplicationMaintenanceConfigurationDescription)
-> Parser
     (Text
      -> Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ApplicationMaintenanceConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationMaintenanceConfigurationDescription"
                        )
            Parser
  (Text
   -> Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser Text
-> Parser
     (Text
      -> RuntimeEnvironment
      -> ApplicationStatus
      -> Natural
      -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ApplicationARN")
            Parser
  (Text
   -> RuntimeEnvironment
   -> ApplicationStatus
   -> Natural
   -> ApplicationDetail)
-> Parser Text
-> Parser
     (RuntimeEnvironment
      -> ApplicationStatus -> Natural -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ApplicationName")
            Parser
  (RuntimeEnvironment
   -> ApplicationStatus -> Natural -> ApplicationDetail)
-> Parser RuntimeEnvironment
-> Parser (ApplicationStatus -> Natural -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser RuntimeEnvironment
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"RuntimeEnvironment")
            Parser (ApplicationStatus -> Natural -> ApplicationDetail)
-> Parser ApplicationStatus
-> Parser (Natural -> ApplicationDetail)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser ApplicationStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ApplicationStatus")
            Parser (Natural -> ApplicationDetail)
-> Parser Natural -> Parser ApplicationDetail
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Natural
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ApplicationVersionId")
      )

instance Prelude.Hashable ApplicationDetail

instance Prelude.NFData ApplicationDetail