module Stratosphere.VpcLattice.Service (
module Exports, Service(..), mkService
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.VpcLattice.Service.DnsEntryProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Service
=
Service {Service -> ()
haddock_workaround_ :: (),
Service -> Maybe (Value Text)
authType :: (Prelude.Maybe (Value Prelude.Text)),
Service -> Maybe (Value Text)
certificateArn :: (Prelude.Maybe (Value Prelude.Text)),
Service -> Maybe (Value Text)
customDomainName :: (Prelude.Maybe (Value Prelude.Text)),
Service -> Maybe DnsEntryProperty
dnsEntry :: (Prelude.Maybe DnsEntryProperty),
Service -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
Service -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
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_ = (), authType :: Maybe (Value Text)
authType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
certificateArn :: Maybe (Value Text)
certificateArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
customDomainName :: Maybe (Value Text)
customDomainName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, dnsEntry :: Maybe DnsEntryProperty
dnsEntry = Maybe DnsEntryProperty
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Service where
toResourceProperties :: Service -> ResourceProperties
toResourceProperties Service {Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::VpcLattice::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
"AuthType" (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)
authType,
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
"CertificateArn" (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)
certificateArn,
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
"CustomDomainName" (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)
customDomainName,
Key -> DnsEntryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsEntry" (DnsEntryProperty -> (Key, Value))
-> Maybe DnsEntryProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DnsEntryProperty
dnsEntry,
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 -> [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])}
instance JSON.ToJSON Service where
toJSON :: Service -> Value
toJSON Service {Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"AuthType" (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)
authType,
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
"CertificateArn" (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)
certificateArn,
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
"CustomDomainName" (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)
customDomainName,
Key -> DnsEntryProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DnsEntry" (DnsEntryProperty -> (Key, Value))
-> Maybe DnsEntryProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DnsEntryProperty
dnsEntry,
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 -> [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]))
instance Property "AuthType" Service where
type PropertyType "AuthType" Service = Value Prelude.Text
set :: PropertyType "AuthType" Service -> Service -> Service
set PropertyType "AuthType" Service
newValue Service {Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Service {authType :: Maybe (Value Text)
authType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AuthType" Service
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: ()
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "CertificateArn" Service where
type PropertyType "CertificateArn" Service = Value Prelude.Text
set :: PropertyType "CertificateArn" Service -> Service -> Service
set PropertyType "CertificateArn" Service
newValue Service {Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Service {certificateArn :: Maybe (Value Text)
certificateArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CertificateArn" Service
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "CustomDomainName" Service where
type PropertyType "CustomDomainName" Service = Value Prelude.Text
set :: PropertyType "CustomDomainName" Service -> Service -> Service
set PropertyType "CustomDomainName" Service
newValue Service {Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Service {customDomainName :: Maybe (Value Text)
customDomainName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomDomainName" Service
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "DnsEntry" Service where
type PropertyType "DnsEntry" Service = DnsEntryProperty
set :: PropertyType "DnsEntry" Service -> Service -> Service
set PropertyType "DnsEntry" Service
newValue Service {Maybe [Tag]
Maybe (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Service {dnsEntry :: Maybe DnsEntryProperty
dnsEntry = DnsEntryProperty -> Maybe DnsEntryProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DnsEntry" Service
DnsEntryProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
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 (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= 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 (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
tags :: Maybe [Tag]
..}
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 (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: Service -> ()
authType :: Service -> Maybe (Value Text)
certificateArn :: Service -> Maybe (Value Text)
customDomainName :: Service -> Maybe (Value Text)
dnsEntry :: Service -> Maybe DnsEntryProperty
name :: Service -> Maybe (Value Text)
tags :: Service -> Maybe [Tag]
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= 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 (Value Text)
Maybe DnsEntryProperty
()
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
authType :: Maybe (Value Text)
certificateArn :: Maybe (Value Text)
customDomainName :: Maybe (Value Text)
dnsEntry :: Maybe DnsEntryProperty
name :: Maybe (Value Text)
..}