module Stratosphere.KinesisAnalyticsV2.Application.CustomArtifactConfigurationProperty (
module Exports, CustomArtifactConfigurationProperty(..),
mkCustomArtifactConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.Application.MavenReferenceProperty as Exports
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.Application.S3ContentLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomArtifactConfigurationProperty
=
CustomArtifactConfigurationProperty {CustomArtifactConfigurationProperty -> ()
haddock_workaround_ :: (),
CustomArtifactConfigurationProperty -> Value Text
artifactType :: (Value Prelude.Text),
CustomArtifactConfigurationProperty -> Maybe MavenReferenceProperty
mavenReference :: (Prelude.Maybe MavenReferenceProperty),
CustomArtifactConfigurationProperty
-> Maybe S3ContentLocationProperty
s3ContentLocation :: (Prelude.Maybe S3ContentLocationProperty)}
deriving stock (CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool
(CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool)
-> (CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool)
-> Eq CustomArtifactConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool
== :: CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool
$c/= :: CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool
/= :: CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty -> Bool
Prelude.Eq, Int -> CustomArtifactConfigurationProperty -> ShowS
[CustomArtifactConfigurationProperty] -> ShowS
CustomArtifactConfigurationProperty -> String
(Int -> CustomArtifactConfigurationProperty -> ShowS)
-> (CustomArtifactConfigurationProperty -> String)
-> ([CustomArtifactConfigurationProperty] -> ShowS)
-> Show CustomArtifactConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomArtifactConfigurationProperty -> ShowS
showsPrec :: Int -> CustomArtifactConfigurationProperty -> ShowS
$cshow :: CustomArtifactConfigurationProperty -> String
show :: CustomArtifactConfigurationProperty -> String
$cshowList :: [CustomArtifactConfigurationProperty] -> ShowS
showList :: [CustomArtifactConfigurationProperty] -> ShowS
Prelude.Show)
mkCustomArtifactConfigurationProperty ::
Value Prelude.Text -> CustomArtifactConfigurationProperty
mkCustomArtifactConfigurationProperty :: Value Text -> CustomArtifactConfigurationProperty
mkCustomArtifactConfigurationProperty Value Text
artifactType
= CustomArtifactConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), artifactType :: Value Text
artifactType = Value Text
artifactType,
mavenReference :: Maybe MavenReferenceProperty
mavenReference = Maybe MavenReferenceProperty
forall a. Maybe a
Prelude.Nothing,
s3ContentLocation :: Maybe S3ContentLocationProperty
s3ContentLocation = Maybe S3ContentLocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomArtifactConfigurationProperty where
toResourceProperties :: CustomArtifactConfigurationProperty -> ResourceProperties
toResourceProperties CustomArtifactConfigurationProperty {Maybe MavenReferenceProperty
Maybe S3ContentLocationProperty
()
Value Text
haddock_workaround_ :: CustomArtifactConfigurationProperty -> ()
artifactType :: CustomArtifactConfigurationProperty -> Value Text
mavenReference :: CustomArtifactConfigurationProperty -> Maybe MavenReferenceProperty
s3ContentLocation :: CustomArtifactConfigurationProperty
-> Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.CustomArtifactConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ArtifactType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
artifactType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MavenReferenceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MavenReference" (MavenReferenceProperty -> (Key, Value))
-> Maybe MavenReferenceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MavenReferenceProperty
mavenReference,
Key -> S3ContentLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3ContentLocation" (S3ContentLocationProperty -> (Key, Value))
-> Maybe S3ContentLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ContentLocationProperty
s3ContentLocation]))}
instance JSON.ToJSON CustomArtifactConfigurationProperty where
toJSON :: CustomArtifactConfigurationProperty -> Value
toJSON CustomArtifactConfigurationProperty {Maybe MavenReferenceProperty
Maybe S3ContentLocationProperty
()
Value Text
haddock_workaround_ :: CustomArtifactConfigurationProperty -> ()
artifactType :: CustomArtifactConfigurationProperty -> Value Text
mavenReference :: CustomArtifactConfigurationProperty -> Maybe MavenReferenceProperty
s3ContentLocation :: CustomArtifactConfigurationProperty
-> Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ArtifactType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
artifactType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MavenReferenceProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MavenReference" (MavenReferenceProperty -> (Key, Value))
-> Maybe MavenReferenceProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MavenReferenceProperty
mavenReference,
Key -> S3ContentLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3ContentLocation" (S3ContentLocationProperty -> (Key, Value))
-> Maybe S3ContentLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ContentLocationProperty
s3ContentLocation])))
instance Property "ArtifactType" CustomArtifactConfigurationProperty where
type PropertyType "ArtifactType" CustomArtifactConfigurationProperty = Value Prelude.Text
set :: PropertyType "ArtifactType" CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty
set PropertyType "ArtifactType" CustomArtifactConfigurationProperty
newValue CustomArtifactConfigurationProperty {Maybe MavenReferenceProperty
Maybe S3ContentLocationProperty
()
Value Text
haddock_workaround_ :: CustomArtifactConfigurationProperty -> ()
artifactType :: CustomArtifactConfigurationProperty -> Value Text
mavenReference :: CustomArtifactConfigurationProperty -> Maybe MavenReferenceProperty
s3ContentLocation :: CustomArtifactConfigurationProperty
-> Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
= CustomArtifactConfigurationProperty {artifactType :: Value Text
artifactType = PropertyType "ArtifactType" CustomArtifactConfigurationProperty
Value Text
newValue, Maybe MavenReferenceProperty
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: ()
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
instance Property "MavenReference" CustomArtifactConfigurationProperty where
type PropertyType "MavenReference" CustomArtifactConfigurationProperty = MavenReferenceProperty
set :: PropertyType "MavenReference" CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty
set PropertyType "MavenReference" CustomArtifactConfigurationProperty
newValue CustomArtifactConfigurationProperty {Maybe MavenReferenceProperty
Maybe S3ContentLocationProperty
()
Value Text
haddock_workaround_ :: CustomArtifactConfigurationProperty -> ()
artifactType :: CustomArtifactConfigurationProperty -> Value Text
mavenReference :: CustomArtifactConfigurationProperty -> Maybe MavenReferenceProperty
s3ContentLocation :: CustomArtifactConfigurationProperty
-> Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
= CustomArtifactConfigurationProperty
{mavenReference :: Maybe MavenReferenceProperty
mavenReference = MavenReferenceProperty -> Maybe MavenReferenceProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MavenReference" CustomArtifactConfigurationProperty
MavenReferenceProperty
newValue, Maybe S3ContentLocationProperty
()
Value Text
haddock_workaround_ :: ()
artifactType :: Value Text
s3ContentLocation :: Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
artifactType :: Value Text
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
instance Property "S3ContentLocation" CustomArtifactConfigurationProperty where
type PropertyType "S3ContentLocation" CustomArtifactConfigurationProperty = S3ContentLocationProperty
set :: PropertyType
"S3ContentLocation" CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty
-> CustomArtifactConfigurationProperty
set PropertyType
"S3ContentLocation" CustomArtifactConfigurationProperty
newValue CustomArtifactConfigurationProperty {Maybe MavenReferenceProperty
Maybe S3ContentLocationProperty
()
Value Text
haddock_workaround_ :: CustomArtifactConfigurationProperty -> ()
artifactType :: CustomArtifactConfigurationProperty -> Value Text
mavenReference :: CustomArtifactConfigurationProperty -> Maybe MavenReferenceProperty
s3ContentLocation :: CustomArtifactConfigurationProperty
-> Maybe S3ContentLocationProperty
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
s3ContentLocation :: Maybe S3ContentLocationProperty
..}
= CustomArtifactConfigurationProperty
{s3ContentLocation :: Maybe S3ContentLocationProperty
s3ContentLocation = S3ContentLocationProperty -> Maybe S3ContentLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"S3ContentLocation" CustomArtifactConfigurationProperty
S3ContentLocationProperty
newValue, Maybe MavenReferenceProperty
()
Value Text
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
haddock_workaround_ :: ()
artifactType :: Value Text
mavenReference :: Maybe MavenReferenceProperty
..}