module Stratosphere.ECS.Service.ServiceConnectTestTrafficRulesProperty (
module Exports, ServiceConnectTestTrafficRulesProperty(..),
mkServiceConnectTestTrafficRulesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECS.Service.ServiceConnectTestTrafficRulesHeaderProperty as Exports
import Stratosphere.ResourceProperties
data ServiceConnectTestTrafficRulesProperty
=
ServiceConnectTestTrafficRulesProperty {ServiceConnectTestTrafficRulesProperty -> ()
haddock_workaround_ :: (),
:: ServiceConnectTestTrafficRulesHeaderProperty}
deriving stock (ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool
(ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool)
-> (ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool)
-> Eq ServiceConnectTestTrafficRulesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool
== :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool
$c/= :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool
/= :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty -> Bool
Prelude.Eq, Int -> ServiceConnectTestTrafficRulesProperty -> ShowS
[ServiceConnectTestTrafficRulesProperty] -> ShowS
ServiceConnectTestTrafficRulesProperty -> String
(Int -> ServiceConnectTestTrafficRulesProperty -> ShowS)
-> (ServiceConnectTestTrafficRulesProperty -> String)
-> ([ServiceConnectTestTrafficRulesProperty] -> ShowS)
-> Show ServiceConnectTestTrafficRulesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceConnectTestTrafficRulesProperty -> ShowS
showsPrec :: Int -> ServiceConnectTestTrafficRulesProperty -> ShowS
$cshow :: ServiceConnectTestTrafficRulesProperty -> String
show :: ServiceConnectTestTrafficRulesProperty -> String
$cshowList :: [ServiceConnectTestTrafficRulesProperty] -> ShowS
showList :: [ServiceConnectTestTrafficRulesProperty] -> ShowS
Prelude.Show)
mkServiceConnectTestTrafficRulesProperty ::
ServiceConnectTestTrafficRulesHeaderProperty
-> ServiceConnectTestTrafficRulesProperty
mkServiceConnectTestTrafficRulesProperty :: ServiceConnectTestTrafficRulesHeaderProperty
-> ServiceConnectTestTrafficRulesProperty
mkServiceConnectTestTrafficRulesProperty ServiceConnectTestTrafficRulesHeaderProperty
header
= ServiceConnectTestTrafficRulesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), header :: ServiceConnectTestTrafficRulesHeaderProperty
header = ServiceConnectTestTrafficRulesHeaderProperty
header}
instance ToResourceProperties ServiceConnectTestTrafficRulesProperty where
toResourceProperties :: ServiceConnectTestTrafficRulesProperty -> ResourceProperties
toResourceProperties ServiceConnectTestTrafficRulesProperty {()
ServiceConnectTestTrafficRulesHeaderProperty
haddock_workaround_ :: ServiceConnectTestTrafficRulesProperty -> ()
header :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesHeaderProperty
haddock_workaround_ :: ()
header :: ServiceConnectTestTrafficRulesHeaderProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::Service.ServiceConnectTestTrafficRules",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Header" Key -> ServiceConnectTestTrafficRulesHeaderProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ServiceConnectTestTrafficRulesHeaderProperty
header]}
instance JSON.ToJSON ServiceConnectTestTrafficRulesProperty where
toJSON :: ServiceConnectTestTrafficRulesProperty -> Value
toJSON ServiceConnectTestTrafficRulesProperty {()
ServiceConnectTestTrafficRulesHeaderProperty
haddock_workaround_ :: ServiceConnectTestTrafficRulesProperty -> ()
header :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesHeaderProperty
haddock_workaround_ :: ()
header :: ServiceConnectTestTrafficRulesHeaderProperty
..}
= [(Key, Value)] -> Value
JSON.object [Key
"Header" Key -> ServiceConnectTestTrafficRulesHeaderProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ServiceConnectTestTrafficRulesHeaderProperty
header]
instance Property "Header" ServiceConnectTestTrafficRulesProperty where
type PropertyType "Header" ServiceConnectTestTrafficRulesProperty = ServiceConnectTestTrafficRulesHeaderProperty
set :: PropertyType "Header" ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesProperty
set PropertyType "Header" ServiceConnectTestTrafficRulesProperty
newValue ServiceConnectTestTrafficRulesProperty {()
ServiceConnectTestTrafficRulesHeaderProperty
haddock_workaround_ :: ServiceConnectTestTrafficRulesProperty -> ()
header :: ServiceConnectTestTrafficRulesProperty
-> ServiceConnectTestTrafficRulesHeaderProperty
haddock_workaround_ :: ()
header :: ServiceConnectTestTrafficRulesHeaderProperty
..}
= ServiceConnectTestTrafficRulesProperty {header :: ServiceConnectTestTrafficRulesHeaderProperty
header = PropertyType "Header" ServiceConnectTestTrafficRulesProperty
ServiceConnectTestTrafficRulesHeaderProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}