module Stratosphere.AppSync.DataSource.AwsIamConfigProperty (
AwsIamConfigProperty(..), mkAwsIamConfigProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AwsIamConfigProperty
=
AwsIamConfigProperty {AwsIamConfigProperty -> ()
haddock_workaround_ :: (),
AwsIamConfigProperty -> Maybe (Value Text)
signingRegion :: (Prelude.Maybe (Value Prelude.Text)),
AwsIamConfigProperty -> Maybe (Value Text)
signingServiceName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (AwsIamConfigProperty -> AwsIamConfigProperty -> Bool
(AwsIamConfigProperty -> AwsIamConfigProperty -> Bool)
-> (AwsIamConfigProperty -> AwsIamConfigProperty -> Bool)
-> Eq AwsIamConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AwsIamConfigProperty -> AwsIamConfigProperty -> Bool
== :: AwsIamConfigProperty -> AwsIamConfigProperty -> Bool
$c/= :: AwsIamConfigProperty -> AwsIamConfigProperty -> Bool
/= :: AwsIamConfigProperty -> AwsIamConfigProperty -> Bool
Prelude.Eq, Int -> AwsIamConfigProperty -> ShowS
[AwsIamConfigProperty] -> ShowS
AwsIamConfigProperty -> String
(Int -> AwsIamConfigProperty -> ShowS)
-> (AwsIamConfigProperty -> String)
-> ([AwsIamConfigProperty] -> ShowS)
-> Show AwsIamConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AwsIamConfigProperty -> ShowS
showsPrec :: Int -> AwsIamConfigProperty -> ShowS
$cshow :: AwsIamConfigProperty -> String
show :: AwsIamConfigProperty -> String
$cshowList :: [AwsIamConfigProperty] -> ShowS
showList :: [AwsIamConfigProperty] -> ShowS
Prelude.Show)
mkAwsIamConfigProperty :: AwsIamConfigProperty
mkAwsIamConfigProperty :: AwsIamConfigProperty
mkAwsIamConfigProperty
= AwsIamConfigProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), signingRegion :: Maybe (Value Text)
signingRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
signingServiceName :: Maybe (Value Text)
signingServiceName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AwsIamConfigProperty where
toResourceProperties :: AwsIamConfigProperty -> ResourceProperties
toResourceProperties AwsIamConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsIamConfigProperty -> ()
signingRegion :: AwsIamConfigProperty -> Maybe (Value Text)
signingServiceName :: AwsIamConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
signingRegion :: Maybe (Value Text)
signingServiceName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppSync::DataSource.AwsIamConfig",
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
"SigningRegion" (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)
signingRegion,
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
"SigningServiceName" (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)
signingServiceName])}
instance JSON.ToJSON AwsIamConfigProperty where
toJSON :: AwsIamConfigProperty -> Value
toJSON AwsIamConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsIamConfigProperty -> ()
signingRegion :: AwsIamConfigProperty -> Maybe (Value Text)
signingServiceName :: AwsIamConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
signingRegion :: Maybe (Value Text)
signingServiceName :: 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
"SigningRegion" (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)
signingRegion,
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
"SigningServiceName" (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)
signingServiceName]))
instance Property "SigningRegion" AwsIamConfigProperty where
type PropertyType "SigningRegion" AwsIamConfigProperty = Value Prelude.Text
set :: PropertyType "SigningRegion" AwsIamConfigProperty
-> AwsIamConfigProperty -> AwsIamConfigProperty
set PropertyType "SigningRegion" AwsIamConfigProperty
newValue AwsIamConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsIamConfigProperty -> ()
signingRegion :: AwsIamConfigProperty -> Maybe (Value Text)
signingServiceName :: AwsIamConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
signingRegion :: Maybe (Value Text)
signingServiceName :: Maybe (Value Text)
..}
= AwsIamConfigProperty {signingRegion :: Maybe (Value Text)
signingRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SigningRegion" AwsIamConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
signingServiceName :: Maybe (Value Text)
haddock_workaround_ :: ()
signingServiceName :: Maybe (Value Text)
..}
instance Property "SigningServiceName" AwsIamConfigProperty where
type PropertyType "SigningServiceName" AwsIamConfigProperty = Value Prelude.Text
set :: PropertyType "SigningServiceName" AwsIamConfigProperty
-> AwsIamConfigProperty -> AwsIamConfigProperty
set PropertyType "SigningServiceName" AwsIamConfigProperty
newValue AwsIamConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: AwsIamConfigProperty -> ()
signingRegion :: AwsIamConfigProperty -> Maybe (Value Text)
signingServiceName :: AwsIamConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
signingRegion :: Maybe (Value Text)
signingServiceName :: Maybe (Value Text)
..}
= AwsIamConfigProperty
{signingServiceName :: Maybe (Value Text)
signingServiceName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SigningServiceName" AwsIamConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
signingRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
signingRegion :: Maybe (Value Text)
..}