module Stratosphere.MediaConnect.FlowOutput.InterfaceProperty (
        InterfaceProperty(..), mkInterfaceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InterfaceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-interface.html>
    InterfaceProperty {InterfaceProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowoutput-interface.html#cfn-mediaconnect-flowoutput-interface-name>
                       InterfaceProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (InterfaceProperty -> InterfaceProperty -> Bool
(InterfaceProperty -> InterfaceProperty -> Bool)
-> (InterfaceProperty -> InterfaceProperty -> Bool)
-> Eq InterfaceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InterfaceProperty -> InterfaceProperty -> Bool
== :: InterfaceProperty -> InterfaceProperty -> Bool
$c/= :: InterfaceProperty -> InterfaceProperty -> Bool
/= :: InterfaceProperty -> InterfaceProperty -> Bool
Prelude.Eq, Int -> InterfaceProperty -> ShowS
[InterfaceProperty] -> ShowS
InterfaceProperty -> String
(Int -> InterfaceProperty -> ShowS)
-> (InterfaceProperty -> String)
-> ([InterfaceProperty] -> ShowS)
-> Show InterfaceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InterfaceProperty -> ShowS
showsPrec :: Int -> InterfaceProperty -> ShowS
$cshow :: InterfaceProperty -> String
show :: InterfaceProperty -> String
$cshowList :: [InterfaceProperty] -> ShowS
showList :: [InterfaceProperty] -> ShowS
Prelude.Show)
mkInterfaceProperty :: Value Prelude.Text -> InterfaceProperty
mkInterfaceProperty :: Value Text -> InterfaceProperty
mkInterfaceProperty Value Text
name
  = InterfaceProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties InterfaceProperty where
  toResourceProperties :: InterfaceProperty -> ResourceProperties
toResourceProperties InterfaceProperty {()
Value Text
haddock_workaround_ :: InterfaceProperty -> ()
name :: InterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::MediaConnect::FlowOutput.Interface",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Name" 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
name]}
instance JSON.ToJSON InterfaceProperty where
  toJSON :: InterfaceProperty -> Value
toJSON InterfaceProperty {()
Value Text
haddock_workaround_ :: InterfaceProperty -> ()
name :: InterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..} = [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name]
instance Property "Name" InterfaceProperty where
  type PropertyType "Name" InterfaceProperty = Value Prelude.Text
  set :: PropertyType "Name" InterfaceProperty
-> InterfaceProperty -> InterfaceProperty
set PropertyType "Name" InterfaceProperty
newValue InterfaceProperty {()
Value Text
haddock_workaround_ :: InterfaceProperty -> ()
name :: InterfaceProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = InterfaceProperty {name :: Value Text
name = PropertyType "Name" InterfaceProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}