module Stratosphere.EC2.VPNConnection.VpnTunnelLogOptionsSpecificationProperty (
        module Exports, VpnTunnelLogOptionsSpecificationProperty(..),
        mkVpnTunnelLogOptionsSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.EC2.VPNConnection.CloudwatchLogOptionsSpecificationProperty as Exports
import Stratosphere.ResourceProperties
data VpnTunnelLogOptionsSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification.html>
    VpnTunnelLogOptionsSpecificationProperty {VpnTunnelLogOptionsSpecificationProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-vpnconnection-vpntunnellogoptionsspecification.html#cfn-ec2-vpnconnection-vpntunnellogoptionsspecification-cloudwatchlogoptions>
                                              VpnTunnelLogOptionsSpecificationProperty
-> Maybe CloudwatchLogOptionsSpecificationProperty
cloudwatchLogOptions :: (Prelude.Maybe CloudwatchLogOptionsSpecificationProperty)}
  deriving stock (VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty -> Bool
(VpnTunnelLogOptionsSpecificationProperty
 -> VpnTunnelLogOptionsSpecificationProperty -> Bool)
-> (VpnTunnelLogOptionsSpecificationProperty
    -> VpnTunnelLogOptionsSpecificationProperty -> Bool)
-> Eq VpnTunnelLogOptionsSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty -> Bool
== :: VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty -> Bool
$c/= :: VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty -> Bool
/= :: VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty -> Bool
Prelude.Eq, Int -> VpnTunnelLogOptionsSpecificationProperty -> ShowS
[VpnTunnelLogOptionsSpecificationProperty] -> ShowS
VpnTunnelLogOptionsSpecificationProperty -> String
(Int -> VpnTunnelLogOptionsSpecificationProperty -> ShowS)
-> (VpnTunnelLogOptionsSpecificationProperty -> String)
-> ([VpnTunnelLogOptionsSpecificationProperty] -> ShowS)
-> Show VpnTunnelLogOptionsSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VpnTunnelLogOptionsSpecificationProperty -> ShowS
showsPrec :: Int -> VpnTunnelLogOptionsSpecificationProperty -> ShowS
$cshow :: VpnTunnelLogOptionsSpecificationProperty -> String
show :: VpnTunnelLogOptionsSpecificationProperty -> String
$cshowList :: [VpnTunnelLogOptionsSpecificationProperty] -> ShowS
showList :: [VpnTunnelLogOptionsSpecificationProperty] -> ShowS
Prelude.Show)
mkVpnTunnelLogOptionsSpecificationProperty ::
  VpnTunnelLogOptionsSpecificationProperty
mkVpnTunnelLogOptionsSpecificationProperty :: VpnTunnelLogOptionsSpecificationProperty
mkVpnTunnelLogOptionsSpecificationProperty
  = VpnTunnelLogOptionsSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), cloudwatchLogOptions :: Maybe CloudwatchLogOptionsSpecificationProperty
cloudwatchLogOptions = Maybe CloudwatchLogOptionsSpecificationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VpnTunnelLogOptionsSpecificationProperty where
  toResourceProperties :: VpnTunnelLogOptionsSpecificationProperty -> ResourceProperties
toResourceProperties VpnTunnelLogOptionsSpecificationProperty {Maybe CloudwatchLogOptionsSpecificationProperty
()
haddock_workaround_ :: VpnTunnelLogOptionsSpecificationProperty -> ()
cloudwatchLogOptions :: VpnTunnelLogOptionsSpecificationProperty
-> Maybe CloudwatchLogOptionsSpecificationProperty
haddock_workaround_ :: ()
cloudwatchLogOptions :: Maybe CloudwatchLogOptionsSpecificationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::VPNConnection.VpnTunnelLogOptionsSpecification",
         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 -> CloudwatchLogOptionsSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudwatchLogOptions"
                              (CloudwatchLogOptionsSpecificationProperty -> (Key, Value))
-> Maybe CloudwatchLogOptionsSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudwatchLogOptionsSpecificationProperty
cloudwatchLogOptions])}
instance JSON.ToJSON VpnTunnelLogOptionsSpecificationProperty where
  toJSON :: VpnTunnelLogOptionsSpecificationProperty -> Value
toJSON VpnTunnelLogOptionsSpecificationProperty {Maybe CloudwatchLogOptionsSpecificationProperty
()
haddock_workaround_ :: VpnTunnelLogOptionsSpecificationProperty -> ()
cloudwatchLogOptions :: VpnTunnelLogOptionsSpecificationProperty
-> Maybe CloudwatchLogOptionsSpecificationProperty
haddock_workaround_ :: ()
cloudwatchLogOptions :: Maybe CloudwatchLogOptionsSpecificationProperty
..}
    = [(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 -> CloudwatchLogOptionsSpecificationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudwatchLogOptions"
                 (CloudwatchLogOptionsSpecificationProperty -> (Key, Value))
-> Maybe CloudwatchLogOptionsSpecificationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudwatchLogOptionsSpecificationProperty
cloudwatchLogOptions]))
instance Property "CloudwatchLogOptions" VpnTunnelLogOptionsSpecificationProperty where
  type PropertyType "CloudwatchLogOptions" VpnTunnelLogOptionsSpecificationProperty = CloudwatchLogOptionsSpecificationProperty
  set :: PropertyType
  "CloudwatchLogOptions" VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty
-> VpnTunnelLogOptionsSpecificationProperty
set PropertyType
  "CloudwatchLogOptions" VpnTunnelLogOptionsSpecificationProperty
newValue VpnTunnelLogOptionsSpecificationProperty {Maybe CloudwatchLogOptionsSpecificationProperty
()
haddock_workaround_ :: VpnTunnelLogOptionsSpecificationProperty -> ()
cloudwatchLogOptions :: VpnTunnelLogOptionsSpecificationProperty
-> Maybe CloudwatchLogOptionsSpecificationProperty
haddock_workaround_ :: ()
cloudwatchLogOptions :: Maybe CloudwatchLogOptionsSpecificationProperty
..}
    = VpnTunnelLogOptionsSpecificationProperty
        {cloudwatchLogOptions :: Maybe CloudwatchLogOptionsSpecificationProperty
cloudwatchLogOptions = CloudwatchLogOptionsSpecificationProperty
-> Maybe CloudwatchLogOptionsSpecificationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CloudwatchLogOptions" VpnTunnelLogOptionsSpecificationProperty
CloudwatchLogOptionsSpecificationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}