module Stratosphere.Connect.QuickConnect (
        module Exports, QuickConnect(..), mkQuickConnect
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Connect.QuickConnect.QuickConnectConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data QuickConnect
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-quickconnect.html>
    QuickConnect {QuickConnect -> ()
haddock_workaround_ :: (),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-quickconnect.html#cfn-connect-quickconnect-description>
                  QuickConnect -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-quickconnect.html#cfn-connect-quickconnect-instancearn>
                  QuickConnect -> Value Text
instanceArn :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-quickconnect.html#cfn-connect-quickconnect-name>
                  QuickConnect -> Value Text
name :: (Value Prelude.Text),
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-quickconnect.html#cfn-connect-quickconnect-quickconnectconfig>
                  QuickConnect -> QuickConnectConfigProperty
quickConnectConfig :: QuickConnectConfigProperty,
                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-quickconnect.html#cfn-connect-quickconnect-tags>
                  QuickConnect -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
  deriving stock (QuickConnect -> QuickConnect -> Bool
(QuickConnect -> QuickConnect -> Bool)
-> (QuickConnect -> QuickConnect -> Bool) -> Eq QuickConnect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QuickConnect -> QuickConnect -> Bool
== :: QuickConnect -> QuickConnect -> Bool
$c/= :: QuickConnect -> QuickConnect -> Bool
/= :: QuickConnect -> QuickConnect -> Bool
Prelude.Eq, Int -> QuickConnect -> ShowS
[QuickConnect] -> ShowS
QuickConnect -> String
(Int -> QuickConnect -> ShowS)
-> (QuickConnect -> String)
-> ([QuickConnect] -> ShowS)
-> Show QuickConnect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QuickConnect -> ShowS
showsPrec :: Int -> QuickConnect -> ShowS
$cshow :: QuickConnect -> String
show :: QuickConnect -> String
$cshowList :: [QuickConnect] -> ShowS
showList :: [QuickConnect] -> ShowS
Prelude.Show)
mkQuickConnect ::
  Value Prelude.Text
  -> Value Prelude.Text -> QuickConnectConfigProperty -> QuickConnect
mkQuickConnect :: Value Text
-> Value Text -> QuickConnectConfigProperty -> QuickConnect
mkQuickConnect Value Text
instanceArn Value Text
name QuickConnectConfigProperty
quickConnectConfig
  = QuickConnect
      {haddock_workaround_ :: ()
haddock_workaround_ = (), instanceArn :: Value Text
instanceArn = Value Text
instanceArn, name :: Value Text
name = Value Text
name,
       quickConnectConfig :: QuickConnectConfigProperty
quickConnectConfig = QuickConnectConfigProperty
quickConnectConfig,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties QuickConnect where
  toResourceProperties :: QuickConnect -> ResourceProperties
toResourceProperties QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Connect::QuickConnect",
         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,
                            Key
"QuickConnectConfig" Key -> QuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= QuickConnectConfigProperty
quickConnectConfig]
                           ([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 -> [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 QuickConnect where
  toJSON :: QuickConnect -> Value
toJSON QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
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,
               Key
"QuickConnectConfig" Key -> QuickConnectConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= QuickConnectConfigProperty
quickConnectConfig]
              ([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 -> [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" QuickConnect where
  type PropertyType "Description" QuickConnect = Value Prelude.Text
  set :: PropertyType "Description" QuickConnect
-> QuickConnect -> QuickConnect
set PropertyType "Description" QuickConnect
newValue QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
    = QuickConnect {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" QuickConnect
Value Text
newValue, Maybe [Tag]
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: ()
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
instance Property "InstanceArn" QuickConnect where
  type PropertyType "InstanceArn" QuickConnect = Value Prelude.Text
  set :: PropertyType "InstanceArn" QuickConnect
-> QuickConnect -> QuickConnect
set PropertyType "InstanceArn" QuickConnect
newValue QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
    = QuickConnect {instanceArn :: Value Text
instanceArn = PropertyType "InstanceArn" QuickConnect
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
instance Property "Name" QuickConnect where
  type PropertyType "Name" QuickConnect = Value Prelude.Text
  set :: PropertyType "Name" QuickConnect -> QuickConnect -> QuickConnect
set PropertyType "Name" QuickConnect
newValue QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..} = QuickConnect {name :: Value Text
name = PropertyType "Name" QuickConnect
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
instance Property "QuickConnectConfig" QuickConnect where
  type PropertyType "QuickConnectConfig" QuickConnect = QuickConnectConfigProperty
  set :: PropertyType "QuickConnectConfig" QuickConnect
-> QuickConnect -> QuickConnect
set PropertyType "QuickConnectConfig" QuickConnect
newValue QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
    = QuickConnect {quickConnectConfig :: QuickConnectConfigProperty
quickConnectConfig = PropertyType "QuickConnectConfig" QuickConnect
QuickConnectConfigProperty
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" QuickConnect where
  type PropertyType "Tags" QuickConnect = [Tag]
  set :: PropertyType "Tags" QuickConnect -> QuickConnect -> QuickConnect
set PropertyType "Tags" QuickConnect
newValue QuickConnect {Maybe [Tag]
Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: QuickConnect -> ()
description :: QuickConnect -> Maybe (Value Text)
instanceArn :: QuickConnect -> Value Text
name :: QuickConnect -> Value Text
quickConnectConfig :: QuickConnect -> QuickConnectConfigProperty
tags :: QuickConnect -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
tags :: Maybe [Tag]
..}
    = QuickConnect {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" QuickConnect
newValue, Maybe (Value Text)
()
Value Text
QuickConnectConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
instanceArn :: Value Text
name :: Value Text
quickConnectConfig :: QuickConnectConfigProperty
..}