module Stratosphere.ServiceDiscovery.Service (
        module Exports, Service(..), mkService
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.ServiceDiscovery.Service.DnsConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.ServiceDiscovery.Service.HealthCheckConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.ServiceDiscovery.Service.HealthCheckCustomConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Service
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html>
    Service {Service -> ()
haddock_workaround_ :: (),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-description>
             Service -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-dnsconfig>
             Service -> Maybe DnsConfigProperty
dnsConfig :: (Prelude.Maybe DnsConfigProperty),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-healthcheckconfig>
             Service -> Maybe HealthCheckConfigProperty
healthCheckConfig :: (Prelude.Maybe HealthCheckConfigProperty),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-healthcheckcustomconfig>
             Service -> Maybe HealthCheckCustomConfigProperty
healthCheckCustomConfig :: (Prelude.Maybe HealthCheckCustomConfigProperty),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-name>
             Service -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-namespaceid>
             Service -> Maybe (Value Text)
namespaceId :: (Prelude.Maybe (Value Prelude.Text)),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-serviceattributes>
             Service -> Maybe Object
serviceAttributes :: (Prelude.Maybe JSON.Object),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-tags>
             Service -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-servicediscovery-service.html#cfn-servicediscovery-service-type>
             Service -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Service -> Service -> Bool
(Service -> Service -> Bool)
-> (Service -> Service -> Bool) -> Eq Service
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Service -> Service -> Bool
== :: Service -> Service -> Bool
$c/= :: Service -> Service -> Bool
/= :: Service -> Service -> Bool
Prelude.Eq, Int -> Service -> ShowS
[Service] -> ShowS
Service -> String
(Int -> Service -> ShowS)
-> (Service -> String) -> ([Service] -> ShowS) -> Show Service
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Service -> ShowS
showsPrec :: Int -> Service -> ShowS
$cshow :: Service -> String
show :: Service -> String
$cshowList :: [Service] -> ShowS
showList :: [Service] -> ShowS
Prelude.Show)
mkService :: Service
mkService :: Service
mkService
  = Service
      {haddock_workaround_ :: ()
haddock_workaround_ = (), description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       dnsConfig :: Maybe DnsConfigProperty
dnsConfig = Maybe DnsConfigProperty
forall a. Maybe a
Prelude.Nothing, healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckConfig = Maybe HealthCheckConfigProperty
forall a. Maybe a
Prelude.Nothing,
       healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
healthCheckCustomConfig = Maybe HealthCheckCustomConfigProperty
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       namespaceId :: Maybe (Value Text)
namespaceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, serviceAttributes :: Maybe Object
serviceAttributes = Maybe Object
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Service where
  toResourceProperties :: Service -> ResourceProperties
toResourceProperties Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ServiceDiscovery::Service",
         supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([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
"Description" (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)
description,
                            Key -> DnsConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsConfig" (DnsConfigProperty -> (Key, Value))
-> Maybe DnsConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DnsConfigProperty
dnsConfig,
                            Key -> HealthCheckConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HealthCheckConfig" (HealthCheckConfigProperty -> (Key, Value))
-> Maybe HealthCheckConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HealthCheckConfigProperty
healthCheckConfig,
                            Key -> HealthCheckCustomConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HealthCheckCustomConfig"
                              (HealthCheckCustomConfigProperty -> (Key, Value))
-> Maybe HealthCheckCustomConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HealthCheckCustomConfigProperty
healthCheckCustomConfig,
                            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
"Name" (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)
name,
                            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
"NamespaceId" (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)
namespaceId,
                            Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServiceAttributes" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
serviceAttributes,
                            Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
                            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 Service where
  toJSON :: Service -> Value
toJSON Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([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
"Description" (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)
description,
               Key -> DnsConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsConfig" (DnsConfigProperty -> (Key, Value))
-> Maybe DnsConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DnsConfigProperty
dnsConfig,
               Key -> HealthCheckConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HealthCheckConfig" (HealthCheckConfigProperty -> (Key, Value))
-> Maybe HealthCheckConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HealthCheckConfigProperty
healthCheckConfig,
               Key -> HealthCheckCustomConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"HealthCheckCustomConfig"
                 (HealthCheckCustomConfigProperty -> (Key, Value))
-> Maybe HealthCheckCustomConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HealthCheckCustomConfigProperty
healthCheckCustomConfig,
               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
"Name" (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)
name,
               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
"NamespaceId" (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)
namespaceId,
               Key -> Object -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServiceAttributes" (Object -> (Key, Value)) -> Maybe Object -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Object
serviceAttributes,
               Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
               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 "Description" Service where
  type PropertyType "Description" Service = Value Prelude.Text
  set :: PropertyType "Description" Service -> Service -> Service
set PropertyType "Description" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Service
Value Text
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "DnsConfig" Service where
  type PropertyType "DnsConfig" Service = DnsConfigProperty
  set :: PropertyType "DnsConfig" Service -> Service -> Service
set PropertyType "DnsConfig" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {dnsConfig :: Maybe DnsConfigProperty
dnsConfig = DnsConfigProperty -> Maybe DnsConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsConfig" Service
DnsConfigProperty
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "HealthCheckConfig" Service where
  type PropertyType "HealthCheckConfig" Service = HealthCheckConfigProperty
  set :: PropertyType "HealthCheckConfig" Service -> Service -> Service
set PropertyType "HealthCheckConfig" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckConfig = HealthCheckConfigProperty -> Maybe HealthCheckConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HealthCheckConfig" Service
HealthCheckConfigProperty
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "HealthCheckCustomConfig" Service where
  type PropertyType "HealthCheckCustomConfig" Service = HealthCheckCustomConfigProperty
  set :: PropertyType "HealthCheckCustomConfig" Service
-> Service -> Service
set PropertyType "HealthCheckCustomConfig" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
healthCheckCustomConfig = HealthCheckCustomConfigProperty
-> Maybe HealthCheckCustomConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HealthCheckCustomConfig" Service
HealthCheckCustomConfigProperty
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "Name" Service where
  type PropertyType "Name" Service = Value Prelude.Text
  set :: PropertyType "Name" Service -> Service -> Service
set PropertyType "Name" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" Service
Value Text
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "NamespaceId" Service where
  type PropertyType "NamespaceId" Service = Value Prelude.Text
  set :: PropertyType "NamespaceId" Service -> Service -> Service
set PropertyType "NamespaceId" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {namespaceId :: Maybe (Value Text)
namespaceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "NamespaceId" Service
Value Text
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "ServiceAttributes" Service where
  type PropertyType "ServiceAttributes" Service = JSON.Object
  set :: PropertyType "ServiceAttributes" Service -> Service -> Service
set PropertyType "ServiceAttributes" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {serviceAttributes :: Maybe Object
serviceAttributes = Object -> Maybe Object
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Object
PropertyType "ServiceAttributes" Service
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
instance Property "Tags" Service where
  type PropertyType "Tags" Service = [Tag]
  set :: PropertyType "Tags" Service -> Service -> Service
set PropertyType "Tags" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Service
newValue, Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
type' :: Maybe (Value Text)
..}
instance Property "Type" Service where
  type PropertyType "Type" Service = Value Prelude.Text
  set :: PropertyType "Type" Service -> Service -> Service
set PropertyType "Type" Service
newValue Service {Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: Service -> ()
description :: Service -> Maybe (Value Text)
dnsConfig :: Service -> Maybe DnsConfigProperty
healthCheckConfig :: Service -> Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Service -> Maybe HealthCheckCustomConfigProperty
name :: Service -> Maybe (Value Text)
namespaceId :: Service -> Maybe (Value Text)
serviceAttributes :: Service -> Maybe Object
tags :: Service -> Maybe [Tag]
type' :: Service -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
type' :: Maybe (Value Text)
..}
    = Service {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" Service
Value Text
newValue, Maybe [Tag]
Maybe Object
Maybe (Value Text)
Maybe DnsConfigProperty
Maybe HealthCheckConfigProperty
Maybe HealthCheckCustomConfigProperty
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
dnsConfig :: Maybe DnsConfigProperty
healthCheckConfig :: Maybe HealthCheckConfigProperty
healthCheckCustomConfig :: Maybe HealthCheckCustomConfigProperty
name :: Maybe (Value Text)
namespaceId :: Maybe (Value Text)
serviceAttributes :: Maybe Object
tags :: Maybe [Tag]
..}