{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.EC2.Types.VpnTunnelLogOptionsSpecification where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.EC2.Internal
import Amazonka.EC2.Types.CloudWatchLogOptionsSpecification
import qualified Amazonka.Prelude as Prelude
data VpnTunnelLogOptionsSpecification = VpnTunnelLogOptionsSpecification'
{
VpnTunnelLogOptionsSpecification
-> Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions :: Prelude.Maybe CloudWatchLogOptionsSpecification
}
deriving (VpnTunnelLogOptionsSpecification
-> VpnTunnelLogOptionsSpecification -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: VpnTunnelLogOptionsSpecification
-> VpnTunnelLogOptionsSpecification -> Bool
$c/= :: VpnTunnelLogOptionsSpecification
-> VpnTunnelLogOptionsSpecification -> Bool
== :: VpnTunnelLogOptionsSpecification
-> VpnTunnelLogOptionsSpecification -> Bool
$c== :: VpnTunnelLogOptionsSpecification
-> VpnTunnelLogOptionsSpecification -> Bool
Prelude.Eq, ReadPrec [VpnTunnelLogOptionsSpecification]
ReadPrec VpnTunnelLogOptionsSpecification
Int -> ReadS VpnTunnelLogOptionsSpecification
ReadS [VpnTunnelLogOptionsSpecification]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [VpnTunnelLogOptionsSpecification]
$creadListPrec :: ReadPrec [VpnTunnelLogOptionsSpecification]
readPrec :: ReadPrec VpnTunnelLogOptionsSpecification
$creadPrec :: ReadPrec VpnTunnelLogOptionsSpecification
readList :: ReadS [VpnTunnelLogOptionsSpecification]
$creadList :: ReadS [VpnTunnelLogOptionsSpecification]
readsPrec :: Int -> ReadS VpnTunnelLogOptionsSpecification
$creadsPrec :: Int -> ReadS VpnTunnelLogOptionsSpecification
Prelude.Read, Int -> VpnTunnelLogOptionsSpecification -> ShowS
[VpnTunnelLogOptionsSpecification] -> ShowS
VpnTunnelLogOptionsSpecification -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [VpnTunnelLogOptionsSpecification] -> ShowS
$cshowList :: [VpnTunnelLogOptionsSpecification] -> ShowS
show :: VpnTunnelLogOptionsSpecification -> String
$cshow :: VpnTunnelLogOptionsSpecification -> String
showsPrec :: Int -> VpnTunnelLogOptionsSpecification -> ShowS
$cshowsPrec :: Int -> VpnTunnelLogOptionsSpecification -> ShowS
Prelude.Show, forall x.
Rep VpnTunnelLogOptionsSpecification x
-> VpnTunnelLogOptionsSpecification
forall x.
VpnTunnelLogOptionsSpecification
-> Rep VpnTunnelLogOptionsSpecification x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep VpnTunnelLogOptionsSpecification x
-> VpnTunnelLogOptionsSpecification
$cfrom :: forall x.
VpnTunnelLogOptionsSpecification
-> Rep VpnTunnelLogOptionsSpecification x
Prelude.Generic)
newVpnTunnelLogOptionsSpecification ::
VpnTunnelLogOptionsSpecification
newVpnTunnelLogOptionsSpecification :: VpnTunnelLogOptionsSpecification
newVpnTunnelLogOptionsSpecification =
VpnTunnelLogOptionsSpecification'
{ $sel:cloudWatchLogOptions:VpnTunnelLogOptionsSpecification' :: Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions =
forall a. Maybe a
Prelude.Nothing
}
vpnTunnelLogOptionsSpecification_cloudWatchLogOptions :: Lens.Lens' VpnTunnelLogOptionsSpecification (Prelude.Maybe CloudWatchLogOptionsSpecification)
vpnTunnelLogOptionsSpecification_cloudWatchLogOptions :: Lens'
VpnTunnelLogOptionsSpecification
(Maybe CloudWatchLogOptionsSpecification)
vpnTunnelLogOptionsSpecification_cloudWatchLogOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\VpnTunnelLogOptionsSpecification' {Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions :: Maybe CloudWatchLogOptionsSpecification
$sel:cloudWatchLogOptions:VpnTunnelLogOptionsSpecification' :: VpnTunnelLogOptionsSpecification
-> Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions} -> Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions) (\s :: VpnTunnelLogOptionsSpecification
s@VpnTunnelLogOptionsSpecification' {} Maybe CloudWatchLogOptionsSpecification
a -> VpnTunnelLogOptionsSpecification
s {$sel:cloudWatchLogOptions:VpnTunnelLogOptionsSpecification' :: Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions = Maybe CloudWatchLogOptionsSpecification
a} :: VpnTunnelLogOptionsSpecification)
instance
Prelude.Hashable
VpnTunnelLogOptionsSpecification
where
hashWithSalt :: Int -> VpnTunnelLogOptionsSpecification -> Int
hashWithSalt
Int
_salt
VpnTunnelLogOptionsSpecification' {Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions :: Maybe CloudWatchLogOptionsSpecification
$sel:cloudWatchLogOptions:VpnTunnelLogOptionsSpecification' :: VpnTunnelLogOptionsSpecification
-> Maybe CloudWatchLogOptionsSpecification
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions
instance
Prelude.NFData
VpnTunnelLogOptionsSpecification
where
rnf :: VpnTunnelLogOptionsSpecification -> ()
rnf VpnTunnelLogOptionsSpecification' {Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions :: Maybe CloudWatchLogOptionsSpecification
$sel:cloudWatchLogOptions:VpnTunnelLogOptionsSpecification' :: VpnTunnelLogOptionsSpecification
-> Maybe CloudWatchLogOptionsSpecification
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions
instance
Data.ToQuery
VpnTunnelLogOptionsSpecification
where
toQuery :: VpnTunnelLogOptionsSpecification -> QueryString
toQuery VpnTunnelLogOptionsSpecification' {Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions :: Maybe CloudWatchLogOptionsSpecification
$sel:cloudWatchLogOptions:VpnTunnelLogOptionsSpecification' :: VpnTunnelLogOptionsSpecification
-> Maybe CloudWatchLogOptionsSpecification
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"CloudWatchLogOptions" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe CloudWatchLogOptionsSpecification
cloudWatchLogOptions]