module Stratosphere.ASK.Skill.AuthenticationConfigurationProperty (
AuthenticationConfigurationProperty(..),
mkAuthenticationConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AuthenticationConfigurationProperty
=
AuthenticationConfigurationProperty {AuthenticationConfigurationProperty -> ()
haddock_workaround_ :: (),
AuthenticationConfigurationProperty -> Value Text
clientId :: (Value Prelude.Text),
AuthenticationConfigurationProperty -> Value Text
clientSecret :: (Value Prelude.Text),
AuthenticationConfigurationProperty -> Value Text
refreshToken :: (Value Prelude.Text)}
deriving stock (AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
(AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool)
-> (AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool)
-> Eq AuthenticationConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
== :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
$c/= :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
/= :: AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty -> Bool
Prelude.Eq, Int -> AuthenticationConfigurationProperty -> ShowS
[AuthenticationConfigurationProperty] -> ShowS
AuthenticationConfigurationProperty -> String
(Int -> AuthenticationConfigurationProperty -> ShowS)
-> (AuthenticationConfigurationProperty -> String)
-> ([AuthenticationConfigurationProperty] -> ShowS)
-> Show AuthenticationConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AuthenticationConfigurationProperty -> ShowS
showsPrec :: Int -> AuthenticationConfigurationProperty -> ShowS
$cshow :: AuthenticationConfigurationProperty -> String
show :: AuthenticationConfigurationProperty -> String
$cshowList :: [AuthenticationConfigurationProperty] -> ShowS
showList :: [AuthenticationConfigurationProperty] -> ShowS
Prelude.Show)
mkAuthenticationConfigurationProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> AuthenticationConfigurationProperty
mkAuthenticationConfigurationProperty :: Value Text
-> Value Text -> Value Text -> AuthenticationConfigurationProperty
mkAuthenticationConfigurationProperty
Value Text
clientId
Value Text
clientSecret
Value Text
refreshToken
= AuthenticationConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), clientId :: Value Text
clientId = Value Text
clientId,
clientSecret :: Value Text
clientSecret = Value Text
clientSecret, refreshToken :: Value Text
refreshToken = Value Text
refreshToken}
instance ToResourceProperties AuthenticationConfigurationProperty where
toResourceProperties :: AuthenticationConfigurationProperty -> ResourceProperties
toResourceProperties AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
clientId :: AuthenticationConfigurationProperty -> Value Text
clientSecret :: AuthenticationConfigurationProperty -> Value Text
refreshToken :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
refreshToken :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"Alexa::ASK::Skill.AuthenticationConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"ClientId" 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
clientId,
Key
"ClientSecret" 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
clientSecret,
Key
"RefreshToken" 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
refreshToken]}
instance JSON.ToJSON AuthenticationConfigurationProperty where
toJSON :: AuthenticationConfigurationProperty -> Value
toJSON AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
clientId :: AuthenticationConfigurationProperty -> Value Text
clientSecret :: AuthenticationConfigurationProperty -> Value Text
refreshToken :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
refreshToken :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"ClientId" 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
clientId, Key
"ClientSecret" 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
clientSecret,
Key
"RefreshToken" 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
refreshToken]
instance Property "ClientId" AuthenticationConfigurationProperty where
type PropertyType "ClientId" AuthenticationConfigurationProperty = Value Prelude.Text
set :: PropertyType "ClientId" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "ClientId" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
clientId :: AuthenticationConfigurationProperty -> Value Text
clientSecret :: AuthenticationConfigurationProperty -> Value Text
refreshToken :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
refreshToken :: Value Text
..}
= AuthenticationConfigurationProperty {clientId :: Value Text
clientId = PropertyType "ClientId" AuthenticationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clientSecret :: Value Text
refreshToken :: Value Text
haddock_workaround_ :: ()
clientSecret :: Value Text
refreshToken :: Value Text
..}
instance Property "ClientSecret" AuthenticationConfigurationProperty where
type PropertyType "ClientSecret" AuthenticationConfigurationProperty = Value Prelude.Text
set :: PropertyType "ClientSecret" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "ClientSecret" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
clientId :: AuthenticationConfigurationProperty -> Value Text
clientSecret :: AuthenticationConfigurationProperty -> Value Text
refreshToken :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
refreshToken :: Value Text
..}
= AuthenticationConfigurationProperty {clientSecret :: Value Text
clientSecret = PropertyType "ClientSecret" AuthenticationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clientId :: Value Text
refreshToken :: Value Text
haddock_workaround_ :: ()
clientId :: Value Text
refreshToken :: Value Text
..}
instance Property "RefreshToken" AuthenticationConfigurationProperty where
type PropertyType "RefreshToken" AuthenticationConfigurationProperty = Value Prelude.Text
set :: PropertyType "RefreshToken" AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
-> AuthenticationConfigurationProperty
set PropertyType "RefreshToken" AuthenticationConfigurationProperty
newValue AuthenticationConfigurationProperty {()
Value Text
haddock_workaround_ :: AuthenticationConfigurationProperty -> ()
clientId :: AuthenticationConfigurationProperty -> Value Text
clientSecret :: AuthenticationConfigurationProperty -> Value Text
refreshToken :: AuthenticationConfigurationProperty -> Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
refreshToken :: Value Text
..}
= AuthenticationConfigurationProperty {refreshToken :: Value Text
refreshToken = PropertyType "RefreshToken" AuthenticationConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
haddock_workaround_ :: ()
clientId :: Value Text
clientSecret :: Value Text
..}