{-# 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.ApplicationConfigurationDescription
-- 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.ApplicationConfigurationDescription where

import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.ApplicationCodeConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.ApplicationSnapshotConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.EnvironmentPropertyDescriptions
import Amazonka.KinesisAnalyticsV2.Types.FlinkApplicationConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.RunConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.SqlApplicationConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.VpcConfigurationDescription
import Amazonka.KinesisAnalyticsV2.Types.ZeppelinApplicationConfigurationDescription
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Describes details about the application code and starting parameters for
-- a Kinesis Data Analytics application.
--
-- /See:/ 'newApplicationConfigurationDescription' smart constructor.
data ApplicationConfigurationDescription = ApplicationConfigurationDescription'
  { -- | The configuration parameters for a Kinesis Data Analytics Studio
    -- notebook.
    ApplicationConfigurationDescription
-> Maybe ZeppelinApplicationConfigurationDescription
zeppelinApplicationConfigurationDescription :: Prelude.Maybe ZeppelinApplicationConfigurationDescription,
    -- | The array of descriptions of VPC configurations available to the
    -- application.
    ApplicationConfigurationDescription
-> Maybe [VpcConfigurationDescription]
vpcConfigurationDescriptions :: Prelude.Maybe [VpcConfigurationDescription],
    -- | The details about the application code for a Flink-based Kinesis Data
    -- Analytics application.
    ApplicationConfigurationDescription
-> Maybe ApplicationCodeConfigurationDescription
applicationCodeConfigurationDescription :: Prelude.Maybe ApplicationCodeConfigurationDescription,
    -- | Describes execution properties for a Flink-based Kinesis Data Analytics
    -- application.
    ApplicationConfigurationDescription
-> Maybe EnvironmentPropertyDescriptions
environmentPropertyDescriptions :: Prelude.Maybe EnvironmentPropertyDescriptions,
    -- | The details about the starting properties for a Kinesis Data Analytics
    -- application.
    ApplicationConfigurationDescription
-> Maybe RunConfigurationDescription
runConfigurationDescription :: Prelude.Maybe RunConfigurationDescription,
    -- | The details about inputs, outputs, and reference data sources for a
    -- SQL-based Kinesis Data Analytics application.
    ApplicationConfigurationDescription
-> Maybe SqlApplicationConfigurationDescription
sqlApplicationConfigurationDescription :: Prelude.Maybe SqlApplicationConfigurationDescription,
    -- | The details about a Flink-based Kinesis Data Analytics application.
    ApplicationConfigurationDescription
-> Maybe FlinkApplicationConfigurationDescription
flinkApplicationConfigurationDescription :: Prelude.Maybe FlinkApplicationConfigurationDescription,
    -- | Describes whether snapshots are enabled for a Flink-based Kinesis Data
    -- Analytics application.
    ApplicationConfigurationDescription
-> Maybe ApplicationSnapshotConfigurationDescription
applicationSnapshotConfigurationDescription :: Prelude.Maybe ApplicationSnapshotConfigurationDescription
  }
  deriving (ApplicationConfigurationDescription
-> ApplicationConfigurationDescription -> Bool
(ApplicationConfigurationDescription
 -> ApplicationConfigurationDescription -> Bool)
-> (ApplicationConfigurationDescription
    -> ApplicationConfigurationDescription -> Bool)
-> Eq ApplicationConfigurationDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ApplicationConfigurationDescription
-> ApplicationConfigurationDescription -> Bool
$c/= :: ApplicationConfigurationDescription
-> ApplicationConfigurationDescription -> Bool
== :: ApplicationConfigurationDescription
-> ApplicationConfigurationDescription -> Bool
$c== :: ApplicationConfigurationDescription
-> ApplicationConfigurationDescription -> Bool
Prelude.Eq, ReadPrec [ApplicationConfigurationDescription]
ReadPrec ApplicationConfigurationDescription
Int -> ReadS ApplicationConfigurationDescription
ReadS [ApplicationConfigurationDescription]
(Int -> ReadS ApplicationConfigurationDescription)
-> ReadS [ApplicationConfigurationDescription]
-> ReadPrec ApplicationConfigurationDescription
-> ReadPrec [ApplicationConfigurationDescription]
-> Read ApplicationConfigurationDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ApplicationConfigurationDescription]
$creadListPrec :: ReadPrec [ApplicationConfigurationDescription]
readPrec :: ReadPrec ApplicationConfigurationDescription
$creadPrec :: ReadPrec ApplicationConfigurationDescription
readList :: ReadS [ApplicationConfigurationDescription]
$creadList :: ReadS [ApplicationConfigurationDescription]
readsPrec :: Int -> ReadS ApplicationConfigurationDescription
$creadsPrec :: Int -> ReadS ApplicationConfigurationDescription
Prelude.Read, Int -> ApplicationConfigurationDescription -> ShowS
[ApplicationConfigurationDescription] -> ShowS
ApplicationConfigurationDescription -> String
(Int -> ApplicationConfigurationDescription -> ShowS)
-> (ApplicationConfigurationDescription -> String)
-> ([ApplicationConfigurationDescription] -> ShowS)
-> Show ApplicationConfigurationDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ApplicationConfigurationDescription] -> ShowS
$cshowList :: [ApplicationConfigurationDescription] -> ShowS
show :: ApplicationConfigurationDescription -> String
$cshow :: ApplicationConfigurationDescription -> String
showsPrec :: Int -> ApplicationConfigurationDescription -> ShowS
$cshowsPrec :: Int -> ApplicationConfigurationDescription -> ShowS
Prelude.Show, (forall x.
 ApplicationConfigurationDescription
 -> Rep ApplicationConfigurationDescription x)
