module Stratosphere.ECS.Service.ServiceConnectAccessLogConfigurationProperty (
        ServiceConnectAccessLogConfigurationProperty(..),
        mkServiceConnectAccessLogConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceConnectAccessLogConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceconnectaccesslogconfiguration.html>
    ServiceConnectAccessLogConfigurationProperty {ServiceConnectAccessLogConfigurationProperty -> ()
haddock_workaround_ :: (),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceconnectaccesslogconfiguration.html#cfn-ecs-service-serviceconnectaccesslogconfiguration-format>
                                                  ServiceConnectAccessLogConfigurationProperty -> Value Text
format :: (Value Prelude.Text),
                                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-serviceconnectaccesslogconfiguration.html#cfn-ecs-service-serviceconnectaccesslogconfiguration-includequeryparameters>
                                                  ServiceConnectAccessLogConfigurationProperty -> Maybe (Value Text)
includeQueryParameters :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty -> Bool
(ServiceConnectAccessLogConfigurationProperty
 -> ServiceConnectAccessLogConfigurationProperty -> Bool)
-> (ServiceConnectAccessLogConfigurationProperty
    -> ServiceConnectAccessLogConfigurationProperty -> Bool)
-> Eq ServiceConnectAccessLogConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty -> Bool
== :: ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty -> Bool
$c/= :: ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty -> Bool
/= :: ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty -> Bool
Prelude.Eq, Int -> ServiceConnectAccessLogConfigurationProperty -> ShowS
[ServiceConnectAccessLogConfigurationProperty] -> ShowS
ServiceConnectAccessLogConfigurationProperty -> String
(Int -> ServiceConnectAccessLogConfigurationProperty -> ShowS)
-> (ServiceConnectAccessLogConfigurationProperty -> String)
-> ([ServiceConnectAccessLogConfigurationProperty] -> ShowS)
-> Show ServiceConnectAccessLogConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceConnectAccessLogConfigurationProperty -> ShowS
showsPrec :: Int -> ServiceConnectAccessLogConfigurationProperty -> ShowS
$cshow :: ServiceConnectAccessLogConfigurationProperty -> String
show :: ServiceConnectAccessLogConfigurationProperty -> String
$cshowList :: [ServiceConnectAccessLogConfigurationProperty] -> ShowS
showList :: [ServiceConnectAccessLogConfigurationProperty] -> ShowS
Prelude.Show)
mkServiceConnectAccessLogConfigurationProperty ::
  Value Prelude.Text -> ServiceConnectAccessLogConfigurationProperty
mkServiceConnectAccessLogConfigurationProperty :: Value Text -> ServiceConnectAccessLogConfigurationProperty
mkServiceConnectAccessLogConfigurationProperty Value Text
format
  = ServiceConnectAccessLogConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), format :: Value Text
format = Value Text
format,
       includeQueryParameters :: Maybe (Value Text)
includeQueryParameters = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceConnectAccessLogConfigurationProperty where
  toResourceProperties :: ServiceConnectAccessLogConfigurationProperty -> ResourceProperties
toResourceProperties
    ServiceConnectAccessLogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ServiceConnectAccessLogConfigurationProperty -> ()
format :: ServiceConnectAccessLogConfigurationProperty -> Value Text
includeQueryParameters :: ServiceConnectAccessLogConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
format :: Value Text
includeQueryParameters :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ECS::Service.ServiceConnectAccessLogConfiguration",
         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
"Format" 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
format]
                           ([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
"IncludeQueryParameters"
                                 (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)
includeQueryParameters]))}
instance JSON.ToJSON ServiceConnectAccessLogConfigurationProperty where
  toJSON :: ServiceConnectAccessLogConfigurationProperty -> Value
toJSON ServiceConnectAccessLogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ServiceConnectAccessLogConfigurationProperty -> ()
format :: ServiceConnectAccessLogConfigurationProperty -> Value Text
includeQueryParameters :: ServiceConnectAccessLogConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
format :: Value Text
includeQueryParameters :: Maybe (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
"Format" 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
format]
              ([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
"IncludeQueryParameters"
                    (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)
includeQueryParameters])))
instance Property "Format" ServiceConnectAccessLogConfigurationProperty where
  type PropertyType "Format" ServiceConnectAccessLogConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Format" ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty
set PropertyType "Format" ServiceConnectAccessLogConfigurationProperty
newValue ServiceConnectAccessLogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ServiceConnectAccessLogConfigurationProperty -> ()
format :: ServiceConnectAccessLogConfigurationProperty -> Value Text
includeQueryParameters :: ServiceConnectAccessLogConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
format :: Value Text
includeQueryParameters :: Maybe (Value Text)
..}
    = ServiceConnectAccessLogConfigurationProperty
        {format :: Value Text
format = PropertyType "Format" ServiceConnectAccessLogConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
includeQueryParameters :: Maybe (Value Text)
haddock_workaround_ :: ()
includeQueryParameters :: Maybe (Value Text)
..}
instance Property "IncludeQueryParameters" ServiceConnectAccessLogConfigurationProperty where
  type PropertyType "IncludeQueryParameters" ServiceConnectAccessLogConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "IncludeQueryParameters"
  ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty
-> ServiceConnectAccessLogConfigurationProperty
set PropertyType
  "IncludeQueryParameters"
  ServiceConnectAccessLogConfigurationProperty
newValue ServiceConnectAccessLogConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ServiceConnectAccessLogConfigurationProperty -> ()
format :: ServiceConnectAccessLogConfigurationProperty -> Value Text
includeQueryParameters :: ServiceConnectAccessLogConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
format :: Value Text
includeQueryParameters :: Maybe (Value Text)
..}
    = ServiceConnectAccessLogConfigurationProperty
        {includeQueryParameters :: Maybe (Value Text)
includeQueryParameters = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "IncludeQueryParameters"
  ServiceConnectAccessLogConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
format :: Value Text
haddock_workaround_ :: ()
format :: Value Text
..}