module Stratosphere.ECS.TaskDefinition.ProxyConfigurationProperty (
module Exports, ProxyConfigurationProperty(..),
mkProxyConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ECS.TaskDefinition.KeyValuePairProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ProxyConfigurationProperty
=
ProxyConfigurationProperty {ProxyConfigurationProperty -> ()
haddock_workaround_ :: (),
ProxyConfigurationProperty -> Value Text
containerName :: (Value Prelude.Text),
ProxyConfigurationProperty -> Maybe [KeyValuePairProperty]
proxyConfigurationProperties :: (Prelude.Maybe [KeyValuePairProperty]),
ProxyConfigurationProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ProxyConfigurationProperty -> ProxyConfigurationProperty -> Bool
(ProxyConfigurationProperty -> ProxyConfigurationProperty -> Bool)
-> (ProxyConfigurationProperty
-> ProxyConfigurationProperty -> Bool)
-> Eq ProxyConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProxyConfigurationProperty -> ProxyConfigurationProperty -> Bool
== :: ProxyConfigurationProperty -> ProxyConfigurationProperty -> Bool
$c/= :: ProxyConfigurationProperty -> ProxyConfigurationProperty -> Bool
/= :: ProxyConfigurationProperty -> ProxyConfigurationProperty -> Bool
Prelude.Eq, Int -> ProxyConfigurationProperty -> ShowS
[ProxyConfigurationProperty] -> ShowS
ProxyConfigurationProperty -> String
(Int -> ProxyConfigurationProperty -> ShowS)
-> (ProxyConfigurationProperty -> String)
-> ([ProxyConfigurationProperty] -> ShowS)
-> Show ProxyConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProxyConfigurationProperty -> ShowS
showsPrec :: Int -> ProxyConfigurationProperty -> ShowS
$cshow :: ProxyConfigurationProperty -> String
show :: ProxyConfigurationProperty -> String
$cshowList :: [ProxyConfigurationProperty] -> ShowS
showList :: [ProxyConfigurationProperty] -> ShowS
Prelude.Show)
mkProxyConfigurationProperty ::
Value Prelude.Text -> ProxyConfigurationProperty
mkProxyConfigurationProperty :: Value Text -> ProxyConfigurationProperty
mkProxyConfigurationProperty Value Text
containerName
= ProxyConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), containerName :: Value Text
containerName = Value Text
containerName,
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
proxyConfigurationProperties = Maybe [KeyValuePairProperty]
forall a. Maybe a
Prelude.Nothing,
type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ProxyConfigurationProperty where
toResourceProperties :: ProxyConfigurationProperty -> ResourceProperties
toResourceProperties ProxyConfigurationProperty {Maybe [KeyValuePairProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProxyConfigurationProperty -> ()
containerName :: ProxyConfigurationProperty -> Value Text
proxyConfigurationProperties :: ProxyConfigurationProperty -> Maybe [KeyValuePairProperty]
type' :: ProxyConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ECS::TaskDefinition.ProxyConfiguration",
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
"ContainerName" 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
containerName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [KeyValuePairProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProxyConfigurationProperties"
([KeyValuePairProperty] -> (Key, Value))
-> Maybe [KeyValuePairProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [KeyValuePairProperty]
proxyConfigurationProperties,
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
"Type" (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)
type']))}
instance JSON.ToJSON ProxyConfigurationProperty where
toJSON :: ProxyConfigurationProperty -> Value
toJSON ProxyConfigurationProperty {Maybe [KeyValuePairProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProxyConfigurationProperty -> ()
containerName :: ProxyConfigurationProperty -> Value Text
proxyConfigurationProperties :: ProxyConfigurationProperty -> Maybe [KeyValuePairProperty]
type' :: ProxyConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: 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
"ContainerName" 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
containerName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [KeyValuePairProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ProxyConfigurationProperties"
([KeyValuePairProperty] -> (Key, Value))
-> Maybe [KeyValuePairProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [KeyValuePairProperty]
proxyConfigurationProperties,
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
"Type" (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)
type'])))
instance Property "ContainerName" ProxyConfigurationProperty where
type PropertyType "ContainerName" ProxyConfigurationProperty = Value Prelude.Text
set :: PropertyType "ContainerName" ProxyConfigurationProperty
-> ProxyConfigurationProperty -> ProxyConfigurationProperty
set PropertyType "ContainerName" ProxyConfigurationProperty
newValue ProxyConfigurationProperty {Maybe [KeyValuePairProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProxyConfigurationProperty -> ()
containerName :: ProxyConfigurationProperty -> Value Text
proxyConfigurationProperties :: ProxyConfigurationProperty -> Maybe [KeyValuePairProperty]
type' :: ProxyConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: Maybe (Value Text)
..}
= ProxyConfigurationProperty {containerName :: Value Text
containerName = PropertyType "ContainerName" ProxyConfigurationProperty
Value Text
newValue, Maybe [KeyValuePairProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: Maybe (Value Text)
..}
instance Property "ProxyConfigurationProperties" ProxyConfigurationProperty where
type PropertyType "ProxyConfigurationProperties" ProxyConfigurationProperty = [KeyValuePairProperty]
set :: PropertyType
"ProxyConfigurationProperties" ProxyConfigurationProperty
-> ProxyConfigurationProperty -> ProxyConfigurationProperty
set PropertyType
"ProxyConfigurationProperties" ProxyConfigurationProperty
newValue ProxyConfigurationProperty {Maybe [KeyValuePairProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProxyConfigurationProperty -> ()
containerName :: ProxyConfigurationProperty -> Value Text
proxyConfigurationProperties :: ProxyConfigurationProperty -> Maybe [KeyValuePairProperty]
type' :: ProxyConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: Maybe (Value Text)
..}
= ProxyConfigurationProperty
{proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
proxyConfigurationProperties = [KeyValuePairProperty] -> Maybe [KeyValuePairProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [KeyValuePairProperty]
PropertyType
"ProxyConfigurationProperties" ProxyConfigurationProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
containerName :: Value Text
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
containerName :: Value Text
type' :: Maybe (Value Text)
..}
instance Property "Type" ProxyConfigurationProperty where
type PropertyType "Type" ProxyConfigurationProperty = Value Prelude.Text
set :: PropertyType "Type" ProxyConfigurationProperty
-> ProxyConfigurationProperty -> ProxyConfigurationProperty
set PropertyType "Type" ProxyConfigurationProperty
newValue ProxyConfigurationProperty {Maybe [KeyValuePairProperty]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ProxyConfigurationProperty -> ()
containerName :: ProxyConfigurationProperty -> Value Text
proxyConfigurationProperties :: ProxyConfigurationProperty -> Maybe [KeyValuePairProperty]
type' :: ProxyConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
type' :: Maybe (Value Text)
..}
= ProxyConfigurationProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" ProxyConfigurationProperty
Value Text
newValue, Maybe [KeyValuePairProperty]
()
Value Text
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
haddock_workaround_ :: ()
containerName :: Value Text
proxyConfigurationProperties :: Maybe [KeyValuePairProperty]
..}