module Stratosphere.Wisdom.Assistant (
        module Exports, Assistant(..), mkAssistant
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Wisdom.Assistant.ServerSideEncryptionConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Assistant
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistant.html>
    Assistant {Assistant -> ()
haddock_workaround_ :: (),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistant.html#cfn-wisdom-assistant-description>
               Assistant -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistant.html#cfn-wisdom-assistant-name>
               Assistant -> Value Text
name :: (Value Prelude.Text),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistant.html#cfn-wisdom-assistant-serversideencryptionconfiguration>
               Assistant -> Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration :: (Prelude.Maybe ServerSideEncryptionConfigurationProperty),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistant.html#cfn-wisdom-assistant-tags>
               Assistant -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wisdom-assistant.html#cfn-wisdom-assistant-type>
               Assistant -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (Assistant -> Assistant -> Bool
(Assistant -> Assistant -> Bool)
-> (Assistant -> Assistant -> Bool) -> Eq Assistant
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Assistant -> Assistant -> Bool
== :: Assistant -> Assistant -> Bool
$c/= :: Assistant -> Assistant -> Bool
/= :: Assistant -> Assistant -> Bool
Prelude.Eq, Int -> Assistant -> ShowS
[Assistant] -> ShowS
Assistant -> String
(Int -> Assistant -> ShowS)
-> (Assistant -> String)
-> ([Assistant] -> ShowS)
-> Show Assistant
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Assistant -> ShowS
showsPrec :: Int -> Assistant -> ShowS
$cshow :: Assistant -> String
show :: Assistant -> String
$cshowList :: [Assistant] -> ShowS
showList :: [Assistant] -> ShowS
Prelude.Show)
mkAssistant ::
  Value Prelude.Text -> Value Prelude.Text -> Assistant
mkAssistant :: Value Text -> Value Text -> Assistant
mkAssistant Value Text
name Value Text
type'
  = Assistant
      {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, type' :: Value Text
type' = Value Text
type',
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration = Maybe ServerSideEncryptionConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Assistant where
  toResourceProperties :: Assistant -> ResourceProperties
toResourceProperties Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Wisdom::Assistant", 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
"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
"Type" 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
type']
                           ([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 -> ServerSideEncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServerSideEncryptionConfiguration"
                                 (ServerSideEncryptionConfigurationProperty -> (Key, Value))
-> Maybe ServerSideEncryptionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration,
                               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 Assistant where
  toJSON :: Assistant -> Value
toJSON Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: 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
"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
"Type" 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
type']
              ([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 -> ServerSideEncryptionConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ServerSideEncryptionConfiguration"
                    (ServerSideEncryptionConfigurationProperty -> (Key, Value))
-> Maybe ServerSideEncryptionConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration,
                  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" Assistant where
  type PropertyType "Description" Assistant = Value Prelude.Text
  set :: PropertyType "Description" Assistant -> Assistant -> Assistant
set PropertyType "Description" Assistant
newValue Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Assistant {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" Assistant
Value Text
newValue, Maybe [Tag]
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Name" Assistant where
  type PropertyType "Name" Assistant = Value Prelude.Text
  set :: PropertyType "Name" Assistant -> Assistant -> Assistant
set PropertyType "Name" Assistant
newValue Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..} = Assistant {name :: Value Text
name = PropertyType "Name" Assistant
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "ServerSideEncryptionConfiguration" Assistant where
  type PropertyType "ServerSideEncryptionConfiguration" Assistant = ServerSideEncryptionConfigurationProperty
  set :: PropertyType "ServerSideEncryptionConfiguration" Assistant
-> Assistant -> Assistant
set PropertyType "ServerSideEncryptionConfiguration" Assistant
newValue Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Assistant
        {serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
serverSideEncryptionConfiguration = ServerSideEncryptionConfigurationProperty
-> Maybe ServerSideEncryptionConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ServerSideEncryptionConfiguration" Assistant
ServerSideEncryptionConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" Assistant where
  type PropertyType "Tags" Assistant = [Tag]
  set :: PropertyType "Tags" Assistant -> Assistant -> Assistant
set PropertyType "Tags" Assistant
newValue Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..}
    = Assistant {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" Assistant
newValue, Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
type' :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
type' :: Value Text
..}
instance Property "Type" Assistant where
  type PropertyType "Type" Assistant = Value Prelude.Text
  set :: PropertyType "Type" Assistant -> Assistant -> Assistant
set PropertyType "Type" Assistant
newValue Assistant {Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: Assistant -> ()
description :: Assistant -> Maybe (Value Text)
name :: Assistant -> Value Text
serverSideEncryptionConfiguration :: Assistant -> Maybe ServerSideEncryptionConfigurationProperty
tags :: Assistant -> Maybe [Tag]
type' :: Assistant -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
type' :: Value Text
..} = Assistant {type' :: Value Text
type' = PropertyType "Type" Assistant
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
Maybe ServerSideEncryptionConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
serverSideEncryptionConfiguration :: Maybe ServerSideEncryptionConfigurationProperty
tags :: Maybe [Tag]
..}