module Stratosphere.Bedrock.DataAutomationProject.BlueprintItemProperty (
BlueprintItemProperty(..), mkBlueprintItemProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BlueprintItemProperty
=
BlueprintItemProperty {BlueprintItemProperty -> ()
haddock_workaround_ :: (),
BlueprintItemProperty -> Value Text
blueprintArn :: (Value Prelude.Text),
BlueprintItemProperty -> Maybe (Value Text)
blueprintStage :: (Prelude.Maybe (Value Prelude.Text)),
BlueprintItemProperty -> Maybe (Value Text)
blueprintVersion :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (BlueprintItemProperty -> BlueprintItemProperty -> Bool
(BlueprintItemProperty -> BlueprintItemProperty -> Bool)
-> (BlueprintItemProperty -> BlueprintItemProperty -> Bool)
-> Eq BlueprintItemProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BlueprintItemProperty -> BlueprintItemProperty -> Bool
== :: BlueprintItemProperty -> BlueprintItemProperty -> Bool
$c/= :: BlueprintItemProperty -> BlueprintItemProperty -> Bool
/= :: BlueprintItemProperty -> BlueprintItemProperty -> Bool
Prelude.Eq, Int -> BlueprintItemProperty -> ShowS
[BlueprintItemProperty] -> ShowS
BlueprintItemProperty -> String
(Int -> BlueprintItemProperty -> ShowS)
-> (BlueprintItemProperty -> String)
-> ([BlueprintItemProperty] -> ShowS)
-> Show BlueprintItemProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BlueprintItemProperty -> ShowS
showsPrec :: Int -> BlueprintItemProperty -> ShowS
$cshow :: BlueprintItemProperty -> String
show :: BlueprintItemProperty -> String
$cshowList :: [BlueprintItemProperty] -> ShowS
showList :: [BlueprintItemProperty] -> ShowS
Prelude.Show)
mkBlueprintItemProperty ::
Value Prelude.Text -> BlueprintItemProperty
mkBlueprintItemProperty :: Value Text -> BlueprintItemProperty
mkBlueprintItemProperty Value Text
blueprintArn
= BlueprintItemProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), blueprintArn :: Value Text
blueprintArn = Value Text
blueprintArn,
blueprintStage :: Maybe (Value Text)
blueprintStage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
blueprintVersion :: Maybe (Value Text)
blueprintVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BlueprintItemProperty where
toResourceProperties :: BlueprintItemProperty -> ResourceProperties
toResourceProperties BlueprintItemProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BlueprintItemProperty -> ()
blueprintArn :: BlueprintItemProperty -> Value Text
blueprintStage :: BlueprintItemProperty -> Maybe (Value Text)
blueprintVersion :: BlueprintItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::DataAutomationProject.BlueprintItem",
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
"BlueprintArn" 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
blueprintArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"BlueprintStage" (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)
blueprintStage,
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
"BlueprintVersion" (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)
blueprintVersion]))}
instance JSON.ToJSON BlueprintItemProperty where
toJSON :: BlueprintItemProperty -> Value
toJSON BlueprintItemProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BlueprintItemProperty -> ()
blueprintArn :: BlueprintItemProperty -> Value Text
blueprintStage :: BlueprintItemProperty -> Maybe (Value Text)
blueprintVersion :: BlueprintItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
..}
= [(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
"BlueprintArn" 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
blueprintArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"BlueprintStage" (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)
blueprintStage,
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
"BlueprintVersion" (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)
blueprintVersion])))
instance Property "BlueprintArn" BlueprintItemProperty where
type PropertyType "BlueprintArn" BlueprintItemProperty = Value Prelude.Text
set :: PropertyType "BlueprintArn" BlueprintItemProperty
-> BlueprintItemProperty -> BlueprintItemProperty
set PropertyType "BlueprintArn" BlueprintItemProperty
newValue BlueprintItemProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BlueprintItemProperty -> ()
blueprintArn :: BlueprintItemProperty -> Value Text
blueprintStage :: BlueprintItemProperty -> Maybe (Value Text)
blueprintVersion :: BlueprintItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
..}
= BlueprintItemProperty {blueprintArn :: Value Text
blueprintArn = PropertyType "BlueprintArn" BlueprintItemProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
..}
instance Property "BlueprintStage" BlueprintItemProperty where
type PropertyType "BlueprintStage" BlueprintItemProperty = Value Prelude.Text
set :: PropertyType "BlueprintStage" BlueprintItemProperty
-> BlueprintItemProperty -> BlueprintItemProperty
set PropertyType "BlueprintStage" BlueprintItemProperty
newValue BlueprintItemProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BlueprintItemProperty -> ()
blueprintArn :: BlueprintItemProperty -> Value Text
blueprintStage :: BlueprintItemProperty -> Maybe (Value Text)
blueprintVersion :: BlueprintItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
..}
= BlueprintItemProperty
{blueprintStage :: Maybe (Value Text)
blueprintStage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BlueprintStage" BlueprintItemProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintVersion :: Maybe (Value Text)
..}
instance Property "BlueprintVersion" BlueprintItemProperty where
type PropertyType "BlueprintVersion" BlueprintItemProperty = Value Prelude.Text
set :: PropertyType "BlueprintVersion" BlueprintItemProperty
-> BlueprintItemProperty -> BlueprintItemProperty
set PropertyType "BlueprintVersion" BlueprintItemProperty
newValue BlueprintItemProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: BlueprintItemProperty -> ()
blueprintArn :: BlueprintItemProperty -> Value Text
blueprintStage :: BlueprintItemProperty -> Maybe (Value Text)
blueprintVersion :: BlueprintItemProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
blueprintVersion :: Maybe (Value Text)
..}
= BlueprintItemProperty
{blueprintVersion :: Maybe (Value Text)
blueprintVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BlueprintVersion" BlueprintItemProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
haddock_workaround_ :: ()
blueprintArn :: Value Text
blueprintStage :: Maybe (Value Text)
..}