content: 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
    = CustomAuthCredentialsProperty {credentialsMap :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
                                     customAuthenticationType :: (Value Prelude.Text)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkCustomAuthCredentialsProperty ::
    Value Prelude.Text -> CustomAuthCredentialsProperty
  mkCustomAuthCredentialsProperty customAuthenticationType
    = CustomAuthCredentialsProperty
        {customAuthenticationType = customAuthenticationType,
         credentialsMap = Prelude.Nothing}
  instance ToResourceProperties CustomAuthCredentialsProperty where
    toResourceProperties CustomAuthCredentialsProperty {..}
      = ResourceProperties
          {awsType = "AWS::AppFlow::ConnectorProfile.CustomAuthCredentials",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          ((Prelude.<>)
                             ["CustomAuthenticationType" JSON..= customAuthenticationType]
                             (Prelude.catMaybes
                                [(JSON..=) "CredentialsMap" Prelude.<$> credentialsMap]))}
  instance JSON.ToJSON CustomAuthCredentialsProperty where
    toJSON CustomAuthCredentialsProperty {..}
      = JSON.object
          (Prelude.fromList
             ((Prelude.<>)
                ["CustomAuthenticationType" JSON..= customAuthenticationType]
                (Prelude.catMaybes
                   [(JSON..=) "CredentialsMap" Prelude.<$> credentialsMap])))
  instance Property "CredentialsMap" CustomAuthCredentialsProperty where
    type PropertyType "CredentialsMap" CustomAuthCredentialsProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
    set newValue CustomAuthCredentialsProperty {..}
      = CustomAuthCredentialsProperty
          {credentialsMap = Prelude.pure newValue, ..}
  instance Property "CustomAuthenticationType" CustomAuthCredentialsProperty where
    type PropertyType "CustomAuthenticationType" CustomAuthCredentialsProperty = Value Prelude.Text
    set newValue CustomAuthCredentialsProperty {..}
      = CustomAuthCredentialsProperty
          {customAuthenticationType = newValue, ..}