module Stratosphere.AppFlow.Connector (
        module Exports, Connector(..), mkConnector
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppFlow.Connector.ConnectorProvisioningConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Connector
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appflow-connector.html>
    Connector {Connector -> ()
haddock_workaround_ :: (),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appflow-connector.html#cfn-appflow-connector-connectorlabel>
               Connector -> Maybe (Value Text)
connectorLabel :: (Prelude.Maybe (Value Prelude.Text)),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appflow-connector.html#cfn-appflow-connector-connectorprovisioningconfig>
               Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty,
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appflow-connector.html#cfn-appflow-connector-connectorprovisioningtype>
               Connector -> Value Text
connectorProvisioningType :: (Value Prelude.Text),
               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-appflow-connector.html#cfn-appflow-connector-description>
               Connector -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (Connector -> Connector -> Bool
(Connector -> Connector -> Bool)
-> (Connector -> Connector -> Bool) -> Eq Connector
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Connector -> Connector -> Bool
== :: Connector -> Connector -> Bool
$c/= :: Connector -> Connector -> Bool
/= :: Connector -> Connector -> Bool
Prelude.Eq, Int -> Connector -> ShowS
[Connector] -> ShowS
Connector -> String
(Int -> Connector -> ShowS)
-> (Connector -> String)
-> ([Connector] -> ShowS)
-> Show Connector
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Connector -> ShowS
showsPrec :: Int -> Connector -> ShowS
$cshow :: Connector -> String
show :: Connector -> String
$cshowList :: [Connector] -> ShowS
showList :: [Connector] -> ShowS
Prelude.Show)
mkConnector ::
  ConnectorProvisioningConfigProperty
  -> Value Prelude.Text -> Connector
mkConnector :: ConnectorProvisioningConfigProperty -> Value Text -> Connector
mkConnector ConnectorProvisioningConfigProperty
connectorProvisioningConfig Value Text
connectorProvisioningType
  = Connector
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningConfig = ConnectorProvisioningConfigProperty
connectorProvisioningConfig,
       connectorProvisioningType :: Value Text
connectorProvisioningType = Value Text
connectorProvisioningType,
       connectorLabel :: Maybe (Value Text)
connectorLabel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Connector where
  toResourceProperties :: Connector -> ResourceProperties
toResourceProperties Connector {Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: Connector -> ()
connectorLabel :: Connector -> Maybe (Value Text)
connectorProvisioningConfig :: Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningType :: Connector -> Value Text
description :: Connector -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::Connector", 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
"ConnectorProvisioningConfig" Key -> ConnectorProvisioningConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ConnectorProvisioningConfigProperty
connectorProvisioningConfig,
                            Key
"ConnectorProvisioningType" 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
connectorProvisioningType]
                           ([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
"ConnectorLabel" (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)
connectorLabel,
                               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]))}
instance JSON.ToJSON Connector where
  toJSON :: Connector -> Value
toJSON Connector {Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: Connector -> ()
connectorLabel :: Connector -> Maybe (Value Text)
connectorProvisioningConfig :: Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningType :: Connector -> Value Text
description :: Connector -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: 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
"ConnectorProvisioningConfig" Key -> ConnectorProvisioningConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ConnectorProvisioningConfigProperty
connectorProvisioningConfig,
               Key
"ConnectorProvisioningType" 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
connectorProvisioningType]
              ([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
"ConnectorLabel" (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)
connectorLabel,
                  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])))
instance Property "ConnectorLabel" Connector where
  type PropertyType "ConnectorLabel" Connector = Value Prelude.Text
  set :: PropertyType "ConnectorLabel" Connector -> Connector -> Connector
set PropertyType "ConnectorLabel" Connector
newValue Connector {Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: Connector -> ()
connectorLabel :: Connector -> Maybe (Value Text)
connectorProvisioningConfig :: Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningType :: Connector -> Value Text
description :: Connector -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
    = Connector {connectorLabel :: Maybe (Value Text)
connectorLabel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ConnectorLabel" Connector
Value Text
newValue, Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: ()
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
haddock_workaround_ :: ()
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
instance Property "ConnectorProvisioningConfig" Connector where
  type PropertyType "ConnectorProvisioningConfig" Connector = ConnectorProvisioningConfigProperty
  set :: PropertyType "ConnectorProvisioningConfig" Connector
-> Connector -> Connector
set PropertyType "ConnectorProvisioningConfig" Connector
newValue Connector {Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: Connector -> ()
connectorLabel :: Connector -> Maybe (Value Text)
connectorProvisioningConfig :: Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningType :: Connector -> Value Text
description :: Connector -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
    = Connector {connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningConfig = PropertyType "ConnectorProvisioningConfig" Connector
ConnectorProvisioningConfigProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
instance Property "ConnectorProvisioningType" Connector where
  type PropertyType "ConnectorProvisioningType" Connector = Value Prelude.Text
  set :: PropertyType "ConnectorProvisioningType" Connector
-> Connector -> Connector
set PropertyType "ConnectorProvisioningType" Connector
newValue Connector {Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: Connector -> ()
connectorLabel :: Connector -> Maybe (Value Text)
connectorProvisioningConfig :: Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningType :: Connector -> Value Text
description :: Connector -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
    = Connector {connectorProvisioningType :: Value Text
connectorProvisioningType = PropertyType "ConnectorProvisioningType" Connector
Value Text
newValue, Maybe (Value Text)
()
ConnectorProvisioningConfigProperty
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
description :: Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
description :: Maybe (Value Text)
..}
instance Property "Description" Connector where
  type PropertyType "Description" Connector = Value Prelude.Text
  set :: PropertyType "Description" Connector -> Connector -> Connector
set PropertyType "Description" Connector
newValue Connector {Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: Connector -> ()
connectorLabel :: Connector -> Maybe (Value Text)
connectorProvisioningConfig :: Connector -> ConnectorProvisioningConfigProperty
connectorProvisioningType :: Connector -> Value Text
description :: Connector -> Maybe (Value Text)
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
description :: Maybe (Value Text)
..}
    = Connector {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" Connector
Value Text
newValue, Maybe (Value Text)
()
Value Text
ConnectorProvisioningConfigProperty
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
haddock_workaround_ :: ()
connectorLabel :: Maybe (Value Text)
connectorProvisioningConfig :: ConnectorProvisioningConfigProperty
connectorProvisioningType :: Value Text
..}