module Stratosphere.EC2.TransitGatewayAttachment.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
=
OptionsProperty {OptionsProperty -> ()
haddock_workaround_ :: (),
OptionsProperty -> Maybe (Value Text)
applianceModeSupport :: (Prelude.Maybe (Value Prelude.Text)),
OptionsProperty -> Maybe (Value Text)
dnsSupport :: (Prelude.Maybe (Value Prelude.Text)),
OptionsProperty -> Maybe (Value Text)
ipv6Support :: (Prelude.Maybe (Value Prelude.Text)),
OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: (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_ = (), applianceModeSupport :: Maybe (Value Text)
applianceModeSupport = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
dnsSupport :: Maybe (Value Text)
dnsSupport = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, ipv6Support :: Maybe (Value Text)
ipv6Support = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
securityGroupReferencingSupport :: Maybe (Value Text)
securityGroupReferencingSupport = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OptionsProperty where
toResourceProperties :: OptionsProperty -> ResourceProperties
toResourceProperties OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
applianceModeSupport :: OptionsProperty -> Maybe (Value Text)
dnsSupport :: OptionsProperty -> Maybe (Value Text)
ipv6Support :: OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::TransitGatewayAttachment.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
"ApplianceModeSupport" (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)
applianceModeSupport,
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
"DnsSupport" (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)
dnsSupport,
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
"Ipv6Support" (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)
ipv6Support,
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
"SecurityGroupReferencingSupport"
(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)
securityGroupReferencingSupport])}
instance JSON.ToJSON OptionsProperty where
toJSON :: OptionsProperty -> Value
toJSON OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
applianceModeSupport :: OptionsProperty -> Maybe (Value Text)
dnsSupport :: OptionsProperty -> Maybe (Value Text)
ipv6Support :: OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: 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
"ApplianceModeSupport" (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)
applianceModeSupport,
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
"DnsSupport" (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)
dnsSupport,
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
"Ipv6Support" (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)
ipv6Support,
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
"SecurityGroupReferencingSupport"
(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)
securityGroupReferencingSupport]))
instance Property "ApplianceModeSupport" OptionsProperty where
type PropertyType "ApplianceModeSupport" OptionsProperty = Value Prelude.Text
set :: PropertyType "ApplianceModeSupport" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "ApplianceModeSupport" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
applianceModeSupport :: OptionsProperty -> Maybe (Value Text)
dnsSupport :: OptionsProperty -> Maybe (Value Text)
ipv6Support :: OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
= OptionsProperty
{applianceModeSupport :: Maybe (Value Text)
applianceModeSupport = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplianceModeSupport" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
haddock_workaround_ :: ()
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
instance Property "DnsSupport" OptionsProperty where
type PropertyType "DnsSupport" OptionsProperty = Value Prelude.Text
set :: PropertyType "DnsSupport" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "DnsSupport" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
applianceModeSupport :: OptionsProperty -> Maybe (Value Text)
dnsSupport :: OptionsProperty -> Maybe (Value Text)
ipv6Support :: OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
= OptionsProperty {dnsSupport :: Maybe (Value Text)
dnsSupport = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsSupport" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
instance Property "Ipv6Support" OptionsProperty where
type PropertyType "Ipv6Support" OptionsProperty = Value Prelude.Text
set :: PropertyType "Ipv6Support" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "Ipv6Support" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
applianceModeSupport :: OptionsProperty -> Maybe (Value Text)
dnsSupport :: OptionsProperty -> Maybe (Value Text)
ipv6Support :: OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
= OptionsProperty {ipv6Support :: Maybe (Value Text)
ipv6Support = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Ipv6Support" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
instance Property "SecurityGroupReferencingSupport" OptionsProperty where
type PropertyType "SecurityGroupReferencingSupport" OptionsProperty = Value Prelude.Text
set :: PropertyType "SecurityGroupReferencingSupport" OptionsProperty
-> OptionsProperty -> OptionsProperty
set PropertyType "SecurityGroupReferencingSupport" OptionsProperty
newValue OptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: OptionsProperty -> ()
applianceModeSupport :: OptionsProperty -> Maybe (Value Text)
dnsSupport :: OptionsProperty -> Maybe (Value Text)
ipv6Support :: OptionsProperty -> Maybe (Value Text)
securityGroupReferencingSupport :: OptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
securityGroupReferencingSupport :: Maybe (Value Text)
..}
= OptionsProperty
{securityGroupReferencingSupport :: Maybe (Value Text)
securityGroupReferencingSupport = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SecurityGroupReferencingSupport" OptionsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
haddock_workaround_ :: ()
applianceModeSupport :: Maybe (Value Text)
dnsSupport :: Maybe (Value Text)
ipv6Support :: Maybe (Value Text)
..}