module Stratosphere.EC2.TransitGatewayMulticastDomain.OptionsProperty (
        OptionsProperty(..), mkOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaymulticastdomain-options.html>
    OptionsProperty {OptionsProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaymulticastdomain-options.html#cfn-ec2-transitgatewaymulticastdomain-options-autoacceptsharedassociations>
                     OptionsProperty -> Maybe (Value Text)
autoAcceptSharedAssociations :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaymulticastdomain-options.html#cfn-ec2-transitgatewaymulticastdomain-options-igmpv2support>
                     OptionsProperty -> Maybe (Value Text)
igmpv2Support :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-transitgatewaymulticastdomain-options.html#cfn-ec2-transitgatewaymulticastdomain-options-staticsourcessupport>
                     OptionsProperty -> Maybe (Value Text)
staticSourcesSupport :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (OptionsProperty -> OptionsProperty -> Bool
(OptionsProperty -> OptionsProperty -> Bool)
-> (OptionsProperty -> OptionsProperty -> Bool)
-> Eq OptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OptionsProperty -> OptionsProperty -> Bool
== :: OptionsProperty -> OptionsProperty -> Bool
$c/= :: OptionsProperty -> OptionsProperty -> Bool
/= :: OptionsProperty -> OptionsProperty -> Bool
Prelude.Eq, Int -> OptionsProperty -> ShowS
[OptionsProperty] -> ShowS
OptionsProperty -> String
(Int -> OptionsProperty -> ShowS)
-> (OptionsProperty -> String)
-> ([OptionsProperty] -> ShowS)
-> Show OptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OptionsProperty -> ShowS
showsPrec :: Int -> OptionsProperty -> ShowS
$cshow :: OptionsProperty -> String
show :: OptionsProperty -> String
$cshowList :: [OptionsProperty] -> ShowS
showList :: [OptionsProperty] -> ShowS
Prelude.Show)
mkOptionsProperty :: OptionsProperty
mkOptionsProperty :: OptionsProperty
mkOptionsProperty
  = OptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       autoAcceptSharedAssociations :: Maybe (Value Text)
autoAcceptSharedAssociations = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       igmpv2Support :: Maybe (Value Text)
igmpv2Support = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       staticSourcesSupport :: Maybe (Value Text)
staticSourcesSupport = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OptionsProperty where
  toResourceProperties :: OptionsProperty -> ResourceProperties
toResourceProperties OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
autoAcceptSharedAssociations :: OptionsProperty -> Maybe (Value Text)
igmpv2Support :: OptionsProperty -> Maybe (Value Text)
staticSourcesSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::TransitGatewayMulticastDomain.Options",
         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
"AutoAcceptSharedAssociations"
                              (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)
autoAcceptSharedAssociations,
                            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
"Igmpv2Support" (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)
igmpv2Support,
                            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
"StaticSourcesSupport"
                              (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)
staticSourcesSupport])}
instance JSON.ToJSON OptionsProperty where
  toJSON :: OptionsProperty -> Value
toJSON OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
autoAcceptSharedAssociations :: OptionsProperty -> Maybe (Value Text)
igmpv2Support :: OptionsProperty -> Maybe (Value Text)
staticSourcesSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: 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
"AutoAcceptSharedAssociations"
                 (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)
autoAcceptSharedAssociations,
               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
"Igmpv2Support" (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)
igmpv2Support,
               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
"StaticSourcesSupport"
                 (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)
staticSourcesSupport]))
instance Property "AutoAcceptSharedAssociations" OptionsProperty where
  type PropertyType "AutoAcceptSharedAssociations" OptionsProperty = Value Prelude.Text
  set :: PropertyType "AutoAcceptSharedAssociations" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "AutoAcceptSharedAssociations" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
autoAcceptSharedAssociations :: OptionsProperty -> Maybe (Value Text)
igmpv2Support :: OptionsProperty -> Maybe (Value Text)
staticSourcesSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
..}
    = OptionsProperty
        {autoAcceptSharedAssociations :: Maybe (Value Text)
autoAcceptSharedAssociations = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AutoAcceptSharedAssociations" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
haddock_workaround_ :: ()
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
..}
instance Property "Igmpv2Support" OptionsProperty where
  type PropertyType "Igmpv2Support" OptionsProperty = Value Prelude.Text
  set :: PropertyType "Igmpv2Support" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "Igmpv2Support" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
autoAcceptSharedAssociations :: OptionsProperty -> Maybe (Value Text)
igmpv2Support :: OptionsProperty -> Maybe (Value Text)
staticSourcesSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
..}
    = OptionsProperty {igmpv2Support :: Maybe (Value Text)
igmpv2Support = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Igmpv2Support" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
..}
instance Property "StaticSourcesSupport" OptionsProperty where
  type PropertyType "StaticSourcesSupport" OptionsProperty = Value Prelude.Text
  set :: PropertyType "StaticSourcesSupport" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "StaticSourcesSupport" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
autoAcceptSharedAssociations :: OptionsProperty -> Maybe (Value Text)
igmpv2Support :: OptionsProperty -> Maybe (Value Text)
staticSourcesSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
staticSourcesSupport :: Maybe (Value Text)
..}
    = OptionsProperty
        {staticSourcesSupport :: Maybe (Value Text)
staticSourcesSupport = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StaticSourcesSupport" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
haddock_workaround_ :: ()
autoAcceptSharedAssociations :: Maybe (Value Text)
igmpv2Support :: Maybe (Value Text)
..}