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