module Stratosphere.Proton.ServiceTemplate (
        ServiceTemplate(..), mkServiceTemplate
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data ServiceTemplate
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html>
    ServiceTemplate {ServiceTemplate -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html#cfn-proton-servicetemplate-description>
                     ServiceTemplate -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html#cfn-proton-servicetemplate-displayname>
                     ServiceTemplate -> Maybe (Value Text)
displayName :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html#cfn-proton-servicetemplate-encryptionkey>
                     ServiceTemplate -> Maybe (Value Text)
encryptionKey :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html#cfn-proton-servicetemplate-name>
                     ServiceTemplate -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html#cfn-proton-servicetemplate-pipelineprovisioning>
                     ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: (Prelude.Maybe (Value Prelude.Text)),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-proton-servicetemplate.html#cfn-proton-servicetemplate-tags>
                     ServiceTemplate -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (ServiceTemplate -> ServiceTemplate -> Bool
(ServiceTemplate -> ServiceTemplate -> Bool)
-> (ServiceTemplate -> ServiceTemplate -> Bool)
-> Eq ServiceTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceTemplate -> ServiceTemplate -> Bool
== :: ServiceTemplate -> ServiceTemplate -> Bool
$c/= :: ServiceTemplate -> ServiceTemplate -> Bool
/= :: ServiceTemplate -> ServiceTemplate -> Bool
Prelude.Eq, Int -> ServiceTemplate -> ShowS
[ServiceTemplate] -> ShowS
ServiceTemplate -> String
(Int -> ServiceTemplate -> ShowS)
-> (ServiceTemplate -> String)
-> ([ServiceTemplate] -> ShowS)
-> Show ServiceTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceTemplate -> ShowS
showsPrec :: Int -> ServiceTemplate -> ShowS
$cshow :: ServiceTemplate -> String
show :: ServiceTemplate -> String
$cshowList :: [ServiceTemplate] -> ShowS
showList :: [ServiceTemplate] -> ShowS
Prelude.Show)
mkServiceTemplate :: ServiceTemplate
mkServiceTemplate :: ServiceTemplate
mkServiceTemplate
  = ServiceTemplate
      {haddock_workaround_ :: ()
haddock_workaround_ = (), description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       displayName :: Maybe (Value Text)
displayName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, encryptionKey :: Maybe (Value Text)
encryptionKey = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, pipelineProvisioning :: Maybe (Value Text)
pipelineProvisioning = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ServiceTemplate where
  toResourceProperties :: ServiceTemplate -> ResourceProperties
toResourceProperties ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Proton::ServiceTemplate",
         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 -> 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
"DisplayName" (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)
displayName,
                            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
"EncryptionKey" (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)
encryptionKey,
                            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
"PipelineProvisioning" (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)
pipelineProvisioning,
                            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 ServiceTemplate where
  toJSON :: ServiceTemplate -> Value
toJSON ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: 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
"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 -> 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
"DisplayName" (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)
displayName,
               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
"EncryptionKey" (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)
encryptionKey,
               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
"PipelineProvisioning" (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)
pipelineProvisioning,
               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 "Description" ServiceTemplate where
  type PropertyType "Description" ServiceTemplate = Value Prelude.Text
  set :: PropertyType "Description" ServiceTemplate
-> ServiceTemplate -> ServiceTemplate
set PropertyType "Description" ServiceTemplate
newValue ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ServiceTemplate {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" ServiceTemplate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "DisplayName" ServiceTemplate where
  type PropertyType "DisplayName" ServiceTemplate = Value Prelude.Text
  set :: PropertyType "DisplayName" ServiceTemplate
-> ServiceTemplate -> ServiceTemplate
set PropertyType "DisplayName" ServiceTemplate
newValue ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ServiceTemplate {displayName :: Maybe (Value Text)
displayName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisplayName" ServiceTemplate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "EncryptionKey" ServiceTemplate where
  type PropertyType "EncryptionKey" ServiceTemplate = Value Prelude.Text
  set :: PropertyType "EncryptionKey" ServiceTemplate
-> ServiceTemplate -> ServiceTemplate
set PropertyType "EncryptionKey" ServiceTemplate
newValue ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ServiceTemplate {encryptionKey :: Maybe (Value Text)
encryptionKey = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EncryptionKey" ServiceTemplate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" ServiceTemplate where
  type PropertyType "Name" ServiceTemplate = Value Prelude.Text
  set :: PropertyType "Name" ServiceTemplate
-> ServiceTemplate -> ServiceTemplate
set PropertyType "Name" ServiceTemplate
newValue ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ServiceTemplate {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" ServiceTemplate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "PipelineProvisioning" ServiceTemplate where
  type PropertyType "PipelineProvisioning" ServiceTemplate = Value Prelude.Text
  set :: PropertyType "PipelineProvisioning" ServiceTemplate
-> ServiceTemplate -> ServiceTemplate
set PropertyType "PipelineProvisioning" ServiceTemplate
newValue ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ServiceTemplate
        {pipelineProvisioning :: Maybe (Value Text)
pipelineProvisioning = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PipelineProvisioning" ServiceTemplate
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Tags" ServiceTemplate where
  type PropertyType "Tags" ServiceTemplate = [Tag]
  set :: PropertyType "Tags" ServiceTemplate
-> ServiceTemplate -> ServiceTemplate
set PropertyType "Tags" ServiceTemplate
newValue ServiceTemplate {Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ServiceTemplate -> ()
description :: ServiceTemplate -> Maybe (Value Text)
displayName :: ServiceTemplate -> Maybe (Value Text)
encryptionKey :: ServiceTemplate -> Maybe (Value Text)
name :: ServiceTemplate -> Maybe (Value Text)
pipelineProvisioning :: ServiceTemplate -> Maybe (Value Text)
tags :: ServiceTemplate -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ServiceTemplate {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" ServiceTemplate
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
displayName :: Maybe (Value Text)
encryptionKey :: Maybe (Value Text)
name :: Maybe (Value Text)
pipelineProvisioning :: Maybe (Value Text)
..}