stratosphere-appmesh-1.0.0: gen/Stratosphere/AppMesh/VirtualNode/AccessLogProperty.hs
module Stratosphere.AppMesh.VirtualNode.AccessLogProperty (
module Exports, AccessLogProperty(..), mkAccessLogProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.VirtualNode.FileAccessLogProperty as Exports
import Stratosphere.ResourceProperties
data AccessLogProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-accesslog.html>
AccessLogProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-virtualnode-accesslog.html#cfn-appmesh-virtualnode-accesslog-file>
file :: (Prelude.Maybe FileAccessLogProperty)}
deriving stock (Prelude.Eq, Prelude.Show)
mkAccessLogProperty :: AccessLogProperty
mkAccessLogProperty
= AccessLogProperty
{haddock_workaround_ = (), file = Prelude.Nothing}
instance ToResourceProperties AccessLogProperty where
toResourceProperties AccessLogProperty {..}
= ResourceProperties
{awsType = "AWS::AppMesh::VirtualNode.AccessLog",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "File" Prelude.<$> file])}
instance JSON.ToJSON AccessLogProperty where
toJSON AccessLogProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "File" Prelude.<$> file]))
instance Property "File" AccessLogProperty where
type PropertyType "File" AccessLogProperty = FileAccessLogProperty
set newValue AccessLogProperty {..}
= AccessLogProperty {file = Prelude.pure newValue, ..}