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

import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.Types.S3ContentBaseLocationDescription
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The configuration information required to deploy an Amazon Data
-- Analytics Studio notebook as an application with durable state.
--
-- /See:/ 'newDeployAsApplicationConfigurationDescription' smart constructor.
data DeployAsApplicationConfigurationDescription = DeployAsApplicationConfigurationDescription'
  { -- | The location that holds the data required to specify an Amazon Data
    -- Analytics application.
    DeployAsApplicationConfigurationDescription
-> S3ContentBaseLocationDescription
s3ContentLocationDescription :: S3ContentBaseLocationDescription
  }
  deriving (DeployAsApplicationConfigurationDescription
-> DeployAsApplicationConfigurationDescription -> Bool
(DeployAsApplicationConfigurationDescription
 -> DeployAsApplicationConfigurationDescription -> Bool)
-> (DeployAsApplicationConfigurationDescription
    -> DeployAsApplicationConfigurationDescription -> Bool)
-> Eq DeployAsApplicationConfigurationDescription
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeployAsApplicationConfigurationDescription
-> DeployAsApplicationConfigurationDescription -> Bool
$c/= :: DeployAsApplicationConfigurationDescription
-> DeployAsApplicationConfigurationDescription -> Bool
== :: DeployAsApplicationConfigurationDescription
-> DeployAsApplicationConfigurationDescription -> Bool
$c== :: DeployAsApplicationConfigurationDescription
-> DeployAsApplicationConfigurationDescription -> Bool
Prelude.Eq, ReadPrec [DeployAsApplicationConfigurationDescription]
ReadPrec DeployAsApplicationConfigurationDescription
Int -> ReadS DeployAsApplicationConfigurationDescription
ReadS [DeployAsApplicationConfigurationDescription]
(Int -> ReadS DeployAsApplicationConfigurationDescription)
-> ReadS [DeployAsApplicationConfigurationDescription]
-> ReadPrec DeployAsApplicationConfigurationDescription
-> ReadPrec [DeployAsApplicationConfigurationDescription]
-> Read DeployAsApplicationConfigurationDescription
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeployAsApplicationConfigurationDescription]
$creadListPrec :: ReadPrec [DeployAsApplicationConfigurationDescription]
readPrec :: ReadPrec DeployAsApplicationConfigurationDescription
$creadPrec :: ReadPrec DeployAsApplicationConfigurationDescription
readList :: ReadS [DeployAsApplicationConfigurationDescription]
$creadList :: ReadS [DeployAsApplicationConfigurationDescription]
readsPrec :: Int -> ReadS DeployAsApplicationConfigurationDescription
$creadsPrec :: Int -> ReadS DeployAsApplicationConfigurationDescription
Prelude.Read, Int -> DeployAsApplicationConfigurationDescription -> ShowS
[DeployAsApplicationConfigurationDescription] -> ShowS
DeployAsApplicationConfigurationDescription -> String
(Int -> DeployAsApplicationConfigurationDescription -> ShowS)
-> (DeployAsApplicationConfigurationDescription -> String)
-> ([DeployAsApplicationConfigurationDescription] -> ShowS)
-> Show DeployAsApplicationConfigurationDescription
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeployAsApplicationConfigurationDescription] -> ShowS
$cshowList :: [DeployAsApplicationConfigurationDescription] -> ShowS
show :: DeployAsApplicationConfigurationDescription -> String
$cshow :: DeployAsApplicationConfigurationDescription -> String
showsPrec :: Int -> DeployAsApplicationConfigurationDescription -> ShowS
$cshowsPrec :: Int -> DeployAsApplicationConfigurationDescription -> ShowS
Prelude.Show, (forall x.
 DeployAsApplicationConfigurationDescription
 -> Rep DeployAsApplicationConfigurationDescription x)
-> (forall x.
    Rep DeployAsApplicationConfigurationDescription x
    -> DeployAsApplicationConfigurationDescription)
-> Generic DeployAsApplicationConfigurationDescription
forall x.
Rep DeployAsApplicationConfigurationDescription x
-> DeployAsApplicationConfigurationDescription
forall x.
DeployAsApplicationConfigurationDescription
-> Rep DeployAsApplicationConfigurationDescription x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeployAsApplicationConfigurationDescription x
-> DeployAsApplicationConfigurationDescription
$cfrom :: forall x.
DeployAsApplicationConfigurationDescription
-> Rep DeployAsApplicationConfigurationDescription x
Prelude.Generic)

