module Stratosphere.LookoutMetrics.AnomalyDetector.S3SourceConfigProperty (
module Exports, S3SourceConfigProperty(..),
mkS3SourceConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.LookoutMetrics.AnomalyDetector.FileFormatDescriptorProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data S3SourceConfigProperty
=
S3SourceConfigProperty {S3SourceConfigProperty -> ()
haddock_workaround_ :: (),
S3SourceConfigProperty -> FileFormatDescriptorProperty
fileFormatDescriptor :: FileFormatDescriptorProperty,
S3SourceConfigProperty -> Maybe (ValueList Text)
historicalDataPathList :: (Prelude.Maybe (ValueList Prelude.Text)),
S3SourceConfigProperty -> Value Text
roleArn :: (Value Prelude.Text),
S3SourceConfigProperty -> Maybe (ValueList Text)
templatedPathList :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (S3SourceConfigProperty -> S3SourceConfigProperty -> Bool
(S3SourceConfigProperty -> S3SourceConfigProperty -> Bool)
-> (S3SourceConfigProperty -> S3SourceConfigProperty -> Bool)
-> Eq S3SourceConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: S3SourceConfigProperty -> S3SourceConfigProperty -> Bool
== :: S3SourceConfigProperty -> S3SourceConfigProperty -> Bool
$c/= :: S3SourceConfigProperty -> S3SourceConfigProperty -> Bool
/= :: S3SourceConfigProperty -> S3SourceConfigProperty -> Bool
Prelude.Eq, Int -> S3SourceConfigProperty -> ShowS
[S3SourceConfigProperty] -> ShowS
S3SourceConfigProperty -> String
(Int -> S3SourceConfigProperty -> ShowS)
-> (S3SourceConfigProperty -> String)
-> ([S3SourceConfigProperty] -> ShowS)
-> Show S3SourceConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> S3SourceConfigProperty -> ShowS
showsPrec :: Int -> S3SourceConfigProperty -> ShowS
$cshow :: S3SourceConfigProperty -> String
show :: S3SourceConfigProperty -> String
$cshowList :: [S3SourceConfigProperty] -> ShowS
showList :: [S3SourceConfigProperty] -> ShowS
Prelude.Show)
mkS3SourceConfigProperty ::
FileFormatDescriptorProperty
-> Value Prelude.Text -> S3SourceConfigProperty
mkS3SourceConfigProperty :: FileFormatDescriptorProperty
-> Value Text -> S3SourceConfigProperty
mkS3SourceConfigProperty FileFormatDescriptorProperty
fileFormatDescriptor Value Text
roleArn
= S3SourceConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
fileFormatDescriptor :: FileFormatDescriptorProperty
fileFormatDescriptor = FileFormatDescriptorProperty
fileFormatDescriptor, roleArn :: Value Text
roleArn = Value Text
roleArn,
historicalDataPathList :: Maybe (ValueList Text)
historicalDataPathList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
templatedPathList :: Maybe (ValueList Text)
templatedPathList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties S3SourceConfigProperty where
toResourceProperties :: S3SourceConfigProperty -> ResourceProperties
toResourceProperties S3SourceConfigProperty {Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: S3SourceConfigProperty -> ()
fileFormatDescriptor :: S3SourceConfigProperty -> FileFormatDescriptorProperty
historicalDataPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
roleArn :: S3SourceConfigProperty -> Value Text
templatedPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::LookoutMetrics::AnomalyDetector.S3SourceConfig",
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
"FileFormatDescriptor" Key -> FileFormatDescriptorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FileFormatDescriptorProperty
fileFormatDescriptor,
Key
"RoleArn" 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..= Value Text
roleArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"HistoricalDataPathList"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
historicalDataPathList,
Key -> ValueList 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
"TemplatedPathList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
templatedPathList]))}
instance JSON.ToJSON S3SourceConfigProperty where
toJSON :: S3SourceConfigProperty -> Value
toJSON S3SourceConfigProperty {Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: S3SourceConfigProperty -> ()
fileFormatDescriptor :: S3SourceConfigProperty -> FileFormatDescriptorProperty
historicalDataPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
roleArn :: S3SourceConfigProperty -> Value Text
templatedPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
= [(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
"FileFormatDescriptor" Key -> FileFormatDescriptorProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FileFormatDescriptorProperty
fileFormatDescriptor,
Key
"RoleArn" 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..= Value Text
roleArn]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"HistoricalDataPathList"
(ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
historicalDataPathList,
Key -> ValueList 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
"TemplatedPathList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
templatedPathList])))
instance Property "FileFormatDescriptor" S3SourceConfigProperty where
type PropertyType "FileFormatDescriptor" S3SourceConfigProperty = FileFormatDescriptorProperty
set :: PropertyType "FileFormatDescriptor" S3SourceConfigProperty
-> S3SourceConfigProperty -> S3SourceConfigProperty
set PropertyType "FileFormatDescriptor" S3SourceConfigProperty
newValue S3SourceConfigProperty {Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: S3SourceConfigProperty -> ()
fileFormatDescriptor :: S3SourceConfigProperty -> FileFormatDescriptorProperty
historicalDataPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
roleArn :: S3SourceConfigProperty -> Value Text
templatedPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
= S3SourceConfigProperty {fileFormatDescriptor :: FileFormatDescriptorProperty
fileFormatDescriptor = PropertyType "FileFormatDescriptor" S3SourceConfigProperty
FileFormatDescriptorProperty
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
instance Property "HistoricalDataPathList" S3SourceConfigProperty where
type PropertyType "HistoricalDataPathList" S3SourceConfigProperty = ValueList Prelude.Text
set :: PropertyType "HistoricalDataPathList" S3SourceConfigProperty
-> S3SourceConfigProperty -> S3SourceConfigProperty
set PropertyType "HistoricalDataPathList" S3SourceConfigProperty
newValue S3SourceConfigProperty {Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: S3SourceConfigProperty -> ()
fileFormatDescriptor :: S3SourceConfigProperty -> FileFormatDescriptorProperty
historicalDataPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
roleArn :: S3SourceConfigProperty -> Value Text
templatedPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
= S3SourceConfigProperty
{historicalDataPathList :: Maybe (ValueList Text)
historicalDataPathList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HistoricalDataPathList" S3SourceConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
instance Property "RoleArn" S3SourceConfigProperty where
type PropertyType "RoleArn" S3SourceConfigProperty = Value Prelude.Text
set :: PropertyType "RoleArn" S3SourceConfigProperty
-> S3SourceConfigProperty -> S3SourceConfigProperty
set PropertyType "RoleArn" S3SourceConfigProperty
newValue S3SourceConfigProperty {Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: S3SourceConfigProperty -> ()
fileFormatDescriptor :: S3SourceConfigProperty -> FileFormatDescriptorProperty
historicalDataPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
roleArn :: S3SourceConfigProperty -> Value Text
templatedPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
= S3SourceConfigProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" S3SourceConfigProperty
Value Text
newValue, Maybe (ValueList Text)
()
FileFormatDescriptorProperty
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
templatedPathList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
templatedPathList :: Maybe (ValueList Text)
..}
instance Property "TemplatedPathList" S3SourceConfigProperty where
type PropertyType "TemplatedPathList" S3SourceConfigProperty = ValueList Prelude.Text
set :: PropertyType "TemplatedPathList" S3SourceConfigProperty
-> S3SourceConfigProperty -> S3SourceConfigProperty
set PropertyType "TemplatedPathList" S3SourceConfigProperty
newValue S3SourceConfigProperty {Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: S3SourceConfigProperty -> ()
fileFormatDescriptor :: S3SourceConfigProperty -> FileFormatDescriptorProperty
historicalDataPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
roleArn :: S3SourceConfigProperty -> Value Text
templatedPathList :: S3SourceConfigProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
templatedPathList :: Maybe (ValueList Text)
..}
= S3SourceConfigProperty
{templatedPathList :: Maybe (ValueList Text)
templatedPathList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TemplatedPathList" S3SourceConfigProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
Value Text
FileFormatDescriptorProperty
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
haddock_workaround_ :: ()
fileFormatDescriptor :: FileFormatDescriptorProperty
historicalDataPathList :: Maybe (ValueList Text)
roleArn :: Value Text
..}