module Stratosphere.MediaLive.Channel.ArchiveGroupSettingsProperty (
        module Exports, ArchiveGroupSettingsProperty(..),
        mkArchiveGroupSettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.ArchiveCdnSettingsProperty as Exports
import {-# SOURCE #-} Stratosphere.MediaLive.Channel.OutputLocationRefProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ArchiveGroupSettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-archivegroupsettings.html>
    ArchiveGroupSettingsProperty {ArchiveGroupSettingsProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-archivegroupsettings.html#cfn-medialive-channel-archivegroupsettings-archivecdnsettings>
                                  ArchiveGroupSettingsProperty -> Maybe ArchiveCdnSettingsProperty
archiveCdnSettings :: (Prelude.Maybe ArchiveCdnSettingsProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-archivegroupsettings.html#cfn-medialive-channel-archivegroupsettings-destination>
                                  ArchiveGroupSettingsProperty -> Maybe OutputLocationRefProperty
destination :: (Prelude.Maybe OutputLocationRefProperty),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-archivegroupsettings.html#cfn-medialive-channel-archivegroupsettings-rolloverinterval>
                                  ArchiveGroupSettingsProperty -> Maybe (Value Integer)
rolloverInterval :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> Bool
(ArchiveGroupSettingsProperty
 -> ArchiveGroupSettingsProperty -> Bool)
-> (ArchiveGroupSettingsProperty
    -> ArchiveGroupSettingsProperty -> Bool)
-> Eq ArchiveGroupSettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> Bool
== :: ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> Bool
$c/= :: ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> Bool
/= :: ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> Bool
Prelude.Eq, Int -> ArchiveGroupSettingsProperty -> ShowS
[ArchiveGroupSettingsProperty] -> ShowS
ArchiveGroupSettingsProperty -> String
(Int -> ArchiveGroupSettingsProperty -> ShowS)
-> (ArchiveGroupSettingsProperty -> String)
-> ([ArchiveGroupSettingsProperty] -> ShowS)
-> Show ArchiveGroupSettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ArchiveGroupSettingsProperty -> ShowS
showsPrec :: Int -> ArchiveGroupSettingsProperty -> ShowS
$cshow :: ArchiveGroupSettingsProperty -> String
show :: ArchiveGroupSettingsProperty -> String
$cshowList :: [ArchiveGroupSettingsProperty] -> ShowS
showList :: [ArchiveGroupSettingsProperty] -> ShowS
Prelude.Show)
mkArchiveGroupSettingsProperty :: ArchiveGroupSettingsProperty
mkArchiveGroupSettingsProperty :: ArchiveGroupSettingsProperty
mkArchiveGroupSettingsProperty
  = ArchiveGroupSettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
archiveCdnSettings = Maybe ArchiveCdnSettingsProperty
forall a. Maybe a
Prelude.Nothing,
       destination :: Maybe OutputLocationRefProperty
destination = Maybe OutputLocationRefProperty
forall a. Maybe a
Prelude.Nothing, rolloverInterval :: Maybe (Value Integer)
rolloverInterval = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ArchiveGroupSettingsProperty where
  toResourceProperties :: ArchiveGroupSettingsProperty -> ResourceProperties
toResourceProperties ArchiveGroupSettingsProperty {Maybe (Value Integer)
Maybe ArchiveCdnSettingsProperty
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ArchiveGroupSettingsProperty -> ()
archiveCdnSettings :: ArchiveGroupSettingsProperty -> Maybe ArchiveCdnSettingsProperty
destination :: ArchiveGroupSettingsProperty -> Maybe OutputLocationRefProperty
rolloverInterval :: ArchiveGroupSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.ArchiveGroupSettings",
         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 -> ArchiveCdnSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ArchiveCdnSettings" (ArchiveCdnSettingsProperty -> (Key, Value))
-> Maybe ArchiveCdnSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ArchiveCdnSettingsProperty
archiveCdnSettings,
                            Key -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination,
                            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
"RolloverInterval" (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)
rolloverInterval])}
instance JSON.ToJSON ArchiveGroupSettingsProperty where
  toJSON :: ArchiveGroupSettingsProperty -> Value
toJSON ArchiveGroupSettingsProperty {Maybe (Value Integer)
Maybe ArchiveCdnSettingsProperty
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ArchiveGroupSettingsProperty -> ()
archiveCdnSettings :: ArchiveGroupSettingsProperty -> Maybe ArchiveCdnSettingsProperty
destination :: ArchiveGroupSettingsProperty -> Maybe OutputLocationRefProperty
rolloverInterval :: ArchiveGroupSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: 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 -> ArchiveCdnSettingsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ArchiveCdnSettings" (ArchiveCdnSettingsProperty -> (Key, Value))
-> Maybe ArchiveCdnSettingsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ArchiveCdnSettingsProperty
archiveCdnSettings,
               Key -> OutputLocationRefProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Destination" (OutputLocationRefProperty -> (Key, Value))
-> Maybe OutputLocationRefProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe OutputLocationRefProperty
destination,
               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
"RolloverInterval" (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)
rolloverInterval]))
instance Property "ArchiveCdnSettings" ArchiveGroupSettingsProperty where
  type PropertyType "ArchiveCdnSettings" ArchiveGroupSettingsProperty = ArchiveCdnSettingsProperty
  set :: PropertyType "ArchiveCdnSettings" ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> ArchiveGroupSettingsProperty
