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