module Stratosphere.EC2.VPNConnection.Phase1EncryptionAlgorithmsRequestListValueProperty (
        Phase1EncryptionAlgorithmsRequestListValueProperty(..),
        mkPhase1EncryptionAlgorithmsRequestListValueProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Phase1EncryptionAlgorithmsRequestListValueProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-phase1encryptionalgorithmsrequestlistvalue.html>
    Phase1EncryptionAlgorithmsRequestListValueProperty {Phase1EncryptionAlgorithmsRequestListValueProperty -> ()
haddock_workaround_ :: (),
                                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-phase1encryptionalgorithmsrequestlistvalue.html#cfn-ec2-vpnconnection-phase1encryptionalgorithmsrequestlistvalue-value>
                                                        Phase1EncryptionAlgorithmsRequestListValueProperty
-> Maybe (Value Text)
value :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool
(Phase1EncryptionAlgorithmsRequestListValueProperty
 -> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool)
-> (Phase1EncryptionAlgorithmsRequestListValueProperty
    -> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool)
-> Eq Phase1EncryptionAlgorithmsRequestListValueProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool
== :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool
$c/= :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool
/= :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty -> Bool
Prelude.Eq, Int -> Phase1EncryptionAlgorithmsRequestListValueProperty -> ShowS
[Phase1EncryptionAlgorithmsRequestListValueProperty] -> ShowS
Phase1EncryptionAlgorithmsRequestListValueProperty -> String
(Int
 -> Phase1EncryptionAlgorithmsRequestListValueProperty -> ShowS)
-> (Phase1EncryptionAlgorithmsRequestListValueProperty -> String)
-> ([Phase1EncryptionAlgorithmsRequestListValueProperty] -> ShowS)
-> Show Phase1EncryptionAlgorithmsRequestListValueProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Phase1EncryptionAlgorithmsRequestListValueProperty -> ShowS
showsPrec :: Int -> Phase1EncryptionAlgorithmsRequestListValueProperty -> ShowS
$cshow :: Phase1EncryptionAlgorithmsRequestListValueProperty -> String
show :: Phase1EncryptionAlgorithmsRequestListValueProperty -> String
$cshowList :: [Phase1EncryptionAlgorithmsRequestListValueProperty] -> ShowS
showList :: [Phase1EncryptionAlgorithmsRequestListValueProperty] -> ShowS
Prelude.Show)
mkPhase1EncryptionAlgorithmsRequestListValueProperty ::
  Phase1EncryptionAlgorithmsRequestListValueProperty
mkPhase1EncryptionAlgorithmsRequestListValueProperty :: Phase1EncryptionAlgorithmsRequestListValueProperty
mkPhase1EncryptionAlgorithmsRequestListValueProperty
  = Phase1EncryptionAlgorithmsRequestListValueProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), value :: Maybe (Value Text)
value = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Phase1EncryptionAlgorithmsRequestListValueProperty where
  toResourceProperties :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> ResourceProperties
toResourceProperties
    Phase1EncryptionAlgorithmsRequestListValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: Phase1EncryptionAlgorithmsRequestListValueProperty -> ()
value :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::VPNConnection.Phase1EncryptionAlgorithmsRequestListValue",
         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 Phase1EncryptionAlgorithmsRequestListValueProperty where
  toJSON :: Phase1EncryptionAlgorithmsRequestListValueProperty -> Value
toJSON Phase1EncryptionAlgorithmsRequestListValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: Phase1EncryptionAlgorithmsRequestListValueProperty -> ()
value :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> 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" Phase1EncryptionAlgorithmsRequestListValueProperty where
  type PropertyType "Value" Phase1EncryptionAlgorithmsRequestListValueProperty = Value Prelude.Text
  set :: PropertyType
  "Value" Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty
-> Phase1EncryptionAlgorithmsRequestListValueProperty
set
    PropertyType
  "Value" Phase1EncryptionAlgorithmsRequestListValueProperty
newValue
    Phase1EncryptionAlgorithmsRequestListValueProperty {Maybe (Value Text)
()
haddock_workaround_ :: Phase1EncryptionAlgorithmsRequestListValueProperty -> ()
value :: Phase1EncryptionAlgorithmsRequestListValueProperty
-> Maybe (Value Text)
haddock_workaround_ :: ()
value :: Maybe (Value Text)
..}
    = Phase1EncryptionAlgorithmsRequestListValueProperty
        {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" Phase1EncryptionAlgorithmsRequestListValueProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}