-> (forall x.
    Rep ApplicationConfigurationDescription x
    -> ApplicationConfigurationDescription)
-> Generic ApplicationConfigurationDescription
forall x.
Rep ApplicationConfigurationDescription x
-> ApplicationConfigurationDescription
forall x.
ApplicationConfigurationDescription
-> Rep ApplicationConfigurationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ApplicationConfigurationDescription x
-> ApplicationConfigurationDescription
$cfrom :: forall x.
ApplicationConfigurationDescription
-> Rep ApplicationConfigurationDescription x
Prelude.Generic)

-- |
-- Create a value of 'ApplicationConfigurationDescription' 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:
--
-- 'zeppelinApplicationConfigurationDescription', 'applicationConfigurationDescription_zeppelinApplicationConfigurationDescription' - The configuration parameters for a Kinesis Data Analytics Studio
-- notebook.
--
-- 'vpcConfigurationDescriptions', 'applicationConfigurationDescription_vpcConfigurationDescriptions' - The array of descriptions of VPC configurations available to the
-- application.
--
-- 'applicationCodeConfigurationDescription', 'applicationConfigurationDescription_applicationCodeConfigurationDescription' - The details about the application code for a Flink-based Kinesis Data
-- Analytics application.
--
-- 'environmentPropertyDescriptions', 'applicationConfigurationDescription_environmentPropertyDescriptions' - Describes execution properties for a Flink-based Kinesis Data Analytics
-- application.
--
-- 'runConfigurationDescription', 'applicationConfigurationDescription_runConfigurationDescription' - The details about the starting properties for a Kinesis Data Analytics
-- application.
--
-- 'sqlApplicationConfigurationDescription', 'applicationConfigurationDescription_sqlApplicationConfigurationDescription' - The details about inputs, outputs, and reference data sources for a
-- SQL-based Kinesis Data Analytics application.
--
-- 'flinkApplicationConfigurationDescription', 'applicationConfigurationDescription_flinkApplicationConfigurationDescription' - The details about a Flink-based Kinesis Data Analytics application.
--
-- 'applicationSnapshotConfigurationDescription', 'applicationConfigurationDescription_applicationSnapshotConfigurationDescription' - Describes whether snapshots are enabled for a Flink-based Kinesis Data
-- Analytics application.
newApplicationConfigurationDescription ::
  ApplicationConfigurationDescription
newApplicationConfigurationDescription :: ApplicationConfigurationDescription
newApplicationConfigurationDescription =
  ApplicationConfigurationDescription' :: Maybe ZeppelinApplicationConfigurationDescription
