module Stratosphere.AppStream.DirectoryConfig.ServiceAccountCredentialsProperty (
        ServiceAccountCredentialsProperty(..),
        mkServiceAccountCredentialsProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ServiceAccountCredentialsProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-serviceaccountcredentials.html>
    ServiceAccountCredentialsProperty {ServiceAccountCredentialsProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-serviceaccountcredentials.html#cfn-appstream-directoryconfig-serviceaccountcredentials-accountname>
                                       ServiceAccountCredentialsProperty -> Value Text
accountName :: (Value Prelude.Text),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appstream-directoryconfig-serviceaccountcredentials.html#cfn-appstream-directoryconfig-serviceaccountcredentials-accountpassword>
                                       ServiceAccountCredentialsProperty -> Value Text
accountPassword :: (Value Prelude.Text)}
  deriving stock (ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty -> Bool
(ServiceAccountCredentialsProperty
 -> ServiceAccountCredentialsProperty -> Bool)
-> (ServiceAccountCredentialsProperty
    -> ServiceAccountCredentialsProperty -> Bool)
-> Eq ServiceAccountCredentialsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty -> Bool
== :: ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty -> Bool
$c/= :: ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty -> Bool
/= :: ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty -> Bool
Prelude.Eq, Int -> ServiceAccountCredentialsProperty -> ShowS
[ServiceAccountCredentialsProperty] -> ShowS
ServiceAccountCredentialsProperty -> String
(Int -> ServiceAccountCredentialsProperty -> ShowS)
-> (ServiceAccountCredentialsProperty -> String)
-> ([ServiceAccountCredentialsProperty] -> ShowS)
-> Show ServiceAccountCredentialsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ServiceAccountCredentialsProperty -> ShowS
showsPrec :: Int -> ServiceAccountCredentialsProperty -> ShowS
$cshow :: ServiceAccountCredentialsProperty -> String
show :: ServiceAccountCredentialsProperty -> String
$cshowList :: [ServiceAccountCredentialsProperty] -> ShowS
showList :: [ServiceAccountCredentialsProperty] -> ShowS
Prelude.Show)
mkServiceAccountCredentialsProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> ServiceAccountCredentialsProperty
mkServiceAccountCredentialsProperty :: Value Text -> Value Text -> ServiceAccountCredentialsProperty
mkServiceAccountCredentialsProperty Value Text
accountName Value Text
accountPassword
  = ServiceAccountCredentialsProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), accountName :: Value Text
accountName = Value Text
accountName,
       accountPassword :: Value Text
accountPassword = Value Text
accountPassword}
instance ToResourceProperties ServiceAccountCredentialsProperty where
  toResourceProperties :: ServiceAccountCredentialsProperty -> ResourceProperties
toResourceProperties ServiceAccountCredentialsProperty {()
Value Text
haddock_workaround_ :: ServiceAccountCredentialsProperty -> ()
accountName :: ServiceAccountCredentialsProperty -> Value Text
accountPassword :: ServiceAccountCredentialsProperty -> Value Text
haddock_workaround_ :: ()
accountName :: Value Text
accountPassword :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppStream::DirectoryConfig.ServiceAccountCredentials",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"AccountName" 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
accountName,
                       Key
"AccountPassword" 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
accountPassword]}
instance JSON.ToJSON ServiceAccountCredentialsProperty where
  toJSON :: ServiceAccountCredentialsProperty -> Value
toJSON ServiceAccountCredentialsProperty {()
Value Text
haddock_workaround_ :: ServiceAccountCredentialsProperty -> ()
accountName :: ServiceAccountCredentialsProperty -> Value Text
accountPassword :: ServiceAccountCredentialsProperty -> Value Text
haddock_workaround_ :: ()
accountName :: Value Text
accountPassword :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"AccountName" 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
accountName,
         Key
"AccountPassword" 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
accountPassword]
instance Property "AccountName" ServiceAccountCredentialsProperty where
  type PropertyType "AccountName" ServiceAccountCredentialsProperty = Value Prelude.Text
  set :: PropertyType "AccountName" ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty
set PropertyType "AccountName" ServiceAccountCredentialsProperty
newValue ServiceAccountCredentialsProperty {()
Value Text
haddock_workaround_ :: ServiceAccountCredentialsProperty -> ()
accountName :: ServiceAccountCredentialsProperty -> Value Text
accountPassword :: ServiceAccountCredentialsProperty -> Value Text
haddock_workaround_ :: ()
accountName :: Value Text
accountPassword :: Value Text
..}
    = ServiceAccountCredentialsProperty {accountName :: Value Text
accountName = PropertyType "AccountName" ServiceAccountCredentialsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
accountPassword :: Value Text
haddock_workaround_ :: ()
accountPassword :: Value Text
..}
instance Property "AccountPassword" ServiceAccountCredentialsProperty where
  type PropertyType "AccountPassword" ServiceAccountCredentialsProperty = Value Prelude.Text
  set :: PropertyType "AccountPassword" ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty
-> ServiceAccountCredentialsProperty
set PropertyType "AccountPassword" ServiceAccountCredentialsProperty
newValue ServiceAccountCredentialsProperty {()
Value Text
haddock_workaround_ :: ServiceAccountCredentialsProperty -> ()
accountName :: ServiceAccountCredentialsProperty -> Value Text
accountPassword :: ServiceAccountCredentialsProperty -> Value Text
haddock_workaround_ :: ()
accountName :: Value Text
accountPassword :: Value Text
..}
    = ServiceAccountCredentialsProperty
        {accountPassword :: Value Text
accountPassword = PropertyType "AccountPassword" ServiceAccountCredentialsProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
accountName :: Value Text
haddock_workaround_ :: ()
accountName :: Value Text
..}