module Stratosphere.ECS.Service.ServiceConnectClientAliasProperty (
module Exports, ServiceConnectClientAliasProperty(..),
mkServiceConnectClientAliasProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECS.Service.ServiceConnectTestTrafficRulesProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceConnectClientAliasProperty
=
ServiceConnectClientAliasProperty {ServiceConnectClientAliasProperty -> ()
haddock_workaround_ :: (),
ServiceConnectClientAliasProperty -> Maybe (Value Text)
dnsName :: (Prelude.Maybe (Value Prelude.Text)),
ServiceConnectClientAliasProperty -> Value Integer
port :: (Value Prelude.Integer),
ServiceConnectClientAliasProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
testTrafficRules :: (Prelude.Maybe ServiceConnectTestTrafficRulesProperty)}
deriving stock (ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool
(ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool)
-> (ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool)
-> Eq ServiceConnectClientAliasProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool
== :: ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool
$c/= :: ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool
/= :: ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty -> Bool
Prelude.Eq, Int -> ServiceConnectClientAliasProperty -> ShowS
[ServiceConnectClientAliasProperty] -> ShowS
ServiceConnectClientAliasProperty -> String
(Int -> ServiceConnectClientAliasProperty -> ShowS)
-> (ServiceConnectClientAliasProperty -> String)
-> ([ServiceConnectClientAliasProperty] -> ShowS)
-> Show ServiceConnectClientAliasProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceConnectClientAliasProperty -> ShowS
showsPrec :: Int -> ServiceConnectClientAliasProperty -> ShowS
$cshow :: ServiceConnectClientAliasProperty -> String
show :: ServiceConnectClientAliasProperty -> String
$cshowList :: [ServiceConnectClientAliasProperty] -> ShowS
showList :: [ServiceConnectClientAliasProperty] -> ShowS
Prelude.Show)
mkServiceConnectClientAliasProperty ::
Value Prelude.Integer -> ServiceConnectClientAliasProperty
mkServiceConnectClientAliasProperty :: Value Integer -> ServiceConnectClientAliasProperty
mkServiceConnectClientAliasProperty Value Integer
port
= ServiceConnectClientAliasProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), port :: Value Integer
port = Value Integer
port, dnsName :: Maybe (Value Text)
dnsName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
testTrafficRules = Maybe ServiceConnectTestTrafficRulesProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceConnectClientAliasProperty where
toResourceProperties :: ServiceConnectClientAliasProperty -> ResourceProperties
toResourceProperties ServiceConnectClientAliasProperty {Maybe (Value Text)
Maybe ServiceConnectTestTrafficRulesProperty
()
Value Integer
haddock_workaround_ :: ServiceConnectClientAliasProperty -> ()
dnsName :: ServiceConnectClientAliasProperty -> Maybe (Value Text)
port :: ServiceConnectClientAliasProperty -> Value Integer
testTrafficRules :: ServiceConnectClientAliasProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::Service.ServiceConnectClientAlias",
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
"Port" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
port]
([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
"DnsName" (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)
dnsName,
Key -> ServiceConnectTestTrafficRulesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TestTrafficRules" (ServiceConnectTestTrafficRulesProperty -> (Key, Value))
-> Maybe ServiceConnectTestTrafficRulesProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServiceConnectTestTrafficRulesProperty
testTrafficRules]))}
instance JSON.ToJSON ServiceConnectClientAliasProperty where
toJSON :: ServiceConnectClientAliasProperty -> Value
toJSON ServiceConnectClientAliasProperty {Maybe (Value Text)
Maybe ServiceConnectTestTrafficRulesProperty
()
Value Integer
haddock_workaround_ :: ServiceConnectClientAliasProperty -> ()
dnsName :: ServiceConnectClientAliasProperty -> Maybe (Value Text)
port :: ServiceConnectClientAliasProperty -> Value Integer
testTrafficRules :: ServiceConnectClientAliasProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
= [(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
"Port" Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Integer
port]
([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
"DnsName" (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)
dnsName,
Key -> ServiceConnectTestTrafficRulesProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TestTrafficRules" (ServiceConnectTestTrafficRulesProperty -> (Key, Value))
-> Maybe ServiceConnectTestTrafficRulesProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServiceConnectTestTrafficRulesProperty
testTrafficRules])))
instance Property "DnsName" ServiceConnectClientAliasProperty where
type PropertyType "DnsName" ServiceConnectClientAliasProperty = Value Prelude.Text
set :: PropertyType "DnsName" ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty
set PropertyType "DnsName" ServiceConnectClientAliasProperty
newValue ServiceConnectClientAliasProperty {Maybe (Value Text)
Maybe ServiceConnectTestTrafficRulesProperty
()
Value Integer
haddock_workaround_ :: ServiceConnectClientAliasProperty -> ()
dnsName :: ServiceConnectClientAliasProperty -> Maybe (Value Text)
port :: ServiceConnectClientAliasProperty -> Value Integer
testTrafficRules :: ServiceConnectClientAliasProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
= ServiceConnectClientAliasProperty
{dnsName :: Maybe (Value Text)
dnsName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsName" ServiceConnectClientAliasProperty
Value Text
newValue, Maybe ServiceConnectTestTrafficRulesProperty
()
Value Integer
haddock_workaround_ :: ()
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
instance Property "Port" ServiceConnectClientAliasProperty where
type PropertyType "Port" ServiceConnectClientAliasProperty = Value Prelude.Integer
set :: PropertyType "Port" ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty
set PropertyType "Port" ServiceConnectClientAliasProperty
newValue ServiceConnectClientAliasProperty {Maybe (Value Text)
Maybe ServiceConnectTestTrafficRulesProperty
()
Value Integer
haddock_workaround_ :: ServiceConnectClientAliasProperty -> ()
dnsName :: ServiceConnectClientAliasProperty -> Maybe (Value Text)
port :: ServiceConnectClientAliasProperty -> Value Integer
testTrafficRules :: ServiceConnectClientAliasProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
= ServiceConnectClientAliasProperty {port :: Value Integer
port = PropertyType "Port" ServiceConnectClientAliasProperty
Value Integer
newValue, Maybe (Value Text)
Maybe ServiceConnectTestTrafficRulesProperty
()
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
instance Property "TestTrafficRules" ServiceConnectClientAliasProperty where
type PropertyType "TestTrafficRules" ServiceConnectClientAliasProperty = ServiceConnectTestTrafficRulesProperty
set :: PropertyType "TestTrafficRules" ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty
-> ServiceConnectClientAliasProperty
set PropertyType "TestTrafficRules" ServiceConnectClientAliasProperty
newValue ServiceConnectClientAliasProperty {Maybe (Value Text)
Maybe ServiceConnectTestTrafficRulesProperty
()
Value Integer
haddock_workaround_ :: ServiceConnectClientAliasProperty -> ()
dnsName :: ServiceConnectClientAliasProperty -> Maybe (Value Text)
port :: ServiceConnectClientAliasProperty -> Value Integer
testTrafficRules :: ServiceConnectClientAliasProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
..}
= ServiceConnectClientAliasProperty
{testTrafficRules :: Maybe ServiceConnectTestTrafficRulesProperty
testTrafficRules = ServiceConnectTestTrafficRulesProperty
-> Maybe ServiceConnectTestTrafficRulesProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TestTrafficRules" ServiceConnectClientAliasProperty
ServiceConnectTestTrafficRulesProperty
newValue, Maybe (Value Text)
()
Value Integer
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
haddock_workaround_ :: ()
dnsName :: Maybe (Value Text)
port :: Value Integer
..}