module Stratosphere.MediaPackageV2.OriginEndpoint.MssManifestConfigurationProperty (
        module Exports, MssManifestConfigurationProperty(..),
        mkMssManifestConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaPackageV2.OriginEndpoint.FilterConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MssManifestConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-mssmanifestconfiguration.html>
    MssManifestConfigurationProperty {MssManifestConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-mssmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-mssmanifestconfiguration-filterconfiguration>
                                      MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
filterConfiguration :: (Prelude.Maybe FilterConfigurationProperty),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-mssmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-mssmanifestconfiguration-manifestlayout>
                                      MssManifestConfigurationProperty -> Maybe (Value Text)
manifestLayout :: (Prelude.Maybe (Value Prelude.Text)),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-mssmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-mssmanifestconfiguration-manifestname>
                                      MssManifestConfigurationProperty -> Value Text
manifestName :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediapackagev2-originendpoint-mssmanifestconfiguration.html#cfn-mediapackagev2-originendpoint-mssmanifestconfiguration-manifestwindowseconds>
                                      MssManifestConfigurationProperty -> Maybe (Value Integer)
manifestWindowSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (MssManifestConfigurationProperty
-> MssManifestConfigurationProperty -> Bool
(MssManifestConfigurationProperty
 -> MssManifestConfigurationProperty -> Bool)
-> (MssManifestConfigurationProperty
    -> MssManifestConfigurationProperty -> Bool)
-> Eq MssManifestConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MssManifestConfigurationProperty
-> MssManifestConfigurationProperty -> Bool
== :: MssManifestConfigurationProperty
-> MssManifestConfigurationProperty -> Bool
$c/= :: MssManifestConfigurationProperty
-> MssManifestConfigurationProperty -> Bool
/= :: MssManifestConfigurationProperty
-> MssManifestConfigurationProperty -> Bool
Prelude.Eq, Int -> MssManifestConfigurationProperty -> ShowS
[MssManifestConfigurationProperty] -> ShowS
MssManifestConfigurationProperty -> String
(Int -> MssManifestConfigurationProperty -> ShowS)
-> (MssManifestConfigurationProperty -> String)
-> ([MssManifestConfigurationProperty] -> ShowS)
-> Show MssManifestConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MssManifestConfigurationProperty -> ShowS
showsPrec :: Int -> MssManifestConfigurationProperty -> ShowS
$cshow :: MssManifestConfigurationProperty -> String
show :: MssManifestConfigurationProperty -> String
$cshowList :: [MssManifestConfigurationProperty] -> ShowS
showList :: [MssManifestConfigurationProperty] -> ShowS
Prelude.Show)
mkMssManifestConfigurationProperty ::
  Value Prelude.Text -> MssManifestConfigurationProperty
mkMssManifestConfigurationProperty :: Value Text -> MssManifestConfigurationProperty
mkMssManifestConfigurationProperty Value Text
manifestName
  = MssManifestConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), manifestName :: Value Text
manifestName = Value Text
manifestName,
       filterConfiguration :: Maybe FilterConfigurationProperty
filterConfiguration = Maybe FilterConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       manifestLayout :: Maybe (Value Text)
manifestLayout = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       manifestWindowSeconds :: Maybe (Value Integer)
manifestWindowSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MssManifestConfigurationProperty where
  toResourceProperties :: MssManifestConfigurationProperty -> ResourceProperties
toResourceProperties MssManifestConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: MssManifestConfigurationProperty -> ()
filterConfiguration :: MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
manifestLayout :: MssManifestConfigurationProperty -> Maybe (Value Text)
manifestName :: MssManifestConfigurationProperty -> Value Text
manifestWindowSeconds :: MssManifestConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaPackageV2::OriginEndpoint.MssManifestConfiguration",
         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
"ManifestName" 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
manifestName]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> FilterConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FilterConfiguration" (FilterConfigurationProperty -> (Key, Value))
-> Maybe FilterConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FilterConfigurationProperty
filterConfiguration,
                               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
"ManifestLayout" (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)
manifestLayout,
                               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
"ManifestWindowSeconds"
                                 (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)
manifestWindowSeconds]))}
instance JSON.ToJSON MssManifestConfigurationProperty where
  toJSON :: MssManifestConfigurationProperty -> Value
