{-# 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 #-}
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
data DeployAsApplicationConfigurationDescription = DeployAsApplicationConfigurationDescription'
{
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)
newDeployAsApplicationConfigurationDescription ::
S3ContentBaseLocationDescription ->
DeployAsApplicationConfigurationDescription
newDeployAsApplicationConfigurationDescription :: S3ContentBaseLocationDescription
-> DeployAsApplicationConfigurationDescription
newDeployAsApplicationConfigurationDescription
S3ContentBaseLocationDescription
pS3ContentLocationDescription_ =
DeployAsApplicationConfigurationDescription' :: S3ContentBaseLocationDescription
-> DeployAsApplicationConfigurationDescription
DeployAsApplicationConfigurationDescription'
{ $sel:s3ContentLocationDescription:DeployAsApplicationConfigurationDescription' :: S3ContentBaseLocationDescription
s3ContentLocationDescription =
S3ContentBaseLocationDescription
pS3ContentLocationDescription_
}
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