module Stratosphere.AppFlow.ConnectorProfile.CustomAuthCredentialsProperty (
        CustomAuthCredentialsProperty(..), mkCustomAuthCredentialsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CustomAuthCredentialsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-customauthcredentials.html>
    CustomAuthCredentialsProperty {CustomAuthCredentialsProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-customauthcredentials.html#cfn-appflow-connectorprofile-customauthcredentials-credentialsmap>
                                   CustomAuthCredentialsProperty -> Maybe (Map Text (Value Text))
credentialsMap :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-customauthcredentials.html#cfn-appflow-connectorprofile-customauthcredentials-customauthenticationtype>
                                   CustomAuthCredentialsProperty -> Value Text
customAuthenticationType :: (Value Prelude.Text)}
  deriving stock (CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> Bool
(CustomAuthCredentialsProperty
 -> CustomAuthCredentialsProperty -> Bool)
-> (CustomAuthCredentialsProperty
    -> CustomAuthCredentialsProperty -> Bool)
-> Eq CustomAuthCredentialsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> Bool
== :: CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> Bool
$c/= :: CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> Bool
/= :: CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> Bool
Prelude.Eq, Int -> CustomAuthCredentialsProperty -> ShowS
[CustomAuthCredentialsProperty] -> ShowS
CustomAuthCredentialsProperty -> String
(Int -> CustomAuthCredentialsProperty -> ShowS)
-> (CustomAuthCredentialsProperty -> String)
-> ([CustomAuthCredentialsProperty] -> ShowS)
-> Show CustomAuthCredentialsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CustomAuthCredentialsProperty -> ShowS
showsPrec :: Int -> CustomAuthCredentialsProperty -> ShowS
$cshow :: CustomAuthCredentialsProperty -> String
show :: CustomAuthCredentialsProperty -> String
$cshowList :: [CustomAuthCredentialsProperty] -> ShowS
showList :: [CustomAuthCredentialsProperty] -> ShowS
Prelude.Show)
mkCustomAuthCredentialsProperty ::
  Value Prelude.Text -> CustomAuthCredentialsProperty
mkCustomAuthCredentialsProperty :: Value Text -> CustomAuthCredentialsProperty
mkCustomAuthCredentialsProperty Value Text
customAuthenticationType
  = CustomAuthCredentialsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       customAuthenticationType :: Value Text
customAuthenticationType = Value Text
customAuthenticationType,
       credentialsMap :: Maybe (Map Text (Value Text))
credentialsMap = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CustomAuthCredentialsProperty where
  toResourceProperties :: CustomAuthCredentialsProperty -> ResourceProperties
toResourceProperties CustomAuthCredentialsProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: CustomAuthCredentialsProperty -> ()
credentialsMap :: CustomAuthCredentialsProperty -> Maybe (Map Text (Value Text))
customAuthenticationType :: CustomAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsMap :: Maybe (Map Text (Value Text))
customAuthenticationType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::ConnectorProfile.CustomAuthCredentials",
         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
"CustomAuthenticationType" 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
customAuthenticationType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Map Text (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
"CredentialsMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
credentialsMap]))}
instance JSON.ToJSON CustomAuthCredentialsProperty where
  toJSON :: CustomAuthCredentialsProperty -> Value
toJSON CustomAuthCredentialsProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: CustomAuthCredentialsProperty -> ()
credentialsMap :: CustomAuthCredentialsProperty -> Maybe (Map Text (Value Text))
customAuthenticationType :: CustomAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsMap :: Maybe (Map Text (Value Text))
customAuthenticationType :: 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
"CustomAuthenticationType" 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
customAuthenticationType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Map Text (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
"CredentialsMap" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
credentialsMap])))
instance Property "CredentialsMap" CustomAuthCredentialsProperty where
  type PropertyType "CredentialsMap" CustomAuthCredentialsProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
  set :: PropertyType "CredentialsMap" CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> CustomAuthCredentialsProperty
set PropertyType "CredentialsMap" CustomAuthCredentialsProperty
newValue CustomAuthCredentialsProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: CustomAuthCredentialsProperty -> ()
credentialsMap :: CustomAuthCredentialsProperty -> Maybe (Map Text (Value Text))
customAuthenticationType :: CustomAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsMap :: Maybe (Map Text (Value Text))
customAuthenticationType :: Value Text
..}
    = CustomAuthCredentialsProperty
        {credentialsMap :: Maybe (Map Text (Value Text))
credentialsMap = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "CredentialsMap" CustomAuthCredentialsProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
customAuthenticationType :: Value Text
haddock_workaround_ :: ()
customAuthenticationType :: Value Text
..}
instance Property "CustomAuthenticationType" CustomAuthCredentialsProperty where
  type PropertyType "CustomAuthenticationType" CustomAuthCredentialsProperty = Value Prelude.Text
  set :: PropertyType
  "CustomAuthenticationType" CustomAuthCredentialsProperty
-> CustomAuthCredentialsProperty -> CustomAuthCredentialsProperty
set PropertyType
  "CustomAuthenticationType" CustomAuthCredentialsProperty
newValue CustomAuthCredentialsProperty {Maybe (Map Text (Value Text))
()
Value Text
haddock_workaround_ :: CustomAuthCredentialsProperty -> ()
credentialsMap :: CustomAuthCredentialsProperty -> Maybe (Map Text (Value Text))
customAuthenticationType :: CustomAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
credentialsMap :: Maybe (Map Text (Value Text))
customAuthenticationType :: Value Text
..}
    = CustomAuthCredentialsProperty
        {customAuthenticationType :: Value Text
customAuthenticationType = PropertyType
  "CustomAuthenticationType" CustomAuthCredentialsProperty
Value Text
newValue, Maybe (Map Text (Value Text))
()
haddock_workaround_ :: ()
credentialsMap :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
credentialsMap :: Maybe (Map Text (Value Text))
..}