module Stratosphere.AppFlow.ConnectorProfile.OAuth2PropertiesProperty (
OAuth2PropertiesProperty(..), mkOAuth2PropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OAuth2PropertiesProperty
=
OAuth2PropertiesProperty {OAuth2PropertiesProperty -> ()
haddock_workaround_ :: (),
OAuth2PropertiesProperty -> Maybe (Value Text)
oAuth2GrantType :: (Prelude.Maybe (Value Prelude.Text)),
OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrl :: (Prelude.Maybe (Value Prelude.Text)),
OAuth2PropertiesProperty -> Maybe (Map Text (Value Text))
tokenUrlCustomProperties :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool
(OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool)
-> (OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool)
-> Eq OAuth2PropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool
== :: OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool
$c/= :: OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool
/= :: OAuth2PropertiesProperty -> OAuth2PropertiesProperty -> Bool
Prelude.Eq, Int -> OAuth2PropertiesProperty -> ShowS
[OAuth2PropertiesProperty] -> ShowS
OAuth2PropertiesProperty -> String
(Int -> OAuth2PropertiesProperty -> ShowS)
-> (OAuth2PropertiesProperty -> String)
-> ([OAuth2PropertiesProperty] -> ShowS)
-> Show OAuth2PropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OAuth2PropertiesProperty -> ShowS
showsPrec :: Int -> OAuth2PropertiesProperty -> ShowS
$cshow :: OAuth2PropertiesProperty -> String
show :: OAuth2PropertiesProperty -> String
$cshowList :: [OAuth2PropertiesProperty] -> ShowS
showList :: [OAuth2PropertiesProperty] -> ShowS
Prelude.Show)
mkOAuth2PropertiesProperty :: OAuth2PropertiesProperty
mkOAuth2PropertiesProperty :: OAuth2PropertiesProperty
mkOAuth2PropertiesProperty
= OAuth2PropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), oAuth2GrantType :: Maybe (Value Text)
oAuth2GrantType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tokenUrl :: Maybe (Value Text)
tokenUrl = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
tokenUrlCustomProperties = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OAuth2PropertiesProperty where
toResourceProperties :: OAuth2PropertiesProperty -> ResourceProperties
toResourceProperties OAuth2PropertiesProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: OAuth2PropertiesProperty -> ()
oAuth2GrantType :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrl :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrlCustomProperties :: OAuth2PropertiesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppFlow::ConnectorProfile.OAuth2Properties",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"OAuth2GrantType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
oAuth2GrantType,
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..=) Key
"TokenUrl" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tokenUrl,
Key -> Map Text (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..=) Key
"TokenUrlCustomProperties"
(Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tokenUrlCustomProperties])}
instance JSON.ToJSON OAuth2PropertiesProperty where
toJSON :: OAuth2PropertiesProperty -> Value
toJSON OAuth2PropertiesProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: OAuth2PropertiesProperty -> ()
oAuth2GrantType :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrl :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrlCustomProperties :: OAuth2PropertiesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"OAuth2GrantType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
oAuth2GrantType,
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..=) Key
"TokenUrl" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tokenUrl,
Key -> Map Text (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..=) Key
"TokenUrlCustomProperties"
(Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tokenUrlCustomProperties]))
instance Property "OAuth2GrantType" OAuth2PropertiesProperty where
type PropertyType "OAuth2GrantType" OAuth2PropertiesProperty = Value Prelude.Text
set :: PropertyType "OAuth2GrantType" OAuth2PropertiesProperty
-> OAuth2PropertiesProperty -> OAuth2PropertiesProperty
set PropertyType "OAuth2GrantType" OAuth2PropertiesProperty
newValue OAuth2PropertiesProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: OAuth2PropertiesProperty -> ()
oAuth2GrantType :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrl :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrlCustomProperties :: OAuth2PropertiesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
= OAuth2PropertiesProperty
{oAuth2GrantType :: Maybe (Value Text)
oAuth2GrantType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OAuth2GrantType" OAuth2PropertiesProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
instance Property "TokenUrl" OAuth2PropertiesProperty where
type PropertyType "TokenUrl" OAuth2PropertiesProperty = Value Prelude.Text
set :: PropertyType "TokenUrl" OAuth2PropertiesProperty
-> OAuth2PropertiesProperty -> OAuth2PropertiesProperty
set PropertyType "TokenUrl" OAuth2PropertiesProperty
newValue OAuth2PropertiesProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: OAuth2PropertiesProperty -> ()
oAuth2GrantType :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrl :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrlCustomProperties :: OAuth2PropertiesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
= OAuth2PropertiesProperty {tokenUrl :: Maybe (Value Text)
tokenUrl = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TokenUrl" OAuth2PropertiesProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
instance Property "TokenUrlCustomProperties" OAuth2PropertiesProperty where
type PropertyType "TokenUrlCustomProperties" OAuth2PropertiesProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "TokenUrlCustomProperties" OAuth2PropertiesProperty
-> OAuth2PropertiesProperty -> OAuth2PropertiesProperty
set PropertyType "TokenUrlCustomProperties" OAuth2PropertiesProperty
newValue OAuth2PropertiesProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: OAuth2PropertiesProperty -> ()
oAuth2GrantType :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrl :: OAuth2PropertiesProperty -> Maybe (Value Text)
tokenUrlCustomProperties :: OAuth2PropertiesProperty -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
..}
= OAuth2PropertiesProperty
{tokenUrlCustomProperties :: Maybe (Map Text (Value Text))
tokenUrlCustomProperties = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "TokenUrlCustomProperties" OAuth2PropertiesProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
haddock_workaround_ :: ()
oAuth2GrantType :: Maybe (Value Text)
tokenUrl :: Maybe (Value Text)
..}