module Stratosphere.AppSync.DataSource.RdsHttpEndpointConfigProperty (
        RdsHttpEndpointConfigProperty(..), mkRdsHttpEndpointConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RdsHttpEndpointConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html>
    RdsHttpEndpointConfigProperty {RdsHttpEndpointConfigProperty -> ()
haddock_workaround_ :: (),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awsregion>
                                   RdsHttpEndpointConfigProperty -> Value Text
awsRegion :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-awssecretstorearn>
                                   RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-databasename>
                                   RdsHttpEndpointConfigProperty -> Maybe (Value Text)
databaseName :: (Prelude.Maybe (Value Prelude.Text)),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-dbclusteridentifier>
                                   RdsHttpEndpointConfigProperty -> Value Text
dbClusterIdentifier :: (Value Prelude.Text),
                                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appsync-datasource-rdshttpendpointconfig.html#cfn-appsync-datasource-rdshttpendpointconfig-schema>
                                   RdsHttpEndpointConfigProperty -> Maybe (Value Text)
schema :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> Bool
(RdsHttpEndpointConfigProperty
 -> RdsHttpEndpointConfigProperty -> Bool)
-> (RdsHttpEndpointConfigProperty
    -> RdsHttpEndpointConfigProperty -> Bool)
-> Eq RdsHttpEndpointConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> Bool
== :: RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> Bool
$c/= :: RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> Bool
/= :: RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> Bool
Prelude.Eq, Int -> RdsHttpEndpointConfigProperty -> ShowS
[RdsHttpEndpointConfigProperty] -> ShowS
RdsHttpEndpointConfigProperty -> String
(Int -> RdsHttpEndpointConfigProperty -> ShowS)
-> (RdsHttpEndpointConfigProperty -> String)
-> ([RdsHttpEndpointConfigProperty] -> ShowS)
-> Show RdsHttpEndpointConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RdsHttpEndpointConfigProperty -> ShowS
showsPrec :: Int -> RdsHttpEndpointConfigProperty -> ShowS
$cshow :: RdsHttpEndpointConfigProperty -> String
show :: RdsHttpEndpointConfigProperty -> String
$cshowList :: [RdsHttpEndpointConfigProperty] -> ShowS
showList :: [RdsHttpEndpointConfigProperty] -> ShowS
Prelude.Show)
mkRdsHttpEndpointConfigProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> RdsHttpEndpointConfigProperty
mkRdsHttpEndpointConfigProperty :: Value Text
-> Value Text -> Value Text -> RdsHttpEndpointConfigProperty
mkRdsHttpEndpointConfigProperty
  Value Text
awsRegion
  Value Text
awsSecretStoreArn
  Value Text
dbClusterIdentifier
  = RdsHttpEndpointConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), awsRegion :: Value Text
awsRegion = Value Text
awsRegion,
       awsSecretStoreArn :: Value Text
awsSecretStoreArn = Value Text
awsSecretStoreArn,
       dbClusterIdentifier :: Value Text
dbClusterIdentifier = Value Text
dbClusterIdentifier,
       databaseName :: Maybe (Value Text)
databaseName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, schema :: Maybe (Value Text)
schema = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RdsHttpEndpointConfigProperty where
  toResourceProperties :: RdsHttpEndpointConfigProperty -> ResourceProperties
toResourceProperties RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppSync::DataSource.RdsHttpEndpointConfig",
         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
"AwsRegion" 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
awsRegion,
                            Key
"AwsSecretStoreArn" 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
awsSecretStoreArn,
                            Key
"DbClusterIdentifier" 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
dbClusterIdentifier]
                           ([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
"DatabaseName" (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)
databaseName,
                               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
"Schema" (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)
schema]))}
instance JSON.ToJSON RdsHttpEndpointConfigProperty where
  toJSON :: RdsHttpEndpointConfigProperty -> Value
toJSON RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value 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
"AwsRegion" 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
awsRegion,
               Key
"AwsSecretStoreArn" 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
awsSecretStoreArn,
               Key
"DbClusterIdentifier" 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
dbClusterIdentifier]
              ([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
"DatabaseName" (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)
databaseName,
                  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
"Schema" (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)
schema])))
instance Property "AwsRegion" RdsHttpEndpointConfigProperty where
  type PropertyType "AwsRegion" RdsHttpEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType "AwsRegion" RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> RdsHttpEndpointConfigProperty
set PropertyType "AwsRegion" RdsHttpEndpointConfigProperty
newValue RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
    = RdsHttpEndpointConfigProperty {awsRegion :: Value Text
awsRegion = PropertyType "AwsRegion" RdsHttpEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
haddock_workaround_ :: ()
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
instance Property "AwsSecretStoreArn" RdsHttpEndpointConfigProperty where
  type PropertyType "AwsSecretStoreArn" RdsHttpEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType "AwsSecretStoreArn" RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> RdsHttpEndpointConfigProperty
set PropertyType "AwsSecretStoreArn" RdsHttpEndpointConfigProperty
newValue RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
    = RdsHttpEndpointConfigProperty {awsSecretStoreArn :: Value Text
awsSecretStoreArn = PropertyType "AwsSecretStoreArn" RdsHttpEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsRegion :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
instance Property "DatabaseName" RdsHttpEndpointConfigProperty where
  type PropertyType "DatabaseName" RdsHttpEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType "DatabaseName" RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> RdsHttpEndpointConfigProperty
set PropertyType "DatabaseName" RdsHttpEndpointConfigProperty
newValue RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
    = RdsHttpEndpointConfigProperty
        {databaseName :: Maybe (Value Text)
databaseName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseName" RdsHttpEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
instance Property "DbClusterIdentifier" RdsHttpEndpointConfigProperty where
  type PropertyType "DbClusterIdentifier" RdsHttpEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType "DbClusterIdentifier" RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> RdsHttpEndpointConfigProperty
set PropertyType "DbClusterIdentifier" RdsHttpEndpointConfigProperty
newValue RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
    = RdsHttpEndpointConfigProperty
        {dbClusterIdentifier :: Value Text
dbClusterIdentifier = PropertyType "DbClusterIdentifier" RdsHttpEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
schema :: Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
schema :: Maybe (Value Text)
..}
instance Property "Schema" RdsHttpEndpointConfigProperty where
  type PropertyType "Schema" RdsHttpEndpointConfigProperty = Value Prelude.Text
  set :: PropertyType "Schema" RdsHttpEndpointConfigProperty
-> RdsHttpEndpointConfigProperty -> RdsHttpEndpointConfigProperty
set PropertyType "Schema" RdsHttpEndpointConfigProperty
newValue RdsHttpEndpointConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RdsHttpEndpointConfigProperty -> ()
awsRegion :: RdsHttpEndpointConfigProperty -> Value Text
awsSecretStoreArn :: RdsHttpEndpointConfigProperty -> Value Text
databaseName :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
dbClusterIdentifier :: RdsHttpEndpointConfigProperty -> Value Text
schema :: RdsHttpEndpointConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
schema :: Maybe (Value Text)
..}
    = RdsHttpEndpointConfigProperty
        {schema :: Maybe (Value Text)
schema = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Schema" RdsHttpEndpointConfigProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
haddock_workaround_ :: ()
awsRegion :: Value Text
awsSecretStoreArn :: Value Text
databaseName :: Maybe (Value Text)
dbClusterIdentifier :: Value Text
..}