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