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