module Stratosphere.AppRunner.Service.ServiceObservabilityConfigurationProperty (
        ServiceObservabilityConfigurationProperty(..),
        mkServiceObservabilityConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceObservabilityConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-serviceobservabilityconfiguration.html>
    ServiceObservabilityConfigurationProperty {ServiceObservabilityConfigurationProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-serviceobservabilityconfiguration.html#cfn-apprunner-service-serviceobservabilityconfiguration-observabilityconfigurationarn>
                                               ServiceObservabilityConfigurationProperty -> Maybe (Value Text)
observabilityConfigurationArn :: (Prelude.Maybe (Value Prelude.Text)),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-serviceobservabilityconfiguration.html#cfn-apprunner-service-serviceobservabilityconfiguration-observabilityenabled>
                                               ServiceObservabilityConfigurationProperty -> Value Bool
observabilityEnabled :: (Value Prelude.Bool)}
  deriving stock (ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty -> Bool
(ServiceObservabilityConfigurationProperty
 -> ServiceObservabilityConfigurationProperty -> Bool)
-> (ServiceObservabilityConfigurationProperty
    -> ServiceObservabilityConfigurationProperty -> Bool)
-> Eq ServiceObservabilityConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty -> Bool
== :: ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty -> Bool
$c/= :: ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty -> Bool
/= :: ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty -> Bool
Prelude.Eq, Int -> ServiceObservabilityConfigurationProperty -> ShowS
[ServiceObservabilityConfigurationProperty] -> ShowS
ServiceObservabilityConfigurationProperty -> String
(Int -> ServiceObservabilityConfigurationProperty -> ShowS)
-> (ServiceObservabilityConfigurationProperty -> String)
-> ([ServiceObservabilityConfigurationProperty] -> ShowS)
-> Show ServiceObservabilityConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceObservabilityConfigurationProperty -> ShowS
showsPrec :: Int -> ServiceObservabilityConfigurationProperty -> ShowS
$cshow :: ServiceObservabilityConfigurationProperty -> String
show :: ServiceObservabilityConfigurationProperty -> String
$cshowList :: [ServiceObservabilityConfigurationProperty] -> ShowS
showList :: [ServiceObservabilityConfigurationProperty] -> ShowS
Prelude.Show)
mkServiceObservabilityConfigurationProperty ::
  Value Prelude.Bool -> ServiceObservabilityConfigurationProperty
mkServiceObservabilityConfigurationProperty :: Value Bool -> ServiceObservabilityConfigurationProperty
mkServiceObservabilityConfigurationProperty Value Bool
observabilityEnabled
  = ServiceObservabilityConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       observabilityEnabled :: Value Bool
observabilityEnabled = Value Bool
observabilityEnabled,
       observabilityConfigurationArn :: Maybe (Value Text)
observabilityConfigurationArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceObservabilityConfigurationProperty where
  toResourceProperties :: ServiceObservabilityConfigurationProperty -> ResourceProperties
toResourceProperties ServiceObservabilityConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ServiceObservabilityConfigurationProperty -> ()
observabilityConfigurationArn :: ServiceObservabilityConfigurationProperty -> Maybe (Value Text)
observabilityEnabled :: ServiceObservabilityConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
observabilityConfigurationArn :: Maybe (Value Text)
observabilityEnabled :: Value Bool
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppRunner::Service.ServiceObservabilityConfiguration",
         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
"ObservabilityEnabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
observabilityEnabled]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [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..=) Key
"ObservabilityConfigurationArn"
                                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
observabilityConfigurationArn]))}
instance JSON.ToJSON ServiceObservabilityConfigurationProperty where
  toJSON :: ServiceObservabilityConfigurationProperty -> Value
toJSON ServiceObservabilityConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ServiceObservabilityConfigurationProperty -> ()
observabilityConfigurationArn :: ServiceObservabilityConfigurationProperty -> Maybe (Value Text)
observabilityEnabled :: ServiceObservabilityConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
observabilityConfigurationArn :: Maybe (Value Text)
observabilityEnabled :: Value Bool
..}
    = [(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
"ObservabilityEnabled" Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Bool
observabilityEnabled]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [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..=) Key
"ObservabilityConfigurationArn"
                    (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
observabilityConfigurationArn])))
instance Property "ObservabilityConfigurationArn" ServiceObservabilityConfigurationProperty where
  type PropertyType "ObservabilityConfigurationArn" ServiceObservabilityConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "ObservabilityConfigurationArn"
  ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty
set PropertyType
  "ObservabilityConfigurationArn"
  ServiceObservabilityConfigurationProperty
newValue ServiceObservabilityConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ServiceObservabilityConfigurationProperty -> ()
observabilityConfigurationArn :: ServiceObservabilityConfigurationProperty -> Maybe (Value Text)
observabilityEnabled :: ServiceObservabilityConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
observabilityConfigurationArn :: Maybe (Value Text)
observabilityEnabled :: Value Bool
..}
    = ServiceObservabilityConfigurationProperty
        {observabilityConfigurationArn :: Maybe (Value Text)
observabilityConfigurationArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ObservabilityConfigurationArn"
  ServiceObservabilityConfigurationProperty
Value Text
newValue, ()
Value Bool
haddock_workaround_ :: ()
observabilityEnabled :: Value Bool
haddock_workaround_ :: ()
observabilityEnabled :: Value Bool
..}
instance Property "ObservabilityEnabled" ServiceObservabilityConfigurationProperty where
  type PropertyType "ObservabilityEnabled" ServiceObservabilityConfigurationProperty = Value Prelude.Bool
  set :: PropertyType
  "ObservabilityEnabled" ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty
-> ServiceObservabilityConfigurationProperty
set PropertyType
  "ObservabilityEnabled" ServiceObservabilityConfigurationProperty
newValue ServiceObservabilityConfigurationProperty {Maybe (Value Text)
()
Value Bool
haddock_workaround_ :: ServiceObservabilityConfigurationProperty -> ()
observabilityConfigurationArn :: ServiceObservabilityConfigurationProperty -> Maybe (Value Text)
observabilityEnabled :: ServiceObservabilityConfigurationProperty -> Value Bool
haddock_workaround_ :: ()
observabilityConfigurationArn :: Maybe (Value Text)
observabilityEnabled :: Value Bool
..}
    = ServiceObservabilityConfigurationProperty
        {observabilityEnabled :: Value Bool
observabilityEnabled = PropertyType
  "ObservabilityEnabled" ServiceObservabilityConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
observabilityConfigurationArn :: Maybe (Value Text)
haddock_workaround_ :: ()
observabilityConfigurationArn :: Maybe (Value Text)
..}