-> Maybe [VpcConfigurationDescription]
-> Maybe ApplicationCodeConfigurationDescription
-> Maybe EnvironmentPropertyDescriptions
-> Maybe RunConfigurationDescription
-> Maybe SqlApplicationConfigurationDescription
-> Maybe FlinkApplicationConfigurationDescription
-> Maybe ApplicationSnapshotConfigurationDescription
-> ApplicationConfigurationDescription
ApplicationConfigurationDescription'
    { $sel:zeppelinApplicationConfigurationDescription:ApplicationConfigurationDescription' :: Maybe ZeppelinApplicationConfigurationDescription
zeppelinApplicationConfigurationDescription =
        Maybe ZeppelinApplicationConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcConfigurationDescriptions:ApplicationConfigurationDescription' :: Maybe [VpcConfigurationDescription]
vpcConfigurationDescriptions =
        Maybe [VpcConfigurationDescription]
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationCodeConfigurationDescription:ApplicationConfigurationDescription' :: Maybe ApplicationCodeConfigurationDescription
applicationCodeConfigurationDescription =
        Maybe ApplicationCodeConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
      $sel:environmentPropertyDescriptions:ApplicationConfigurationDescription' :: Maybe EnvironmentPropertyDescriptions
environmentPropertyDescriptions =
        Maybe EnvironmentPropertyDescriptions
forall a. Maybe a
Prelude.Nothing,
      $sel:runConfigurationDescription:ApplicationConfigurationDescription' :: Maybe RunConfigurationDescription
runConfigurationDescription =
        Maybe RunConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
      $sel:sqlApplicationConfigurationDescription:ApplicationConfigurationDescription' :: Maybe SqlApplicationConfigurationDescription
sqlApplicationConfigurationDescription =
        Maybe SqlApplicationConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
      $sel:flinkApplicationConfigurationDescription:ApplicationConfigurationDescription' :: Maybe FlinkApplicationConfigurationDescription
flinkApplicationConfigurationDescription =
        Maybe FlinkApplicationConfigurationDescription
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationSnapshotConfigurationDescription:ApplicationConfigurationDescription' :: Maybe ApplicationSnapshotConfigurationDescription
applicationSnapshotConfigurationDescription =
        Maybe ApplicationSnapshotConfigurationDescription
forall a. Maybe a
Prelude.Nothing
    }

-- | The configuration parameters for a Kinesis Data Analytics Studio
-- notebook.
applicationConfigurationDescription_zeppelinApplicationConfigurationDescription :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe ZeppelinApplicationConfigurationDescription)
applicationConfigurationDescription_zeppelinApplicationConfigurationDescription :: (Maybe ZeppelinApplicationConfigurationDescription
 -> f (Maybe ZeppelinApplicationConfigurationDescription))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_zeppelinApplicationConfigurationDescription = (ApplicationConfigurationDescription
 -> Maybe ZeppelinApplicationConfigurationDescription)
-> (ApplicationConfigurationDescription
    -> Maybe ZeppelinApplicationConfigurationDescription
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe ZeppelinApplicationConfigurationDescription)
     (Maybe ZeppelinApplicationConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe ZeppelinApplicationConfigurationDescription
zeppelinApplicationConfigurationDescription :: Maybe ZeppelinApplicationConfigurationDescription
$sel:zeppelinApplicationConfigurationDescription:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe ZeppelinApplicationConfigurationDescription
zeppelinApplicationConfigurationDescription} -> Maybe ZeppelinApplicationConfigurationDescription
zeppelinApplicationConfigurationDescription) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe ZeppelinApplicationConfigurationDescription
a -> ApplicationConfigurationDescription
s {$sel:zeppelinApplicationConfigurationDescription:ApplicationConfigurationDescription' :: Maybe ZeppelinApplicationConfigurationDescription
zeppelinApplicationConfigurationDescription = Maybe ZeppelinApplicationConfigurationDescription
a} :: ApplicationConfigurationDescription)

-- | The array of descriptions of VPC configurations available to the
-- application.
applicationConfigurationDescription_vpcConfigurationDescriptions :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe [VpcConfigurationDescription])
applicationConfigurationDescription_vpcConfigurationDescriptions :: (Maybe [VpcConfigurationDescription]
 -> f (Maybe [VpcConfigurationDescription]))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_vpcConfigurationDescriptions = (ApplicationConfigurationDescription
 -> Maybe [VpcConfigurationDescription])
