module Stratosphere.Connect.Prompt (
        Prompt(..), mkPrompt
    ) 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 Prompt
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-prompt.html>
    Prompt {Prompt -> ()
haddock_workaround_ :: (),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-prompt.html#cfn-connect-prompt-description>
            Prompt -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-prompt.html#cfn-connect-prompt-instancearn>
            Prompt -> Value Text
instanceArn :: (Value Prelude.Text),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-prompt.html#cfn-connect-prompt-name>
            Prompt -> Value Text
name :: (Value Prelude.Text),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-prompt.html#cfn-connect-prompt-s3uri>
            Prompt -> Maybe (Value Text)
s3Uri :: (Prelude.Maybe (Value Prelude.Text)),
            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-prompt.html#cfn-connect-prompt-tags>
            Prompt -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (Prompt -> Prompt -> Bool
(Prompt -> Prompt -> Bool)
-> (Prompt -> Prompt -> Bool) -> Eq Prompt
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Prompt -> Prompt -> Bool
== :: Prompt -> Prompt -> Bool
$c/= :: Prompt -> Prompt -> Bool
/= :: Prompt -> Prompt -> Bool
Prelude.Eq, Int -> Prompt -> ShowS
[Prompt] -> ShowS
Prompt -> String
(Int -> Prompt -> ShowS)
-> (Prompt -> String) -> ([Prompt] -> ShowS) -> Show Prompt
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Prompt -> ShowS
showsPrec :: Int -> Prompt -> ShowS
$cshow :: Prompt -> String
show :: Prompt -> String
$cshowList :: [Prompt] -> ShowS
showList :: [Prompt] -> ShowS
Prelude.Show)
mkPrompt :: Value Prelude.Text -> Value Prelude.Text -> Prompt
mkPrompt :: Value Text -> Value Text -> Prompt
mkPrompt Value Text
instanceArn Value Text
name
  = Prompt
      {haddock_workaround_ :: ()
haddock_workaround_ = (), instanceArn :: Value Text
instanceArn = Value Text
instanceArn, name :: Value Text
name = Value Text
name,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, s3Uri :: Maybe (Value Text)
s3Uri = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Prompt where
  toResourceProperties :: Prompt -> ResourceProperties
toResourceProperties Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::Prompt", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
         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
"InstanceArn" 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
instanceArn, 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]
                           ([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
"S3Uri" (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)
s3Uri,
                               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 Prompt where
  toJSON :: Prompt -> Value
toJSON Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: 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
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"InstanceArn" 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
instanceArn, 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]
              ([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
"S3Uri" (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)
s3Uri,
                  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" Prompt where
  type PropertyType "Description" Prompt = Value Prelude.Text
  set :: PropertyType "Description" Prompt -> Prompt -> Prompt
set PropertyType "Description" Prompt
newValue Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Prompt {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" Prompt
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "InstanceArn" Prompt where
  type PropertyType "InstanceArn" Prompt = Value Prelude.Text
  set :: PropertyType "InstanceArn" Prompt -> Prompt -> Prompt
set PropertyType "InstanceArn" Prompt
newValue Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Prompt {instanceArn :: Value Text
instanceArn = PropertyType "InstanceArn" Prompt
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" Prompt where
  type PropertyType "Name" Prompt = Value Prelude.Text
  set :: PropertyType "Name" Prompt -> Prompt -> Prompt
set PropertyType "Name" Prompt
newValue Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Prompt {name :: Value Text
name = PropertyType "Name" Prompt
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "S3Uri" Prompt where
  type PropertyType "S3Uri" Prompt = Value Prelude.Text
  set :: PropertyType "S3Uri" Prompt -> Prompt -> Prompt
set PropertyType "S3Uri" Prompt
newValue Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Prompt {s3Uri :: Maybe (Value Text)
s3Uri = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3Uri" Prompt
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Prompt where
  type PropertyType "Tags" Prompt = [Tag]
  set :: PropertyType "Tags" Prompt -> Prompt -> Prompt
set PropertyType "Tags" Prompt
newValue Prompt {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Prompt -> ()
description :: Prompt -> Maybe (Value Text)
instanceArn :: Prompt -> Value Text
name :: Prompt -> Value Text
s3Uri :: Prompt -> Maybe (Value Text)
tags :: Prompt -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
    = Prompt {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" Prompt
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
s3Uri :: Maybe (Value Text)
..}