module Stratosphere.DataZone.FormType (
        module Exports, FormType(..), mkFormType
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataZone.FormType.ModelProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FormType
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html>
    FormType {FormType -> ()
haddock_workaround_ :: (),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html#cfn-datazone-formtype-description>
              FormType -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html#cfn-datazone-formtype-domainidentifier>
              FormType -> Value Text
domainIdentifier :: (Value Prelude.Text),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html#cfn-datazone-formtype-model>
              FormType -> ModelProperty
model :: ModelProperty,
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html#cfn-datazone-formtype-name>
              FormType -> Value Text
name :: (Value Prelude.Text),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html#cfn-datazone-formtype-owningprojectidentifier>
              FormType -> Value Text
owningProjectIdentifier :: (Value Prelude.Text),
              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-datazone-formtype.html#cfn-datazone-formtype-status>
              FormType -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (FormType -> FormType -> Bool
(FormType -> FormType -> Bool)
-> (FormType -> FormType -> Bool) -> Eq FormType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FormType -> FormType -> Bool
== :: FormType -> FormType -> Bool
$c/= :: FormType -> FormType -> Bool
/= :: FormType -> FormType -> Bool
Prelude.Eq, Int -> FormType -> ShowS
[FormType] -> ShowS
FormType -> String
(Int -> FormType -> ShowS)
-> (FormType -> String) -> ([FormType] -> ShowS) -> Show FormType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FormType -> ShowS
showsPrec :: Int -> FormType -> ShowS
$cshow :: FormType -> String
show :: FormType -> String
$cshowList :: [FormType] -> ShowS
showList :: [FormType] -> ShowS
Prelude.Show)
mkFormType ::
  Value Prelude.Text
  -> ModelProperty
     -> Value Prelude.Text -> Value Prelude.Text -> FormType
mkFormType :: Value Text -> ModelProperty -> Value Text -> Value Text -> FormType
mkFormType Value Text
domainIdentifier ModelProperty
model Value Text
name Value Text
owningProjectIdentifier
  = FormType
      {haddock_workaround_ :: ()
haddock_workaround_ = (), domainIdentifier :: Value Text
domainIdentifier = Value Text
domainIdentifier,
       model :: ModelProperty
model = ModelProperty
model, name :: Value Text
name = Value Text
name,
       owningProjectIdentifier :: Value Text
owningProjectIdentifier = Value Text
owningProjectIdentifier,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FormType where
  toResourceProperties :: FormType -> ResourceProperties
toResourceProperties FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataZone::FormType", 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
"DomainIdentifier" 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
domainIdentifier,
                            Key
"Model" Key -> ModelProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ModelProperty
model, Key
"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..= Value Text
name,
                            Key
"OwningProjectIdentifier" 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
owningProjectIdentifier]
                           ([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
"Status" (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)
status]))}
instance JSON.ToJSON FormType where
  toJSON :: FormType -> Value
toJSON FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: 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
"DomainIdentifier" 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
domainIdentifier,
               Key
"Model" Key -> ModelProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ModelProperty
model, Key
"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..= Value Text
name,
               Key
"OwningProjectIdentifier" 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
owningProjectIdentifier]
              ([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
"Status" (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)
status])))
instance Property "Description" FormType where
  type PropertyType "Description" FormType = Value Prelude.Text
  set :: PropertyType "Description" FormType -> FormType -> FormType
set PropertyType "Description" FormType
newValue FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = FormType {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" FormType
Value Text
newValue, Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: ()
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
instance Property "DomainIdentifier" FormType where
  type PropertyType "DomainIdentifier" FormType = Value Prelude.Text
  set :: PropertyType "DomainIdentifier" FormType -> FormType -> FormType
set PropertyType "DomainIdentifier" FormType
newValue FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = FormType {domainIdentifier :: Value Text
domainIdentifier = PropertyType "DomainIdentifier" FormType
Value Text
newValue, Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
instance Property "Model" FormType where
  type PropertyType "Model" FormType = ModelProperty
  set :: PropertyType "Model" FormType -> FormType -> FormType
set PropertyType "Model" FormType
newValue FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..} = FormType {model :: ModelProperty
model = PropertyType "Model" FormType
ModelProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
instance Property "Name" FormType where
  type PropertyType "Name" FormType = Value Prelude.Text
  set :: PropertyType "Name" FormType -> FormType -> FormType
set PropertyType "Name" FormType
newValue FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..} = FormType {name :: Value Text
name = PropertyType "Name" FormType
Value Text
newValue, Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
instance Property "OwningProjectIdentifier" FormType where
  type PropertyType "OwningProjectIdentifier" FormType = Value Prelude.Text
  set :: PropertyType "OwningProjectIdentifier" FormType
-> FormType -> FormType
set PropertyType "OwningProjectIdentifier" FormType
newValue FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = FormType {owningProjectIdentifier :: Value Text
owningProjectIdentifier = PropertyType "OwningProjectIdentifier" FormType
Value Text
newValue, Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
status :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
status :: Maybe (Value Text)
..}
instance Property "Status" FormType where
  type PropertyType "Status" FormType = Value Prelude.Text
  set :: PropertyType "Status" FormType -> FormType -> FormType
set PropertyType "Status" FormType
newValue FormType {Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: FormType -> ()
description :: FormType -> Maybe (Value Text)
domainIdentifier :: FormType -> Value Text
model :: FormType -> ModelProperty
name :: FormType -> Value Text
owningProjectIdentifier :: FormType -> Value Text
status :: FormType -> Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
status :: Maybe (Value Text)
..}
    = FormType {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" FormType
Value Text
newValue, Maybe (Value Text)
()
Value Text
ModelProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
domainIdentifier :: Value Text
model :: ModelProperty
name :: Value Text
owningProjectIdentifier :: Value Text
..}