-> (ApplicationConfigurationDescription
    -> Maybe [VpcConfigurationDescription]
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe [VpcConfigurationDescription])
     (Maybe [VpcConfigurationDescription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe [VpcConfigurationDescription]
vpcConfigurationDescriptions :: Maybe [VpcConfigurationDescription]
$sel:vpcConfigurationDescriptions:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe [VpcConfigurationDescription]
vpcConfigurationDescriptions} -> Maybe [VpcConfigurationDescription]
vpcConfigurationDescriptions) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe [VpcConfigurationDescription]
a -> ApplicationConfigurationDescription
s {$sel:vpcConfigurationDescriptions:ApplicationConfigurationDescription' :: Maybe [VpcConfigurationDescription]
vpcConfigurationDescriptions = Maybe [VpcConfigurationDescription]
a} :: ApplicationConfigurationDescription) ((Maybe [VpcConfigurationDescription]
  -> f (Maybe [VpcConfigurationDescription]))
 -> ApplicationConfigurationDescription
 -> f ApplicationConfigurationDescription)
-> ((Maybe [VpcConfigurationDescription]
     -> f (Maybe [VpcConfigurationDescription]))
    -> Maybe [VpcConfigurationDescription]
    -> f (Maybe [VpcConfigurationDescription]))
-> (Maybe [VpcConfigurationDescription]
    -> f (Maybe [VpcConfigurationDescription]))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [VpcConfigurationDescription]
  [VpcConfigurationDescription]
  [VpcConfigurationDescription]
  [VpcConfigurationDescription]
-> Iso
     (Maybe [VpcConfigurationDescription])
     (Maybe [VpcConfigurationDescription])
     (Maybe [VpcConfigurationDescription])
     (Maybe [VpcConfigurationDescription])
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
  [VpcConfigurationDescription]
  [VpcConfigurationDescription]
  [VpcConfigurationDescription]
  [VpcConfigurationDescription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The details about the application code for a Flink-based Kinesis Data
-- Analytics application.
applicationConfigurationDescription_applicationCodeConfigurationDescription :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe ApplicationCodeConfigurationDescription)
applicationConfigurationDescription_applicationCodeConfigurationDescription :: (Maybe ApplicationCodeConfigurationDescription
 -> f (Maybe ApplicationCodeConfigurationDescription))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_applicationCodeConfigurationDescription = (ApplicationConfigurationDescription
 -> Maybe ApplicationCodeConfigurationDescription)
-> (ApplicationConfigurationDescription
    -> Maybe ApplicationCodeConfigurationDescription
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe ApplicationCodeConfigurationDescription)
     (Maybe ApplicationCodeConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe ApplicationCodeConfigurationDescription
applicationCodeConfigurationDescription :: Maybe ApplicationCodeConfigurationDescription
$sel:applicationCodeConfigurationDescription:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe ApplicationCodeConfigurationDescription
applicationCodeConfigurationDescription} -> Maybe ApplicationCodeConfigurationDescription
applicationCodeConfigurationDescription) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe ApplicationCodeConfigurationDescription
a -> ApplicationConfigurationDescription
s {$sel:applicationCodeConfigurationDescription:ApplicationConfigurationDescription' :: Maybe ApplicationCodeConfigurationDescription
applicationCodeConfigurationDescription = Maybe ApplicationCodeConfigurationDescription
a} :: ApplicationConfigurationDescription)

-- | Describes execution properties for a Flink-based Kinesis Data Analytics
-- application.
applicationConfigurationDescription_environmentPropertyDescriptions :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe EnvironmentPropertyDescriptions)
applicationConfigurationDescription_environmentPropertyDescriptions :: (Maybe EnvironmentPropertyDescriptions
 -> f (Maybe EnvironmentPropertyDescriptions))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_environmentPropertyDescriptions = (ApplicationConfigurationDescription
 -> Maybe EnvironmentPropertyDescriptions)