set PropertyType "ArchiveCdnSettings" ArchiveGroupSettingsProperty
newValue ArchiveGroupSettingsProperty {Maybe (Value Integer)
Maybe ArchiveCdnSettingsProperty
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ArchiveGroupSettingsProperty -> ()
archiveCdnSettings :: ArchiveGroupSettingsProperty -> Maybe ArchiveCdnSettingsProperty
destination :: ArchiveGroupSettingsProperty -> Maybe OutputLocationRefProperty
rolloverInterval :: ArchiveGroupSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: Maybe (Value Integer)
..}
    = ArchiveGroupSettingsProperty
        {archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
archiveCdnSettings = ArchiveCdnSettingsProperty -> Maybe ArchiveCdnSettingsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ArchiveCdnSettings" ArchiveGroupSettingsProperty
ArchiveCdnSettingsProperty
newValue, Maybe (Value Integer)
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ()
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: Maybe (Value Integer)
haddock_workaround_ :: ()
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: Maybe (Value Integer)
..}
instance Property "Destination" ArchiveGroupSettingsProperty where
  type PropertyType "Destination" ArchiveGroupSettingsProperty = OutputLocationRefProperty
  set :: PropertyType "Destination" ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> ArchiveGroupSettingsProperty
set PropertyType "Destination" ArchiveGroupSettingsProperty
newValue ArchiveGroupSettingsProperty {Maybe (Value Integer)
Maybe ArchiveCdnSettingsProperty
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ArchiveGroupSettingsProperty -> ()
archiveCdnSettings :: ArchiveGroupSettingsProperty -> Maybe ArchiveCdnSettingsProperty
destination :: ArchiveGroupSettingsProperty -> Maybe OutputLocationRefProperty
rolloverInterval :: ArchiveGroupSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: Maybe (Value Integer)
..}
    = ArchiveGroupSettingsProperty
        {destination :: Maybe OutputLocationRefProperty
destination = OutputLocationRefProperty -> Maybe OutputLocationRefProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Destination" ArchiveGroupSettingsProperty
OutputLocationRefProperty
newValue, Maybe (Value Integer)
Maybe ArchiveCdnSettingsProperty
()
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
rolloverInterval :: Maybe (Value Integer)
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
rolloverInterval :: Maybe (Value Integer)
..}
instance Property "RolloverInterval" ArchiveGroupSettingsProperty where
  type PropertyType "RolloverInterval" ArchiveGroupSettingsProperty = Value Prelude.Integer
  set :: PropertyType "RolloverInterval" ArchiveGroupSettingsProperty
-> ArchiveGroupSettingsProperty -> ArchiveGroupSettingsProperty
set PropertyType "RolloverInterval" ArchiveGroupSettingsProperty
newValue ArchiveGroupSettingsProperty {Maybe (Value Integer)
Maybe ArchiveCdnSettingsProperty
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ArchiveGroupSettingsProperty -> ()
archiveCdnSettings :: ArchiveGroupSettingsProperty -> Maybe ArchiveCdnSettingsProperty
destination :: ArchiveGroupSettingsProperty -> Maybe OutputLocationRefProperty
rolloverInterval :: ArchiveGroupSettingsProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
rolloverInterval :: Maybe (Value Integer)
..}
    = ArchiveGroupSettingsProperty
        {rolloverInterval :: Maybe (Value Integer)
rolloverInterval = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RolloverInterval" ArchiveGroupSettingsProperty
Value Integer
newValue, Maybe ArchiveCdnSettingsProperty
Maybe OutputLocationRefProperty
()
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
haddock_workaround_ :: ()
archiveCdnSettings :: Maybe ArchiveCdnSettingsProperty
destination :: Maybe OutputLocationRefProperty
..}