module Stratosphere.Bedrock.Flow.StorageFlowNodeServiceConfigurationProperty (
module Exports, StorageFlowNodeServiceConfigurationProperty(..),
mkStorageFlowNodeServiceConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Bedrock.Flow.StorageFlowNodeS3ConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data StorageFlowNodeServiceConfigurationProperty
=
StorageFlowNodeServiceConfigurationProperty {StorageFlowNodeServiceConfigurationProperty -> ()
haddock_workaround_ :: (),
StorageFlowNodeServiceConfigurationProperty
-> Maybe StorageFlowNodeS3ConfigurationProperty
s3 :: (Prelude.Maybe StorageFlowNodeS3ConfigurationProperty)}
deriving stock (StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool
(StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool)
-> (StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool)
-> Eq StorageFlowNodeServiceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool
== :: StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool
$c/= :: StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool
/= :: StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty -> Bool
Prelude.Eq, Int -> StorageFlowNodeServiceConfigurationProperty -> ShowS
[StorageFlowNodeServiceConfigurationProperty] -> ShowS
StorageFlowNodeServiceConfigurationProperty -> String
(Int -> StorageFlowNodeServiceConfigurationProperty -> ShowS)
-> (StorageFlowNodeServiceConfigurationProperty -> String)
-> ([StorageFlowNodeServiceConfigurationProperty] -> ShowS)
-> Show StorageFlowNodeServiceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StorageFlowNodeServiceConfigurationProperty -> ShowS
showsPrec :: Int -> StorageFlowNodeServiceConfigurationProperty -> ShowS
$cshow :: StorageFlowNodeServiceConfigurationProperty -> String
show :: StorageFlowNodeServiceConfigurationProperty -> String
$cshowList :: [StorageFlowNodeServiceConfigurationProperty] -> ShowS
showList :: [StorageFlowNodeServiceConfigurationProperty] -> ShowS
Prelude.Show)
mkStorageFlowNodeServiceConfigurationProperty ::
StorageFlowNodeServiceConfigurationProperty
mkStorageFlowNodeServiceConfigurationProperty :: StorageFlowNodeServiceConfigurationProperty
mkStorageFlowNodeServiceConfigurationProperty
= StorageFlowNodeServiceConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3 :: Maybe StorageFlowNodeS3ConfigurationProperty
s3 = Maybe StorageFlowNodeS3ConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StorageFlowNodeServiceConfigurationProperty where
toResourceProperties :: StorageFlowNodeServiceConfigurationProperty -> ResourceProperties
toResourceProperties
StorageFlowNodeServiceConfigurationProperty {Maybe StorageFlowNodeS3ConfigurationProperty
()
haddock_workaround_ :: StorageFlowNodeServiceConfigurationProperty -> ()
s3 :: StorageFlowNodeServiceConfigurationProperty
-> Maybe StorageFlowNodeS3ConfigurationProperty
haddock_workaround_ :: ()
s3 :: Maybe StorageFlowNodeS3ConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Bedrock::Flow.StorageFlowNodeServiceConfiguration",
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 -> StorageFlowNodeS3ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3" (StorageFlowNodeS3ConfigurationProperty -> (Key, Value))
-> Maybe StorageFlowNodeS3ConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StorageFlowNodeS3ConfigurationProperty
s3])}
instance JSON.ToJSON StorageFlowNodeServiceConfigurationProperty where
toJSON :: StorageFlowNodeServiceConfigurationProperty -> Value
toJSON StorageFlowNodeServiceConfigurationProperty {Maybe StorageFlowNodeS3ConfigurationProperty
()
haddock_workaround_ :: StorageFlowNodeServiceConfigurationProperty -> ()
s3 :: StorageFlowNodeServiceConfigurationProperty
-> Maybe StorageFlowNodeS3ConfigurationProperty
haddock_workaround_ :: ()
s3 :: Maybe StorageFlowNodeS3ConfigurationProperty
..}
= [(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 -> StorageFlowNodeS3ConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3" (StorageFlowNodeS3ConfigurationProperty -> (Key, Value))
-> Maybe StorageFlowNodeS3ConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StorageFlowNodeS3ConfigurationProperty
s3]))
instance Property "S3" StorageFlowNodeServiceConfigurationProperty where
type PropertyType "S3" StorageFlowNodeServiceConfigurationProperty = StorageFlowNodeS3ConfigurationProperty
set :: PropertyType "S3" StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty
-> StorageFlowNodeServiceConfigurationProperty
set PropertyType "S3" StorageFlowNodeServiceConfigurationProperty
newValue StorageFlowNodeServiceConfigurationProperty {Maybe StorageFlowNodeS3ConfigurationProperty
()
haddock_workaround_ :: StorageFlowNodeServiceConfigurationProperty -> ()
s3 :: StorageFlowNodeServiceConfigurationProperty
-> Maybe StorageFlowNodeS3ConfigurationProperty
haddock_workaround_ :: ()
s3 :: Maybe StorageFlowNodeS3ConfigurationProperty
..}
= StorageFlowNodeServiceConfigurationProperty
{s3 :: Maybe StorageFlowNodeS3ConfigurationProperty
s3 = StorageFlowNodeS3ConfigurationProperty
-> Maybe StorageFlowNodeS3ConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3" StorageFlowNodeServiceConfigurationProperty
StorageFlowNodeS3ConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}