module Stratosphere.QBusiness.DataAccessor.DataAccessorAuthenticationDetailProperty (
module Exports, DataAccessorAuthenticationDetailProperty(..),
mkDataAccessorAuthenticationDetailProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QBusiness.DataAccessor.DataAccessorAuthenticationConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataAccessorAuthenticationDetailProperty
=
DataAccessorAuthenticationDetailProperty {DataAccessorAuthenticationDetailProperty -> ()
haddock_workaround_ :: (),
DataAccessorAuthenticationDetailProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationConfiguration :: (Prelude.Maybe DataAccessorAuthenticationConfigurationProperty),
DataAccessorAuthenticationDetailProperty -> Value Text
authenticationType :: (Value Prelude.Text),
DataAccessorAuthenticationDetailProperty -> Maybe (ValueList Text)
externalIds :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool
(DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool)
-> (DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool)
-> Eq DataAccessorAuthenticationDetailProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool
== :: DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool
$c/= :: DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool
/= :: DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty -> Bool
Prelude.Eq, Int -> DataAccessorAuthenticationDetailProperty -> ShowS
[DataAccessorAuthenticationDetailProperty] -> ShowS
DataAccessorAuthenticationDetailProperty -> String
(Int -> DataAccessorAuthenticationDetailProperty -> ShowS)
-> (DataAccessorAuthenticationDetailProperty -> String)
-> ([DataAccessorAuthenticationDetailProperty] -> ShowS)
-> Show DataAccessorAuthenticationDetailProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataAccessorAuthenticationDetailProperty -> ShowS
showsPrec :: Int -> DataAccessorAuthenticationDetailProperty -> ShowS
$cshow :: DataAccessorAuthenticationDetailProperty -> String
show :: DataAccessorAuthenticationDetailProperty -> String
$cshowList :: [DataAccessorAuthenticationDetailProperty] -> ShowS
showList :: [DataAccessorAuthenticationDetailProperty] -> ShowS
Prelude.Show)
mkDataAccessorAuthenticationDetailProperty ::
Value Prelude.Text -> DataAccessorAuthenticationDetailProperty
mkDataAccessorAuthenticationDetailProperty :: Value Text -> DataAccessorAuthenticationDetailProperty
mkDataAccessorAuthenticationDetailProperty Value Text
authenticationType
= DataAccessorAuthenticationDetailProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), authenticationType :: Value Text
authenticationType = Value Text
authenticationType,
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationConfiguration = Maybe DataAccessorAuthenticationConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
externalIds :: Maybe (ValueList Text)
externalIds = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataAccessorAuthenticationDetailProperty where
toResourceProperties :: DataAccessorAuthenticationDetailProperty -> ResourceProperties
toResourceProperties DataAccessorAuthenticationDetailProperty {Maybe (ValueList Text)
Maybe DataAccessorAuthenticationConfigurationProperty
()
Value Text
haddock_workaround_ :: DataAccessorAuthenticationDetailProperty -> ()
authenticationConfiguration :: DataAccessorAuthenticationDetailProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: DataAccessorAuthenticationDetailProperty -> Value Text
externalIds :: DataAccessorAuthenticationDetailProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QBusiness::DataAccessor.DataAccessorAuthenticationDetail",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AuthenticationType" 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
authenticationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key
-> DataAccessorAuthenticationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthenticationConfiguration"
(DataAccessorAuthenticationConfigurationProperty -> (Key, Value))
-> Maybe DataAccessorAuthenticationConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationConfiguration,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExternalIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
externalIds]))}
instance JSON.ToJSON DataAccessorAuthenticationDetailProperty where
toJSON :: DataAccessorAuthenticationDetailProperty -> Value
toJSON DataAccessorAuthenticationDetailProperty {Maybe (ValueList Text)
Maybe DataAccessorAuthenticationConfigurationProperty
()
Value Text
haddock_workaround_ :: DataAccessorAuthenticationDetailProperty -> ()
authenticationConfiguration :: DataAccessorAuthenticationDetailProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: DataAccessorAuthenticationDetailProperty -> Value Text
externalIds :: DataAccessorAuthenticationDetailProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"AuthenticationType" 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
authenticationType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key
-> DataAccessorAuthenticationConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AuthenticationConfiguration"
(DataAccessorAuthenticationConfigurationProperty -> (Key, Value))
-> Maybe DataAccessorAuthenticationConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationConfiguration,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ExternalIds" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
externalIds])))
instance Property "AuthenticationConfiguration" DataAccessorAuthenticationDetailProperty where
type PropertyType "AuthenticationConfiguration" DataAccessorAuthenticationDetailProperty = DataAccessorAuthenticationConfigurationProperty
set :: PropertyType
"AuthenticationConfiguration"
DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty
set PropertyType
"AuthenticationConfiguration"
DataAccessorAuthenticationDetailProperty
newValue DataAccessorAuthenticationDetailProperty {Maybe (ValueList Text)
Maybe DataAccessorAuthenticationConfigurationProperty
()
Value Text
haddock_workaround_ :: DataAccessorAuthenticationDetailProperty -> ()
authenticationConfiguration :: DataAccessorAuthenticationDetailProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: DataAccessorAuthenticationDetailProperty -> Value Text
externalIds :: DataAccessorAuthenticationDetailProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
..}
= DataAccessorAuthenticationDetailProperty
{authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationConfiguration = DataAccessorAuthenticationConfigurationProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AuthenticationConfiguration"
DataAccessorAuthenticationDetailProperty
DataAccessorAuthenticationConfigurationProperty
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
..}
instance Property "AuthenticationType" DataAccessorAuthenticationDetailProperty where
type PropertyType "AuthenticationType" DataAccessorAuthenticationDetailProperty = Value Prelude.Text
set :: PropertyType
"AuthenticationType" DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty
set PropertyType
"AuthenticationType" DataAccessorAuthenticationDetailProperty
newValue DataAccessorAuthenticationDetailProperty {Maybe (ValueList Text)
Maybe DataAccessorAuthenticationConfigurationProperty
()
Value Text
haddock_workaround_ :: DataAccessorAuthenticationDetailProperty -> ()
authenticationConfiguration :: DataAccessorAuthenticationDetailProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: DataAccessorAuthenticationDetailProperty -> Value Text
externalIds :: DataAccessorAuthenticationDetailProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
..}
= DataAccessorAuthenticationDetailProperty
{authenticationType :: Value Text
authenticationType = PropertyType
"AuthenticationType" DataAccessorAuthenticationDetailProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe DataAccessorAuthenticationConfigurationProperty
()
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
externalIds :: Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
externalIds :: Maybe (ValueList Text)
..}
instance Property "ExternalIds" DataAccessorAuthenticationDetailProperty where
type PropertyType "ExternalIds" DataAccessorAuthenticationDetailProperty = ValueList Prelude.Text
set :: PropertyType "ExternalIds" DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty
-> DataAccessorAuthenticationDetailProperty
set PropertyType "ExternalIds" DataAccessorAuthenticationDetailProperty
newValue DataAccessorAuthenticationDetailProperty {Maybe (ValueList Text)
Maybe DataAccessorAuthenticationConfigurationProperty
()
Value Text
haddock_workaround_ :: DataAccessorAuthenticationDetailProperty -> ()
authenticationConfiguration :: DataAccessorAuthenticationDetailProperty
-> Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: DataAccessorAuthenticationDetailProperty -> Value Text
externalIds :: DataAccessorAuthenticationDetailProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
externalIds :: Maybe (ValueList Text)
..}
= DataAccessorAuthenticationDetailProperty
{externalIds :: Maybe (ValueList Text)
externalIds = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExternalIds" DataAccessorAuthenticationDetailProperty
ValueList Text
newValue, Maybe DataAccessorAuthenticationConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
haddock_workaround_ :: ()
authenticationConfiguration :: Maybe DataAccessorAuthenticationConfigurationProperty
authenticationType :: Value Text
..}