module Stratosphere.Omics.AnnotationStore.SseConfigProperty (
        SseConfigProperty(..), mkSseConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SseConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-annotationstore-sseconfig.html>
    SseConfigProperty {SseConfigProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-annotationstore-sseconfig.html#cfn-omics-annotationstore-sseconfig-keyarn>
                       SseConfigProperty -> Maybe (Value Text)
keyArn :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-omics-annotationstore-sseconfig.html#cfn-omics-annotationstore-sseconfig-type>
                       SseConfigProperty -> Value Text
type' :: (Value Prelude.Text)}
  deriving stock (SseConfigProperty -> SseConfigProperty -> Bool
(SseConfigProperty -> SseConfigProperty -> Bool)
-> (SseConfigProperty -> SseConfigProperty -> Bool)
-> Eq SseConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SseConfigProperty -> SseConfigProperty -> Bool
== :: SseConfigProperty -> SseConfigProperty -> Bool
$c/= :: SseConfigProperty -> SseConfigProperty -> Bool
/= :: SseConfigProperty -> SseConfigProperty -> Bool
Prelude.Eq, Int -> SseConfigProperty -> ShowS
[SseConfigProperty] -> ShowS
SseConfigProperty -> String
(Int -> SseConfigProperty -> ShowS)
-> (SseConfigProperty -> String)
-> ([SseConfigProperty] -> ShowS)
-> Show SseConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SseConfigProperty -> ShowS
showsPrec :: Int -> SseConfigProperty -> ShowS
$cshow :: SseConfigProperty -> String
show :: SseConfigProperty -> String
$cshowList :: [SseConfigProperty] -> ShowS
showList :: [SseConfigProperty] -> ShowS
Prelude.Show)
mkSseConfigProperty :: Value Prelude.Text -> SseConfigProperty
mkSseConfigProperty :: Value Text -> SseConfigProperty
mkSseConfigProperty Value Text
type'
  = SseConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', keyArn :: Maybe (Value Text)
keyArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SseConfigProperty where
  toResourceProperties :: SseConfigProperty -> ResourceProperties
toResourceProperties SseConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SseConfigProperty -> ()
keyArn :: SseConfigProperty -> Maybe (Value Text)
type' :: SseConfigProperty -> Value Text
haddock_workaround_ :: ()
keyArn :: Maybe (Value Text)
type' :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Omics::AnnotationStore.SseConfig",
         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
"Type" 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
type']
                           ([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
"KeyArn" (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)
keyArn]))}
instance JSON.ToJSON SseConfigProperty where
  toJSON :: SseConfigProperty -> Value
toJSON SseConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SseConfigProperty -> ()
keyArn :: SseConfigProperty -> Maybe (Value Text)
type' :: SseConfigProperty -> Value Text
haddock_workaround_ :: ()
keyArn :: Maybe (Value Text)
type' :: 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
"Type" 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
type']
              ([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
"KeyArn" (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)
keyArn])))
instance Property "KeyArn" SseConfigProperty where
  type PropertyType "KeyArn" SseConfigProperty = Value Prelude.Text
  set :: PropertyType "KeyArn" SseConfigProperty
-> SseConfigProperty -> SseConfigProperty
set PropertyType "KeyArn" SseConfigProperty
newValue SseConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SseConfigProperty -> ()
keyArn :: SseConfigProperty -> Maybe (Value Text)
type' :: SseConfigProperty -> Value Text
haddock_workaround_ :: ()
keyArn :: Maybe (Value Text)
type' :: Value Text
..}
    = SseConfigProperty {keyArn :: Maybe (Value Text)
keyArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KeyArn" SseConfigProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}
instance Property "Type" SseConfigProperty where
  type PropertyType "Type" SseConfigProperty = Value Prelude.Text
  set :: PropertyType "Type" SseConfigProperty
-> SseConfigProperty -> SseConfigProperty
set PropertyType "Type" SseConfigProperty
newValue SseConfigProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: SseConfigProperty -> ()
keyArn :: SseConfigProperty -> Maybe (Value Text)
type' :: SseConfigProperty -> Value Text
haddock_workaround_ :: ()
keyArn :: Maybe (Value Text)
type' :: Value Text
..}
    = SseConfigProperty {type' :: Value Text
type' = PropertyType "Type" SseConfigProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
keyArn :: Maybe (Value Text)
haddock_workaround_ :: ()
keyArn :: Maybe (Value Text)
..}