module Stratosphere.LookoutEquipment.InferenceScheduler.DataOutputConfigurationProperty (
module Exports, DataOutputConfigurationProperty(..),
mkDataOutputConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.LookoutEquipment.InferenceScheduler.S3OutputConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataOutputConfigurationProperty
=
DataOutputConfigurationProperty {DataOutputConfigurationProperty -> ()
haddock_workaround_ :: (),
DataOutputConfigurationProperty -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
DataOutputConfigurationProperty -> S3OutputConfigurationProperty
s3OutputConfiguration :: S3OutputConfigurationProperty}
deriving stock (DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool
(DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool)
-> (DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool)
-> Eq DataOutputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool
== :: DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool
$c/= :: DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool
/= :: DataOutputConfigurationProperty
-> DataOutputConfigurationProperty -> Bool
Prelude.Eq, Int -> DataOutputConfigurationProperty -> ShowS
[DataOutputConfigurationProperty] -> ShowS
DataOutputConfigurationProperty -> String
(Int -> DataOutputConfigurationProperty -> ShowS)
-> (DataOutputConfigurationProperty -> String)
-> ([DataOutputConfigurationProperty] -> ShowS)
-> Show DataOutputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataOutputConfigurationProperty -> ShowS
showsPrec :: Int -> DataOutputConfigurationProperty -> ShowS
$cshow :: DataOutputConfigurationProperty -> String
show :: DataOutputConfigurationProperty -> String
$cshowList :: [DataOutputConfigurationProperty] -> ShowS
showList :: [DataOutputConfigurationProperty] -> ShowS
Prelude.Show)
mkDataOutputConfigurationProperty ::
S3OutputConfigurationProperty -> DataOutputConfigurationProperty
mkDataOutputConfigurationProperty :: S3OutputConfigurationProperty -> DataOutputConfigurationProperty
mkDataOutputConfigurationProperty S3OutputConfigurationProperty
s3OutputConfiguration
= DataOutputConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
s3OutputConfiguration :: S3OutputConfigurationProperty
s3OutputConfiguration = S3OutputConfigurationProperty
s3OutputConfiguration,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataOutputConfigurationProperty where
toResourceProperties :: DataOutputConfigurationProperty -> ResourceProperties
toResourceProperties DataOutputConfigurationProperty {Maybe (Value Text)
()
S3OutputConfigurationProperty
haddock_workaround_ :: DataOutputConfigurationProperty -> ()
kmsKeyId :: DataOutputConfigurationProperty -> Maybe (Value Text)
s3OutputConfiguration :: DataOutputConfigurationProperty -> S3OutputConfigurationProperty
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputConfiguration :: S3OutputConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::LookoutEquipment::InferenceScheduler.DataOutputConfiguration",
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
"S3OutputConfiguration" Key -> S3OutputConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3OutputConfigurationProperty
s3OutputConfiguration]
([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
"KmsKeyId" (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)
kmsKeyId]))}
instance JSON.ToJSON DataOutputConfigurationProperty where
toJSON :: DataOutputConfigurationProperty -> Value
toJSON DataOutputConfigurationProperty {Maybe (Value Text)
()
S3OutputConfigurationProperty
haddock_workaround_ :: DataOutputConfigurationProperty -> ()
kmsKeyId :: DataOutputConfigurationProperty -> Maybe (Value Text)
s3OutputConfiguration :: DataOutputConfigurationProperty -> S3OutputConfigurationProperty
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputConfiguration :: S3OutputConfigurationProperty
..}
= [(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
"S3OutputConfiguration" Key -> S3OutputConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3OutputConfigurationProperty
s3OutputConfiguration]
([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
"KmsKeyId" (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)
kmsKeyId])))
instance Property "KmsKeyId" DataOutputConfigurationProperty where
type PropertyType "KmsKeyId" DataOutputConfigurationProperty = Value Prelude.Text
set :: PropertyType "KmsKeyId" DataOutputConfigurationProperty
-> DataOutputConfigurationProperty
-> DataOutputConfigurationProperty
set PropertyType "KmsKeyId" DataOutputConfigurationProperty
newValue DataOutputConfigurationProperty {Maybe (Value Text)
()
S3OutputConfigurationProperty
haddock_workaround_ :: DataOutputConfigurationProperty -> ()
kmsKeyId :: DataOutputConfigurationProperty -> Maybe (Value Text)
s3OutputConfiguration :: DataOutputConfigurationProperty -> S3OutputConfigurationProperty
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputConfiguration :: S3OutputConfigurationProperty
..}
= DataOutputConfigurationProperty
{kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" DataOutputConfigurationProperty
Value Text
newValue, ()
S3OutputConfigurationProperty
haddock_workaround_ :: ()
s3OutputConfiguration :: S3OutputConfigurationProperty
haddock_workaround_ :: ()
s3OutputConfiguration :: S3OutputConfigurationProperty
..}
instance Property "S3OutputConfiguration" DataOutputConfigurationProperty where
type PropertyType "S3OutputConfiguration" DataOutputConfigurationProperty = S3OutputConfigurationProperty
set :: PropertyType
"S3OutputConfiguration" DataOutputConfigurationProperty
-> DataOutputConfigurationProperty
-> DataOutputConfigurationProperty
set PropertyType
"S3OutputConfiguration" DataOutputConfigurationProperty
newValue DataOutputConfigurationProperty {Maybe (Value Text)
()
S3OutputConfigurationProperty
haddock_workaround_ :: DataOutputConfigurationProperty -> ()
kmsKeyId :: DataOutputConfigurationProperty -> Maybe (Value Text)
s3OutputConfiguration :: DataOutputConfigurationProperty -> S3OutputConfigurationProperty
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
s3OutputConfiguration :: S3OutputConfigurationProperty
..}
= DataOutputConfigurationProperty
{s3OutputConfiguration :: S3OutputConfigurationProperty
s3OutputConfiguration = PropertyType
"S3OutputConfiguration" DataOutputConfigurationProperty
S3OutputConfigurationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
haddock_workaround_ :: ()
kmsKeyId :: Maybe (Value Text)
..}