module Stratosphere.CleanRooms.AnalysisTemplate.AnalysisSourceProperty (
module Exports, AnalysisSourceProperty(..),
mkAnalysisSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CleanRooms.AnalysisTemplate.AnalysisTemplateArtifactsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AnalysisSourceProperty
=
AnalysisSourceProperty {AnalysisSourceProperty -> ()
haddock_workaround_ :: (),
AnalysisSourceProperty -> Maybe AnalysisTemplateArtifactsProperty
artifacts :: (Prelude.Maybe AnalysisTemplateArtifactsProperty),
AnalysisSourceProperty -> Maybe (Value Text)
text :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AnalysisSourceProperty -> AnalysisSourceProperty -> Bool
(AnalysisSourceProperty -> AnalysisSourceProperty -> Bool)
-> (AnalysisSourceProperty -> AnalysisSourceProperty -> Bool)
-> Eq AnalysisSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AnalysisSourceProperty -> AnalysisSourceProperty -> Bool
== :: AnalysisSourceProperty -> AnalysisSourceProperty -> Bool
$c/= :: AnalysisSourceProperty -> AnalysisSourceProperty -> Bool
/= :: AnalysisSourceProperty -> AnalysisSourceProperty -> Bool
Prelude.Eq, Int -> AnalysisSourceProperty -> ShowS
[AnalysisSourceProperty] -> ShowS
AnalysisSourceProperty -> String
(Int -> AnalysisSourceProperty -> ShowS)
-> (AnalysisSourceProperty -> String)
-> ([AnalysisSourceProperty] -> ShowS)
-> Show AnalysisSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AnalysisSourceProperty -> ShowS
showsPrec :: Int -> AnalysisSourceProperty -> ShowS
$cshow :: AnalysisSourceProperty -> String
show :: AnalysisSourceProperty -> String
$cshowList :: [AnalysisSourceProperty] -> ShowS
showList :: [AnalysisSourceProperty] -> ShowS
Prelude.Show)
mkAnalysisSourceProperty :: AnalysisSourceProperty
mkAnalysisSourceProperty :: AnalysisSourceProperty
mkAnalysisSourceProperty
= AnalysisSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), artifacts :: Maybe AnalysisTemplateArtifactsProperty
artifacts = Maybe AnalysisTemplateArtifactsProperty
forall a. Maybe a
Prelude.Nothing,
text :: Maybe (Value Text)
text = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AnalysisSourceProperty where
toResourceProperties :: AnalysisSourceProperty -> ResourceProperties
toResourceProperties AnalysisSourceProperty {Maybe (Value Text)
Maybe AnalysisTemplateArtifactsProperty
()
haddock_workaround_ :: AnalysisSourceProperty -> ()
artifacts :: AnalysisSourceProperty -> Maybe AnalysisTemplateArtifactsProperty
text :: AnalysisSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
artifacts :: Maybe AnalysisTemplateArtifactsProperty
text :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRooms::AnalysisTemplate.AnalysisSource",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AnalysisTemplateArtifactsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Artifacts" (AnalysisTemplateArtifactsProperty -> (Key, Value))
-> Maybe AnalysisTemplateArtifactsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnalysisTemplateArtifactsProperty
artifacts,
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..=) Key
"Text" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
text])}
instance JSON.ToJSON AnalysisSourceProperty where
toJSON :: AnalysisSourceProperty -> Value
toJSON AnalysisSourceProperty {Maybe (Value Text)
Maybe AnalysisTemplateArtifactsProperty
()
haddock_workaround_ :: AnalysisSourceProperty -> ()
artifacts :: AnalysisSourceProperty -> Maybe AnalysisTemplateArtifactsProperty
text :: AnalysisSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
artifacts :: Maybe AnalysisTemplateArtifactsProperty
text :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> AnalysisTemplateArtifactsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Artifacts" (AnalysisTemplateArtifactsProperty -> (Key, Value))
-> Maybe AnalysisTemplateArtifactsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnalysisTemplateArtifactsProperty
artifacts,
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..=) Key
"Text" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
text]))
instance Property "Artifacts" AnalysisSourceProperty where
type PropertyType "Artifacts" AnalysisSourceProperty = AnalysisTemplateArtifactsProperty
set :: PropertyType "Artifacts" AnalysisSourceProperty
-> AnalysisSourceProperty -> AnalysisSourceProperty
set PropertyType "Artifacts" AnalysisSourceProperty
newValue AnalysisSourceProperty {Maybe (Value Text)
Maybe AnalysisTemplateArtifactsProperty
()
haddock_workaround_ :: AnalysisSourceProperty -> ()
artifacts :: AnalysisSourceProperty -> Maybe AnalysisTemplateArtifactsProperty
text :: AnalysisSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
artifacts :: Maybe AnalysisTemplateArtifactsProperty
text :: Maybe (Value Text)
..}
= AnalysisSourceProperty {artifacts :: Maybe AnalysisTemplateArtifactsProperty
artifacts = AnalysisTemplateArtifactsProperty
-> Maybe AnalysisTemplateArtifactsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Artifacts" AnalysisSourceProperty
AnalysisTemplateArtifactsProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
text :: Maybe (Value Text)
haddock_workaround_ :: ()
text :: Maybe (Value Text)
..}
instance Property "Text" AnalysisSourceProperty where
type PropertyType "Text" AnalysisSourceProperty = Value Prelude.Text
set :: PropertyType "Text" AnalysisSourceProperty
-> AnalysisSourceProperty -> AnalysisSourceProperty
set PropertyType "Text" AnalysisSourceProperty
newValue AnalysisSourceProperty {Maybe (Value Text)
Maybe AnalysisTemplateArtifactsProperty
()
haddock_workaround_ :: AnalysisSourceProperty -> ()
artifacts :: AnalysisSourceProperty -> Maybe AnalysisTemplateArtifactsProperty
text :: AnalysisSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
artifacts :: Maybe AnalysisTemplateArtifactsProperty
text :: Maybe (Value Text)
..}
= AnalysisSourceProperty {text :: Maybe (Value Text)
text = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Text" AnalysisSourceProperty
Value Text
newValue, Maybe AnalysisTemplateArtifactsProperty
()
haddock_workaround_ :: ()
artifacts :: Maybe AnalysisTemplateArtifactsProperty
haddock_workaround_ :: ()
artifacts :: Maybe AnalysisTemplateArtifactsProperty
..}