module Stratosphere.MediaPackageV2.OriginEndpoint.FilterConfigurationProperty (
FilterConfigurationProperty(..), mkFilterConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilterConfigurationProperty
=
FilterConfigurationProperty {FilterConfigurationProperty -> ()
haddock_workaround_ :: (),
FilterConfigurationProperty -> Maybe (Value Text)
clipStartTime :: (Prelude.Maybe (Value Prelude.Text)),
FilterConfigurationProperty -> Maybe (Value Text)
end :: (Prelude.Maybe (Value Prelude.Text)),
FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: (Prelude.Maybe (Value Prelude.Text)),
FilterConfigurationProperty -> Maybe (Value Text)
start :: (Prelude.Maybe (Value Prelude.Text)),
FilterConfigurationProperty -> Maybe (Value Integer)
timeDelaySeconds :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (FilterConfigurationProperty -> FilterConfigurationProperty -> Bool
(FilterConfigurationProperty
-> FilterConfigurationProperty -> Bool)
-> (FilterConfigurationProperty
-> FilterConfigurationProperty -> Bool)
-> Eq FilterConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilterConfigurationProperty -> FilterConfigurationProperty -> Bool
== :: FilterConfigurationProperty -> FilterConfigurationProperty -> Bool
$c/= :: FilterConfigurationProperty -> FilterConfigurationProperty -> Bool
/= :: FilterConfigurationProperty -> FilterConfigurationProperty -> Bool
Prelude.Eq, Int -> FilterConfigurationProperty -> ShowS
[FilterConfigurationProperty] -> ShowS
FilterConfigurationProperty -> String
(Int -> FilterConfigurationProperty -> ShowS)
-> (FilterConfigurationProperty -> String)
-> ([FilterConfigurationProperty] -> ShowS)
-> Show FilterConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilterConfigurationProperty -> ShowS
showsPrec :: Int -> FilterConfigurationProperty -> ShowS
$cshow :: FilterConfigurationProperty -> String
show :: FilterConfigurationProperty -> String
$cshowList :: [FilterConfigurationProperty] -> ShowS
showList :: [FilterConfigurationProperty] -> ShowS
Prelude.Show)
mkFilterConfigurationProperty :: FilterConfigurationProperty
mkFilterConfigurationProperty :: FilterConfigurationProperty
mkFilterConfigurationProperty
= FilterConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), clipStartTime :: Maybe (Value Text)
clipStartTime = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
end :: Maybe (Value Text)
end = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, manifestFilter :: Maybe (Value Text)
manifestFilter = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
start :: Maybe (Value Text)
start = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, timeDelaySeconds :: Maybe (Value Integer)
timeDelaySeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilterConfigurationProperty where
toResourceProperties :: FilterConfigurationProperty -> ResourceProperties
toResourceProperties FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.FilterConfiguration",
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 -> 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
"ClipStartTime" (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)
clipStartTime,
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
"End" (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)
end,
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
"ManifestFilter" (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)
manifestFilter,
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
"Start" (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)
start,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeDelaySeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeDelaySeconds])}
instance JSON.ToJSON FilterConfigurationProperty where
toJSON :: FilterConfigurationProperty -> Value
toJSON FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= [(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 -> 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
"ClipStartTime" (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)
clipStartTime,
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
"End" (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)
end,
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
"ManifestFilter" (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)
manifestFilter,
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
"Start" (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)
start,
Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TimeDelaySeconds" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
timeDelaySeconds]))
instance Property "ClipStartTime" FilterConfigurationProperty where
type PropertyType "ClipStartTime" FilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "ClipStartTime" FilterConfigurationProperty
-> FilterConfigurationProperty -> FilterConfigurationProperty
set PropertyType "ClipStartTime" FilterConfigurationProperty
newValue FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= FilterConfigurationProperty
{clipStartTime :: Maybe (Value Text)
clipStartTime = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ClipStartTime" FilterConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
instance Property "End" FilterConfigurationProperty where
type PropertyType "End" FilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "End" FilterConfigurationProperty
-> FilterConfigurationProperty -> FilterConfigurationProperty
set PropertyType "End" FilterConfigurationProperty
newValue FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= FilterConfigurationProperty {end :: Maybe (Value Text)
end = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "End" FilterConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
instance Property "ManifestFilter" FilterConfigurationProperty where
type PropertyType "ManifestFilter" FilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "ManifestFilter" FilterConfigurationProperty
-> FilterConfigurationProperty -> FilterConfigurationProperty
set PropertyType "ManifestFilter" FilterConfigurationProperty
newValue FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= FilterConfigurationProperty
{manifestFilter :: Maybe (Value Text)
manifestFilter = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManifestFilter" FilterConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
instance Property "Start" FilterConfigurationProperty where
type PropertyType "Start" FilterConfigurationProperty = Value Prelude.Text
set :: PropertyType "Start" FilterConfigurationProperty
-> FilterConfigurationProperty -> FilterConfigurationProperty
set PropertyType "Start" FilterConfigurationProperty
newValue FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= FilterConfigurationProperty {start :: Maybe (Value Text)
start = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Start" FilterConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
instance Property "TimeDelaySeconds" FilterConfigurationProperty where
type PropertyType "TimeDelaySeconds" FilterConfigurationProperty = Value Prelude.Integer
set :: PropertyType "TimeDelaySeconds" FilterConfigurationProperty
-> FilterConfigurationProperty -> FilterConfigurationProperty
set PropertyType "TimeDelaySeconds" FilterConfigurationProperty
newValue FilterConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
()
haddock_workaround_ :: FilterConfigurationProperty -> ()
clipStartTime :: FilterConfigurationProperty -> Maybe (Value Text)
end :: FilterConfigurationProperty -> Maybe (Value Text)
manifestFilter :: FilterConfigurationProperty -> Maybe (Value Text)
start :: FilterConfigurationProperty -> Maybe (Value Text)
timeDelaySeconds :: FilterConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
timeDelaySeconds :: Maybe (Value Integer)
..}
= FilterConfigurationProperty
{timeDelaySeconds :: Maybe (Value Integer)
timeDelaySeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TimeDelaySeconds" FilterConfigurationProperty
Value Integer
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
haddock_workaround_ :: ()
clipStartTime :: Maybe (Value Text)
end :: Maybe (Value Text)
manifestFilter :: Maybe (Value Text)
start :: Maybe (Value Text)
..}