module Stratosphere.Events.Connection.BasicAuthParametersProperty (
BasicAuthParametersProperty(..), mkBasicAuthParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BasicAuthParametersProperty
=
BasicAuthParametersProperty {BasicAuthParametersProperty -> ()
haddock_workaround_ :: (),
BasicAuthParametersProperty -> Value Text
password :: (Value Prelude.Text),
BasicAuthParametersProperty -> Value Text
username :: (Value Prelude.Text)}
deriving stock (BasicAuthParametersProperty -> BasicAuthParametersProperty -> Bool
(BasicAuthParametersProperty
-> BasicAuthParametersProperty -> Bool)
-> (BasicAuthParametersProperty
-> BasicAuthParametersProperty -> Bool)
-> Eq BasicAuthParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BasicAuthParametersProperty -> BasicAuthParametersProperty -> Bool
== :: BasicAuthParametersProperty -> BasicAuthParametersProperty -> Bool
$c/= :: BasicAuthParametersProperty -> BasicAuthParametersProperty -> Bool
/= :: BasicAuthParametersProperty -> BasicAuthParametersProperty -> Bool
Prelude.Eq, Int -> BasicAuthParametersProperty -> ShowS
[BasicAuthParametersProperty] -> ShowS
BasicAuthParametersProperty -> String
(Int -> BasicAuthParametersProperty -> ShowS)
-> (BasicAuthParametersProperty -> String)
-> ([BasicAuthParametersProperty] -> ShowS)
-> Show BasicAuthParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BasicAuthParametersProperty -> ShowS
showsPrec :: Int -> BasicAuthParametersProperty -> ShowS
$cshow :: BasicAuthParametersProperty -> String
show :: BasicAuthParametersProperty -> String
$cshowList :: [BasicAuthParametersProperty] -> ShowS
showList :: [BasicAuthParametersProperty] -> ShowS
Prelude.Show)
mkBasicAuthParametersProperty ::
Value Prelude.Text
-> Value Prelude.Text -> BasicAuthParametersProperty
mkBasicAuthParametersProperty :: Value Text -> Value Text -> BasicAuthParametersProperty
mkBasicAuthParametersProperty Value Text
password Value Text
username
= BasicAuthParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), password :: Value Text
password = Value Text
password,
username :: Value Text
username = Value Text
username}
instance ToResourceProperties BasicAuthParametersProperty where
toResourceProperties :: BasicAuthParametersProperty -> ResourceProperties
toResourceProperties BasicAuthParametersProperty {()
Value Text
haddock_workaround_ :: BasicAuthParametersProperty -> ()
password :: BasicAuthParametersProperty -> Value Text
username :: BasicAuthParametersProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Events::Connection.BasicAuthParameters",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"Password" 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
password,
Key
"Username" 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
username]}
instance JSON.ToJSON BasicAuthParametersProperty where
toJSON :: BasicAuthParametersProperty -> Value
toJSON BasicAuthParametersProperty {()
Value Text
haddock_workaround_ :: BasicAuthParametersProperty -> ()
password :: BasicAuthParametersProperty -> Value Text
username :: BasicAuthParametersProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"Password" 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
password, Key
"Username" 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
username]
instance Property "Password" BasicAuthParametersProperty where
type PropertyType "Password" BasicAuthParametersProperty = Value Prelude.Text
set :: PropertyType "Password" BasicAuthParametersProperty
-> BasicAuthParametersProperty -> BasicAuthParametersProperty
set PropertyType "Password" BasicAuthParametersProperty
newValue BasicAuthParametersProperty {()
Value Text
haddock_workaround_ :: BasicAuthParametersProperty -> ()
password :: BasicAuthParametersProperty -> Value Text
username :: BasicAuthParametersProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
= BasicAuthParametersProperty {password :: Value Text
password = PropertyType "Password" BasicAuthParametersProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
username :: Value Text
haddock_workaround_ :: ()
username :: Value Text
..}
instance Property "Username" BasicAuthParametersProperty where
type PropertyType "Username" BasicAuthParametersProperty = Value Prelude.Text
set :: PropertyType "Username" BasicAuthParametersProperty
-> BasicAuthParametersProperty -> BasicAuthParametersProperty
set PropertyType "Username" BasicAuthParametersProperty
newValue BasicAuthParametersProperty {()
Value Text
haddock_workaround_ :: BasicAuthParametersProperty -> ()
password :: BasicAuthParametersProperty -> Value Text
username :: BasicAuthParametersProperty -> Value Text
haddock_workaround_ :: ()
password :: Value Text
username :: Value Text
..}
= BasicAuthParametersProperty {username :: Value Text
username = PropertyType "Username" BasicAuthParametersProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
password :: Value Text
haddock_workaround_ :: ()
password :: Value Text
..}