module Stratosphere.MediaLive.Channel.ArchiveS3SettingsProperty (
        ArchiveS3SettingsProperty(..), mkArchiveS3SettingsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ArchiveS3SettingsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-archives3settings.html>
    ArchiveS3SettingsProperty {ArchiveS3SettingsProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-medialive-channel-archives3settings.html#cfn-medialive-channel-archives3settings-cannedacl>
                               ArchiveS3SettingsProperty -> Maybe (Value Text)
cannedAcl :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool
(ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool)
-> (ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool)
-> Eq ArchiveS3SettingsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool
== :: ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool
$c/= :: ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool
/= :: ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty -> Bool
Prelude.Eq, Int -> ArchiveS3SettingsProperty -> ShowS
[ArchiveS3SettingsProperty] -> ShowS
ArchiveS3SettingsProperty -> String
(Int -> ArchiveS3SettingsProperty -> ShowS)
-> (ArchiveS3SettingsProperty -> String)
-> ([ArchiveS3SettingsProperty] -> ShowS)
-> Show ArchiveS3SettingsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ArchiveS3SettingsProperty -> ShowS
showsPrec :: Int -> ArchiveS3SettingsProperty -> ShowS
$cshow :: ArchiveS3SettingsProperty -> String
show :: ArchiveS3SettingsProperty -> String
$cshowList :: [ArchiveS3SettingsProperty] -> ShowS
showList :: [ArchiveS3SettingsProperty] -> ShowS
Prelude.Show)
mkArchiveS3SettingsProperty :: ArchiveS3SettingsProperty
mkArchiveS3SettingsProperty :: ArchiveS3SettingsProperty
mkArchiveS3SettingsProperty
  = ArchiveS3SettingsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), cannedAcl :: Maybe (Value Text)
cannedAcl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ArchiveS3SettingsProperty where
  toResourceProperties :: ArchiveS3SettingsProperty -> ResourceProperties
toResourceProperties ArchiveS3SettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ArchiveS3SettingsProperty -> ()
cannedAcl :: ArchiveS3SettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cannedAcl :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaLive::Channel.ArchiveS3Settings",
         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
"CannedAcl" (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)
cannedAcl])}
instance JSON.ToJSON ArchiveS3SettingsProperty where
  toJSON :: ArchiveS3SettingsProperty -> Value
toJSON ArchiveS3SettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ArchiveS3SettingsProperty -> ()
cannedAcl :: ArchiveS3SettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cannedAcl :: Maybe (Value Text)
..}
    = [(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
"CannedAcl" (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)
cannedAcl]))
instance Property "CannedAcl" ArchiveS3SettingsProperty where
  type PropertyType "CannedAcl" ArchiveS3SettingsProperty = Value Prelude.Text
  set :: PropertyType "CannedAcl" ArchiveS3SettingsProperty
-> ArchiveS3SettingsProperty -> ArchiveS3SettingsProperty
set PropertyType "CannedAcl" ArchiveS3SettingsProperty
newValue ArchiveS3SettingsProperty {Maybe (Value Text)
()
haddock_workaround_ :: ArchiveS3SettingsProperty -> ()
cannedAcl :: ArchiveS3SettingsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
cannedAcl :: Maybe (Value Text)
..}
    = ArchiveS3SettingsProperty {cannedAcl :: Maybe (Value Text)
cannedAcl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CannedAcl" ArchiveS3SettingsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}