module Stratosphere.MediaConnect.Flow.VpcInterfaceAttachmentProperty (
VpcInterfaceAttachmentProperty(..),
mkVpcInterfaceAttachmentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcInterfaceAttachmentProperty
=
VpcInterfaceAttachmentProperty {VpcInterfaceAttachmentProperty -> ()
haddock_workaround_ :: (),
VpcInterfaceAttachmentProperty -> Maybe (Value Text)
vpcInterfaceName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool
(VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool)
-> (VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool)
-> Eq VpcInterfaceAttachmentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool
== :: VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool
$c/= :: VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool
/= :: VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> Bool
Prelude.Eq, Int -> VpcInterfaceAttachmentProperty -> ShowS
[VpcInterfaceAttachmentProperty] -> ShowS
VpcInterfaceAttachmentProperty -> String
(Int -> VpcInterfaceAttachmentProperty -> ShowS)
-> (VpcInterfaceAttachmentProperty -> String)
-> ([VpcInterfaceAttachmentProperty] -> ShowS)
-> Show VpcInterfaceAttachmentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcInterfaceAttachmentProperty -> ShowS
showsPrec :: Int -> VpcInterfaceAttachmentProperty -> ShowS
$cshow :: VpcInterfaceAttachmentProperty -> String
show :: VpcInterfaceAttachmentProperty -> String
$cshowList :: [VpcInterfaceAttachmentProperty] -> ShowS
showList :: [VpcInterfaceAttachmentProperty] -> ShowS
Prelude.Show)
mkVpcInterfaceAttachmentProperty :: VpcInterfaceAttachmentProperty
mkVpcInterfaceAttachmentProperty :: VpcInterfaceAttachmentProperty
mkVpcInterfaceAttachmentProperty
= VpcInterfaceAttachmentProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), vpcInterfaceName :: Maybe (Value Text)
vpcInterfaceName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcInterfaceAttachmentProperty where
toResourceProperties :: VpcInterfaceAttachmentProperty -> ResourceProperties
toResourceProperties VpcInterfaceAttachmentProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcInterfaceAttachmentProperty -> ()
vpcInterfaceName :: VpcInterfaceAttachmentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
vpcInterfaceName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::MediaConnect::Flow.VpcInterfaceAttachment",
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
"VpcInterfaceName" (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)
vpcInterfaceName])}
instance JSON.ToJSON VpcInterfaceAttachmentProperty where
toJSON :: VpcInterfaceAttachmentProperty -> Value
toJSON VpcInterfaceAttachmentProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcInterfaceAttachmentProperty -> ()
vpcInterfaceName :: VpcInterfaceAttachmentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
vpcInterfaceName :: 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
"VpcInterfaceName" (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)
vpcInterfaceName]))
instance Property "VpcInterfaceName" VpcInterfaceAttachmentProperty where
type PropertyType "VpcInterfaceName" VpcInterfaceAttachmentProperty = Value Prelude.Text
set :: PropertyType "VpcInterfaceName" VpcInterfaceAttachmentProperty
-> VpcInterfaceAttachmentProperty -> VpcInterfaceAttachmentProperty
set PropertyType "VpcInterfaceName" VpcInterfaceAttachmentProperty
newValue VpcInterfaceAttachmentProperty {Maybe (Value Text)
()
haddock_workaround_ :: VpcInterfaceAttachmentProperty -> ()
vpcInterfaceName :: VpcInterfaceAttachmentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
vpcInterfaceName :: Maybe (Value Text)
..}
= VpcInterfaceAttachmentProperty
{vpcInterfaceName :: Maybe (Value Text)
vpcInterfaceName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "VpcInterfaceName" VpcInterfaceAttachmentProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}