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