-> (ApplicationConfigurationDescription
    -> Maybe EnvironmentPropertyDescriptions
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe EnvironmentPropertyDescriptions)
     (Maybe EnvironmentPropertyDescriptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe EnvironmentPropertyDescriptions
environmentPropertyDescriptions :: Maybe EnvironmentPropertyDescriptions
$sel:environmentPropertyDescriptions:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe EnvironmentPropertyDescriptions
environmentPropertyDescriptions} -> Maybe EnvironmentPropertyDescriptions
environmentPropertyDescriptions) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe EnvironmentPropertyDescriptions
a -> ApplicationConfigurationDescription
s {$sel:environmentPropertyDescriptions:ApplicationConfigurationDescription' :: Maybe EnvironmentPropertyDescriptions
environmentPropertyDescriptions = Maybe EnvironmentPropertyDescriptions
a} :: ApplicationConfigurationDescription)

-- | The details about the starting properties for a Kinesis Data Analytics
-- application.
applicationConfigurationDescription_runConfigurationDescription :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe RunConfigurationDescription)
applicationConfigurationDescription_runConfigurationDescription :: (Maybe RunConfigurationDescription
 -> f (Maybe RunConfigurationDescription))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_runConfigurationDescription = (ApplicationConfigurationDescription
 -> Maybe RunConfigurationDescription)
-> (ApplicationConfigurationDescription
    -> Maybe RunConfigurationDescription
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe RunConfigurationDescription)
     (Maybe RunConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe RunConfigurationDescription
runConfigurationDescription :: Maybe RunConfigurationDescription
$sel:runConfigurationDescription:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe RunConfigurationDescription
runConfigurationDescription} -> Maybe RunConfigurationDescription
runConfigurationDescription) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe RunConfigurationDescription
a -> ApplicationConfigurationDescription
s {$sel:runConfigurationDescription:ApplicationConfigurationDescription' :: Maybe RunConfigurationDescription
runConfigurationDescription = Maybe RunConfigurationDescription
a} :: ApplicationConfigurationDescription)

-- | The details about inputs, outputs, and reference data sources for a
-- SQL-based Kinesis Data Analytics application.
applicationConfigurationDescription_sqlApplicationConfigurationDescription :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe SqlApplicationConfigurationDescription)
applicationConfigurationDescription_sqlApplicationConfigurationDescription :: (Maybe SqlApplicationConfigurationDescription
 -> f (Maybe SqlApplicationConfigurationDescription))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_sqlApplicationConfigurationDescription = (ApplicationConfigurationDescription
 -> Maybe SqlApplicationConfigurationDescription)
-> (ApplicationConfigurationDescription
    -> Maybe SqlApplicationConfigurationDescription
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe SqlApplicationConfigurationDescription)
     (Maybe SqlApplicationConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe SqlApplicationConfigurationDescription
sqlApplicationConfigurationDescription :: Maybe SqlApplicationConfigurationDescription
$sel:sqlApplicationConfigurationDescription:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe SqlApplicationConfigurationDescription
sqlApplicationConfigurationDescription} -> Maybe SqlApplicationConfigurationDescription
sqlApplicationConfigurationDescription) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe SqlApplicationConfigurationDescription
a -> ApplicationConfigurationDescription
s {$sel:sqlApplicationConfigurationDescription:ApplicationConfigurationDescription' :: Maybe SqlApplicationConfigurationDescription
sqlApplicationConfigurationDescription = Maybe SqlApplicationConfigurationDescription
a} :: ApplicationConfigurationDescription)

-- | The details about a Flink-based Kinesis Data Analytics application.
applicationConfigurationDescription_flinkApplicationConfigurationDescription :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe FlinkApplicationConfigurationDescription)
applicationConfigurationDescription_flinkApplicationConfigurationDescription :: (Maybe FlinkApplicationConfigurationDescription
 -> f (Maybe FlinkApplicationConfigurationDescription))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_flinkApplicationConfigurationDescription = (ApplicationConfigurationDescription
 -> Maybe FlinkApplicationConfigurationDescription)
-> (ApplicationConfigurationDescription
    -> Maybe FlinkApplicationConfigurationDescription
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe FlinkApplicationConfigurationDescription)
     (Maybe FlinkApplicationConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe FlinkApplicationConfigurationDescription
flinkApplicationConfigurationDescription :: Maybe FlinkApplicationConfigurationDescription
$sel:flinkApplicationConfigurationDescription:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe FlinkApplicationConfigurationDescription
flinkApplicationConfigurationDescription} -> Maybe FlinkApplicationConfigurationDescription
flinkApplicationConfigurationDescription) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe FlinkApplicationConfigurationDescription
a -> ApplicationConfigurationDescription
s {$sel:flinkApplicationConfigurationDescription:ApplicationConfigurationDescription' :: Maybe FlinkApplicationConfigurationDescription
flinkApplicationConfigurationDescription = Maybe FlinkApplicationConfigurationDescription
a} :: ApplicationConfigurationDescription)

