module Stratosphere.QBusiness.Plugin.BasicAuthConfigurationProperty (
        BasicAuthConfigurationProperty(..),
        mkBasicAuthConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BasicAuthConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-plugin-basicauthconfiguration.html>
    BasicAuthConfigurationProperty {BasicAuthConfigurationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-plugin-basicauthconfiguration.html#cfn-qbusiness-plugin-basicauthconfiguration-rolearn>
                                    BasicAuthConfigurationProperty -> Value Text
roleArn :: (Value Prelude.Text),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-qbusiness-plugin-basicauthconfiguration.html#cfn-qbusiness-plugin-basicauthconfiguration-secretarn>
                                    BasicAuthConfigurationProperty -> Value Text
secretArn :: (Value Prelude.Text)}
  deriving stock (BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> Bool
(BasicAuthConfigurationProperty
 -> BasicAuthConfigurationProperty -> Bool)
-> (BasicAuthConfigurationProperty
    -> BasicAuthConfigurationProperty -> Bool)
-> Eq BasicAuthConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> Bool
== :: BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> Bool
$c/= :: BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> Bool
/= :: BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> Bool
Prelude.Eq, Int -> BasicAuthConfigurationProperty -> ShowS
[BasicAuthConfigurationProperty] -> ShowS
BasicAuthConfigurationProperty -> String
(Int -> BasicAuthConfigurationProperty -> ShowS)
-> (BasicAuthConfigurationProperty -> String)
-> ([BasicAuthConfigurationProperty] -> ShowS)
-> Show BasicAuthConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BasicAuthConfigurationProperty -> ShowS
showsPrec :: Int -> BasicAuthConfigurationProperty -> ShowS
$cshow :: BasicAuthConfigurationProperty -> String
show :: BasicAuthConfigurationProperty -> String
$cshowList :: [BasicAuthConfigurationProperty] -> ShowS
showList :: [BasicAuthConfigurationProperty] -> ShowS
Prelude.Show)
mkBasicAuthConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> BasicAuthConfigurationProperty
mkBasicAuthConfigurationProperty :: Value Text -> Value Text -> BasicAuthConfigurationProperty
mkBasicAuthConfigurationProperty Value Text
roleArn Value Text
secretArn
  = BasicAuthConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
       secretArn :: Value Text
secretArn = Value Text
secretArn}
instance ToResourceProperties BasicAuthConfigurationProperty where
  toResourceProperties :: BasicAuthConfigurationProperty -> ResourceProperties
toResourceProperties BasicAuthConfigurationProperty {()
Value Text
haddock_workaround_ :: BasicAuthConfigurationProperty -> ()
roleArn :: BasicAuthConfigurationProperty -> Value Text
secretArn :: BasicAuthConfigurationProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
secretArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QBusiness::Plugin.BasicAuthConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"RoleArn" 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
roleArn,
                       Key
"SecretArn" 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
secretArn]}
instance JSON.ToJSON BasicAuthConfigurationProperty where
  toJSON :: BasicAuthConfigurationProperty -> Value
toJSON BasicAuthConfigurationProperty {()
Value Text
haddock_workaround_ :: BasicAuthConfigurationProperty -> ()
roleArn :: BasicAuthConfigurationProperty -> Value Text
secretArn :: BasicAuthConfigurationProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
secretArn :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"RoleArn" 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
roleArn, Key
"SecretArn" 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
secretArn]
instance Property "RoleArn" BasicAuthConfigurationProperty where
  type PropertyType "RoleArn" BasicAuthConfigurationProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> BasicAuthConfigurationProperty
set PropertyType "RoleArn" BasicAuthConfigurationProperty
newValue BasicAuthConfigurationProperty {()
Value Text
haddock_workaround_ :: BasicAuthConfigurationProperty -> ()
roleArn :: BasicAuthConfigurationProperty -> Value Text
secretArn :: BasicAuthConfigurationProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
secretArn :: Value Text
..}
    = BasicAuthConfigurationProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" BasicAuthConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
secretArn :: Value Text
haddock_workaround_ :: ()
secretArn :: Value Text
..}
instance Property "SecretArn" BasicAuthConfigurationProperty where
  type PropertyType "SecretArn" BasicAuthConfigurationProperty = Value Prelude.Text
  set :: PropertyType "SecretArn" BasicAuthConfigurationProperty
-> BasicAuthConfigurationProperty -> BasicAuthConfigurationProperty
set PropertyType "SecretArn" BasicAuthConfigurationProperty
newValue BasicAuthConfigurationProperty {()
Value Text
haddock_workaround_ :: BasicAuthConfigurationProperty -> ()
roleArn :: BasicAuthConfigurationProperty -> Value Text
secretArn :: BasicAuthConfigurationProperty -> Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
secretArn :: Value Text
..}
    = BasicAuthConfigurationProperty {secretArn :: Value Text
secretArn = PropertyType "SecretArn" BasicAuthConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}