module Stratosphere.NetworkManager.VpcAttachment.VpcOptionsProperty (
        VpcOptionsProperty(..), mkVpcOptionsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VpcOptionsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-vpcoptions.html>
    VpcOptionsProperty {VpcOptionsProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-vpcoptions.html#cfn-networkmanager-vpcattachment-vpcoptions-appliancemodesupport>
                        VpcOptionsProperty -> Maybe (Value Bool)
applianceModeSupport :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-vpcoptions.html#cfn-networkmanager-vpcattachment-vpcoptions-dnssupport>
                        VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-vpcoptions.html#cfn-networkmanager-vpcattachment-vpcoptions-ipv6support>
                        VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: (Prelude.Maybe (Value Prelude.Bool)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-networkmanager-vpcattachment-vpcoptions.html#cfn-networkmanager-vpcattachment-vpcoptions-securitygroupreferencingsupport>
                        VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (VpcOptionsProperty -> VpcOptionsProperty -> Bool
(VpcOptionsProperty -> VpcOptionsProperty -> Bool)
-> (VpcOptionsProperty -> VpcOptionsProperty -> Bool)
-> Eq VpcOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
== :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
$c/= :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
/= :: VpcOptionsProperty -> VpcOptionsProperty -> Bool
Prelude.Eq, Int -> VpcOptionsProperty -> ShowS
[VpcOptionsProperty] -> ShowS
VpcOptionsProperty -> String
(Int -> VpcOptionsProperty -> ShowS)
-> (VpcOptionsProperty -> String)
-> ([VpcOptionsProperty] -> ShowS)
-> Show VpcOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpcOptionsProperty -> ShowS
showsPrec :: Int -> VpcOptionsProperty -> ShowS
$cshow :: VpcOptionsProperty -> String
show :: VpcOptionsProperty -> String
$cshowList :: [VpcOptionsProperty] -> ShowS
showList :: [VpcOptionsProperty] -> ShowS
Prelude.Show)
mkVpcOptionsProperty :: VpcOptionsProperty
mkVpcOptionsProperty :: VpcOptionsProperty
mkVpcOptionsProperty
  = VpcOptionsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), applianceModeSupport :: Maybe (Value Bool)
applianceModeSupport = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       dnsSupport :: Maybe (Value Bool)
dnsSupport = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing, ipv6Support :: Maybe (Value Bool)
ipv6Support = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
       securityGroupReferencingSupport :: Maybe (Value Bool)
securityGroupReferencingSupport = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpcOptionsProperty where
  toResourceProperties :: VpcOptionsProperty -> ResourceProperties
toResourceProperties VpcOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: VpcOptionsProperty -> ()
applianceModeSupport :: VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: VpcOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::NetworkManager::VpcAttachment.VpcOptions",
         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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApplianceModeSupport" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
applianceModeSupport,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsSupport" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
dnsSupport,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv6Support" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
ipv6Support,
                            Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SecurityGroupReferencingSupport"
                              (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
securityGroupReferencingSupport])}
instance JSON.ToJSON VpcOptionsProperty where
  toJSON :: VpcOptionsProperty -> Value
toJSON VpcOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: VpcOptionsProperty -> ()
applianceModeSupport :: VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: VpcOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
    = [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApplianceModeSupport" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
applianceModeSupport,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsSupport" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
dnsSupport,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Ipv6Support" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
ipv6Support,
               Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SecurityGroupReferencingSupport"
                 (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
securityGroupReferencingSupport]))
instance Property "ApplianceModeSupport" VpcOptionsProperty where
  type PropertyType "ApplianceModeSupport" VpcOptionsProperty = Value Prelude.Bool
  set :: PropertyType "ApplianceModeSupport" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "ApplianceModeSupport" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: VpcOptionsProperty -> ()
applianceModeSupport :: VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: VpcOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
    = VpcOptionsProperty
        {applianceModeSupport :: Maybe (Value Bool)
applianceModeSupport = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplianceModeSupport" VpcOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
haddock_workaround_ :: ()
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
instance Property "DnsSupport" VpcOptionsProperty where
  type PropertyType "DnsSupport" VpcOptionsProperty = Value Prelude.Bool
  set :: PropertyType "DnsSupport" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "DnsSupport" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: VpcOptionsProperty -> ()
applianceModeSupport :: VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: VpcOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
    = VpcOptionsProperty {dnsSupport :: Maybe (Value Bool)
dnsSupport = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsSupport" VpcOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
instance Property "Ipv6Support" VpcOptionsProperty where
  type PropertyType "Ipv6Support" VpcOptionsProperty = Value Prelude.Bool
  set :: PropertyType "Ipv6Support" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "Ipv6Support" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: VpcOptionsProperty -> ()
applianceModeSupport :: VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: VpcOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
    = VpcOptionsProperty {ipv6Support :: Maybe (Value Bool)
ipv6Support = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6Support" VpcOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
instance Property "SecurityGroupReferencingSupport" VpcOptionsProperty where
  type PropertyType "SecurityGroupReferencingSupport" VpcOptionsProperty = Value Prelude.Bool
  set :: PropertyType "SecurityGroupReferencingSupport" VpcOptionsProperty
-> VpcOptionsProperty -> VpcOptionsProperty
set PropertyType "SecurityGroupReferencingSupport" VpcOptionsProperty
newValue VpcOptionsProperty {Maybe (Value Bool)
()
haddock_workaround_ :: VpcOptionsProperty -> ()
applianceModeSupport :: VpcOptionsProperty -> Maybe (Value Bool)
dnsSupport :: VpcOptionsProperty -> Maybe (Value Bool)
ipv6Support :: VpcOptionsProperty -> Maybe (Value Bool)
securityGroupReferencingSupport :: VpcOptionsProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
securityGroupReferencingSupport :: Maybe (Value Bool)
..}
    = VpcOptionsProperty
        {securityGroupReferencingSupport :: Maybe (Value Bool)
securityGroupReferencingSupport = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupReferencingSupport" VpcOptionsProperty
Value Bool
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Bool)
dnsSupport :: Maybe (Value Bool)
ipv6Support :: Maybe (Value Bool)
..}