packages feed

stratosphere-appflow-1.0.0: gen/Stratosphere/AppFlow/ConnectorProfile/VeevaConnectorProfileCredentialsProperty.hs

module Stratosphere.AppFlow.ConnectorProfile.VeevaConnectorProfileCredentialsProperty (
        VeevaConnectorProfileCredentialsProperty(..),
        mkVeevaConnectorProfileCredentialsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data VeevaConnectorProfileCredentialsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-veevaconnectorprofilecredentials.html>
    VeevaConnectorProfileCredentialsProperty {haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-veevaconnectorprofilecredentials.html#cfn-appflow-connectorprofile-veevaconnectorprofilecredentials-password>
                                              password :: (Value Prelude.Text),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-connectorprofile-veevaconnectorprofilecredentials.html#cfn-appflow-connectorprofile-veevaconnectorprofilecredentials-username>
                                              username :: (Value Prelude.Text)}
  deriving stock (Prelude.Eq, Prelude.Show)
mkVeevaConnectorProfileCredentialsProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> VeevaConnectorProfileCredentialsProperty
mkVeevaConnectorProfileCredentialsProperty password username
  = VeevaConnectorProfileCredentialsProperty
      {haddock_workaround_ = (), password = password,
       username = username}
instance ToResourceProperties VeevaConnectorProfileCredentialsProperty where
  toResourceProperties VeevaConnectorProfileCredentialsProperty {..}
    = ResourceProperties
        {awsType = "AWS::AppFlow::ConnectorProfile.VeevaConnectorProfileCredentials",
         supportsTags = Prelude.False,
         properties = ["Password" JSON..= password,
                       "Username" JSON..= username]}
instance JSON.ToJSON VeevaConnectorProfileCredentialsProperty where
  toJSON VeevaConnectorProfileCredentialsProperty {..}
    = JSON.object
        ["Password" JSON..= password, "Username" JSON..= username]
instance Property "Password" VeevaConnectorProfileCredentialsProperty where
  type PropertyType "Password" VeevaConnectorProfileCredentialsProperty = Value Prelude.Text
  set newValue VeevaConnectorProfileCredentialsProperty {..}
    = VeevaConnectorProfileCredentialsProperty
        {password = newValue, ..}
instance Property "Username" VeevaConnectorProfileCredentialsProperty where
  type PropertyType "Username" VeevaConnectorProfileCredentialsProperty = Value Prelude.Text
  set newValue VeevaConnectorProfileCredentialsProperty {..}
    = VeevaConnectorProfileCredentialsProperty
        {username = newValue, ..}