-- |
-- Create a value of 'DeployAsApplicationConfigurationDescription' 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:
--
-- 's3ContentLocationDescription', 'deployAsApplicationConfigurationDescription_s3ContentLocationDescription' - The location that holds the data required to specify an Amazon Data
-- Analytics application.
newDeployAsApplicationConfigurationDescription ::
  -- | 's3ContentLocationDescription'
  S3ContentBaseLocationDescription ->
  DeployAsApplicationConfigurationDescription
newDeployAsApplicationConfigurationDescription :: S3ContentBaseLocationDescription
-> DeployAsApplicationConfigurationDescription
newDeployAsApplicationConfigurationDescription
  S3ContentBaseLocationDescription
pS3ContentLocationDescription_ =
    DeployAsApplicationConfigurationDescription' :: S3ContentBaseLocationDescription
-> DeployAsApplicationConfigurationDescription
DeployAsApplicationConfigurationDescription'
      { $sel:s3ContentLocationDescription:DeployAsApplicationConfigurationDescription' :: S3ContentBaseLocationDescription
s3ContentLocationDescription =
          S3ContentBaseLocationDescription
pS3ContentLocationDescription_
      }

-- | The location that holds the data required to specify an Amazon Data
-- Analytics application.
deployAsApplicationConfigurationDescription_s3ContentLocationDescription :: Lens.Lens' DeployAsApplicationConfigurationDescription S3ContentBaseLocationDescription
deployAsApplicationConfigurationDescription_s3ContentLocationDescription :: (S3ContentBaseLocationDescription
 -> f S3ContentBaseLocationDescription)
-> DeployAsApplicationConfigurationDescription
-> f DeployAsApplicationConfigurationDescription
deployAsApplicationConfigurationDescription_s3ContentLocationDescription = (DeployAsApplicationConfigurationDescription
 -> S3ContentBaseLocationDescription)
-> (DeployAsApplicationConfigurationDescription
    -> S3ContentBaseLocationDescription
    -> DeployAsApplicationConfigurationDescription)
-> Lens
     DeployAsApplicationConfigurationDescription
     DeployAsApplicationConfigurationDescription
     S3ContentBaseLocationDescription
     S3ContentBaseLocationDescription
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeployAsApplicationConfigurationDescription' {S3ContentBaseLocationDescription
s3ContentLocationDescription :: S3ContentBaseLocationDescription
$sel:s3ContentLocationDescription:DeployAsApplicationConfigurationDescription' :: DeployAsApplicationConfigurationDescription
-> S3ContentBaseLocationDescription
s3ContentLocationDescription} -> S3ContentBaseLocationDescription
s3ContentLocationDescription) (\s :: DeployAsApplicationConfigurationDescription
s@DeployAsApplicationConfigurationDescription' {} S3ContentBaseLocationDescription
a -> DeployAsApplicationConfigurationDescription
s {$sel:s3ContentLocationDescription:DeployAsApplicationConfigurationDescription' :: S3ContentBaseLocationDescription
s3ContentLocationDescription = S3ContentBaseLocationDescription
a} :: DeployAsApplicationConfigurationDescription)

instance
  Core.FromJSON
    DeployAsApplicationConfigurationDescription
  where
  parseJSON :: Value -> Parser DeployAsApplicationConfigurationDescription
parseJSON =
    String
-> (Object -> Parser DeployAsApplicationConfigurationDescription)
-> Value
-> Parser DeployAsApplicationConfigurationDescription
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DeployAsApplicationConfigurationDescription"
      ( \Object
x ->
          S3ContentBaseLocationDescription
-> DeployAsApplicationConfigurationDescription
DeployAsApplicationConfigurationDescription'
            (S3ContentBaseLocationDescription
 -> DeployAsApplicationConfigurationDescription)
-> Parser S3ContentBaseLocationDescription
-> Parser DeployAsApplicationConfigurationDescription
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser S3ContentBaseLocationDescription
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"S3ContentLocationDescription")
      )

instance
  Prelude.Hashable
    DeployAsApplicationConfigurationDescription

instance
  Prelude.NFData
    DeployAsApplicationConfigurationDescription