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