module Stratosphere.DataZone.Connection.OAuth2ClientApplicationProperty (
OAuth2ClientApplicationProperty(..),
mkOAuth2ClientApplicationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OAuth2ClientApplicationProperty
=
OAuth2ClientApplicationProperty {OAuth2ClientApplicationProperty -> ()
haddock_workaround_ :: (),
OAuth2ClientApplicationProperty -> Maybe (Value Text)
aWSManagedClientApplicationReference :: (Prelude.Maybe (Value Prelude.Text)),
OAuth2ClientApplicationProperty -> Maybe (Value Text)
userManagedClientApplicationClientId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool
(OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool)
-> (OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool)
-> Eq OAuth2ClientApplicationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool
== :: OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool
$c/= :: OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool
/= :: OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty -> Bool
Prelude.Eq, Int -> OAuth2ClientApplicationProperty -> ShowS
[OAuth2ClientApplicationProperty] -> ShowS
OAuth2ClientApplicationProperty -> String
(Int -> OAuth2ClientApplicationProperty -> ShowS)
-> (OAuth2ClientApplicationProperty -> String)
-> ([OAuth2ClientApplicationProperty] -> ShowS)
-> Show OAuth2ClientApplicationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OAuth2ClientApplicationProperty -> ShowS
showsPrec :: Int -> OAuth2ClientApplicationProperty -> ShowS
$cshow :: OAuth2ClientApplicationProperty -> String
show :: OAuth2ClientApplicationProperty -> String
$cshowList :: [OAuth2ClientApplicationProperty] -> ShowS
showList :: [OAuth2ClientApplicationProperty] -> ShowS
Prelude.Show)
mkOAuth2ClientApplicationProperty ::
OAuth2ClientApplicationProperty
mkOAuth2ClientApplicationProperty :: OAuth2ClientApplicationProperty
mkOAuth2ClientApplicationProperty
= OAuth2ClientApplicationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (),
aWSManagedClientApplicationReference :: Maybe (Value Text)
aWSManagedClientApplicationReference = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
userManagedClientApplicationClientId :: Maybe (Value Text)
userManagedClientApplicationClientId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OAuth2ClientApplicationProperty where
toResourceProperties :: OAuth2ClientApplicationProperty -> ResourceProperties
toResourceProperties OAuth2ClientApplicationProperty {Maybe (Value Text)
()
haddock_workaround_ :: OAuth2ClientApplicationProperty -> ()
aWSManagedClientApplicationReference :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
userManagedClientApplicationClientId :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSManagedClientApplicationReference :: Maybe (Value Text)
userManagedClientApplicationClientId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DataZone::Connection.OAuth2ClientApplication",
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
"AWSManagedClientApplicationReference"
(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)
aWSManagedClientApplicationReference,
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
"UserManagedClientApplicationClientId"
(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)
userManagedClientApplicationClientId])}
instance JSON.ToJSON OAuth2ClientApplicationProperty where
toJSON :: OAuth2ClientApplicationProperty -> Value
toJSON OAuth2ClientApplicationProperty {Maybe (Value Text)
()
haddock_workaround_ :: OAuth2ClientApplicationProperty -> ()
aWSManagedClientApplicationReference :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
userManagedClientApplicationClientId :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSManagedClientApplicationReference :: Maybe (Value Text)
userManagedClientApplicationClientId :: Maybe (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
"AWSManagedClientApplicationReference"
(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)
aWSManagedClientApplicationReference,
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
"UserManagedClientApplicationClientId"
(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)
userManagedClientApplicationClientId]))
instance Property "AWSManagedClientApplicationReference" OAuth2ClientApplicationProperty where
type PropertyType "AWSManagedClientApplicationReference" OAuth2ClientApplicationProperty = Value Prelude.Text
set :: PropertyType
"AWSManagedClientApplicationReference"
OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty
set PropertyType
"AWSManagedClientApplicationReference"
OAuth2ClientApplicationProperty
newValue OAuth2ClientApplicationProperty {Maybe (Value Text)
()
haddock_workaround_ :: OAuth2ClientApplicationProperty -> ()
aWSManagedClientApplicationReference :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
userManagedClientApplicationClientId :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSManagedClientApplicationReference :: Maybe (Value Text)
userManagedClientApplicationClientId :: Maybe (Value Text)
..}
= OAuth2ClientApplicationProperty
{aWSManagedClientApplicationReference :: Maybe (Value Text)
aWSManagedClientApplicationReference = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"AWSManagedClientApplicationReference"
OAuth2ClientApplicationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
userManagedClientApplicationClientId :: Maybe (Value Text)
haddock_workaround_ :: ()
userManagedClientApplicationClientId :: Maybe (Value Text)
..}
instance Property "UserManagedClientApplicationClientId" OAuth2ClientApplicationProperty where
type PropertyType "UserManagedClientApplicationClientId" OAuth2ClientApplicationProperty = Value Prelude.Text
set :: PropertyType
"UserManagedClientApplicationClientId"
OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty
-> OAuth2ClientApplicationProperty
set PropertyType
"UserManagedClientApplicationClientId"
OAuth2ClientApplicationProperty
newValue OAuth2ClientApplicationProperty {Maybe (Value Text)
()
haddock_workaround_ :: OAuth2ClientApplicationProperty -> ()
aWSManagedClientApplicationReference :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
userManagedClientApplicationClientId :: OAuth2ClientApplicationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
aWSManagedClientApplicationReference :: Maybe (Value Text)
userManagedClientApplicationClientId :: Maybe (Value Text)
..}
= OAuth2ClientApplicationProperty
{userManagedClientApplicationClientId :: Maybe (Value Text)
userManagedClientApplicationClientId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"UserManagedClientApplicationClientId"
OAuth2ClientApplicationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
aWSManagedClientApplicationReference :: Maybe (Value Text)
haddock_workaround_ :: ()
aWSManagedClientApplicationReference :: Maybe (Value Text)
..}