module Stratosphere.LookoutEquipment.InferenceScheduler.DataInputConfigurationProperty (
        module Exports, DataInputConfigurationProperty(..),
        mkDataInputConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.LookoutEquipment.InferenceScheduler.InputNameConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.LookoutEquipment.InferenceScheduler.S3InputConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataInputConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-datainputconfiguration.html>
    DataInputConfigurationProperty {DataInputConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-datainputconfiguration.html#cfn-lookoutequipment-inferencescheduler-datainputconfiguration-inferenceinputnameconfiguration>
                                    DataInputConfigurationProperty
-> Maybe InputNameConfigurationProperty
inferenceInputNameConfiguration :: (Prelude.Maybe InputNameConfigurationProperty),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-datainputconfiguration.html#cfn-lookoutequipment-inferencescheduler-datainputconfiguration-inputtimezoneoffset>
                                    DataInputConfigurationProperty -> Maybe (Value Text)
inputTimeZoneOffset :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lookoutequipment-inferencescheduler-datainputconfiguration.html#cfn-lookoutequipment-inferencescheduler-datainputconfiguration-s3inputconfiguration>
                                    DataInputConfigurationProperty -> S3InputConfigurationProperty
s3InputConfiguration :: S3InputConfigurationProperty}
  deriving stock (DataInputConfigurationProperty
-> DataInputConfigurationProperty -> Bool
(DataInputConfigurationProperty
 -> DataInputConfigurationProperty -> Bool)
-> (DataInputConfigurationProperty
    -> DataInputConfigurationProperty -> Bool)
-> Eq DataInputConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataInputConfigurationProperty
-> DataInputConfigurationProperty -> Bool
== :: DataInputConfigurationProperty
-> DataInputConfigurationProperty -> Bool
$c/= :: DataInputConfigurationProperty
-> DataInputConfigurationProperty -> Bool
/= :: DataInputConfigurationProperty
-> DataInputConfigurationProperty -> Bool
Prelude.Eq, Int -> DataInputConfigurationProperty -> ShowS
[DataInputConfigurationProperty] -> ShowS
DataInputConfigurationProperty -> String
(Int -> DataInputConfigurationProperty -> ShowS)
-> (DataInputConfigurationProperty -> String)
-> ([DataInputConfigurationProperty] -> ShowS)
-> Show DataInputConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataInputConfigurationProperty -> ShowS
showsPrec :: Int -> DataInputConfigurationProperty -> ShowS
$cshow :: DataInputConfigurationProperty -> String
show :: DataInputConfigurationProperty -> String
$cshowList :: [DataInputConfigurationProperty] -> ShowS
showList :: [DataInputConfigurationProperty] -> ShowS
Prelude.Show)
mkDataInputConfigurationProperty ::
  S3InputConfigurationProperty -> DataInputConfigurationProperty
mkDataInputConfigurationProperty :: S3InputConfigurationProperty -> DataInputConfigurationProperty
mkDataInputConfigurationProperty S3InputConfigurationProperty
s3InputConfiguration
  = DataInputConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       s3InputConfiguration :: S3InputConfigurationProperty
s3InputConfiguration = S3InputConfigurationProperty
s3InputConfiguration,
       inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inferenceInputNameConfiguration = Maybe InputNameConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       inputTimeZoneOffset :: Maybe (Value Text)
inputTimeZoneOffset = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataInputConfigurationProperty where
  toResourceProperties :: DataInputConfigurationProperty -> ResourceProperties
toResourceProperties DataInputConfigurationProperty {Maybe (Value Text)
Maybe InputNameConfigurationProperty
()
S3InputConfigurationProperty
haddock_workaround_ :: DataInputConfigurationProperty -> ()
inferenceInputNameConfiguration :: DataInputConfigurationProperty
-> Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: DataInputConfigurationProperty -> Maybe (Value Text)
s3InputConfiguration :: DataInputConfigurationProperty -> S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::LookoutEquipment::InferenceScheduler.DataInputConfiguration",
         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
"S3InputConfiguration" Key -> S3InputConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3InputConfigurationProperty
s3InputConfiguration]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> InputNameConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InferenceInputNameConfiguration"
                                 (InputNameConfigurationProperty -> (Key, Value))
-> Maybe InputNameConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputNameConfigurationProperty
inferenceInputNameConfiguration,
                               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
"InputTimeZoneOffset" (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)
inputTimeZoneOffset]))}
instance JSON.ToJSON DataInputConfigurationProperty where
  toJSON :: DataInputConfigurationProperty -> Value