toJSON MssManifestConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: MssManifestConfigurationProperty -> ()
filterConfiguration :: MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
manifestLayout :: MssManifestConfigurationProperty -> Maybe (Value Text)
manifestName :: MssManifestConfigurationProperty -> Value Text
manifestWindowSeconds :: MssManifestConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
    = [(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
"ManifestName" 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
manifestName]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> FilterConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FilterConfiguration" (FilterConfigurationProperty -> (Key, Value))
-> Maybe FilterConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FilterConfigurationProperty
filterConfiguration,
                  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
"ManifestLayout" (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)
manifestLayout,
                  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
"ManifestWindowSeconds"
                    (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)
manifestWindowSeconds])))
instance Property "FilterConfiguration" MssManifestConfigurationProperty where
  type PropertyType "FilterConfiguration" MssManifestConfigurationProperty = FilterConfigurationProperty
  set :: PropertyType "FilterConfiguration" MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
set PropertyType "FilterConfiguration" MssManifestConfigurationProperty
newValue MssManifestConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: MssManifestConfigurationProperty -> ()
filterConfiguration :: MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
manifestLayout :: MssManifestConfigurationProperty -> Maybe (Value Text)
manifestName :: MssManifestConfigurationProperty -> Value Text
manifestWindowSeconds :: MssManifestConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
    = MssManifestConfigurationProperty
        {filterConfiguration :: Maybe FilterConfigurationProperty
filterConfiguration = FilterConfigurationProperty -> Maybe FilterConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FilterConfiguration" MssManifestConfigurationProperty
FilterConfigurationProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
instance Property "ManifestLayout" MssManifestConfigurationProperty where
  type PropertyType "ManifestLayout" MssManifestConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ManifestLayout" MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
set PropertyType "ManifestLayout" MssManifestConfigurationProperty
newValue MssManifestConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: MssManifestConfigurationProperty -> ()
filterConfiguration :: MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
manifestLayout :: MssManifestConfigurationProperty -> Maybe (Value Text)
manifestName :: MssManifestConfigurationProperty -> Value Text
manifestWindowSeconds :: MssManifestConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
    = MssManifestConfigurationProperty
        {manifestLayout :: Maybe (Value Text)
manifestLayout = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManifestLayout" MssManifestConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
instance Property "ManifestName" MssManifestConfigurationProperty where
  type PropertyType "ManifestName" MssManifestConfigurationProperty = Value Prelude.Text
  set :: PropertyType "ManifestName" MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
set PropertyType "ManifestName" MssManifestConfigurationProperty
newValue MssManifestConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: MssManifestConfigurationProperty -> ()
filterConfiguration :: MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
manifestLayout :: MssManifestConfigurationProperty -> Maybe (Value Text)
manifestName :: MssManifestConfigurationProperty -> Value Text
manifestWindowSeconds :: MssManifestConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
    = MssManifestConfigurationProperty {manifestName :: Value Text
manifestName = PropertyType "ManifestName" MssManifestConfigurationProperty
Value Text
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestWindowSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestWindowSeconds :: Maybe (Value Integer)
..}
instance Property "ManifestWindowSeconds" MssManifestConfigurationProperty where
  type PropertyType "ManifestWindowSeconds" MssManifestConfigurationProperty = Value Prelude.Integer
  set :: PropertyType
  "ManifestWindowSeconds" MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
-> MssManifestConfigurationProperty
set PropertyType
  "ManifestWindowSeconds" MssManifestConfigurationProperty
newValue MssManifestConfigurationProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: MssManifestConfigurationProperty -> ()
filterConfiguration :: MssManifestConfigurationProperty
-> Maybe FilterConfigurationProperty
manifestLayout :: MssManifestConfigurationProperty -> Maybe (Value Text)
manifestName :: MssManifestConfigurationProperty -> Value Text
manifestWindowSeconds :: MssManifestConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
manifestWindowSeconds :: Maybe (Value Integer)
..}
    = MssManifestConfigurationProperty
        {manifestWindowSeconds :: Maybe (Value Integer)
manifestWindowSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ManifestWindowSeconds" MssManifestConfigurationProperty
Value Integer
newValue, Maybe (Value Text)
Maybe FilterConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
haddock_workaround_ :: ()
filterConfiguration :: Maybe FilterConfigurationProperty
manifestLayout :: Maybe (Value Text)
manifestName :: Value Text
..}