module Stratosphere.AppFlow.ConnectorProfile.BasicAuthCredentialsProperty (
        BasicAuthCredentialsProperty(..), mkBasicAuthCredentialsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BasicAuthCredentialsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-basicauthcredentials.html>
    BasicAuthCredentialsProperty {BasicAuthCredentialsProperty -> ()
haddock_workaround_ :: (),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-basicauthcredentials.html#cfn-appflow-connectorprofile-basicauthcredentials-password>
                                  BasicAuthCredentialsProperty -> Value Text
password :: (Value Prelude.Text),
                                  -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-basicauthcredentials.html#cfn-appflow-connectorprofile-basicauthcredentials-username>
                                  BasicAuthCredentialsProperty -> Value Text
username :: (Value Prelude.Text)}
  deriving stock (BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> Bool
(BasicAuthCredentialsProperty
 -> BasicAuthCredentialsProperty -> Bool)
-> (BasicAuthCredentialsProperty
    -> BasicAuthCredentialsProperty -> Bool)
-> Eq BasicAuthCredentialsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> Bool
== :: BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> Bool
$c/= :: BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> Bool
/= :: BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> Bool
Prelude.Eq, Int -> BasicAuthCredentialsProperty -> ShowS
[BasicAuthCredentialsProperty] -> ShowS
BasicAuthCredentialsProperty -> String
(Int -> BasicAuthCredentialsProperty -> ShowS)
-> (BasicAuthCredentialsProperty -> String)
-> ([BasicAuthCredentialsProperty] -> ShowS)
-> Show BasicAuthCredentialsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BasicAuthCredentialsProperty -> ShowS
showsPrec :: Int -> BasicAuthCredentialsProperty -> ShowS
$cshow :: BasicAuthCredentialsProperty -> String
show :: BasicAuthCredentialsProperty -> String
$cshowList :: [BasicAuthCredentialsProperty] -> ShowS
showList :: [BasicAuthCredentialsProperty] -> ShowS
Prelude.Show)
mkBasicAuthCredentialsProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> BasicAuthCredentialsProperty
mkBasicAuthCredentialsProperty :: Value Text -> Value Text -> BasicAuthCredentialsProperty
mkBasicAuthCredentialsProperty Value Text
password Value Text
username
  = BasicAuthCredentialsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), password :: Value Text
password = Value Text
password,
       username :: Value Text
username = Value Text
username}
instance ToResourceProperties BasicAuthCredentialsProperty where
  toResourceProperties :: BasicAuthCredentialsProperty -> ResourceProperties
toResourceProperties BasicAuthCredentialsProperty {()
Value Text
haddock_workaround_ :: BasicAuthCredentialsProperty -> ()
password :: BasicAuthCredentialsProperty -> Value Text
username :: BasicAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::ConnectorProfile.BasicAuthCredentials",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Password" 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
password,
                       Key
"Username" 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
username]}
instance JSON.ToJSON BasicAuthCredentialsProperty where
  toJSON :: BasicAuthCredentialsProperty -> Value
toJSON BasicAuthCredentialsProperty {()
Value Text
haddock_workaround_ :: BasicAuthCredentialsProperty -> ()
password :: BasicAuthCredentialsProperty -> Value Text
username :: BasicAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Password" 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
password, Key
"Username" 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
username]
instance Property "Password" BasicAuthCredentialsProperty where
  type PropertyType "Password" BasicAuthCredentialsProperty = Value Prelude.Text
  set :: PropertyType "Password" BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> BasicAuthCredentialsProperty
set PropertyType "Password" BasicAuthCredentialsProperty
newValue BasicAuthCredentialsProperty {()
Value Text
haddock_workaround_ :: BasicAuthCredentialsProperty -> ()
password :: BasicAuthCredentialsProperty -> Value Text
username :: BasicAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
    = BasicAuthCredentialsProperty {password :: Value Text
password = PropertyType "Password" BasicAuthCredentialsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
username :: Value Text
haddock_workaround_ :: ()
username :: Value Text
..}
instance Property "Username" BasicAuthCredentialsProperty where
  type PropertyType "Username" BasicAuthCredentialsProperty = Value Prelude.Text
  set :: PropertyType "Username" BasicAuthCredentialsProperty
-> BasicAuthCredentialsProperty -> BasicAuthCredentialsProperty
set PropertyType "Username" BasicAuthCredentialsProperty
newValue BasicAuthCredentialsProperty {()
Value Text
haddock_workaround_ :: BasicAuthCredentialsProperty -> ()
password :: BasicAuthCredentialsProperty -> Value Text
username :: BasicAuthCredentialsProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
    = BasicAuthCredentialsProperty {username :: Value Text
username = PropertyType "Username" BasicAuthCredentialsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
password :: Value Text
haddock_workaround_ :: ()
password :: Value Text
..}