toJSON DataInputConfigurationProperty {Maybe (Value Text)
Maybe InputNameConfigurationProperty
()
S3InputConfigurationProperty
haddock_workaround_ :: DataInputConfigurationProperty -> ()
inferenceInputNameConfiguration :: DataInputConfigurationProperty
-> Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: DataInputConfigurationProperty -> Maybe (Value Text)
s3InputConfiguration :: DataInputConfigurationProperty -> S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
..}
    = [(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
"S3InputConfiguration" Key -> S3InputConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= S3InputConfigurationProperty
s3InputConfiguration]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> InputNameConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"InferenceInputNameConfiguration"
                    (InputNameConfigurationProperty -> (Key, Value))
-> Maybe InputNameConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe InputNameConfigurationProperty
inferenceInputNameConfiguration,
                  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
"InputTimeZoneOffset" (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)
inputTimeZoneOffset])))
instance Property "InferenceInputNameConfiguration" DataInputConfigurationProperty where
  type PropertyType "InferenceInputNameConfiguration" DataInputConfigurationProperty = InputNameConfigurationProperty
  set :: PropertyType
  "InferenceInputNameConfiguration" DataInputConfigurationProperty
-> DataInputConfigurationProperty -> DataInputConfigurationProperty
set PropertyType
  "InferenceInputNameConfiguration" DataInputConfigurationProperty
newValue DataInputConfigurationProperty {Maybe (Value Text)
Maybe InputNameConfigurationProperty
()
S3InputConfigurationProperty
haddock_workaround_ :: DataInputConfigurationProperty -> ()
inferenceInputNameConfiguration :: DataInputConfigurationProperty
-> Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: DataInputConfigurationProperty -> Maybe (Value Text)
s3InputConfiguration :: DataInputConfigurationProperty -> S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
..}
    = DataInputConfigurationProperty
        {inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inferenceInputNameConfiguration = InputNameConfigurationProperty
-> Maybe InputNameConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "InferenceInputNameConfiguration" DataInputConfigurationProperty
InputNameConfigurationProperty
newValue, Maybe (Value Text)
()
S3InputConfigurationProperty
haddock_workaround_ :: ()
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
haddock_workaround_ :: ()
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
..}
instance Property "InputTimeZoneOffset" DataInputConfigurationProperty where
  type PropertyType "InputTimeZoneOffset" DataInputConfigurationProperty = Value Prelude.Text
  set :: PropertyType "InputTimeZoneOffset" DataInputConfigurationProperty
-> DataInputConfigurationProperty -> DataInputConfigurationProperty
set PropertyType "InputTimeZoneOffset" DataInputConfigurationProperty
newValue DataInputConfigurationProperty {Maybe (Value Text)
Maybe InputNameConfigurationProperty
()
S3InputConfigurationProperty
haddock_workaround_ :: DataInputConfigurationProperty -> ()
inferenceInputNameConfiguration :: DataInputConfigurationProperty
-> Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: DataInputConfigurationProperty -> Maybe (Value Text)
s3InputConfiguration :: DataInputConfigurationProperty -> S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
..}
    = DataInputConfigurationProperty
        {inputTimeZoneOffset :: Maybe (Value Text)
inputTimeZoneOffset = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "InputTimeZoneOffset" DataInputConfigurationProperty
Value Text
newValue, Maybe InputNameConfigurationProperty
()
S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
s3InputConfiguration :: S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
s3InputConfiguration :: S3InputConfigurationProperty
..}
instance Property "S3InputConfiguration" DataInputConfigurationProperty where
  type PropertyType "S3InputConfiguration" DataInputConfigurationProperty = S3InputConfigurationProperty
  set :: PropertyType "S3InputConfiguration" DataInputConfigurationProperty
-> DataInputConfigurationProperty -> DataInputConfigurationProperty
set PropertyType "S3InputConfiguration" DataInputConfigurationProperty
newValue DataInputConfigurationProperty {Maybe (Value Text)
Maybe InputNameConfigurationProperty
()
S3InputConfigurationProperty
haddock_workaround_ :: DataInputConfigurationProperty -> ()
inferenceInputNameConfiguration :: DataInputConfigurationProperty
-> Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: DataInputConfigurationProperty -> Maybe (Value Text)
s3InputConfiguration :: DataInputConfigurationProperty -> S3InputConfigurationProperty
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
s3InputConfiguration :: S3InputConfigurationProperty
..}
    = DataInputConfigurationProperty
        {s3InputConfiguration :: S3InputConfigurationProperty
s3InputConfiguration = PropertyType "S3InputConfiguration" DataInputConfigurationProperty
S3InputConfigurationProperty
newValue, Maybe (Value Text)
Maybe InputNameConfigurationProperty
()
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
haddock_workaround_ :: ()
inferenceInputNameConfiguration :: Maybe InputNameConfigurationProperty
inputTimeZoneOffset :: Maybe (Value Text)
..}