-- | Describes whether snapshots are enabled for a Flink-based Kinesis Data
-- Analytics application.
applicationConfigurationDescription_applicationSnapshotConfigurationDescription :: Lens.Lens' ApplicationConfigurationDescription (Prelude.Maybe ApplicationSnapshotConfigurationDescription)
applicationConfigurationDescription_applicationSnapshotConfigurationDescription :: (Maybe ApplicationSnapshotConfigurationDescription
 -> f (Maybe ApplicationSnapshotConfigurationDescription))
-> ApplicationConfigurationDescription
-> f ApplicationConfigurationDescription
applicationConfigurationDescription_applicationSnapshotConfigurationDescription = (ApplicationConfigurationDescription
 -> Maybe ApplicationSnapshotConfigurationDescription)
-> (ApplicationConfigurationDescription
    -> Maybe ApplicationSnapshotConfigurationDescription
    -> ApplicationConfigurationDescription)
-> Lens
     ApplicationConfigurationDescription
     ApplicationConfigurationDescription
     (Maybe ApplicationSnapshotConfigurationDescription)
     (Maybe ApplicationSnapshotConfigurationDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ApplicationConfigurationDescription' {Maybe ApplicationSnapshotConfigurationDescription
applicationSnapshotConfigurationDescription :: Maybe ApplicationSnapshotConfigurationDescription
$sel:applicationSnapshotConfigurationDescription:ApplicationConfigurationDescription' :: ApplicationConfigurationDescription
-> Maybe ApplicationSnapshotConfigurationDescription
applicationSnapshotConfigurationDescription} -> Maybe ApplicationSnapshotConfigurationDescription
applicationSnapshotConfigurationDescription) (\s :: ApplicationConfigurationDescription
s@ApplicationConfigurationDescription' {} Maybe ApplicationSnapshotConfigurationDescription
a -> ApplicationConfigurationDescription
s {$sel:applicationSnapshotConfigurationDescription:ApplicationConfigurationDescription' :: Maybe ApplicationSnapshotConfigurationDescription
applicationSnapshotConfigurationDescription = Maybe ApplicationSnapshotConfigurationDescription
a} :: ApplicationConfigurationDescription)

instance
  Core.FromJSON
    ApplicationConfigurationDescription
  where
  parseJSON :: Value -> Parser ApplicationConfigurationDescription
parseJSON =
    String
