module Stratosphere.Neptune.DBCluster.DBClusterRoleProperty (
        DBClusterRoleProperty(..), mkDBClusterRoleProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DBClusterRoleProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-neptune-dbcluster-dbclusterrole.html>
    DBClusterRoleProperty {DBClusterRoleProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-neptune-dbcluster-dbclusterrole.html#cfn-neptune-dbcluster-dbclusterrole-featurename>
                           DBClusterRoleProperty -> Maybe (Value Text)
featureName :: (Prelude.Maybe (Value Prelude.Text)),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-neptune-dbcluster-dbclusterrole.html#cfn-neptune-dbcluster-dbclusterrole-rolearn>
                           DBClusterRoleProperty -> Value Text
roleArn :: (Value Prelude.Text)}
  deriving stock (DBClusterRoleProperty -> DBClusterRoleProperty -> Bool
(DBClusterRoleProperty -> DBClusterRoleProperty -> Bool)
-> (DBClusterRoleProperty -> DBClusterRoleProperty -> Bool)
-> Eq DBClusterRoleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DBClusterRoleProperty -> DBClusterRoleProperty -> Bool
== :: DBClusterRoleProperty -> DBClusterRoleProperty -> Bool
$c/= :: DBClusterRoleProperty -> DBClusterRoleProperty -> Bool
/= :: DBClusterRoleProperty -> DBClusterRoleProperty -> Bool
Prelude.Eq, Int -> DBClusterRoleProperty -> ShowS
[DBClusterRoleProperty] -> ShowS
DBClusterRoleProperty -> String
(Int -> DBClusterRoleProperty -> ShowS)
-> (DBClusterRoleProperty -> String)
-> ([DBClusterRoleProperty] -> ShowS)
-> Show DBClusterRoleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DBClusterRoleProperty -> ShowS
showsPrec :: Int -> DBClusterRoleProperty -> ShowS
$cshow :: DBClusterRoleProperty -> String
show :: DBClusterRoleProperty -> String
$cshowList :: [DBClusterRoleProperty] -> ShowS
showList :: [DBClusterRoleProperty] -> ShowS
Prelude.Show)
mkDBClusterRoleProperty ::
  Value Prelude.Text -> DBClusterRoleProperty
mkDBClusterRoleProperty :: Value Text -> DBClusterRoleProperty
mkDBClusterRoleProperty Value Text
roleArn
  = DBClusterRoleProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), roleArn :: Value Text
roleArn = Value Text
roleArn,
       featureName :: Maybe (Value Text)
featureName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DBClusterRoleProperty where
  toResourceProperties :: DBClusterRoleProperty -> ResourceProperties
toResourceProperties DBClusterRoleProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DBClusterRoleProperty -> ()
featureName :: DBClusterRoleProperty -> Maybe (Value Text)
roleArn :: DBClusterRoleProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Maybe (Value Text)
roleArn :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Neptune::DBCluster.DBClusterRole",
         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
"RoleArn" 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
roleArn]
                           ([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
"FeatureName" (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)
featureName]))}
instance JSON.ToJSON DBClusterRoleProperty where
  toJSON :: DBClusterRoleProperty -> Value
toJSON DBClusterRoleProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DBClusterRoleProperty -> ()
featureName :: DBClusterRoleProperty -> Maybe (Value Text)
roleArn :: DBClusterRoleProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Maybe (Value Text)
roleArn :: 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
"RoleArn" 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
roleArn]
              ([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
"FeatureName" (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)
featureName])))
instance Property "FeatureName" DBClusterRoleProperty where
  type PropertyType "FeatureName" DBClusterRoleProperty = Value Prelude.Text
  set :: PropertyType "FeatureName" DBClusterRoleProperty
-> DBClusterRoleProperty -> DBClusterRoleProperty
set PropertyType "FeatureName" DBClusterRoleProperty
newValue DBClusterRoleProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DBClusterRoleProperty -> ()
featureName :: DBClusterRoleProperty -> Maybe (Value Text)
roleArn :: DBClusterRoleProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Maybe (Value Text)
roleArn :: Value Text
..}
    = DBClusterRoleProperty {featureName :: Maybe (Value Text)
featureName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FeatureName" DBClusterRoleProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
..}
instance Property "RoleArn" DBClusterRoleProperty where
  type PropertyType "RoleArn" DBClusterRoleProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" DBClusterRoleProperty
-> DBClusterRoleProperty -> DBClusterRoleProperty
set PropertyType "RoleArn" DBClusterRoleProperty
newValue DBClusterRoleProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DBClusterRoleProperty -> ()
featureName :: DBClusterRoleProperty -> Maybe (Value Text)
roleArn :: DBClusterRoleProperty -> Value Text
haddock_workaround_ :: ()
featureName :: Maybe (Value Text)
roleArn :: Value Text
..}
    = DBClusterRoleProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" DBClusterRoleProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
featureName :: Maybe (Value Text)
haddock_workaround_ :: ()
featureName :: Maybe (Value Text)
..}