module Stratosphere.AppMesh.VirtualGateway.VirtualGatewayFileAccessLogProperty (
module Exports, VirtualGatewayFileAccessLogProperty(..),
mkVirtualGatewayFileAccessLogProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualGateway.LoggingFormatProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VirtualGatewayFileAccessLogProperty
=
VirtualGatewayFileAccessLogProperty {VirtualGatewayFileAccessLogProperty -> ()
haddock_workaround_ :: (),
VirtualGatewayFileAccessLogProperty -> Maybe LoggingFormatProperty
format :: (Prelude.Maybe LoggingFormatProperty),
VirtualGatewayFileAccessLogProperty -> Value Text
path :: (Value Prelude.Text)}
deriving stock (VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool
(VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool)
-> (VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool)
-> Eq VirtualGatewayFileAccessLogProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool
== :: VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool
$c/= :: VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool
/= :: VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty -> Bool
Prelude.Eq, Int -> VirtualGatewayFileAccessLogProperty -> ShowS
[VirtualGatewayFileAccessLogProperty] -> ShowS
VirtualGatewayFileAccessLogProperty -> String
(Int -> VirtualGatewayFileAccessLogProperty -> ShowS)
-> (VirtualGatewayFileAccessLogProperty -> String)
-> ([VirtualGatewayFileAccessLogProperty] -> ShowS)
-> Show VirtualGatewayFileAccessLogProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VirtualGatewayFileAccessLogProperty -> ShowS
showsPrec :: Int -> VirtualGatewayFileAccessLogProperty -> ShowS
$cshow :: VirtualGatewayFileAccessLogProperty -> String
show :: VirtualGatewayFileAccessLogProperty -> String
$cshowList :: [VirtualGatewayFileAccessLogProperty] -> ShowS
showList :: [VirtualGatewayFileAccessLogProperty] -> ShowS
Prelude.Show)
mkVirtualGatewayFileAccessLogProperty ::
Value Prelude.Text -> VirtualGatewayFileAccessLogProperty
mkVirtualGatewayFileAccessLogProperty :: Value Text -> VirtualGatewayFileAccessLogProperty
mkVirtualGatewayFileAccessLogProperty Value Text
path
= VirtualGatewayFileAccessLogProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), path :: Value Text
path = Value Text
path, format :: Maybe LoggingFormatProperty
format = Maybe LoggingFormatProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VirtualGatewayFileAccessLogProperty where
toResourceProperties :: VirtualGatewayFileAccessLogProperty -> ResourceProperties
toResourceProperties VirtualGatewayFileAccessLogProperty {Maybe LoggingFormatProperty
()
Value Text
haddock_workaround_ :: VirtualGatewayFileAccessLogProperty -> ()
format :: VirtualGatewayFileAccessLogProperty -> Maybe LoggingFormatProperty
path :: VirtualGatewayFileAccessLogProperty -> Value Text
haddock_workaround_ :: ()
format :: Maybe LoggingFormatProperty
path :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::VirtualGateway.VirtualGatewayFileAccessLog",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Path" 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..= Value Text
path]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> LoggingFormatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Format" (LoggingFormatProperty -> (Key, Value))
-> Maybe LoggingFormatProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoggingFormatProperty
format]))}
instance JSON.ToJSON VirtualGatewayFileAccessLogProperty where
toJSON :: VirtualGatewayFileAccessLogProperty -> Value
toJSON VirtualGatewayFileAccessLogProperty {Maybe LoggingFormatProperty
()
Value Text
haddock_workaround_ :: VirtualGatewayFileAccessLogProperty -> ()
format :: VirtualGatewayFileAccessLogProperty -> Maybe LoggingFormatProperty
path :: VirtualGatewayFileAccessLogProperty -> Value Text
haddock_workaround_ :: ()
format :: Maybe LoggingFormatProperty
path :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Path" 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..= Value Text
path]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> LoggingFormatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Format" (LoggingFormatProperty -> (Key, Value))
-> Maybe LoggingFormatProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoggingFormatProperty
format])))
instance Property "Format" VirtualGatewayFileAccessLogProperty where
type PropertyType "Format" VirtualGatewayFileAccessLogProperty = LoggingFormatProperty
set :: PropertyType "Format" VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty
set PropertyType "Format" VirtualGatewayFileAccessLogProperty
newValue VirtualGatewayFileAccessLogProperty {Maybe LoggingFormatProperty
()
Value Text
haddock_workaround_ :: VirtualGatewayFileAccessLogProperty -> ()
format :: VirtualGatewayFileAccessLogProperty -> Maybe LoggingFormatProperty
path :: VirtualGatewayFileAccessLogProperty -> Value Text
haddock_workaround_ :: ()
format :: Maybe LoggingFormatProperty
path :: Value Text
..}
= VirtualGatewayFileAccessLogProperty
{format :: Maybe LoggingFormatProperty
format = LoggingFormatProperty -> Maybe LoggingFormatProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Format" VirtualGatewayFileAccessLogProperty
LoggingFormatProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
path :: Value Text
haddock_workaround_ :: ()
path :: Value Text
..}
instance Property "Path" VirtualGatewayFileAccessLogProperty where
type PropertyType "Path" VirtualGatewayFileAccessLogProperty = Value Prelude.Text
set :: PropertyType "Path" VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty
-> VirtualGatewayFileAccessLogProperty
set PropertyType "Path" VirtualGatewayFileAccessLogProperty
newValue VirtualGatewayFileAccessLogProperty {Maybe LoggingFormatProperty
()
Value Text
haddock_workaround_ :: VirtualGatewayFileAccessLogProperty -> ()
format :: VirtualGatewayFileAccessLogProperty -> Maybe LoggingFormatProperty
path :: VirtualGatewayFileAccessLogProperty -> Value Text
haddock_workaround_ :: ()
format :: Maybe LoggingFormatProperty
path :: Value Text
..}
= VirtualGatewayFileAccessLogProperty {path :: Value Text
path = PropertyType "Path" VirtualGatewayFileAccessLogProperty
Value Text
newValue, Maybe LoggingFormatProperty
()
haddock_workaround_ :: ()
format :: Maybe LoggingFormatProperty
haddock_workaround_ :: ()
format :: Maybe LoggingFormatProperty
..}