-> (Object -> Parser ApplicationConfigurationDescription)
-> Value
-> Parser ApplicationConfigurationDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ApplicationConfigurationDescription"
      ( \Object
x ->
          Maybe ZeppelinApplicationConfigurationDescription
-> Maybe [VpcConfigurationDescription]
-> Maybe ApplicationCodeConfigurationDescription
-> Maybe EnvironmentPropertyDescriptions
-> Maybe RunConfigurationDescription
-> Maybe SqlApplicationConfigurationDescription
-> Maybe FlinkApplicationConfigurationDescription
-> Maybe ApplicationSnapshotConfigurationDescription
-> ApplicationConfigurationDescription
ApplicationConfigurationDescription'
            (Maybe ZeppelinApplicationConfigurationDescription
 -> Maybe [VpcConfigurationDescription]
 -> Maybe ApplicationCodeConfigurationDescription
 -> Maybe EnvironmentPropertyDescriptions
 -> Maybe RunConfigurationDescription
 -> Maybe SqlApplicationConfigurationDescription
 -> Maybe FlinkApplicationConfigurationDescription
 -> Maybe ApplicationSnapshotConfigurationDescription
 -> ApplicationConfigurationDescription)
-> Parser (Maybe ZeppelinApplicationConfigurationDescription)
-> Parser
     (Maybe [VpcConfigurationDescription]
      -> Maybe ApplicationCodeConfigurationDescription
      -> Maybe EnvironmentPropertyDescriptions
      -> Maybe RunConfigurationDescription
      -> Maybe SqlApplicationConfigurationDescription
      -> Maybe FlinkApplicationConfigurationDescription
      -> Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            Object
-> Text
-> Parser (Maybe ZeppelinApplicationConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ZeppelinApplicationConfigurationDescription"
                        )
            Parser
  (Maybe [VpcConfigurationDescription]
   -> Maybe ApplicationCodeConfigurationDescription
   -> Maybe EnvironmentPropertyDescriptions
   -> Maybe RunConfigurationDescription
   -> Maybe SqlApplicationConfigurationDescription
   -> Maybe FlinkApplicationConfigurationDescription
   -> Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe [VpcConfigurationDescription])
-> Parser
     (Maybe ApplicationCodeConfigurationDescription
      -> Maybe EnvironmentPropertyDescriptions
      -> Maybe RunConfigurationDescription
      -> Maybe SqlApplicationConfigurationDescription
      -> Maybe FlinkApplicationConfigurationDescription
      -> Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Parser (Maybe (Maybe [VpcConfigurationDescription]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcConfigurationDescriptions"
                            Parser (Maybe (Maybe [VpcConfigurationDescription]))
-> Maybe [VpcConfigurationDescription]
-> Parser (Maybe [VpcConfigurationDescription])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [VpcConfigurationDescription]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe ApplicationCodeConfigurationDescription
   -> Maybe EnvironmentPropertyDescriptions
   -> Maybe RunConfigurationDescription
   -> Maybe SqlApplicationConfigurationDescription
   -> Maybe FlinkApplicationConfigurationDescription
   -> Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe ApplicationCodeConfigurationDescription)
-> Parser
     (Maybe EnvironmentPropertyDescriptions
      -> Maybe RunConfigurationDescription
      -> Maybe SqlApplicationConfigurationDescription
      -> Maybe FlinkApplicationConfigurationDescription
      -> Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe ApplicationCodeConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationCodeConfigurationDescription"
                        )
            Parser
  (Maybe EnvironmentPropertyDescriptions
   -> Maybe RunConfigurationDescription
   -> Maybe SqlApplicationConfigurationDescription
   -> Maybe FlinkApplicationConfigurationDescription
   -> Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe EnvironmentPropertyDescriptions)
-> Parser
     (Maybe RunConfigurationDescription
      -> Maybe SqlApplicationConfigurationDescription
      -> Maybe FlinkApplicationConfigurationDescription
      -> Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EnvironmentPropertyDescriptions)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EnvironmentPropertyDescriptions")
            Parser
  (Maybe RunConfigurationDescription
   -> Maybe SqlApplicationConfigurationDescription
   -> Maybe FlinkApplicationConfigurationDescription
   -> Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe RunConfigurationDescription)
-> Parser
     (Maybe SqlApplicationConfigurationDescription
      -> Maybe FlinkApplicationConfigurationDescription
      -> Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RunConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RunConfigurationDescription")
            Parser
  (Maybe SqlApplicationConfigurationDescription
   -> Maybe FlinkApplicationConfigurationDescription
   -> Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe SqlApplicationConfigurationDescription)
-> Parser
     (Maybe FlinkApplicationConfigurationDescription
      -> Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Parser (Maybe SqlApplicationConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SqlApplicationConfigurationDescription")
            Parser
  (Maybe FlinkApplicationConfigurationDescription
   -> Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe FlinkApplicationConfigurationDescription)
-> Parser
     (Maybe ApplicationSnapshotConfigurationDescription
      -> ApplicationConfigurationDescription)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text -> Parser (Maybe FlinkApplicationConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FlinkApplicationConfigurationDescription"
                        )
            Parser
  (Maybe ApplicationSnapshotConfigurationDescription
   -> ApplicationConfigurationDescription)
-> Parser (Maybe ApplicationSnapshotConfigurationDescription)
-> Parser ApplicationConfigurationDescription
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            Object
-> Text
-> Parser (Maybe ApplicationSnapshotConfigurationDescription)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ApplicationSnapshotConfigurationDescription"
                        )
      )

instance
  Prelude.Hashable
    ApplicationConfigurationDescription

instance
  Prelude.NFData
    ApplicationConfigurationDescription