module Stratosphere.RTBFabric.Link.ApplicationLogsProperty (
        module Exports, ApplicationLogsProperty(..),
        mkApplicationLogsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RTBFabric.Link.LinkApplicationLogSamplingProperty as Exports
import Stratosphere.ResourceProperties
data ApplicationLogsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-applicationlogs.html>
    ApplicationLogsProperty {ApplicationLogsProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-rtbfabric-link-applicationlogs.html#cfn-rtbfabric-link-applicationlogs-linkapplicationlogsampling>
                             ApplicationLogsProperty -> LinkApplicationLogSamplingProperty
linkApplicationLogSampling :: LinkApplicationLogSamplingProperty}
  deriving stock (ApplicationLogsProperty -> ApplicationLogsProperty -> Bool
(ApplicationLogsProperty -> ApplicationLogsProperty -> Bool)
-> (ApplicationLogsProperty -> ApplicationLogsProperty -> Bool)
-> Eq ApplicationLogsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApplicationLogsProperty -> ApplicationLogsProperty -> Bool
== :: ApplicationLogsProperty -> ApplicationLogsProperty -> Bool
$c/= :: ApplicationLogsProperty -> ApplicationLogsProperty -> Bool
/= :: ApplicationLogsProperty -> ApplicationLogsProperty -> Bool
Prelude.Eq, Int -> ApplicationLogsProperty -> ShowS
[ApplicationLogsProperty] -> ShowS
ApplicationLogsProperty -> String
(Int -> ApplicationLogsProperty -> ShowS)
-> (ApplicationLogsProperty -> String)
-> ([ApplicationLogsProperty] -> ShowS)
-> Show ApplicationLogsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApplicationLogsProperty -> ShowS
showsPrec :: Int -> ApplicationLogsProperty -> ShowS
$cshow :: ApplicationLogsProperty -> String
show :: ApplicationLogsProperty -> String
$cshowList :: [ApplicationLogsProperty] -> ShowS
showList :: [ApplicationLogsProperty] -> ShowS
Prelude.Show)
mkApplicationLogsProperty ::
  LinkApplicationLogSamplingProperty -> ApplicationLogsProperty
mkApplicationLogsProperty :: LinkApplicationLogSamplingProperty -> ApplicationLogsProperty
mkApplicationLogsProperty LinkApplicationLogSamplingProperty
linkApplicationLogSampling
  = ApplicationLogsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       linkApplicationLogSampling :: LinkApplicationLogSamplingProperty
linkApplicationLogSampling = LinkApplicationLogSamplingProperty
linkApplicationLogSampling}
instance ToResourceProperties ApplicationLogsProperty where
  toResourceProperties :: ApplicationLogsProperty -> ResourceProperties
toResourceProperties ApplicationLogsProperty {()
LinkApplicationLogSamplingProperty
haddock_workaround_ :: ApplicationLogsProperty -> ()
linkApplicationLogSampling :: ApplicationLogsProperty -> LinkApplicationLogSamplingProperty
haddock_workaround_ :: ()
linkApplicationLogSampling :: LinkApplicationLogSamplingProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RTBFabric::Link.ApplicationLogs",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"LinkApplicationLogSampling"
                         Key -> LinkApplicationLogSamplingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LinkApplicationLogSamplingProperty
linkApplicationLogSampling]}
instance JSON.ToJSON ApplicationLogsProperty where
  toJSON :: ApplicationLogsProperty -> Value
toJSON ApplicationLogsProperty {()
LinkApplicationLogSamplingProperty
haddock_workaround_ :: ApplicationLogsProperty -> ()
linkApplicationLogSampling :: ApplicationLogsProperty -> LinkApplicationLogSamplingProperty
haddock_workaround_ :: ()
linkApplicationLogSampling :: LinkApplicationLogSamplingProperty
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"LinkApplicationLogSampling" Key -> LinkApplicationLogSamplingProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LinkApplicationLogSamplingProperty
linkApplicationLogSampling]
instance Property "LinkApplicationLogSampling" ApplicationLogsProperty where
  type PropertyType "LinkApplicationLogSampling" ApplicationLogsProperty = LinkApplicationLogSamplingProperty
  set :: PropertyType "LinkApplicationLogSampling" ApplicationLogsProperty
-> ApplicationLogsProperty -> ApplicationLogsProperty
set PropertyType "LinkApplicationLogSampling" ApplicationLogsProperty
newValue ApplicationLogsProperty {()
LinkApplicationLogSamplingProperty
haddock_workaround_ :: ApplicationLogsProperty -> ()
linkApplicationLogSampling :: ApplicationLogsProperty -> LinkApplicationLogSamplingProperty
haddock_workaround_ :: ()
linkApplicationLogSampling :: LinkApplicationLogSamplingProperty
..}
    = ApplicationLogsProperty
        {linkApplicationLogSampling :: LinkApplicationLogSamplingProperty
linkApplicationLogSampling = PropertyType "LinkApplicationLogSampling" ApplicationLogsProperty
LinkApplicationLogSamplingProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}